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

📄 customcontactmanage.asp

📁 一个比较完整的oa系统
💻 ASP
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SaleManageCustomContactManage")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_CustomContact":action=request("action"):page=request("page")
if action="del" then
  id=request("id")
  if WS_S.HX_IsNUM(id) then 
    conn.execute("delete from HX_CustomContact where WS_CIID="&id)
	WS_S.HX_Redirect("CustomContactManage.asp?page="&page)
  end if  	
end if
Ciid=request("Ciid")
if WS_S.HX_IsNUM(ciid) then
 Orderby=" where WS_CIID="&ciid
 set crs=WS_S.HX_SetRSD(ColumnName,"HX_CustomInfo"," where WS_CIID="&ciid)
 if crs.recordcount>0 then
   msg="     <font color=red>所属客户:"&crs("WS_CustomInfoName")&"</font>"
 end if
else
 Orderby=" where WS_CustomContactCreateMan="&loginuid&" order by WS_CIID desc"
end if 
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>联系人管理</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'></head><body topmargin='20' leftmargin='0' bottommargin='0'><table width='98%'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff background='../hximages/titlelinebg.gif'><table width='590'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>联系人管理</font>"&msg&"     <a href='CustomContactCreate.asp' class='menu'>新建联系人</a></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='0' bgcolor=f1f1f1><tr bgcolor='#A1BBE0'><td width='5%' height='20' align='right'><div align='center'>编 号</div></td><td width='11%'><div align='center'>姓 名</div></td><td width='9%'><div align='center'>所属客户</div></td><td width='10%'><div align='center'>工作电话</div></td><td width='10%'><div align='center'>家庭电话</div></td><td width='9%'><div align='center'>手 机</div></td><td width='9%'><div align='center'>生 日</div></td><td width='11%'><div align='center'>电子邮件</div></td><td width='8%'><div align='center'>职务</div></td><td width='10%'><div align='center'>爱 好</div></td><td width='8%'><div align='center'>操 作</div></td></tr>"
  if rs.recordcount>0 then
 rs.PageSize =15 '每页记录条数
	iCount=rs.RecordCount '记录总数
	iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	ii=0
	do while not rs.EOF
    response.write "<tr bgcolor='#FFFFFF' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ffffff' align=center><td align='center' height='20'>"&rs("WS_CCID")&"</td><td align='center'>"&rs("WS_CustomContactName")&"</td><td align='center'>"
	call WS_S.HX_OutCustonInfo(rs("WS_CIID"))
	response.Write "</td><td align='center'>"&rs("WS_CustomContactTel")&"</td><td align='center'>"&rs("WS_CustomContactHomeTel")&"</td><td align='center'>"&rs("WS_CustomContactMobile")&"</td><td align='center'>"&rs("WS_CustomContactBorn")&"</td><td align='center'>"&rs("WS_CustomContactEmail")&"</td><td align='center'>"&rs("WS_CustomContactDuty")&"</td><td align='center'>"&rs("WS_CustomContactHibe")&"</td><td align='center'>"
	if rs("WS_CustomContactCreateMan")=cint(loginuid) then response.Write "<a href='CustomContactModify.asp?id="&rs("WS_CCID")&"'>修改</a> <a href='#' onclick=""if(!confirm('确认要删除此联系人记录吗?')) {return false};else {location.href='CustomContactManage.asp?action=del&page="&page&"&id="&rs("WS_CIID")&"';return true;}"">删除</a>" 
	response.Write "</td></tr>"
     ii=ii+1
	  if ii>=rs.PageSize then Exit Do
	  rs.movenext
      loop
	  end if
	  for i=0 to 15-rs.recordcount
     response.write "<tr bgcolor='#FFFFFF' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ffffff' align=center><td height='25'>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>"
     next
   if rs.recordcount>0 then
   call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",11)
   end if
  call WS_S.HX_RSClose(rs) 
  response.write "</table></td></tr></table>"%>

⌨️ 快捷键说明

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