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

📄 addad_news.asp

📁 一个综合类整站
💻 ASP
📖 第 1 页 / 共 2 页
字号:
    <td bgcolor="#FFFFFF"> <br>
        <div align="center">
          <form action="" method="post" name="postart" onSubmit="return checkadd()">
            
          <table width="98%" height="420" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6DFF7">
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">新闻标题:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF"> 
                <input type="text" name="dtitle" size="40" maxlength="40">
                <font color="#FF0000">*</font></td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">是否加粗:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF">
                <input type="radio" value="no" name="dcu">
                否&nbsp; 
                <input type="radio" value="yes" name="dcu" checked>
                是</td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td align="right" bgcolor="#FFFFFF">标题颜色:</td>
              <td height="26" bgcolor="#FFFFFF">
                <input name="dcolor" type="text" id="dcolor" size="8" onChange="changeColor(this);" />
                <input type="button" name="Submit" value="选择颜色" onClick="window.open('../colorpicker.html', 'colorPicker', 'width=200, height=160');" />
              </td>
              <td rowspan="2" align="center" bgcolor="#FFFFFF">
                <table width="180" height="24" border="0" cellpadding="0" cellspacing="1" bgcolor="#cae2f8">
                  <tr> 
                    <td align="center" <%if rs("bgcolor1")<>"" then%>bgcolor="<%=rs("bgcolor1")%>"<%else%>bgColor="#EFF7FE"<%end if%>>
                      <div id="colorBox1" style="width: 180px;height: 24px"> 
                        <table width="166" border="0" cellspacing="0" cellpadding="0" height="5">
                          <tr> 
                            <td></td>
                          </tr>
                        </table>
                        <div id="colorBox"><font style="font-size:14px"><b>标题和背景颜色演示</b></font></div>
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td align="right" bgcolor="#FFFFFF">标题背景:</td>
              <td height="26" bgcolor="#FFFFFF">
                <input name="dbgcolor1" type="text" id="dbgcolor1" size="8" onChange="changeColor1(this);" />
                <input type="button" name="Submit" value="选择颜色" onClick="window.open('../colorpicker1.html', 'colorPicker', 'width=200, height=160');" />
              </td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">选择城市:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF">
                     <%
set rs=conn.execute("select * from china_city where id>0 and twoid>0 and threeid=0")
%>
      <script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
		dim count:count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%=rs("city")%>","<%=rs("id")%>","<%=rs("twoid")%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
		set rs=nothing
        %>
onecount=<%=count%>;
</script>
<%
set rs=conn.execute("select * from china_city where id>0 and twoid>0 and threeid>0")
%>
 <script language = "JavaScript">
var onecount4;
onecount4=0;
subcat4 = new Array();
        <%
		dim count4:count4 = 0
        do while not rs.eof 
        %>
subcat4[<%=count4%>] = new Array("<%=rs("city")%>","<%=rs("id")%>","<%=rs("twoid")%>","<%=rs("threeid")%>");
        <%
        count4 = count4 + 1
        rs.movenext
        loop
        rs.close
		set rs = nothing
        %>
onecount4=<%=count4%>;

