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

📄 admin_style.asp

📁 不是我做的一个留言板
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%
bg_id="1"
%>
<!--#include file="../main/conn.asp" -->
<!--#include file="admin_session.asp" -->
<!--#include file="../function/function.asp" -->
<head>
<SCRIPT src="../js/win_js.js"></SCRIPT>
</HEAD> 
<center> 
<%
web_id1="../language/"
web_id=web_id1&l_id&"/style.ASP"
call include(web_id)
        RESPONSE.WRITE L_style_title
        RESPONSE.WRITE "<SCRIPT>SL_open(700,450);</SCRIPT>"
        RESPONSE.WRITE "<table border=1 width=100% bgcolor='"&top_bg_color&"' bordercolor='"&top_borderbg_color&"'>"
        RESPONSE.WRITE "<tr><td valign=top>"
        RESPONSE.WRITE "<table border=1 width=100% bgcolor='"&top_bg_color&"'  bordercolor='"&top_borderbg_color&"'>"
style_id=int(request.QueryString("style_id"))
sql_style_1="select * from style"
set rs_style=conn.execute(sql_style_1)

 Do while not rs_style.eof
 i=i+1
 lname=rs_style("name")
 sid=rs_style("id")

 if(style_id=sid) then
 sql_style="select * from style where id=" & style_id
 set rstyle=conn.execute(sql_style)

%>
<tr style="background-color: <%=rstyle("onMouseOut")%>" onMouseOver =  "this.style.backgroundColor = '<%=rstyle("onMouseOverr")%>'" onMouseOut =  "this.style.backgroundColor = '<%=rstyle("onMouseOut")%>'">



<td height="1">

<%
image_title= i &"<a href='admin_style.asp'><img src='./"&img_path&"/add2.gif'  border='0'> <br><center>---->" &lname& "  <center>  </a>"
        RESPONSE.WRITE image_title

else
%>
<tr style="background-color: <%=test_style_onMouseOut%>" onMouseOver =  "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut =  "this.style.backgroundColor = '<%=test_style_onMouseOut%>'">

<td>
<%
image_title=i &"<a href='admin_style.asp?style_id=" & sid & "'><img  src='./"&img_path&"/add.gif' border='0'>" &lname& "</a>"
image_title=image_title&"<a href='admin_style.asp?style_id="&sid&"'>"
image_title=image_title&"<img src='"&web_background&"/edit.gif' border='0'></a>" 

image_title=image_title&"<a href='style_del.asp?id="&sid&"' border='0'><img  src='"&web_background&"/del.gif' border='0'></a>"   
        RESPONSE.WRITE image_title
end if
%>
</td>
</tr>

<%
rs_style.movenext
loop
rs_style.close
%>

</table>
</td>
<td width="70%" rowspan="2" valign='top'> 
<table border="1" width="100%" bgcolor=<%=top_bg_color%>  bordercolor=<%=top_borderbg_color%> height="1072">
   
    <%
   if(style_id) then
 add_table="</tr><br>"
   %> 
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.T1.value == "")
  {
    alert("<%=L_style_add_MSG3%>");
    theForm.T1.focus();
    return (false);
  }

  if (theForm.T1.value.length > 8)
  {
    alert("<%=L_style_add_MSG4%>");
    theForm.T1.focus();
    return (false);
  }

  if (theForm.T2.value == "")
  {
    alert("<%=L_style_add_MSG5%>");
    theForm.T2.focus();
    return (false);
  }

  if (theForm.T2.value.length > 80)
  {
    alert("<%=L_style_add_MSG6%>");
    theForm.T2.focus();
    return (false);
  }

  if (theForm.web_width.value == "")
  {
    alert("<%=L_style_add_MSG7%>");
    theForm.web_width.focus();
    return (false);
  }

  if (theForm.web_width.value.length > 4)
  {
    alert("<%=L_style_add_MSG8%>");
    theForm.web_width.focus();
    return (false);
  }

  if (theForm.T3.value == "")
  {
    alert("<%=L_style_add_MSG9%>");
    theForm.T3.focus();
    return (false);
  }

  if (theForm.T3.value.length > 7)
  {
    alert("<%=L_style_add_MSG10%>");
    theForm.T3.focus();
    return (false);
  }

  if (theForm.T8.value == "")
  {
    alert("<%=L_style_add_MSG11%>");
    theForm.T8.focus();
    return (false);
  }

  if (theForm.T8.value.length > 7)
  {
    alert("<%=L_style_add_MSG12%>");
    theForm.T8.focus();
    return (false);
  }

  if (theForm.T9.value == "")
  {
    alert("<%=L_style_add_MSG13%>");
    theForm.T9.focus();
    return (false);
  }

  if (theForm.T9.value.length > 7)
  {
    alert("<%=L_style_add_MSG14%>");
    theForm.T9.focus();
    return (false);
  }

  if (theForm.T4.value == "")
  {
    alert("<%=L_style_add_MSG15%>");
    theForm.T4.focus();
    return (false);
  }

  if (theForm.T4.value.length > 7)
  {
    alert("<%=L_style_add_MSG16%>");
    theForm.T4.focus();
    return (false);
  }

  if (theForm.T5.value == "")
  {
    alert("<%=L_style_add_MSG17%>");
    theForm.T5.focus();
    return (false);
  }

  if (theForm.T5.value.length > 7)
  {
    alert("<%=L_style_add_MSG18%>");
    theForm.T5.focus();
    return (false);
  }

  if (theForm.T6.value == "")
  {
    alert("<%=L_style_add_MSG19%>");
    theForm.T6.focus();
    return (false);
  }

  if (theForm.T6.value.length > 7)
  {
    alert("<%=L_style_add_MSG20%>");
    theForm.T6.focus();
    return (false);
  }

  if (theForm.td_bor.value == "")
  {
    alert("<%=L_style_add_MSG21%>");
    theForm.td_bor.focus();
    return (false);
  }

  if (theForm.td_bor.value.length > 7)
  {
    alert("<%=L_style_add_MSG22%>");
    theForm.td_bor.focus();
    return (false);
  }

  if (theForm.rigth_bg.value == "")
  {
    alert("<%=L_style_add_MSG23%>");
    theForm.rigth_bg.focus();
    return (false);
  }

  if (theForm.rigth_bg.value.length > 7)
  {
    alert("<%=L_style_add_MSG24%>");
    theForm.rigth_bg.focus();
    return (false);
  }

  if (theForm.rigth_bor.value == "")
  {
    alert("<%=L_style_add_MSG25%>");
    theForm.rigth_bor.focus();
    return (false);
  }

  if (theForm.rigth_bor.value.length > 7)
  {
    alert("<%=L_style_add_MSG26%>");
    theForm.rigth_bor.focus();
    return (false);
  }

  if (theForm.T10.value == "")
  {
    alert("<%=L_style_add_MSG27%>");
    theForm.T10.focus();
    return (false);
  }

  if (theForm.T10.value.length > 7)
  {
    alert("<%=L_style_add_MSG28%>");
    theForm.T10.focus();
    return (false);
  }

  if (theForm.T12.value == "")
  {

⌨️ 快捷键说明

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