📄 edit.asp
字号:
<%@ codepage ="936" %>
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"24")=0 then
response.redirect "../err.asp"
response.end
end if
%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
if Chkrequest(request("id")) then
id=request("id")
else
response.Redirect("/login/chklogin.asp?login=4")
response.end
end if
sql="select * from mod where id="&id&""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.Redirect("index.asp")
response.end
else
%>
<HEAD><TITLE>网站模版管理</TITLE>
<META content=zh-cn http-equiv=Content-Language>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK href="../css/style.css" rel=stylesheet type=text/css>
</HEAD>
<BODY>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr>
<th width="100%" height=25 class="tableHeaderText">企业自助建站模版管理</th>
</tr>
<tr>
<td class="forumRowHighlight">
<p><B>注意</B>:<BR><font color=red>①删除模版时要注意,如果删除了企业已经选定的模版,企业的自助建站可能会无法运行!</font><BR>
<font color=blue>②添加模版后,要相应的在/company/目录下面建立对应的模版目录,设计好一个模版后通过FTP上传到网站的/company/目录下面即可。</font><br></td>
</tr>
</table>
<br>
<Script Language="javaScript">
function validate()
{
if (document.form.type1.value=="")
{
alert("模板名称不能为空");
document.form.type1.focus();
return false ;
}
if (document.form.content.value=="")
{
alert("说明不能为空");
document.form.content.focus();
return false ;
}
if (document.form.typename.value=="")
{
alert("所在文件夹不能为空");
document.form.typename.focus();
return false ;
}
document.form.submit()
}
</Script>
<form name="form" method="POST" action="edit_save.asp" enctype="multipart/form-data" >
<input type="hidden" name="id" value="<%=id%>">
<TABLE width="100%" height="175" border=0 align="center" cellpadding=3 cellspacing=1 class="tableBorder" style="border-collapse: collapse">
<TR>
<TH class=tableHeaderText colSpan=2 height=25>修改自助建站模版</strong></TH>
<TR>
<TD width=167 class="forumRow" align="right"><b>模板名称:</b></TD>
<TD height=32 width="785"class="forumRow">
<INPUT name="type1" style="border-style: solid; border-width: 1" value="<%=rs("type1")%>" size=65>
</TD>
</TR>
<TR>
<TD height=82 width=167 class="forumRowHighlight" align="right"><b>模板说明:</b></TD>
<TD height=82 width="785" class="forumRowHighlight">
<TEXTAREA cols=63 name="content" rows=6 class="txt" style="border-style:solid; border-width:1; overflow:auto"><%=rs("alt")%></TEXTAREA>
</TD>
</TR>
<tr>
<TD height=19 width=167 class="forumRow" align="right"><b>所在目录:</b></TD>
<td height="19" width="785" class="forumRow">
<input name="typename" type="text" style="border-style: solid; border-width: 1" value="<%=rs("typename")%>" size=65>
<font color="#CC3300">
(文件夹必须是英文)</font></td>
</tr>
<tr>
<TD height=11 width=167 class="forumRowHighlight" align="right"><b>模板缩图:</b></TD>
<td height="11" width="785" class="forumRowHighlight"> <INPUT type="file" name="file" style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=54 size=54 title=上传产品图片资料不能大于200K。>
<input type="hidden" name="img" value="<%=rs("src")%>"><br>
使用原有图片<input type="radio" name="cimg" value="1" checked>
| 删除原有图片重新上传
<input type="radio" name="cimg" value="2"></td>
</tr>
<tr>
<td height="30" align="center" colspan="2" class=forumrowHighLight>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25%"> </td>
<td width="75%">
<input type="button" name="Submit" value="确 定 修 改" class="smallInput" onclick="validate()">
<input type="button" value="返 回 前 页" class="smallInput" onclick=javascript:history.go(-1)></td>
</tr>
</table> </td>
</tr>
</table>
</form>
<!--#include file="../copy.asp" -->
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -