📄 touchmanlist.asp
字号:
<TD width="150" align="center" valign="middle" style="border: #99ccff 1px solid " bgcolor="#6699FF"><%=SqlAttachName(1)%></TD>
<TD width="150" align="center" valign="middle" style="border: #99ccff 1px solid " bgcolor="#6699FF"><%=SqlAttachName(2)%></TD>
<TD width="152" align="center" valign="middle" style="border: #99ccff 1px solid " bgcolor="#6699FF"><%=SqlAttachName(3)%></TD>
</TR>
<%
'显示处理
TotalPages = 1
TotalRecords = 0
TotalFlag = 0
if not(rs.bof or rs.eof) then
TotalRecords = rs.recordcount
if ListPageSize = 0 then
ListPageSize = TotalRecords
TotalFlag = 1
end if
rs.pagesize = ListPageSize
TotalPages = rs.pagecount
if SelectPage > TotalPages then
SelectPage = 1
end if
rs.absolutepage = SelectPage
for i = 1 to ListPageSize
if not(rs.bof or rs.eof) then
%>
<TR>
<TD height="25" colspan="2" align="center" valign="middle" style="border: #99ccff 1px solid " ><input type="checkbox" name="ckdelete<%=i%>" value="<%=rs("TouchManID")%>"></TD>
<TD align="center" valign="middle" style="border: #99ccff 1px solid " ><a href="touchman.asp?TouchmanID=<%=rs("TouchmanID")%>"><%=rs("TouchmanName")%></a></TD>
<TD align="center" valign="middle" style="border: #99ccff 1px solid " ><%if SqlAttachStr(0) <> "" then%><%=rs(SqlAttachStr(0))%> <%else%> <%end if%></TD>
<TD align="center" valign="middle" style="border: #99ccff 1px solid " ><%if SqlAttachStr(1) <> "" then%><%=rs(SqlAttachStr(1))%> <%else%> <%end if%></TD>
<TD align="center" valign="middle" style="border: #99ccff 1px solid " ><%if SqlAttachStr(2) <> "" then%><%=rs(SqlAttachStr(2))%> <%else%> <%end if%></TD>
<TD align="center" valign="middle" style="border: #99ccff 1px solid " ><%if SqlAttachStr(3) <> "" then%><%=rs(SqlAttachStr(3))%> <%else%> <%end if%></TD>
</TR>
<%
rs.movenext
end if
next
end if
%>
<TR valign="middle">
<TD height="30" colspan="7" > <select name="PageSelect">
<%
'生成下拉列表
for i= 1 to 20
%>
<option <%if ListPageSize = i*5 then%>selected<%end if%> value="<%=i*5%>">每页显示<%=i*5%>条</option>
<%
next
%>
<option <%if TotalFlag = 1 then%>selected<%end if%> value="0">..全部显示..</option>
</select>
<input name="NewTouchMan" onClick="javascript:location.href='NewTouchMan.asp?TouchManClientID=<%=SelectClientID%>'" type="button" class="button_all" id="NewClient" value="新建">
<input name="DeleteButton" type="button" class="button_all" id="DeleteClient" value="删除">
<input name="BackButton" onClick="javascript:location.href='../menu.asp'" type="button" class="button_all" id="BackButton" value="返回"> <%if SelectPage<>1 then%><a href="#" name="FirstPage">首页</a> <a href="#" name="PrePage">上一页</a><%else%>首页 上一页<%end if%> <%if SelectPage<>TotalPages then%><a href="#" name="NextPage"> 下一页</a> <a href="#" name="LastPage">末页</a><%else%> 下一页 末页<%end if%> 当前页数:<%=SelectPage%> 总共页数:<%=TotalPages%> 记录总数:<%=TotalRecords%></TD>
<input name="SelPage" type="hidden" value="<%=SelectPage%>">
<input name="TotalPage" type="hidden" value="<%=TotalPages%>">
</TR>
<!--下拉列表响应函数-->
<SCRIPT FOR="PageSelect" EVENT="onChange" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<!--下拉列表响应函数-->
<!--首页响应函数-->
<SCRIPT FOR="FirstPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<!--首页响应函数-->
<!--首页响应函数-->
<SCRIPT FOR="NextPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.SelPage.value + 1
TheForm.submit()
</SCRIPT>
<!--首页响应函数-->
<!--首页响应函数-->
<SCRIPT FOR="PrePage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.SelPage.value - 1
TheForm.submit()
</SCRIPT>
<!--首页响应函数-->
<!--首页响应函数-->
<SCRIPT FOR="LastPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.TotalPage.value
TheForm.submit()
</SCRIPT>
<!--首页响应函数-->
<!--删除响应函数-->
<SCRIPT FOR="DeleteButton" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
MyVar = MsgBox ("你确认要删除选中的联系人资料么?",52, "确认删除")
if MyVar = 6 then
TheForm.Action = "DeleteTouchManList.asp"
TheForm.submit()
end if
</SCRIPT>
<!--删除响应函数-->
<!--查询响应函数-->
<SCRIPT FOR="SearchButton" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<SCRIPT FOR="NewView" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<!--查询响应函数-->
<SCRIPT FOR="SelectClientID" EVENT="onChange" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<TR align="center" valign="middle">
<TD height="25" colspan="7" valign="middle" style="border: #99ccff 1px solid;"> 显 示 项 目 (4 项) </TD>
</TR>
<TR align="left" valign="middle">
<TD height="25" colspan="7" style="border-left: #99ccff 1px solid;border-right: #99ccff 1px solid;"> 部门
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox01" value="<%=SqlKeyChr(1)%>" <%if InStr(1,AttachOption,"checkbox01",1)<>0 then%>checked<%end if%>>
职位
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox02" value="<%=SqlKeyChr(2)%>" <%if InStr(1,AttachOption,"checkbox02",1)<>0 then%>checked<%end if%>>
手机
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox03" value="<%=SqlKeyChr(3)%>" <%if InStr(1,AttachOption,"checkbox03",1)<>0 then%>checked<%end if%>>
电话
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox04" value="<%=SqlKeyChr(4)%>" <%if InStr(1,AttachOption,"checkbox04",1)<>0 then%>checked<%end if%>>
家庭电话
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox05" value="<%=SqlKeyChr(5)%>" <%if InStr(1,AttachOption,"checkbox05",1)<>0 then%>checked<%end if%>>
传真
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox06" value="<%=SqlKeyChr(6)%>" <%if InStr(1,AttachOption,"checkbox06",1)<>0 then%>checked<%end if%>>
电子邮件
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox07" value="<%=SqlKeyChr(7)%>" <%if InStr(1,AttachOption,"checkbox07",1)<>0 then%>checked<%end if%>>
爱好
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox08" value="<%=SqlKeyChr(8)%>" <%if InStr(1,AttachOption,"checkbox08",1)<>0 then%>checked<%end if%>></TD>
</TR>
<TR align="left">
<TD height="25" colspan="7" style="border-left: #99ccff 1px solid;border-right: #99ccff 1px solid;" > 特殊日子
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox09" value="<%=SqlKeyChr(9)%>" <%if InStr(1,AttachOption,"checkbox09",1)<>0 then%>checked<%end if%>>
地址
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox10" value="<%=SqlKeyChr(10)%>" <%if InStr(1,AttachOption,"checkbox10",1)<>0 then%>checked<%end if%>>
详细说明
<input type="checkbox" onClick="CheckCheckBox(this)" name="T_checkbox11" value="<%=SqlKeyChr(11)%>" <%if InStr(1,AttachOption,"checkbox11",1)<>0 then%>checked<%end if%>>
</TD>
</TR>
<TR align="left">
<TD height="25" colspan="7" style="border-left: #99ccff 1px solid;border-right: #99ccff 1px solid;"> <input type="hidden" name="CheckNum" value=<%=AttachNum%> ></TD>
</TR>
<TR align="center" valign="middle">
<TD height="26" colspan="7" bgColor=#99ccff ><input name="NewView" type="button" class="button_all" id="NewViffew" value="更新"></TD>
</TR>
</form>
<tr>
<td height="1"></td>
<td width="13"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr></TBODY>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</TABLE>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -