Location: PHPKode > projects > Guestbook! > guestbook/templates/gb.html
<!-- BEGIN: gb -->
<script Language="JavaScript"><!--
function Validator(theForm)
{

  if (theForm.USER_NAME.value.replace(/(^\s*)|(\s*$)/g, "") == "")
  {
    alert("Âû äîëæíû ââåñòè èìÿ!");
    theForm.USER_NAME.focus();
    return (false);
  }

  if (theForm.securitycode) 
  {
  	if (theForm.securitycode.value.replace(/(^\s*)|(\s*$)/g, "") == "")
	{
	    alert("Ïîëå \"Êîä\" ïóñòîå!");
	    theForm.securitycode.focus();
	    return (false);
	}
  }	

  if (theForm.CONTENT.value.replace(/(^\s*)|(\s*$)/g, "") == "")
  {
    alert("Ïóñòîå ñîîáùåíèå!");
    theForm.CONTENT.focus();
    return (false);
  }

  return (true);
}
//--></script>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr><td bgcolor=#7171EC>
<table border=0 cellspacing=1 cellpadding=3 width=100%>
<tr bgcolor="#7171EC">
<td align="center" valign="top"><font color="#FFFFFF" face="Verdana, Arial" size="2"><b>Ãîñòåâàÿ êíèãà</b></font></td>
</tr>
<tr bgcolor=#f5f5f5>
<td valign="top" align="center">
{STATUS}
<form action="post.php" method="POST" onsubmit="return Validator(this)">
<input type="hidden" name="url" value="{URL}">
<table border="0" width="100%" align="center">
    <tr>
      <td valign="top" width="45%"><b>Èìÿ:<FONT color=red><SUP>*</SUP></FONT></b></td>
      <td valign="top" width="55%"><input style="width: 250px" size=25 type="text" size="30" name="USER_NAME" maxlength=30></td>
    </tr>
    <tr>
      <td valign="top" width="45%"><b>E-Mail:</b></td>
      <td valign="top" width="55%"><input style="width: 250px" size=25 type="text" size="30" name="EMAIL" maxlength=50></td>
    </tr>
    <tr>
      <td valign="top" width="45%"><b>HomePage (URL):</b></td>
      <td valign="top" width="55%"><input style="width: 250px" size=25 type="text" size="30" name="HREF" value="http://" maxlength=70></td>
    </tr>
    <!-- BEGIN: securitycode -->
    <tr>
      <td valign="top" width="45%"><b>Êîä:<FONT color=red><SUP>*</SUP></FONT></b></td>
      <td valign="top" width="55%"><img src="security_image.php?rnd={RND}" border="0">
      <br><input type="text" name="securitycode" style="width:100px;">
      </td>
    </tr>
    <!-- END: securitycode -->
    <tr>
      <td valign="middle" width="45%"><b>Ñîîáùåíèå:<FONT color=red><SUP>*</SUP></FONT></b></td>
      <td valign="top" width="55%"><textarea style="width: 300px" name="CONTENT" rows="7" cols="30" wrap="Virtual"></textarea></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" colspan="2"><input type="submit" value=":: Îòïðàâèòü ::" STYLE="cursor: hand; "></td>
    </tr>
  </table>
</form>
</td>
</tr>
<!-- BEGIN: content -->
<tr bgcolor=#f5f5f5>
<td valign="top">
<b>{NUM}</b> &nbsp;&nbsp;<b>{USER_NAME}</b>&nbsp;&nbsp;{HOMEPAGE}&nbsp;&nbsp;
<i>{ISSUEDATE}</i>
<br><br>
{COMMENT}
{REPLY}
</td>
</tr>
<!-- END: content -->
<!-- BEGIN: pager -->
<tr bgcolor=#f5f5f5>
<td align=center> 
{NAVBAR}
</td>
</tr>
<!-- END: pager -->
<form action="{SCRIPT_NAME}">
<tr bgcolor=#f5f5f5>
<td align=center> 
<table border=0>
<tr>
<td>Ïîèñê: </td>
<td><input type="text" name="gb_search" value="{SEARCH_VALUE}" style="width:200px;"></td>
<td><input type="submit" value="Íàéòè"></td>
</tr>
</table>
</td>
</tr>
</form>
<tr bgcolor=#f5f5f5>
<td valign="bottom" align="center">
<font size=1>Powered by <b>Guestbook!</b> &copy; 2002-2007 
<a href="http://www.activex.net.ru" target="_blank" class="base"><font class="base" size=1>activex.net.ru</font></a>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END: gb -->
Return current item: Guestbook!