<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
'各种返回信息
|
SystemMessageType=trim(Request("SystemMessageType"))
|
SMT=trim(Request("SMT"))
|
if SystemMessageType="3" then
|
if SMT="1" then
|
SystemMessageTXT="部门列表更新完成"
|
elseif SMT="2" then
|
SystemMessageTXT="记录修改完成"
|
elseif SMT="3" then
|
SystemMessageTXT="新建记录完成"
|
elseif SMT="4" then
|
SystemMessageTXT="记录删除完成"
|
end if
|
elseif SystemMessageType="1" then
|
if SMT="1" then
|
SystemMessageTXT="请选择需要修改的记录"
|
elseif SMT="2" then
|
SystemMessageTXT="请选择需要删除的记录"
|
elseif SMT="3" then
|
SystemMessageTXT="每次只可以删除一个记录"
|
end if
|
elseif SystemMessageType="4" then
|
if SMT="1" then
|
SystemMessageTXT="数据不足!!"
|
elseif SMT="2" then
|
SystemMessageTXT="修改失败!!"
|
elseif SMT="3" then
|
SystemMessageTXT="请输入新记录名称!!"
|
elseif SMT="4" then
|
SystemMessageTXT="记录名称重复,请重新输入!!"
|
end if
|
end If
|
|
searchTXT=trim(Request("searchTXT"))
|
|
page_URL="&searchTXT="&searchTXT
|
|
acc1=clng(request("page"))
|
if acc1=empty then acc1=clng(1)
|
QuantityInt = 20
|
acc2=0
|
acc3=0
|
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title><%=LindemanAdmin%></title>
|
<!--#include virtual="/inc/ccs.gds"-->
|
</head>
|
<body onkeydown="xKeyEvent(event)">
|
<!--#INCLUDE FILE="menu_header.gds" -->
|
<!-- content -->
|
<div id="content">
|
<!--#INCLUDE FILE="Report_menu_left.gds" -->
|
<!-- content / right -->
|
<div id="right">
|
<!-- table -->
|
<div class="box">
|
<!-- box / title -->
|
<div class="title">
|
<h5>呼叫统计记录 <%=searchTXT%></h5>
|
<ul class="links">
|
<li><a onclick="javascript:dictionaryCreate.style.display='block';">新建</a></li>
|
<li><a onClick="form1_dictionary_update()">修改</a></li>
|
<li><a onClick="form1_dictionary_delete()">删除</a></li>
|
<div class="search">
|
<form action="Admin_dictionary.gds" method="post">
|
<div class="input">
|
<input type="text" id="search" name="searchTXT" value="<%=searchTXT%>" />
|
</div>
|
<div class="button">
|
<input type="submit" name="submit" value="搜索" />
|
</div>
|
</form>
|
</div>
|
</ul>
|
<script LANGUAGE="javascript">
|
//修改记录
|
function form1_dictionary_update(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value="42"
|
form1.submit();
|
}
|
//删除记录
|
function form1_dictionary_delete(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value="44"
|
form1.submit();
|
}
|
//选择修改记录
|
function form1_dictionary_Edit(id){
|
if (document.getElementById('Show_vtext_'+id).style.display=="none")
|
{
|
document.getElementById('Show_vtext_'+id).style.display='';
|
document.getElementById('Edit_vtext_'+id).style.display='none';
|
document.getElementById('Show_vOrder_'+id).style.display='';
|
document.getElementById('Edit_vOrder_'+id).style.display='none';
|
document.getElementById('Show_vOrder2_'+id).style.display='';
|
document.getElementById('Edit_vOrder2_'+id).style.display='none';
|
}
|
else
|
{
|
document.getElementById('Show_vtext_'+id).style.display='none';
|
document.getElementById('Edit_vtext_'+id).style.display='';
|
document.getElementById('Show_vOrder_'+id).style.display='none';
|
document.getElementById('Edit_vOrder_'+id).style.display='';
|
document.getElementById('Show_vOrder2_'+id).style.display='none';
|
document.getElementById('Edit_vOrder2_'+id).style.display='';
|
}
|
}
|
//新建记录-关闭上传窗口
|
function JS_dictionaryCreateClose()
|
{
|
dictionaryCreate.style.display="none";
|
}
|
//新建记录-保存
|
function JS_dictionaryCreateSave()
|
{
|
form2.submit();
|
}
|
</script>
|
</div>
|
<%sql="select top 1 vID,vtext,vtitle,vType,vMono,vOrder,vOrder2 from dictionary where vtitle in ('CallCenter') order by id desc"
|
rs.open sql,objConn,1,1
|
if not rs.eof Then
|
vID = rs("vID")+1
|
vtext = DateAdd("d",1,rs("vtext"))
|
vtitle= rs("vtitle")
|
vType = rs("vType")
|
vMono = rs("vMono")
|
'vOrder= rs("vOrder")
|
'vOrder2=rs("vOrder2")
|
Else
|
vtext = Date()
|
end If
|
rs.close()
|
If vID="" Then vID=0
|
%>
|
<div class="dialogJ dialogJfix dialogJshadow" id="dictionaryCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
|
<div class="dialogJtitle">
|
<a href="javascript:JS_dictionaryCreateClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
<span class="dialogJtxt" id="EditPhotoTXT">新录入</span>
|
</div>
|
<form id="form2" name="form2" action="admin_save.gds" method="post">
|
<input name="admin_save" type="hidden" value="43">
|
<input name="vtitle" type="hidden" value="CallCenter">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<div class="dialogJcontent">
|
<div class="dialogJbody" id="dialogJbody" style="height: 210px;">
|
<div class="modify-album-name">
|
<span> 日 期 :</span>
|
<input id="vtext" name="vtext" type="text" value="<%=vtext%>" style="width: 80px;" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span>966120数量:</span>
|
<input id="vOrder" name="vOrder" type="text" value="<%=vOrder%>" style="width: 80px;" maxlength="99/">个
|
</div>
|
<div class="modify-album-name">
|
<span>400电话数量:</span>
|
<input id="vOrder2" name="vOrder2" type="text" value="<%=vOrder2%>" style="width: 80px;" maxlength="99/">个
|
</div>
|
</div>
|
</div>
|
</form>
|
<div class="dialogJanswers" style="padding: 0 20px 13px 18px;">
|
<input type="button" class="dialogJbtn first-child" onclick="JS_dictionaryCreateSave()" value="确定">
|
<input type="button" class="dialogJbtn" onclick="JS_dictionaryCreateClose()" value="取消">
|
</div>
|
</div>
|
<!-- end box / title -->
|
<%' vtitle='OA_Department' and vType>0
|
|
|
if searchTXT<>"" then
|
searchSql=" vtitle in ('CallCenter') and (vtext like '%"&searchTXT&"%' or vtitle='"&searchTXT&"') "
|
else
|
'searchSql=" OA_execLevel in (0,1) and (OA_B2bID=0 or OA_B2bID in (select SupplierID from B2B_Supplier where Supplier_is=0) or OA_B2bID in (select DealerID from B2B_Dealer where Dealer_is=0))"
|
searchSql=" vtitle in ('CallCenter') "
|
end If
|
|
sql="select id,vID,vtext,vtitle,vType,vMono,vOrder,vOrder2 from dictionary where "&searchSql&" order by vtitle,vID,vOrder,id"
|
rs.open sql,objConn,1,1
|
if not rs.eof then
|
rs.pagesize=QuantityInt
|
rs.absolutepage=acc1
|
acc2=rs.pagecount
|
acc3=rs.recordcount
|
else
|
SystemMessageType=2
|
SystemMessageTXT="数据库中相关无数据!"
|
end if
|
%>
|
<!--#include virtual="/inc/SystemMessages.gds" -->
|
<div class="table">
|
<form id="form1" name="form1" action="" method="post">
|
<input name="admin_save" type="hidden" value="42">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<table>
|
<thead>
|
<tr>
|
<th class="selected"><input type="checkbox" class="checkall" /></th>
|
<th>日期</th>
|
<th>966120电话记录</th>
|
<th>400电话记录</th>
|
<th>记录人</th>
|
<th class="last" style="width: 55%;"></th>
|
</tr>
|
</thead>
|
<tbody>
|
|
<%i=1
|
do while not rs.Eof and i<=QuantityInt
|
id = rs("id")
|
vID = rs("vID")
|
vtext = rs("vtext")
|
vtitle= rs("vtitle")
|
vType = rs("vType")
|
vMono = rs("vMono")
|
vOrder= rs("vOrder")
|
vOrder2=rs("vOrder2")
|
If vMono<>"" Then vMono=OAUser(vMono,"UserName")
|
i=i+1
|
%>
|
<input name="dictionaryID_<%=id%>" type="hidden" value="<%=dictionaryID%>">
|
<input name="vtitle_<%=id%>" type="hidden" value="<%=vtitle%>">
|
<tr>
|
<td class="selected"><input type="checkbox" id="ID_<%=id%>" name="ID" value="<%=id%>" onclick="javascript:form1_dictionary_Edit('<%=id%>')"/></td>
|
<td class="date" id="Show_vtext_<%=id%>"><%=vtext%></td>
|
<td class="date" id="Edit_vtext_<%=id%>" style="display:none;"><input id="vtext_<%=id%>" name="vtext_<%=id%>" class="small" style="width:350px;text-align: center;" value="<%=vtext%>" type="text"></td>
|
<td class="category" id="Show_vOrder_<%=id%>"><%=vOrder%></td>
|
<td class="category" id="Edit_vOrder_<%=id%>" style="display:none;"><input id="vOrder_<%=id%>" name="vOrder_<%=id%>" class="small" style="width:40px;text-align: center;" value="<%=vOrder%>" type="text"></td>
|
<td class="category" id="Show_vOrder2_<%=id%>"><%=vOrder2%></td>
|
<td class="category" id="Edit_vOrder2_<%=id%>" style="display:none;"><input id="vOrder2_<%=id%>" name="vOrder2_<%=id%>" class="small" style="width:40px;text-align: center;" value="<%=vOrder2%>" type="text"></td>
|
<td class="category"><%=vMono%></td>
|
<td class="category last"> </td>
|
</tr>
|
<%rs.movenext
|
loop
|
rs.close()
|
%>
|
<%for j=i to 21%>
|
<tr>
|
<td class="selected"> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td class="last"> </td>
|
|
</tr>
|
<%next%>
|
</tbody>
|
</table>
|
<!-- pagination -->
|
<div class="pagination pagination-left">
|
<div class="results">
|
<%
|
ShowingLeast = (acc1-1)*QuantityInt+1
|
ShowingMax = QuantityInt*acc1
|
if ShowingMax>acc3 then ShowingMax=acc3
|
%>
|
<span><%="显示 "& ShowingLeast &"-"& ShowingMax &" of "&acc3%></span>
|
</div>
|
<%if acc2>1 then%>
|
<ul class="pager">
|
<%if acc1=1 then%>
|
<li class="disabled">« 上页</li>
|
<%else%>
|
<li><a href="?page=<%=acc1-1%><%=page_URL%>">« 上页</a></li>
|
<%end if%>
|
<%
|
acc4=""
|
for i=1 to acc2
|
if acc2<=9 then
|
acc4=acc4&","&i
|
else
|
if i=1 then
|
acc4=acc4&","&i
|
elseif acc1<=5 and i<=7 then
|
acc4=acc4&","&i
|
elseif acc1>=acc2-4 and i>=acc2-6 then
|
acc4=acc4&","&i
|
elseif i>=acc1-2 and i<=acc1+2 then
|
acc4=acc4&","&i
|
elseif i=acc2 then
|
acc4=acc4&","&i
|
elseif i=2 or i=acc2-1 then
|
acc4=acc4&",0"
|
end if
|
end if
|
next
|
acc4SP=SPLIT(acc4,",")
|
for i = 1 to UBOUND(acc4SP)%>
|
<%if acc4SP(i)="0" then%>
|
<li class="separator">...</li>
|
<%elseif acc1=cint(acc4SP(i)) then%>
|
<li class="current"><%=acc4SP(i)%></li>
|
<%else%>
|
<li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
|
<%end if%>
|
<%next%>
|
<%if acc1>=acc2 then%>
|
<li class="disabled">下页 »</li>
|
<%else%>
|
<li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 »</a></li>
|
<%end if%>
|
</ul>
|
<%end if%>
|
</div>
|
<!-- end pagination -->
|
</form>
|
</div>
|
</div>
|
<!-- end table -->
|
|
|
</div>
|
<!-- end content / right -->
|
</div>
|
<!-- end content -->
|
<!--#include FILE="vicgame.asp"-->
|
</body>
|
</html>
|