📄 edit.asp
字号:
<%@ codepage ="936" %>
<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%sUploadDir=UpFilesPath("Article")
If Not FRAdminLevel(307) Then
Call ErrorMsg()
End If
if request("newsid")="" then
Response.Redirect ("../admin/admin_login.asp")
end if
if request("newsid") then
newsid=request("newsid")
else
Response.Redirect ("../admin/admin_login.asp")
end if
wid=request.QueryString("wid")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加HR信息</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<style type="text/css">
<!--
.style11 {color: #0066CC;
font-weight: bold;
}
-->
</style>
</head>
<script LANGUAGE="JavaScript">
function check()
{
if (document.form.title.value=="")
{
alert("请输入资讯标题!")
document.form.title.focus()
document.form.title.select()
return
}
if (document.form.typeid.value=="")
{
alert("请选择资讯所属类别!")
document.form.typeid.focus()
document.form.typeid.select()
return
}
if (document.form.nfrom.value=="")
{
alert("请输入资讯添加人!")
document.form.nfrom.focus()
document.form.nfrom.select()
return
}
document.form.submit()
}
function opw(url,name, width, height) { //v2.0
window.open(url,name,''+'width='+width+',height='+height+',scrollbars=yes'+'');
}
</script><table width="98%" border="0" cellspacing="1" cellpadding="2" align=center class="tableBorder">
<tr>
<th height=25 class="tableHeaderText"><%call ChannelNametitle()%>
管理</th>
</tr>
<tr>
<td height=25><font color="ff6600"><b class="style11"> 管理选项</b></font>: <a href="addinfo.asp?wid=<%=wid%>">添加
<%call ChannelNametitle()%>
</a> | <a href="index.asp?wid=<%=wid%>">管理
<%call ChannelNametitle()%>
</a> | <a href="Class_Ok.asp?action=add_class_1&wid=<%=wid%>">添加信息类别</a> | <a href="type.asp?wid=<%=wid%>">管理信息类别</a> | <a href="Admin_AddTemp.asp?wid=<%=wid%>">添加模板</a> | <a href="Admin_Template.asp?wid=<%=wid%>">模板管理</a> | [<a href="javascript:location.reload()">刷新页面</a>] </td>
</tr>
<tr>
<td height=25><b class="style11"> 二级栏目</b>:<span class="forumRowHighlight">
<% set rs6=conn.execute("select typeid,type from job_hrnewstype where type_fid="&wid&"")
do while not rs6.eof %>
<a href="index.asp?typeid=<%=rs6("typeid")%>&wid=<%=wid%>"><%=rs6("type")%></a> |
<%rs6.movenext
loop
rs6.close
set rs6=nothing
%>
</span></td>
</tr>
<tr>
<FORM name=searchForm action="index.asp?wid=<%=wid%>" method=post onSubmit="javascript:if(doSearch()==false) return false;">
<td height=25> 关键字:
<input name="keywords2" type="text" value="<%=keywords%>">
所属类别:
<select name="select" size="1">
<%
set rs1=conn.execute("select * from job_hrnewsType where type_fid="&wid&"")
do while not rs1.eof
response.write "<option value='"&rs1("typeid")&"'>"&rs1("type")&" 类信息</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select>
<input name=submit2 type="submit" class="inputs" id=submit2 value="立刻查找"></td>
</form>
</tr>
<tr>
<td height=25><B> 注意</B>:<BR>
<B> </B>①类别直接与发布的信息相关联,删除类别可能会影响到以前发布的专项商机信息。<BR>
<font color="red"><b> ②如果选择了 首页推荐(图片) 和 首页头条 就一定要上传一张标题图片。</b></font></td>
</tr>
</table>
<%
sql="select * from job_hrnews where newsid="&newsid
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
set rs1=conn.execute("select * from job_hrnewstype where typeid="&rs("typeid")&"")
%>
<TABLE width="100%" border="0" align=center cellpadding="0" cellspacing="1" class="tableBorder"><form name="form" method="POST" action="saveedit.asp?wid=<%=wid%>">
<input type="hidden" name="newsid" value="<%=rs("newsid")%>">
<tr>
<th height=25 colspan="2" class="tableHeaderText">添加HR信息</th>
</tr>
<TR>
<TD width="210" align="right"><b>信息标题:</b></TD>
<TD width="729"> <font color="#F4FAFF">
<select name='IncludePic'>
<option selected> </option>
<option value='[图文]'>[图文]</option>
<option value='[组图]'>[组图]</option>
<option value='[推荐]'>[推荐]</option>
<option value='[注意]'>[注意]</option>
</select>
<input name="title" type="text" class="smallInput" value="<%=rs("title")%>" size="55">
</font> <font color='#FF0000'>*</font>
<select name='TitleFontColor' id='TitleFontColor'>
<option value='' selected>颜色</option>
<option value=''>默认</option>
<option value='#000000' style='background-color:#000000'></option>
<option value='#FFFFFF' style='background-color:#FFFFFF'></option>
<option value='#008000' style='background-color:#008000'></option>
<option value='#800000' style='background-color:#800000'></option>
<option value='#808000' style='background-color:#808000'></option>
<option value='#000080' style='background-color:#000080'></option>
<option value='#800080' style='background-color:#800080'></option>
<option value='#808080' style='background-color:#808080'></option>
<option value='#FFFF00' style='background-color:#FFFF00'></option>
<option value='#00FF00' style='background-color:#00FF00'></option>
<option value='#00FFFF' style='background-color:#00FFFF'></option>
<option value='#FF00FF' style='background-color:#FF00FF'></option>
<option value='#FF0000' style='background-color:#FF0000'></option>
<option value='#0000FF' style='background-color:#0000FF'></option>
<option value='#008080' style='background-color:#008080'></option>
</select></TD>
</TR>
<TR>
<TD align="right" valign="middle"><b>信息分类:</b></td>
<TD> <font color="#F4FAFF">
<select name="typeid" size="1" class="lh17">
<%if not rs1.eof then%>
<option selected value="<%=rs1("typeid")%>"><%=rs1("type")%> 类信息</option>
<%end if%>
<%
set rs1=conn.execute("select * from job_hrnewsType where type_fid="&wid)
do while not rs1.eof
response.write "<option value='"&rs1("typeid")&"'>"&rs1("type")&" 类信息</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select> <a href="Class_Ok.asp?action=add_class_1"><font color='#FF0000'>添加</font></a></font>
<input name="pic_on" type="checkbox" class="checkbox" id="pic_on" onClick=showadv() value="1">
<font color="red"><span id="advance">上传标题图片</span> </font></TD>
</TR>
<TR>
<TD align="right"><b>信息属性: </b></TD>
<TD><input name="tjnews" type="checkbox" class="checkbox" id="tjnews" value="1" <%if rs("tjnews")=1 then response.write"CHECKED"%>>
小类推荐
<input name="tjhome" type="checkbox" class="checkbox" id="tjhome" value="1" <%if rs("tjhome")=1 then response.write"CHECKED"%>>
首页推荐
<input name="homepic" type="checkbox" class="checkbox" id="homepic" onClick=showadv1() value="1" <%if rs("homepic")=1 then response.write"CHECKED"%>>
首页推荐<font color="blue">(图片)</font>
<input name="homehot" type="checkbox" class="checkbox" id="homehot" onClick=showadv2() value="1" <%if rs("homehot")=1 then response.write"CHECKED"%>>
频道头条<font color="blue">(必需图片)</font> </TD>
</TR>
<TR id=adv style="DISPLAY: none">
<td align="right"><b>标题图片:</b></td>
<TD>
<input name="picture" type="text" id="picture" value="<%if rs("picture")<>"nopicture.gif" then response.write""&rs("picture")&""%>"><input name="upfile" type="button" class="inputs" onClick="javascript:opw('../inc/job_up.asp?fromForm=form&fromEdit=picture&saveTo=<%=sUploadDir%>&showPath=<%=sUploadDir%>','adpic',420,165)" value="浏览文件"></TD>
</TR>
<TR>
<TD align="right"><b>信息作者:</b></td>
<TD valign="middle"><input type="text" name="author" class="smallInput" value="<%=rs("author")%>" size="15">
<font color='blue'><=【<font color='green' onclick="document.form.author.value='未知'" style="cursor:pointer;">未知</font>】</font></TD>
</TR>
<TR>
<TD align="right"><b>信息来源:</b></td>
<TD valign="middle">
<input name="nfrom" type="text" class="smallInput" value="<%=rs("nfrom")%>" size="50">
<font color='blue'><=【<font color='green' onclick="document.form.nfrom.value='<%=Sitename%>信息中心'" style="cursor:pointer;"><%=Sitename%>信息中心</font>】</font> </TD>
</TR>
<TR>
<TD align="right"><b>详细信息:</b></TD>
<TD><textarea name="content" style="display:none"><%=rs("content")%></textarea><iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=content&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe></TD>
</TR>
<TR>
<TD align="right"><b>责任编辑:</b></TD>
<TD><input type="text" name="editor" class="smallInput" value="<%=rs("editor")%>" size="20">
<font color='blue'><=【<font color='green' onclick="document.form.editor.value='<%=Request.Cookies("admin_name")%>'" style="cursor:pointer;"><%=Request.Cookies("admin_name")%></font>】</font> </TD>
</TR>
<TR height="40">
<TD colspan="2" align="center" height="40">
<input type="button" name="Submit" value=" 提 交 保 存" class="inputs" onClick="check()">
<input type="reset" name="Submit2" value=" 重 新 添 写" class="inputs">
</TR>
</FORM>
</TABLE>
<script>
function showadv(){
if (document.form.pic_on.checked == true) {
adv.style.display = "";
advance.innerText="取消上传标题图片"
}else{
adv.style.display = "none";
advance.innerText="上传标题图片"
}
}
</script><script>
function showadv1(){
if (document.form.homepic.checked == true) {
adv.style.display = "";
}else{
adv.style.display = "none";
}
}
</script><script>
function showadv2(){
if (document.form.homehot.checked == true) {
adv.style.display = "";
}else{
adv.style.display = "none";
}
}
</script><%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="../inc/copy.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -