📄 admin_insert.asp
字号:
<%
bg_id="1"
%>
<!--#include file="../main/conn.asp" -->
<!--#include file="../class_admin/admin_session.asp" -->
<!--#include file="../function/nextpage.asp" -->
<!--#include file="../function/function.asp" -->
<%
web_id1="../language/"
web_id=web_id1&l_id&"/ADMIN.ASP"
call include(web_id)
web_id1="../language/"
web_id=web_id1&l_id&"/CHECK.ASP"
call include(web_id)
%>
<head>
<SCRIPT src="../js/win_js.js"></SCRIPT>
</HEAD>
<center>
<SCRIPT>SL_open(735,480);</SCRIPT>
<table border="1" width="100%" bgcolor=<%=top_bg_color%> bordercolor=<%=top_borderbg_color%>>
<tr>
<td align="center" bgcolor=<%=tr_bg_color%> colspan="9">
<%=L_ADMIN_IN1%>
</td>
</tr>
<%
insert_sql="select * from [insert] where g_id='"&session_cookie_gid&"'"
set insert_rs=conn.execute(insert_sql)
do while not insert_rs.eof
%>
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.insert_name.value == "")
{
alert("<%=L_CHECK_insert1%>");
theForm.insert_name.focus();
return (false);
}
if (theForm.insert_name.value.length > 20)
{
alert("<%=L_CHECK_insert2%>");
theForm.insert_name.focus();
return (false);
}
if (theForm.insert_url.value == "")
{
alert("<%=L_CHECK_insert3%>");
theForm.insert_url.focus();
return (false);
}
if (theForm.insert_url.value.length > 49)
{
alert("<%=L_CHECK_insert4%>");
theForm.insert_url.focus();
return (false);
}
return (true);
}
//--></script>
<script Language="JavaScript">
<!--
function FrontPage_Form2_Validator(theForm)
{
if (theForm.insert_name.value == "")
{
alert("<%=L_CHECK_insert1%>");
theForm.insert_name.focus();
return (false);
}
if (theForm.insert_name.value.length > 20)
{
alert("<%=L_CHECK_insert2%>");
theForm.insert_name.focus();
return (false);
}
if (theForm.insert_url.value == "")
{
alert("<%=L_CHECK_insert3%>");
theForm.insert_url.focus();
return (false);
}
if (theForm.insert_url.value.length > 49)
{
alert("<%=L_CHECK_insert4%>");
theForm.insert_url.focus();
return (false);
}
return (true);
}
//--></script>
<form method="POST" action=add_insert.asp?id=<%=insert_rs("id")%>&s_id=edit onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
<tr>
<td align="center" bgcolor=<%=top_bg_color%> >
<%=L_ADMIN_IN2%>:
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="20"
-->
<input type="text" name="insert_name" size="8" value='<%=insert_rs("insert_name")%>' style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="20">
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<%=L_ADMIN_IN3%>:
</td>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="49"
-->
<td align="center" bgcolor=<%=top_bg_color%> >
<input type="text" name="insert_url" size="15" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="49" value="<%=insert_rs("insert_url")%>">
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<input style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" type="submit" value="<%=L_ADMIN_IN4%>">
<a href="add_insert.asp?id=<%=insert_rs("id")%>&s_id=del"><img src=<%=web_background%>/del.gif border=0>
</a> </td>
</tr> </form>
<%
insert_rs.movenext
loop
insert_rs.close
%>
</table>
<form method="POST" action="add_insert.asp?s_id=add" onsubmit="return FrontPage_Form2_Validator(this)" name="FrontPage_Form2">
<table border="1" width="100%" bgcolor=<%=top_bg_color%> bordercolor=<%=top_borderbg_color%>>
<tr>
<td align="center" bgcolor=<%=tr_bg_color%> colspan="7">
<%=L_ADMIN_IN5%>
</td>
</tr>
<tr>
<td align="center" bgcolor=<%=top_bg_color%>>
<%=L_ADMIN_IN6%>:
</td>
<td align="center" bgcolor=<%=top_bg_color%> colspan="2">
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="20"
--><input type="text" name="insert_name" size="8" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="20">
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<%=L_ADMIN_IN7%>:
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="49"
--><input type="text" name="insert_url" size="15" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="49">
</td>
<td align="center" bgcolor=<%=top_bg_color%> colspan="2">
<input style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" type="submit" value="<%=L_ADMIN_IN8%>">
</td>
</tr>
</table>
</form>
<SCRIPT>SL_close();</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -