📄 editad.asp
字号:
</tr>
<tr>
<td width="36%" align="right" height="26">字体颜色:</td>
<td width="64%" height="26"><input name="dcolor" size="15" maxlength="50" value="<%=rs("color")%>">
</td>
</tr>
<tr>
<td width="36%" align="right" height="26">边框颜色:</td>
<td width="64%" height="26"><input name="dbgcolor1" size="15" maxlength="50" value="<%=rs("bgcolor1")%>">
</td>
</tr>
<tr>
<td width="36%" align="right" height="26">广告类别:</td>
<td width="64%" height="26">
<select name="dlei" size="1"><option selected value="<%=rs("type")%>"><%=rs("type")%></option>
<%
set rs_lei = server.createobject("adodb.recordset")
sql = "select * from 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
%>
</select>
</td>
</tr>
<tr>
<td width="36%" align="right" height="26">广告形式:</td> <td width="64%" height="26">
<input onclick=wfndisplay() type="radio" value="no" name="dispic" <% If rs("ispic")="no" Then %>checked<% End If %>>文字广告 <input onclick=wfbdisplay() type="radio" value="yes" name="dispic" <% If rs("ispic")="yes" Then %>checked<% End If %>>图片广告</td> </tr>
<tr id="wf" style="DISPLAY: <% If rs("ispic")="yes" Then%>block<% End If %>none">
<td width="36%" align="right" height="26">图片名称:</td> <td width="64%" height="26"><input name="dpic" size="15" maxlength="50" value="<%=rs("pic")%>"> <font color="#FF0000">上传至upload目录 170*119</font>
[<a href="JavaScript:openem()">上传图片</a>]
</td>
</tr>
<tr id="wf1" style="DISPLAY: <% If rs("ispic")="yes" Then%>block<% End If %>none">
<td width="36%" align="right" height="26">指向网址:</td>
<td width="64%" height="26"><input name="durl" size="30" maxlength="255" value="<%=rs("url")%>">
</td>
</tr>
<tr>
<td width="36%" align="right" height="26" rowspan="2">广告内容:</td>
<td width="64%"><textarea rows="6" name="dtext" cols="30" onKeyDown="checkMaxInput(this.form)" onKeyUp="checkMaxInput(this.form)"><% if rs("text")<>"" then %><%=replace(rs("text"),"<br>",vbcrlf)%><% end if %></textarea> <font color="#FF0000">* 80字以内</font>
</td>
</tr>
<tr>
<td width="64%" height="26"><font color="#FF0000">目前还可写 <input readonly type=text name=remLen size=2 maxlength=2 style="border: 1 solid #888888">
个字!</font>
</td>
</tr>
<tr>
<td width="36%" align="right" height="26">升效日期:</td>
<td width="64%" height="26"><input name="time" size="15" maxlength="50" value="<%=rs("time")%>"> <font color="#FF0000">(格式如:2004-10-1)</font></td>
</tr>
<tr>
<td width="36%" align="right" height="26">有效期至:</td>
<td width="64%" height="26"><input name="dstop" size="15" maxlength="50" value="<%=rs("stop")%>">
<font color="#FF0000">(格式如:2004-10-1)</font></td>
</tr>
<tr>
<td width="36%" align="right" height="26">是否固顶:</td>
<td width="64%" height="26"><input type="radio" value="0" name="dtop" <% if rs("top")="0" then %>checked<% end if %>>否
<input type="radio" value="1" name="dtop" <% if rs("top")="1" then %>checked<% end if %>>是</td>
</tr>
<tr>
<td width="36%" align="right" height="26">是否首页显示:</td>
<td width="64%" height="26"><input type="radio" value="0" name="shouye" <% if rs("shouye")="0" then %>checked<% end if %>>否
<input type="radio" value="1" name="shouye" <% if rs("shouye")="1" then %>checked<% end if %>>是</td>
</tr>
<tr>
<td width="36%" align="right" height="26">广告费用:</td>
<td width="64%" height="26"><input name="dmoney" size="15" maxlength="50" value="<%=rs("money")%>">
元
</td>
</tr>
<tr>
<td width="36%" align="right" height="26">是否发布:</td>
<td width="64%" height="26"><input name="mark" type="radio" value="no" <% If rs("mark")="no" Then %>checked<% End If %>>
尚未发布
<input type="radio" name="mark" value="yes" <% If rs("mark")="yes" Then %>checked<% End If %>>
已经发布</td>
</tr>
<tr>
<td width="36%" align="right" height="30">
</td>
<td width="64%" align="right" height="30">
<p align="left"><input type="submit" value="修改" name="submit">
<input type="reset" value="取消" name="reset"> <input type="button" value="返回" name="back" onclick="javascript:history.back()"></td>
</tr>
</table>
</form>
</div>
<br>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<script language="Javascript">
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,frameborder=0,status=yes' );
}
function openem()
{
openScript('upload.asp',350,200);
}
</script>
<SCRIPT language=javascript>
<!--
function wfndisplay()
{
wf.style.display="none";
wf1.style.display="none";
}
function wfbdisplay()
{
wf.style.display="block";
wf1.style.display="block";
}
//-->
</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -