bbs_edit.asp
来自「是一个关于小学信息化教育的平台,提供了学校论坛,和聊天室功能!」· ASP 代码 · 共 525 行 · 第 1/2 页
ASP
525 行
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%"> </td>
<td width="99%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="td1"> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21%" valign="top"><!--#include file="../../include/admin_left.inc"--></td>
<td width="2%" valign="top"> </td>
<td width="77%" height=1 valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td background="/images/middle/m-bg.gif" width="70"><img src="/images/wzgl.gif"></td>
<td background="/images/middle/m-bg.gif" align="right"><img src="/images/middle/pacer1.gif" width="3" height="38"></td>
<td background="/images/middle/m-bg.gif" align="right" valign="middle" width="16"><a href=# onClick="more()"><img src="/images/middle/more.gif" width="16" height="16" border=0 alt="更多"></a></td>
<td background="/images/middle/m-bg.gif" align="right" width="8"><img src="/images/middle/pacer.gif" width="8" height="38"></td>
<td background="/images/middle/m-bg.gif" align="right" valign="middle" width="16"><a href=# onClick="help()"><img src="/images/middle/help.gif" width="16" height="16" border=0 alt="栏目帮助"></a></td>
<td width="6" align="right"><img src="/images/middle/M-r.gif" width="16" height="38"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bg-left" width="6"><img src="/images/left/l-l.gif" border=0><br>
</td>
<td class="newsborder" width="100%" >
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="200" valign="top" align="center">
<p align="center"><br>
<table width="97%" border="0" cellspacing="1" cellpadding="5" bgcolor="#666633">
<tr>
<td bgcolor="#B9D29D">论坛设置</td>
</tr>
<tr>
<td bgcolor="#E1EFD0" valign="top" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name=dataform method=post action='<%=Request.ServerVariables("PATH_INFO")%>?action=add&id=<%=id%>' enctype='multipart/form-data'>
<tr>
<td width="100"><b>论坛名称:</b></td>
<td>
<input name=name type=text style='HEIGHT: 22px; WIDTH: 150px' class='edline' maxlength="40" size="20" value="<%=rs("name")%>">
</td>
</tr>
<tr>
<td width="100" valign="top"><br>
<b>论坛主题:</b><br>
<br>
<li>字数限制100字</li>
</td>
<td height="100" valign="top">
<br>
<textarea name="title" class="edline" cols="50" rows="10"><%=rs("title")%></textarea>
</td>
</tr>
<tr>
<td width="100" valign="top"><b><br>
论坛Logo:</b></td>
<td height="100" valign="top">
<br><% '显示所有已经有的论坛logo 图片
if not (logoRs.eof and logoRs.bof) then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5"><%
num=logoRs.recordcount\3
if (logoRs.recordcount mod 3)<>0 then
num=num+1
end if
logoRs.movefirst
h=1
for i=1 to num
response.write "<tr>"
%>
<td width="33%"><% if not(logors.eof ) then %><img src="../../bbs/images/bbslogo/<%=logors("name")%>" width="60" align="left"><input type="radio" name="logo" value="<%=logoRs("id")%>" id="id<%=logoRs("id")%>" <% if rs("logo")=logoRs("id") or ((rs("logo")="" or isnull(rs("logo"))) and h=1 ) then response.write "checked" %>><label for='id<%=logoRs("id")%>'></label>图片<%=h%><% if h>6 then%><br> 删除 <a href="attach_del.asp?logoid=<%=logors("id")%>&id=<%=id%>"><img src="/images/delete.gif" width="15" height="15" border="0"></a> <% end if %>
<%
logoRs.movenext
h=h+1
else
response.write " "
end if %></td>
<td width="33%"><% if not(logors.eof ) then %><img src="../../bbs/images/bbslogo/<%=logors("name")%>" width="60" align="left"><input type="radio" name="logo" value="<%=logoRs("id")%>" id="id<%=logoRs("id")%>" <% if rs("logo")=logoRs("id") then response.write "checked" %>><label for='id<%=logoRs("id")%>'></label>图片<%=h%><% if h>6 then%><br> 删除 <a href="attach_del.asp?logoid=<%=logors("id")%>&id=<%=id%>"><img src="/images/delete.gif" width="15" height="15" border="0"></a> <% end if %>
<%
logoRs.movenext
h=h+1
else
response.write " "
end if %></td>
<td width="33%"><% if not(logors.eof ) then %><img src="../../bbs/images/bbslogo/<%=logors("name")%>" width="60" align="left"><input type="radio" name="logo" value="<%=logoRs("id")%>" id="id<%=logoRs("id")%>" <% if rs("logo")=logoRs("id") then response.write "checked" %>><label for='id<%=logoRs("id")%>'></label>图片<%=h%><% if h>6 then%><br> 删除 <a href="attach_del.asp?logoid=<%=logors("id")%>&id=<%=id%>"><img src="/images/delete.gif" width="15" height="15" border="0"></a> <% end if %>
<%
logoRs.movenext
h=h+1
else
response.write " "
end if %></td>
<%
response.write "</tr>"
next %>
</table><%
else
response.write "目前还没有 BBS logo 图片"
end if %>
</td>
</tr>
<tr>
<td width="100"><br>
<b>上传Logo:</b></td>
<td><br>
<input type='file' name='picurl' style='height:22px;width:240px' class='edline'> <%rs.cancelupdate%>
</td>
</tr>
</form>
</table>
<br>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td><img border=0 src="/images/left/s-l.gif"></td>
<td background="/images/left/s-bg.gif" class=button noWrap> <a href="javascript:if (checkform2()==false);">提
交</a> </td>
<td><img border=0
src="/images/left/s-r.gif"></td>
<td width="20"></td>
<td><img border=0
src="/images/left/s-l.gif"></td>
<td background="/images/left/s-bg.gif"
class=button noWrap> <a href="index.asp">返 回</a> </td>
<td><img border=0
src="/images/left/s-r.gif"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="bg_right" width="6"><img src="/images/left/l-r.gif" border=0></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top" class="xxtz_bg">
<td width="6"><img src="/images/middle/m_left.gif" width="13" height="8"></td>
<td width="100%" align="right"></td>
<td align="right" width="6"><img src="/images/middle/m_right.gif" width="12" height="8"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="13"> </td>
</tr>
<tr>
<td><!--#include file="../../include/dot.inc"--></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<SCRIPT language=javascript>
<!--
function checkform()
{
var Checkblank = /^(\s*|(\ )|(\.))*$/;
if (Checkblank.test(form.username.value))
{
alert("用户名不能为空!");
return false;
}
if (Checkblank.test(form.userpass.value))
{
alert("密码不能为空!");
return false;
}
window.form.submit();
}
function checkform2()
{
var Checkblank = /^(\s*|(\ )|(\.))*$/;
if (Checkblank.test(dataform.name.value))
{
alert("论坛名称不能为空!");
return false;
}
if(dataform.picurl.value!="")
{
for(var i=0;i<dataform.logo.length;i++)
{
dataform.logo[i].checked=false;
}
}
if(dataform.title.value.length>100)
{
alert("论坛主题不能超过100字!");
return false;
}
if(dataform.picurl.value=="")
{
var checkLogo=false;
for(var i=0;i<dataform.logo.length;i++)
{
if (dataform.logo[i].checked==true)
checkLogo=true;
}
if (!(checkLogo))
{
alert("请选择一个LOGO 图片,或是上传一个LOGO 图片!");
return false;
}
}
window.dataform.submit();
}
//-->
</SCRIPT>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?