item_edit.asp

来自「是一个关于小学信息化教育的平台,提供了学校论坛,和聊天室功能!」· ASP 代码 · 共 571 行 · 第 1/3 页

ASP
571
字号
                                                </p>
                                                </td>
                                              <td><% if myNumber<>"" then
                                              		if len(myNumber)=2 then
	  Response.Write "<script language=javascript>"
   	  Response.Write "alert('根栏目不需要编辑,请重新选择');"
    	  Response.Write "history.go(-1);"
    	  Response.Write "</script>"
	  Response.End                                              			
                                              		end if
                                              %>
                                              
                                                <form name=aa method=post action="item_edit.asp?number=<%=mynumber%>">
                                                  <table align="center">
                                                    <tr valign=top> 
                                                      <td align=center> 
                                                        <table border="0" cellpadding="0" cellspacing="0">
                                                          <tr> 
                                                            <td> 
                                                              <table border=0 cellpadding=0 cellspacing=0 >
                                                                <tbody> 
                                                                <tr> 
                                                                  <td ><img border=0 
                src="/images/tab_left.gif"></td>
                                                                  <td align=middle 
                background="/images/tab_bg.gif" class=tabhead 
                noWrap > <b>栏目信息设置</b><input type=hidden name="act" value="update"> </td>
                                                                  <td ><img border=0 
                src="/images/tab_right.gif"></td>
                                                                  <td>&nbsp;&nbsp;&nbsp;&nbsp;<b><%=itemRs("name")%></b></td>
                                                                </tr>
                                                                </tbody> 
                                                              </table>
                                                              
                                                            </td>
                                                          </tr>
                                                          <tr> 
                                                            <td bgcolor="#999999" valign="center"> 
                                                              <table width="100%" border="0" cellpadding="0" cellspacing="1" height="95%">
                                                                <tr> 
                                                                  <td> 
                                                                    <table border=0 cellpadding=0 cellspacing=0 align="center">
                                                                      <tr>
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>栏目类型:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">
                                                                          <input type="radio" name="show_type" value="char" id="char" <% if itemRs("show_type")="char" then response.write "checked" %>>
                                                                          文字</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">
                                                                          <input type="radio" name="show_type" value="image" id="image" <% if itemRs("show_type")="image" then response.write "checked" %>>
                                                                          图片(横排)</td>
                                                                      </tr>
                                                                       <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">
                                                                          <input type="radio" name="show_type" value="image2" id="image2" <% if itemRs("show_type")="image2" then response.write "checked" %>>
                                                                          图片(竖排)</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">
                                                                          <input type="radio" name="show_type" value="image3" id="image3" <% if itemRs("show_type")="image3" then response.write "checked" %>>
                                                                          编辑图片</td>
                                                                      </tr>
                                                                      <tr>                                                                       
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">
                                                                          <input type="radio" name="show_type" value="link" id="link" <% if itemRs("show_type")="link" then response.write "checked" %>>
                                                                          编辑链接</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>栏目样式:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="radio" name="table_style" value="A" <% if itemRs("table_style")="A" then response.write "checked" %>>
                                                                          <img src="/images/border/Zxxw.gif" width="84" height="19"> 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="radio" name="table_style" value="B" <% if itemRs("table_style")="B" then response.write "checked" %>>
                                                                          <img src="/images/border/xxtz.gif" width="84" height="19"> 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="radio" name="table_style" value="C" <% if itemRs("table_style")="C" then response.write "checked" %>>
                                                                          <img src="/images/border/zxzc.gif" width="84" height="19"> 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>栏目帮助:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="help_yn" value="no" <%if itemRs("help")="no" then response.write "checked" %> onclick="javascript:checkClick(this,'help');">
                                                                          不使用</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <%if itemRs("help")="no" then  %>
                                                                          <textarea name="help" rows="8" disabled style="background='#cccccc';"></textarea>
                                                                          <% else %>
                                                                          <textarea name="help" rows="8" ><%=itemRs("help")%></textarea>
                                                                          <% end if %>
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>显示new:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="new_yn" value="no" <% if itemRs("support_new")="no" then response.write "checked"%> >
                                                                          不使用</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>标题文字限制:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="limitLen_yn" value="no" <% if itemRs("limit_Len")=0 then response.write "checked"%> onclick="javascript:checkClick(this,'limitLen');">
                                                                          不使用 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          限制字数 
                                                                          <% if itemRs("limit_Len")=0 then%>
                                                                          <input type="text" name="limitLen" maxlength="3" size="6" disabled style="background='#cccccc';">
                                                                          <% else %>
                                                                          <input type="text" name="limitLen" maxlength="3" size="6" value="<%=itemRs("limit_Len")%>">
                                                                          <% end if %>
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>支持更多:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="more_yn" value="no" <% if itemRs("support_more")="no" then response.write "checked"%>>
                                                                          不使用 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>标题条目限制:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="titleNum_yn" value="no" <% if itemRs("title_num")=0 then response.write "checked"%> onclick="javascript:checkClick(this,'titleNum');">
                                                                          不使用 
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8">限制条目 
                                                                          <% if itemRs("title_num")=0 then %>
                                                                          <input type="text" name="titleNum" maxlength="4" size="6" disabled style="background='#cccccc';">
                                                                          <% else %>
                                                                          <input type="text" name="titleNum" maxlength="4" size="6" value=<%=itemRs("title_num")%>>
                                                                          <% end if %>
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;&nbsp;<b>标题样式:</b></td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="checkbox" name="style_yn" value="no" <% if itemRs("style")=1 and itemRs("title_color")="black" then response.write "checked"%> onclick="javascript:checkClick2(this,'title_style','title_color');">
                                                                          使用默认</td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <select name="title_color" <% if itemRS("style")=1 and itemRs("title_color")="black" then response.write "disabled style='background=#cccccc;'"%> >
                                                                            <option value="black" <% if itemrs("title_color")="black" then response.write "selected" %>>黑色</option>
                                                                            <option value="green" <% if itemrs("title_color")="green" then response.write "selected" %>>绿色</option>
                                                                            <option value="blue" <% if itemrs("title_color")="blue" then response.write "selected" %>>兰色</option>
                                                                            <option value="red" <% if itemrs("title_color")="red" then response.write "selected" %>>红色</option>
                                                                            <option value="yellow" <% if itemrs("title_color")="yellow" then response.write "selected" %>>黄色</option>
                                                                            <option value="purple" <% if itemrs("title_color")="purple" then response.write "selected" %>>紫色</option>
                                                                          </select>
                                                                        </td>
                                                                      </tr>
                                                                      <tr> 
                                                                        <%
                                                                      selectsql="select * from title_style order by id"
                                                                      set styleRs=open_rs(conn,selectsql)
                                                                      
                                                                      if not (styleRs.bof and styleRs.eof) then
                                                                      	for i=1 to styleRs.recordcount
                                                                      %>
                                                                        <td class=ttTable noWrap height="25" width="120" bgcolor="#f0f0e8">&nbsp;</td>
                                                                        <td class=td height="25" width="220" bgcolor="#f0f0e8"> 
                                                                          <input type="radio" name="title_style" value="<%=styleRs("id")%>" id="id<%=i%>" <% if (itemRs("style")=0 and i=1) or (itemRs("style")=styleRs("id")) then response.write "checked"
                                                                 if itemRS("style")=1 and itemRS("title_color")="black" then response.write " disabled"%>  >
                                                                          样式:<%=styleRs("htmlCode")%>XXXXXXXXXXX 
                                                                        </td>
                                                                      </tr>

⌨️ 快捷键说明

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