?? 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%> 當前頁數(shù):<%=SelectPage%> 總共頁數(shù):<%=TotalPages%> 記錄總數(shù):<%=TotalRecords%></TD>
<input name="SelPage" type="hidden" value="<%=SelectPage%>">
<input name="TotalPage" type="hidden" value="<%=TotalPages%>">
</TR>
<!--下拉列表響應(yīng)函數(shù)-->
<SCRIPT FOR="PageSelect" EVENT="onChange" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<!--下拉列表響應(yīng)函數(shù)-->
<!--首頁響應(yīng)函數(shù)-->
<SCRIPT FOR="FirstPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = 1
TheForm.submit()
</SCRIPT>
<!--首頁響應(yīng)函數(shù)-->
<!--首頁響應(yīng)函數(shù)-->
<SCRIPT FOR="NextPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.SelPage.value + 1
TheForm.submit()
</SCRIPT>
<!--首頁響應(yīng)函數(shù)-->
<!--首頁響應(yīng)函數(shù)-->
<SCRIPT FOR="PrePage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.SelPage.value - 1
TheForm.submit()
</SCRIPT>
<!--首頁響應(yīng)函數(shù)-->
<!--首頁響應(yīng)函數(shù)-->
<SCRIPT FOR="LastPage" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
TheForm.SelPage.value = TheForm.TotalPage.value
TheForm.submit()
</SCRIPT>
<!--首頁響應(yīng)函數(shù)-->
<!--刪除響應(yīng)函數(shù)-->
<SCRIPT FOR="DeleteButton" EVENT="onClick" LANGUAGE="VBScript">
Dim TheForm
Set TheForm = Document.forms("ReNew")
MyVar = MsgBox ("你確認要刪除選中的聯(lián)系人資料么?",52, "確認刪除")
if MyVar = 6 then
TheForm.Action = "DeleteTouchManList.asp"
TheForm.submit()
end if
</SCRIPT>
<!--刪除響應(yīng)函數(shù)-->
<!--查詢響應(yīng)函數(shù)-->
<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>
<!--查詢響應(yīng)函數(shù)-->
<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 + -