📄 admin_cydh.asp
字号:
<!--#include file="cyconn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")<9 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>"
response.End
end if
end if
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../admin_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from tel order by idorder",conn,1,1
dim i
i=rs.recordcount
%>
<table width="96%" align="center" cellpadding="2" cellspacing="1" border="0" class="border">
<tr align="center" valign="middle">
<td height="20" colspan="8" align="center" class="topbg"><b>常用电话管理</b></td>
</tr>
<tr align="center" class="tdbg">
<td class="tdbg" align="center"><strong><strong>常用</strong>姓名</strong></td>
<td class="tdbg" align="center"><strong>常用电话</strong></td>
<td class="tdbg" align="center"><strong>客户姓名</strong></td>
<td class="tdbg" align="center"><strong>客户电话</strong></td>
<td class="tdbg" align="center"><strong>同事姓名</strong></td>
<td class="tdbg" align="center"><strong>公司电话</strong></td>
<td class="tdbg" align="center"><strong>排序</strong></td>
<td class="tdbg" align="center"><strong>操作</strong></td>
</tr>
<%if rs.eof and rs.bof then
response.write "还没有数据,请添加!"
else
do while not rs.eof
%>
<tr align="center">
<form name="form1" method="post" action="savecydh.asp?action=edit&id=<%=rs("id")%>">
<td align="center" class="tdbg"><input name="cyname" type="text" id="cyname" value="<%=trim(rs("cyname"))%>" size="10"></td>
<td align="center" class="tdbg"><input name="cytel" type="text" id="cytel" value="<%=trim(rs("cytel"))%>" size="16"></td>
<td class="tdbg" align="center"><input name="khname" type="text" id="khname" value="<%=trim(rs("khname"))%>" size="10"></td>
<td class="tdbg" align="center"><input name="khtel" type="text" id="khtel" value="<%=trim(rs("khtel"))%>" size="16"></td>
<td class="tdbg" align="center"><input name="gsname" type="text" id="gsname" value="<%=trim(rs("gsname"))%>" size="10"></td>
<td class="tdbg" align="center"><input name="gstel" type="text" id="gstel" value="<%=trim(rs("gstel"))%>" size="16"></td>
<td class="tdbg" align="center"><input name="idorder" type="text" id="idorder" value=<%=rs("idorder")%> size="3"></td>
<td class="tdbg" align="center"><input type="submit" name="Submit" value="修 改"><a href=savecydh.asp?action=del&id=<%=rs("id")%>><font color="#FF0000">删除</font></a></td>
</form>
</tr>
<%rs.movenext
loop
end if
rs.close
set rs=nothing%>
</table>
<br>
<table width="96%" align="center" cellpadding="2" cellspacing="1" border="0" class="border">
<form name="form2" method="post" action="savecydh.asp?action=add">
<tr align="center" valign="middle">
<td height="20" colspan="8" align="center" class="topbg"><b>常用电话管理</b></td>
</tr>
<tr align="center" class="tdbg">
<td class="tdbg" align="center"><strong>联系姓名</strong></td>
<td class="tdbg" align="center"><strong>常用电话</strong></td>
<td class="tdbg" align="center"><strong>客户姓名</strong></td>
<td class="tdbg" align="center"><strong>客户电话</strong></td>
<td class="tdbg" align="center"><strong>同事姓名</strong></td>
<td class="tdbg" align="center"><strong>公司电话</strong></td>
<td class="tdbg" align="center"><strong>排序</strong></td>
<td class="tdbg" align="center"><strong>操作</strong></td>
</tr>
<tr align="center">
<td class="tdbg" align="center"><input name="cyname1" type="text" id="cyname1" size="10"></td>
<td class="tdbg" align="center"><input name="cytel1" type="text" id="cytel1" size="16"></td>
<td class="tdbg" align="center"><input name="khname1" type="text" id="khname1" size="10"></td>
<td class="tdbg" align="center"><input name="khtel1" type="text" id="khtel1" size="16"></td>
<td class="tdbg" align="center"><input name="gsname1" type="text" id="gsname1" size="10"></td>
<td class="tdbg" align="center"><input name="gstel1" type="text" id="gstel1" size="16"></td>
<td class="tdbg" align="center"><input name="idorder1" type="text" id="idorder1" value=<%=i+1%> size="3"></td>
<td class="tdbg" align="center"><input type="submit" name="Submit2" value="添加电话"></td>
</form>
</tr>
</table>
<!--#include file="../../copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -