Location: PHPKode > projects > pmchat > pmchat/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>PM Chat</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="HAPedit 3.1">
<link rel="stylesheet" href="	style.css" type="text/css">
<script src="sarissa.js"></script>
<script language="javascript">
function setMessage(msg)
{

	if(document.getElementById("responseMessage"))
	{
		document.getElementById("responseMessage").innerHTML=msg;
	}
}


function SetCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) nDays=1;
	expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName+"="+escape(cookieValue)
		+ ";expires="+expire.toGMTString();
}
function submitform()
{
if(document.enterform)
{
	var f=document.enterform;

	if(f.roomname.value==""){
		alert('Enter a Name for the Chat Room');
		return;
		}
	
	var xmlhttp = new XMLHttpRequest();
	xmlhttp.open("POST", "./createcr.php", true);
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
	var params="roomname="+f.roomname.value;
	params+="&comment="+f.comment.value;
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			var msg=xmlhttp.responseText;
			try{
				var i1=msg.indexOf("<ROOMID>");			
				var msg1=msg.substr(i1+8);
				var i2=msg1.indexOf("</ROOMID>");
				var msg2=msg1.substr(0,i2);		
				location.href=msg2;
			}
			catch(ex){
				alert('Unable to create chatRoom');
			}
		}
	}
        xmlhttp.send(encodeURI(params));	
	
}

}

</script>
</head>
<body>


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 height="100%" style="margin-top:15%">
  <TBODY>
	  <TR>
    <TD vAlign=middle align=center>
	

<TABLE class=outbrd1 height=202 cellSpacing=0 cellPadding=0 width=750
      align=center border=0>
        <TBODY>
        <TR>
          <TD width=10 height=230>&nbsp;</TD>
          <TD vAlign=top height=230>
            <TABLE cellSpacing=0 cellPadding=4 width=469 border=0>
              <TBODY>
              <TR>
                <TD class=homeHeader vAlign=bottom width=202 height=30>
			<a href="http://pmtracker.siteburg.com" target=_blank><img border="0" src="./images/pmchat.gif" alt="PM Chat" title="chat logo"></a></TD>
                <TD class=homeHeader vAlign=bottom align=right width=267
                height=30>&nbsp;</TD></TR>
              <TR>
                <TD class=text align=left width=469
              colSpan=2>&nbsp;</TD></TR></TBODY></TABLE>
            <TABLE class=textblue cellSpacing=0 cellPadding=0 width="97%"
            align=center border=0 >
              <TBODY>
              <TR>
                <TD vAlign=top align=middle>
                <img border="0" title="chat features" alt="chat features"  src="./images/progress.gif" width="18" height="18"></TD>
                <TD class=text1 width=426>Private Group Chat</TD></TR>
              <TR>
                <TD vAlign=top align=middle>
                <img border="0" title="chat features" alt="chat features" src="./images/progress.gif" width="18" height="18"></TD>
                <TD class=text1>No Registration Required</TD></TR>
              <TR>
                <TD vAlign=top align=middle>
                <img border="0" title="chat features" alt="chat features" src="./images/progress.gif" width="18" height="18"></TD>
                <TD class=text1>No Applet Download Needed</TD></TR>
		<TR>
                <TD vAlign=top align=middle>
                <img border="0" title="chat features" alt="chat features" src="./images/progress.gif" width="18" height="18"></TD>
                <TD class=text1>Unlimited number of users</TD></TR>
		<TR>
                <TD vAlign=top align=middle>
                <img border="0" title="chat features" alt="chat features" src="./images/progress.gif" width="18" height="18"></TD>
                <TD class=text1>Unlimited number of chat rooms</TD></TR>
              <TR>
                <TD vAlign=top align=middle>&nbsp;</TD>
                <TD class=text>&nbsp;</TD></TR>
              <TR>
                <TD vAlign=top align=middle colSpan=2>
                  &nbsp;</TD></TR></TBODY></TABLE>
		  
		  </TD>
          <TD width=10 height=230>&nbsp;</TD>
          <TD vAlign=top width=250 height="100%" rowSpan=3>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 height="100%">
              <TBODY>
              <TR>
                <TD vAlign=top bgcolor="yellow" height="100%">                


	<form name="enterform" action="" onsubmit="submitform();return false;" method="post">
		
	<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#CFDFFF" style="border-collapse: collapse" bordercolor="#111111" class="textblue" height="272">
	<tr>
		<td align="left"><b>Chat Room Name:</b></td>
	</tr>
	<tr>
		<td align="left">
	<input type="text"   name="roomname" size="26" value="">
	</td>
	</tr>
	<tr>
		<td align="left"><b>Comments:</b></td>
	</tr>
	<tr>
		<td align="left">
		<textarea name="comment" rows="4" cols="20"></textarea>
	</td>
	</tr>

	<tr>
	<td colspan="3" align="right">
	<input type="submit" name="submit" value="Create" style="border: 2px solid;background-color:#efefef;font:bold  12px Verdana">
	</td>
	</tr>
	</table>
	</form>
	
                
                </TD>
                </TR>
                </TBODY>
                </TABLE>
                
                </TD></TR>
        <TR>
          <TD height=1></TD>
          <TD class=text align=left height=1></TD>
          <TD height=1></TD></TR>
        <TR>
          <TD height=8></TD>
          <TD class=blackfont align=middle height=8>Best viewed in IE 5.5
            &amp; above, Opera 7.2 &amp; above, Netscape 7.0 &amp; above, at a
            Screen Resolution of 1024 X 768 pixels.</TD>
          <TD height=8></TD></TR>
          </TBODY>
          </TABLE>


	  </TD>
          </TR>
          </TBODY>
          </TABLE>




</body>


</html>
Return current item: pmchat