发布网友 发布时间:2024-10-24 04:12
共1个回答
热心网友 时间:2024-11-09 23:33
你要的话!下午给你qq645244591
<%if session("username")<>""then%>
<%set rs=server.createobject("adodb.recordset")
exec="select * from user where id="&session("username")&" "
rs.open exec,conn,1,1
if rs("qx")<2 then
response.Write("<script>alert('对不起,您没有留言权限!');window.close();</script>")
end if %>
<table width="280" height="450" border="0" cellpadding="0" cellspacing="0" align="center" background="../images/bgg.gif" >
<tr><td>
<form name="add" action="../liuyan/chkform.asp" method="post" >
<table width="220" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><%if session("username")<>""then%>
<%=rs("useradmin")%>欢迎你<img src="../<%=rs("touxiang")%>" alt="用户头像"/>
<%end if%></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input name="name" type="radio" id="radio" value="<%=rs("useradmin")%>" checked>
<label for="radio">正常留言
<input type="radio" name="name" id="radio2" value="匿名">
匿名留言
</label></td>
</tr>
<tr>
<td>表情</td>
<td><input class="textbox" name="img" type="hidden" id="line" value="images/bq/40.gif<%=Replace(img,"../","")%>" size="4" maxlength="5" /><input name="button" type="button" value="浏览" onClick="window.open('../inc/selectbq.asp?action=face','face','width=300,height=200,resizable=1,scrollbars=1')" alt="浏览"> <img src="../images/bq/40.gif" name="showimages"
border="0" id="showimages" style="CURSOR: hand" title="点击选择表情" onClick="window.open('../inc/selectbq.asp?action=face','face','width=300,height=200,resizable=1,scrollbars=1')" /></td>
</tr>
<tr>
<td width="37">主题</td>
<td width="263"><input name="title" type="text" size="20" ><input name="userid" type="hidden" value="<%=rs("id")%>"></td>
</tr>
<tr>
<td><input name="hf" type="hidden" value="0"></td>
<td> </td>
</tr>
<tr>
<td>内容</td>
<td><label for="textarea"></label>
<textarea name="body" id="textarea" cols="25" rows="5" ></textarea></td>
</tr>
<tr>
<td><input name="sh" type="hidden" value="<%=config("lysh")%>" /> </td>
<td>验证码</td>
</tr>
<tr>
<td><input name="hfcs" type="hidden" id="hfcs" value="0"></td>
<td><input name="VerifyCode" type="text"size="6" > <img src="../inc/safecode.asp?" alt="图片看不清?点击重新得到验证码" width="65" height="25" style="cursor:hand;" onClick="this.src+=Math.random()" /></td>
</tr>
<tr>
<td> </td>
<td><input name="submit" type="submit" value="提交"> <input name="reset" type="reset" value="重写"></td>
</tr>
</table>
</form>
</td></tr></table>
<%else%>
<table width="280" border="0" cellpadding="0" cellspacing="0" align="center" height="450" background="../images/bgg.gif" >
<tr><td height="450" align="center"> <table width="220" align="center"border="0" cellpadding="0" cellspacing="0"><tr><td>您未登录,不能留言!<br><a href="../liuyan/mmdl.asp">点击登录</a><br><div align="center"><font size="2">[<a href="javascript:window.close();">关闭窗口</a>]</font></div></td></tr></table></td></tr></table>
<%end if%>
以上的是写入的