⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reply.html

📁 正版创力4.1SQL商业版!!!ASP版。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
{ 
	//document.formwrite.UserFace.value=document.formwrite.Image.value;
	document.formwrite.showuserface.src="{$webdir}images/guestbook/" + value + ".gif";
}
function check()
{
	if(document.formwrite.UserName.value==""){
		alert("姓名不能为空!");
		document.formwrite.UserName.focus();
		return false;
	}
	if(document.formwrite.GuestTitle.value==""){
		alert("留言主题不能为空!");
		document.formwrite.GuestTitle.focus();
		return false;
	}
	if(document.formwrite.GuestContent.value==""){
		alert("留言内容不能为空!");
		document.formwrite.GuestContent.focus();
		return false;
	}
	if(document.formwrite.GuestContent.value.length>1000){
		alert("留言内容最大为1000字节!");
		document.formwrite.GuestContent.focus();
		return false;
	}
	if (isshowcode=="yes")
	{
		if(document.formwrite.Guest_ChkCode.value==""){
			alert("请输入验证码!");
			document.formwrite.Guest_ChkCode.focus();
			return false;
		}
	}
}
</script>
<table width="99%" align="center" cellpadding="1" cellspacing="1" class="border">
	<form action="Reply.asp" method="post" name="formwrite" id="formwrite" onSubmit="return check()">
	<tr class="tdbg"> 
		<td width="8%" align="right">姓名:</td>
		<td width="42%" align="left"><input type="text" name="UserName" maxlength="25" size="30" value="{$username}" {$isdisabled} /> <font color="red">*</font></td>
		<td width="50%" rowspan="3" align="left"><img src="{$webdir}images/guestbook/01.gif" alt="" name="showuserface" width="80" height="90" border="0" id="showuserface"/></td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">邮箱:</td>
		<td align="left"><input type="text" name="UserEmail" maxlength="30" size="30" value="{$useremail}" {$isdisabled} /> <font color="red">*</font></td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">头像:</td>
		<td align="left">
		<select id="UserFace" name="UserFace" onchange="changeimage(this.options[this.selectedIndex].value)">
			<option value="01">01.GIF</option>
			<option value="02">02.GIF</option>
			<option value="03">03.GIF</option>
			<option value="04">04.GIF</option>
			<option value="05">05.GIF</option>
			<option value="06">06.GIF</option>
			<option value="07">07.GIF</option>
			<option value="08">08.GIF</option>
			<option value="09">09.GIF</option>
			<option value="10">10.GIF</option>
			<option value="11">11.GIF</option>
			<option value="12">12.GIF</option>
			<option value="13">13.GIF</option>
			<option value="14">14.GIF</option>
			<option value="15">15.GIF</option>
			<option value="16">16.GIF</option>
			<option value="17">17.GIF</option>
			<option value="18">18.GIF</option>
			<option value="19">19.GIF</option>
			<option value="20">20.GIF</option>
			<option value="21">21.GIF</option>
			<option value="22">22.GIF</option>
			<option value="23">23.GIF</option>
		</select>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">主题:</td>
		<td align="left" colspan="2"> 
		<input type="text" name="GuestTitle" style="width:80%" maxlength="100" value="{$guesttitle}" disabled />
		<font color="red">*</font></td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">表情:</td>
		<td align="left" colspan="2">
		<input type="radio" name="GuestEmote" value="1" />
		<img src="{$webdir}images/guestbook/face1.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="2" />
		<img src="{$webdir}images/guestbook/face2.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="3" />
		<img src="{$webdir}images/guestbook/face3.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="4" />
		<img src="{$webdir}images/guestbook/face4.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="5" />
		<img src="{$webdir}images/guestbook/face5.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="6" />
		<img src="{$webdir}images/guestbook/face6.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="7" />
		<img src="{$webdir}images/guestbook/face7.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="8" />
		<img src="{$webdir}images/guestbook/face8.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="9" />
		<img src="{$webdir}images/guestbook/face9.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="10" />
		<img src="{$webdir}images/guestbook/face10.gif" width="19" height="19" />
		<br />
		<input type="radio" name="GuestEmote" value="11" />
		<img src="{$webdir}images/guestbook/face11.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="12" />
		<img src="{$webdir}images/guestbook/face12.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="13" />
		<img src="{$webdir}images/guestbook/face13.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="14" />
		<img src="{$webdir}images/guestbook/face14.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="15" />
		<img src="{$webdir}images/guestbook/face15.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="16" />
		<img src="{$webdir}images/guestbook/face16.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="17" />
		<img src="{$webdir}images/guestbook/face17.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="18" />
		<img src="{$webdir}images/guestbook/face18.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="19" />
		<img src="{$webdir}images/guestbook/face19.gif" width="19" height="19" />
		<input type="radio" name="GuestEmote" value="20" />
		<img src="{$webdir}images/guestbook/face20.gif" width="19" height="19" />
		</td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">标签:</td>
		<td align="left" colspan="2">{$showubb}</td>
	</tr>
	<tr class="tdbg"> 
		<td align="right">内容:</td>
		<td align="left" colspan="2"> 
		<textarea name="GuestContent" style="width:80%" rows="8">{$guestcontent}</textarea><br /><font color="#ff0033">注:内容最大限制为1000字节!</font></td>
	</tr>
	<script type="text/javascript">
	if (isshowcode=="yes")
	{
		document.write("<tr class=\"tdbg\"><td align=\"right\">验证码:</td>");
		document.write("<td  align=\"left\" colspan=\"2\"><input type=\"text\" name=\"Guest_ChkCode\" maxlength=\"4\" size=\"8\" value=\"\" />&nbsp;");
		document.write("<img src=\"../Inc/Cl_GetCode.asp?type=Guest_ChkCode\" alt=\"\" />&nbsp;<font color=\"#009900\">*</font> 请输入验证码。</td></tr>");
	}
	</script>
	<tr class="tdbg"> 
		<td colspan="3" align="center">
		<input type="hidden" name="guestid"  value="{$guestid}" />
		<input type="hidden" name="replyid"  value="{$replyid}" />
		<input type="hidden" name="Action"  value="Save" />
		<input type="submit" name="Submit1" value=" 确 定 " />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="reset" name="Submit3" value=" 重 填 " />
		</td>
	</tr>
	</form>
</table>
<script language="JavaScript" type="text/javascript">
var currentFace	= "{$userface}";
var currentEmote= "{$guestemote}";
document.formwrite.showuserface.src="{$webdir}images/guestbook/" + currentFace + ".gif";
var obj = document.formwrite.UserFace;
for (i=0;i<obj.length;i++){
	if (obj.options[i].value==currentFace){
	obj.options[i].selected=true;
	break;
	}
}
var obj = document.formwrite.GuestEmote;
for (i=0;i<obj.length;i++){
	if (obj[i].value==currentEmote){
	obj[i].checked=true;
	break;
	}
}
</script>
<!-- 签写留言End -->
</td>
      </tr>
    </table></td>
  </tr>
</table>
         </td>
        </tr>
      </table>
  </div>
{$showfooter}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -