<%@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 SMT="1" then
|
SystemMessageTXT="仓库名称不可以为空!!"
|
elseif SMT="2" then
|
SystemMessageTXT="仓库名称重复!!"
|
elseif SMT="3" then
|
SystemMessageTXT="新增仓库完成!!"
|
elseif SMT="4" then
|
SystemMessageTXT="请选择需要修改的项目!!"
|
elseif SMT="5" then
|
SystemMessageTXT="修改仓库完成!!"
|
elseif SMT="6" then
|
SystemMessageTXT="删除仓库完成!!"
|
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="MRP_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="63"
|
form1.submit();
|
}
|
//删除字典
|
function form1_dictionary_delete(){
|
document.form1.action = "admin_save.gds";
|
document.form1.admin_save.value="65"
|
form1.submit();
|
}
|
//选择修改字典
|
function form1_dictionary_Edit(id){
|
if (document.getElementById('Show_SupplierName_'+id).style.display=="none")
|
{
|
document.getElementById('Show_SupplierName_'+id).style.display='';
|
document.getElementById('Edit_SupplierName_'+id).style.display='none';
|
document.getElementById('Show_SupplierContact_'+id).style.display='';
|
document.getElementById('Edit_SupplierContact_'+id).style.display='none';
|
document.getElementById('Show_SupplierTEL_'+id).style.display='';
|
document.getElementById('Edit_SupplierTEL_'+id).style.display='none';
|
document.getElementById('Show_SupplierAddress_'+id).style.display='';
|
document.getElementById('Edit_SupplierAddress_'+id).style.display='none';
|
document.getElementById('Show_SupplierRemarks_'+id).style.display='';
|
document.getElementById('Edit_SupplierRemarks_'+id).style.display='none';
|
}
|
else
|
{
|
document.getElementById('Show_SupplierName_'+id).style.display='none';
|
document.getElementById('Edit_SupplierName_'+id).style.display='';
|
document.getElementById('Show_SupplierContact_'+id).style.display='none';
|
document.getElementById('Edit_SupplierContact_'+id).style.display='';
|
document.getElementById('Show_SupplierTEL_'+id).style.display='none';
|
document.getElementById('Edit_SupplierTEL_'+id).style.display='';
|
document.getElementById('Show_SupplierAddress_'+id).style.display='none';
|
document.getElementById('Edit_SupplierAddress_'+id).style.display='';
|
document.getElementById('Show_SupplierRemarks_'+id).style.display='none';
|
document.getElementById('Edit_SupplierRemarks_'+id).style.display='';
|
}
|
}
|
//新建字典-关闭上传窗口
|
function JS_dictionaryCreateClose()
|
{
|
dictionaryCreate.style.display="none";
|
}
|
//新建字典-保存
|
function JS_dictionaryCreateSave()
|
{
|
form2.submit();
|
}
|
</script>
|
</div>
|
<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="64">
|
<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="SupplierName" name="SupplierName" type="text" value="<%=SupplierName%>" maxlength="99/" style="width: 243px;">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 12px;">联系人:</span>
|
<input id="SupplierContact" name="SupplierContact" type="text" value="<%=SupplierContact%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span>联系电话:</span>
|
<input id="SupplierTEL" name="SupplierTEL" type="text" value="<%=SupplierTEL%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">地址:</span>
|
<input id="SupplierAddress" name="SupplierAddress" type="text" value="<%=SupplierAddress%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">备注:</span>
|
<input id="SupplierRemarks" name="SupplierRemarks" type="text" value="<%=SupplierRemarks%>" maxlength="200/">
|
</div>
|
</div>
|
</div>
|
</form>
|
<div class="dialogJanswers">
|
<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 -->
|
<%
|
|
if searchTXT<>"" then
|
searchSql=" and (SupplierName like '%"&searchTXT&"%' or SupplierContact='"&searchTXT&"') "
|
else
|
searchSql=""
|
end If
|
'vtitle,vID,vOrder,id
|
sql="select * from MRP_Supplier where SupplierState=1 "&searchSql&" order by SupplierID desc"
|
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="64">
|
<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>联系人</th>
|
<th>联系电话</th>
|
<th>地址</th>
|
<th class="last">备注</th>
|
</tr>
|
</thead>
|
<tbody>
|
|
<%i=1
|
do while not rs.Eof and i<=QuantityInt
|
id = rs("SupplierID")
|
SupplierName = rs("SupplierName")
|
SupplierContact = rs("SupplierContact")
|
SupplierTEL = rs("SupplierTEL")
|
SupplierAddress = rs("SupplierAddress")
|
SupplierRemarks = rs("SupplierRemarks")
|
i=i+1
|
%>
|
<input name="SupplierID_<%=id%>" type="hidden" value="<%=id%>">
|
<tr>
|
<td class="selected"><input type="checkbox" id="ID_<%=id%>" name="ID" value="<%=id%>" onclick="javascript:form1_dictionary_Edit('<%=id%>')"/></td>
|
<td class="category" id="Show_SupplierName_<%=id%>"><%=SupplierName%></td>
|
<td class="category" id="Edit_SupplierName_<%=id%>" style="display:none;"><input id="SupplierName_<%=id%>" name="SupplierName_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=SupplierName%>" type="text"></td>
|
<td class="category" id="Show_SupplierContact_<%=id%>"><%=SupplierContact%></td>
|
<td class="category" id="Edit_SupplierContact_<%=id%>" style="display:none;"><input id="SupplierContact_<%=id%>" name="SupplierContact_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=SupplierContact%>" type="text"></td>
|
<td class="category" id="Show_SupplierTEL_<%=id%>"><%=SupplierTEL%></td>
|
<td class="category" id="Edit_SupplierTEL_<%=id%>" style="display:none;"><input id="SupplierTEL_<%=id%>" name="SupplierTEL_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=SupplierTEL%>" type="text"></td>
|
<td class="category" id="Show_SupplierAddress_<%=id%>"><%=SupplierAddress%></td>
|
<td class="category" id="Edit_SupplierAddress_<%=id%>" style="display:none;"><input id="SupplierAddress_<%=id%>" name="SupplierAddress_<%=id%>" class="small" style="width:120px;text-align: center;" value="<%=SupplierAddress%>" type="text"></td>
|
<td class="category last" id="Show_SupplierRemarks_<%=id%>"><%=SupplierRemarks%></td>
|
<td class="category last" id="Edit_SupplierRemarks_<%=id%>" style="display:none;"><input id="SupplierRemarks_<%=id%>" name="SupplierRemarks_<%=id%>" class="small" style="width:350px;text-align: center;" value="<%=SupplierRemarks%>" type="text"></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>
|