function changelocation(locationid)
    {
    document.postart.city_two.length = 0; 
	document.postart.city_two.options[0] = new Option('选择城市','');
	document.postart.city_three.length = 0; 
	document.postart.city_three.options[0] = new Option('选择城市','');
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.postart.city_two.options[document.postart.city_two.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
	
	function changelocation4(locationid,locationid1)
    {
    document.postart.city_three.length = 0; 
    document.postart.city_three.options[0] = new Option('选择城市','');
    var locationid=locationid;
	 var locationid1=locationid1;
    var i;
    for (i=0;i < onecount4; i++)
        {
            if (subcat4[i][2] == locationid)
            { 
			if (subcat4[i][1] == locationid1)
			{
                document.postart.city_three.options[document.postart.city_three.length] = new Option(subcat4[i][0], subcat4[i][3]);
            }        
        }
       } 
    }            
              </script>
      <select name="city_one" size="1" id="select2" onChange="changelocation(document.postart.city_one.options[document.postart.city_one.selectedIndex].value)">
        <option value="" selected>选择城市</option>
        <%set rs=conn.execute("select * from china_city where id>0 and twoid=0")
if rs.eof or rs.bof then
response.write "<option value=''>没有分类</option>"
else
do until rs.eof
response.write "<option value='"&rs("id")&"'>"&rs("city")&"</option>"
    rs.movenext
    loop
end if
rs.close
set rs = nothing
%>
      </select>
      <select name="city_two" id="city_two" onChange="changelocation4(document.postart.city_two.options[document.postart.city_two.selectedIndex].value,document.postart.city_one.options[document.postart.city_one.selectedIndex].value)">
    <option value="" selected>选择城市</option>
	</select>
	     <select name="city_three" id="city_three">
        <option value="" selected>选择城市</option>
    </select>
                <font color="#FF0000">*</font> </td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">新闻类别:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF"> 
                <select name="dlei" size="1">
                  <option selected value="选择信息类别">选择信息类别</option>
                  <%set rs_lei = server.createobject("adodb.recordset")                                                                                                                                                                                                     
			sql = "select * from news_type"                                                                                                                                                                                                     
			rs_lei.open sql,conn,1,1                                                                                                                                                                                                     
			do while not rs_lei.eof%>
                  <option value="<%=rs_lei("name")%>"><%=rs_lei("name")%></option>
                  <%rs_lei.movenext                                                                                                                                                                                                     
		  loop                                                                                                    
		  rs_lei.close                                                                                                                                                                                                     
		  set rs_lei = nothing                           
		  conn.close                          
		  set conn=nothing%>
                </select>
              </td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">图片路径:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF"> 
                <input type="text" name="dpic" size="30" value="">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=0" frameborder=0 scrolling=no width="320" height="25"></iframe></td>
            </tr>
            <tr> 
              <td width="27%" align="right" valign="top" bgcolor="#FFFFFF">新闻内容: 
              </td>
              <td colspan="2" bgcolor="#FFFFFF"> 
                <textarea rows="14" name="dtext" cols="60" onKeyDown="checkMaxInput(this.form)" onKeyUp="checkMaxInput(this.form)"></textarea>
                <font color="#FF0000">*&nbsp;</font> <font color="#FF0000"><br>
                目前还可写 
                <input readonly type=text name=remLen size=5 maxlength=4 value="20000" style="border: 1 solid #888888">
                个字!</font></td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">有效期至:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF">
                <select size="1" name="dstop">
                  <option value="选择有效期">选择有效期</option>
                  <option value="7">一星期</option>
                  <option value="15">半个月</option>
                  <option value="31">一个月</option>
                  <option value="61">两个月</option>
                  <option value="92">三个月</option>
                  <option value="183">半年</option>
                  <option value="365">一年</option>
                  <option value="3650" selected>长期</option>
                </select>
              </td>
            </tr>
            <tr> 
              <td width="27%" height="26" align="right" bgcolor="#FFFFFF">是否固顶:</td>
              <td height="26" colspan="2" bgcolor="#FFFFFF">
                <input type="radio" value="0" name="dtop" checked>
                否&nbsp; 
                <input type="radio" value="1" name="dtop">
                是</td>
            
            <tr> 
              <td width="27%" height="30" align="right" bgcolor="#FFFFFF"> </td>
              <td height="30" colspan="2" align="right" bgcolor="#FFFFFF"> 
                <p align="left"> 
                  <input type="submit" value="提交" name="submit">
                  &nbsp; 
                  <input type="reset" value="取消" name="reset">
                  &nbsp; 
                  <input type="button" value="返回" name="back" onClick="javascript:history.back()">
              </td>
            </tr>
          </table>
          </form>
        </div>
        <br>
    </td>
  </tr>
</table>                                                                                     
</body>                                                                                                                      
                                                                                                                      
</html>                                                                                                                      

⌨️ 快捷键说明

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