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

📄 posttmp.asp

📁 蓝芒3.0A最新所有功能完整破解版
💻 ASP
字号:
<% ModuleCode="M0505" %>
<!--#include file="../../Include/Reference.asp"-->
<%
Call PrintPageHead
%>
<!--#include file="../../Include/connect.asp"-->
<script Language="JavaScript">
<!--
function CheckAll()
{  
	//检查非空
	if (!CheckEmpty(addform.TMPCode, "邮局模板代号"))			return false;
	if (!CheckEmpty(addform.TMPName, "邮局模板名称"))			return false;   
	if (!CheckEmpty(addform.TMPFile, "邮局模板文件"))			return false;   
	if (!CheckEmpty(addform.TMPPic, "邮局模板图片"))			return false;   
	if (!CheckEmpty(addform.DispSeq, "显示顺序"))			return false;   
	if (!CheckInteger(addform.DispSeq, "显示顺序"))			return false;   
	//全部通过
	submitonce(addform);
	return true;
}
-->
</script>
<%
strActionName="PostTMPSQL.asp"

strSQL="Select * from T_DNS_PostTMP order by DispSeq"
Set Rs= Server.CreateObject("ADODB.Recordset")
Rs.open strSQL,Cn,1,1

If Rs.Eof Then
	Response.Write "目前还没有邮局模板信息!"
else

%>
      
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="26" class="titletext"><font color="<%=Opt_Font_TitleColor%>"><strong>邮局模板信息</strong></fong></td>
  </tr>
  <tr> 
    <td>
       <table border="0" cellpadding="3" cellspacing="1" bgcolor="<%=Opt_Table_BGColor%>" width="100%">
        <tr bgcolor="<%=Opt_TR_BGColor%>" height="24"> 
          <td>模板代号</td>
          <td>模板名称</td>
          <td>模板文件</td>
          <td>模板图片</td>
          <td>显示顺序</td>
          <td>是否在用</td>
          <td>操作</td>
        </tr>
<%
	i=0
	Do While Not Rs.Eof
	if i mod 2 =0 Then %>
     <tr bgcolor="<%=Opt_TD_BGColor1%>" height="20">
     <% else %>
     <tr bgcolor="<%=Opt_TD_BGColor2%>" height="20">
     <% end if %>
          <form name="form<%=i%>" action="<%=strActionName%>" method="post">
            <input type="hidden" name="TMPCode" value="<%=Rs("TMPCode")%>">
            <td><font color="<%=Opt_Font_IndexColor%>">&nbsp;<%=Rs("TMPCode")%></font></td>
            <td><input name="TMPName" type="text" class="input" value="<%=Rs("TMPName")%>" size="10" maxlength="50"></td>
            <td><input name="TMPFile" type="text" class="input" value="<%=Rs("TMPFile")%>" size="20" maxlength="100"></td>
            <td><input name="TMPPic" type="text" class="input" value="<%=Rs("TMPPic")%>" size="20" maxlength="100"></td>
            <td><input name="DispSeq" type="text" class="input" value="<%=Rs("DispSeq")%>" size="4" maxlength="4"></td>
            <td><input type="checkbox" name="IfUse" value="YES" 
            <%
            if rs("IfUse")="Y" then
            	response.write " checked"
            end if
            %> 
            ></td>
            <td width="80">
            <input name="act" type="submit" class="button" value="修改">
            <input name="act" type="submit" class="button" value="删除">
            </td>
          </form>
        </tr>
        <%
		i=i+1
		Rs.MoveNext
	Loop
	Rs.Close
	Cn.Close
%>
      </table>
<%
end if
%>
	</td>
  </tr>
  <tr> 
    <td height="40">&nbsp;</td>
  </tr>
  <tr> 
    <td height="26" bgcolor="#FFFFFF" class="titletext"><font color="<%=Opt_Font_TitleColor%>"><strong>添加邮局模板</strong></font></td>
  </tr>
  <tr>
    <td><table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="<%=Opt_Table_BGColor%>">
        <form name="addform" method="post" action="<%=strActionName%>" onSubmit="return(CheckAll());">
          <input type="hidden" name="act" value="添加">
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">模板代号</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>"><input name="TMPCode" type="text" class="input"  size="5" maxlength="5" value="0">
            * 请参考上面的代码,请勿重复
            </td>
          </tr>
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">模板名称</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>"><input name="TMPName" type="text" class="input" size="20" maxlength="50">
            </td>
          </tr>
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">模板文件</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>"><input name="TMPFile" type="text" class="input" size="30" maxlength="100">
            </td>
          </tr>
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">模板图片</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>"><input name="TMPPic" type="text" class="input" size="30" maxlength="100">
            </td>
          </tr>
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">显示顺序</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>"><input name="DispSeq" type="text" class="input" size="30" maxlength="100">
            </td>
          </tr>
          <tr height="24">
            <td width="74" bgcolor="<%=Opt_TR_BGColor%>">是否在用</td>
            <td width="311" bgcolor="<%=Opt_TD_BGColor2%>">
            <input type="checkbox" name="IfUse" value="YES" checked >是否在用</td>
          </tr>
          <tr height="26">
          <td bgcolor="<%=Opt_TD_BGColor2%>" colspan="2" align="center">
            <input type="submit" class="button" value=" 添加 ">
            <input type="reset" class="button" value=" 重写 ">
          </td>
        </tr>
        </form>
      </table></td>
  </tr>
</table>

<%
Call PrintPageBottom
%>

⌨️ 快捷键说明

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