<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
if isDepartment("040103")=0 then
|
Response.Redirect "/"
|
Response.End()
|
end If
|
|
searchTXT=SafeRequest(Request("searchTXT"))
|
strItmClassID=SafeRequest(Request("strItmClassID"))
|
OldvID=SafeRequest(Request("OldvID"))
|
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
'默认显示字段
|
If OrdState="" Then OrdState=0
|
If OrdClassList="" Then OrdClassList="0"
|
If OrdClassList="0" Then
|
OrdClassName="未审核"
|
ElseIf OrdClassList="1" Then
|
OrdClassName="已审核"
|
Else
|
OrdClassName="全部"
|
End if
|
|
'各种返回信息
|
SystemMessageType=trim(Request("SystemMessageType"))
|
SMT=trim(Request("SMT"))
|
if SystemMessageType<>"" then
|
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="停用物料完成!!"
|
elseif SMT="7" then
|
SystemMessageTXT="物料号重复!!"
|
elseif SMT="8" then
|
SystemMessageTXT="启用物料完成!!"
|
elseif SMT="9" then
|
SystemMessageTXT="条码重复!!"
|
end if
|
end if
|
|
|
If OrdState<>"0" then
|
OrdListName = ServiceOrdStateA(OrdState)&"记录"
|
Else
|
OrdListName = "物品资料"
|
End If
|
|
'物品类型表列
|
If strItmClassID="" Then
|
strItmClassName="全部"
|
strItmClassID=0
|
End If
|
strItmClassTypes = "0,全部|"
|
sql="select vID,vtext,vType,vOrder2,vOrderInt=(select right('0000'+convert(nvarchar(5),count(strItmID)+1),4) from tblStItm where strItmClassID=vID) from dictionary where vtitle='strItmClass' and vType>0 order by vOrder"
|
rs.open Sql,objConn,1,1
|
do while not rs.Eof
|
ClassName=rs("vtext")
|
vType=rs("vType")
|
vOrder2=rs("vOrder2")
|
vOrderInt=rs("vOrderInt")
|
If vOrder2<>"" Then
|
NewClassID=vOrder2&vOrderInt
|
Else
|
NewClassID=ClassName&vOrderInt
|
End If
|
If vType>1 Then
|
vTypeTXT=""
|
For I = 2 to vType
|
vTypeTXT=vTypeTXT&"--"
|
Next
|
ClassName=vTypeTXT&ClassName
|
End If
|
If CInt(strItmClassID)=rs("vID") Then strItmClassName = ClassName
|
strItmClassTypes = strItmClassTypes & rs("vID") &","& ClassName &","& NewClassID & "|"
|
rs.movenext
|
Loop
|
rs.close()
|
strItmClassTypes = left(strItmClassTypes,len(strItmClassTypes)-1)
|
strItmClassTypesPS = SPLIT(strItmClassTypes,"|")
|
|
|
page_URL="&searchTXT="&searchTXT&"&strItmClassID="&strItmClassID
|
%>
|
<!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><%If searchTXT<>"" then%>物品资料查询 <%=searchTXT%><%else%><%=OrdDateTypeName1&" "&OrdListName%><%End if%></h5>
|
<ul class="links">
|
<%If isDepartment("040103")=1 Then%><li><a onclick="javascript:dictionaryCreate.style.display='block';document.all.strItmBarcode.focus();">新建</a></li><%End If%>
|
<%If isDepartment("040103")=1 Then%><li><a onClick="form1_dictionary_update()">修改</a></li><%End If%>
|
<%If isDepartment("040103")=1 Then%><li><a onClick="javascript:JS_StItmDel()">停用</a></li><li><a onClick="javascript:JS_StItmEnable()">启用</a></li><%End If%>
|
<li><a href="?searchTXT=常用物品">常用物品</a></li>
|
<li>
|
<%
|
'下拉菜单设定
|
DownMenuName="分类" '菜单名称
|
DownMenuNameID="strItmClassID" '菜单ID
|
DownMenuOldName=strItmClassName '默认值名称
|
DownMenuOldID=strItmClassID '默认值ID
|
%>
|
<div class="search">
|
<div name="DownMenu_container" id="<%=DownMenuNameID%>_container" class="select-container" style="overflow: hidden;cursor:pointer" onclick="JS_DownMenu('<%=DownMenuNameID%>')">
|
<span class="select-content" style="width: 46px;"><%=DownMenuName%>:<%=DownMenuOldName%></span><span class="arrow" id="<%=DownMenuNameID%>_arrow" name="DownMenu_arrow"></span>
|
</div>
|
<div name="DownMenu_list" id="<%=DownMenuNameID%>_list" class="select-list scroll-pane" style="overflow: hidden; position: absolute; background-color: white; width: 90px; display: none;background-position: initial initial; background-repeat: initial initial;margin-left: 69px;">
|
<div class="jspContainer" style="width: 90px;">
|
<div style="padding: 0px; top: 0px; width: 90px;">
|
<%for z = 0 to UBOUND(strItmClassTypesPS)
|
strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
|
vID=strItmClassTypesPS1(0)
|
vtext=strItmClassTypesPS1(1)
|
%>
|
<span title="<%=vtext%>" name="DownMenu_<%=DownMenuNameID%>" onmouseover="JS_DownMenuMouseover('<%=DownMenuNameID%>',<%=z%>)" onclick="JS_DownMenuJump('<%="?"&mid(page_URL,2)%>','<%=DownMenuOldID%>','<%=DownMenuNameID%>','<%=vID%>')" class="list-option<%if vID=DownMenuOldID then Response.Write " option"%>"><%=vtext%></span>
|
<%next%>
|
</div>
|
</div>
|
</div>
|
</div>
|
<input id="DownMenuTime" type="hidden" value="">
|
</li>
|
<div class="search">
|
<form action="?" method="post">
|
<div class="input">
|
<input type="text" id="searchTXT" 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="69"
|
form1.submit();
|
}
|
//停用字典
|
function JS_StItmDel(){
|
document.form1.action = "admin_save.gds?State=0";
|
document.form1.admin_save.value="71"
|
form1.submit();
|
}
|
//启用字典
|
function JS_StItmEnable(){
|
document.form1.action = "admin_save.gds?State=1";
|
document.form1.admin_save.value="71"
|
form1.submit();
|
}
|
//选择修改字典
|
function form1_dictionary_Edit(id){
|
if (document.getElementById('Show_strItmNo_'+id).style.display=="none")
|
{
|
document.getElementById('Show_strItmNo_'+id).style.display='';
|
document.getElementById('Edit_strItmNo_'+id).style.display='none';
|
document.getElementById('strItmNo_'+id).disabled=true;
|
document.getElementById('Show_strItmBarcode_'+id).style.display='';
|
document.getElementById('Edit_strItmBarcode_'+id).style.display='none';
|
document.getElementById('strItmBarcode_'+id).disabled=true;
|
document.getElementById('Show_strItmPinyin_'+id).style.display='';
|
document.getElementById('Edit_strItmPinyin_'+id).style.display='none';
|
document.getElementById('strItmPinyin_'+id).disabled=true;
|
document.getElementById('Show_strItmName_'+id).style.display='';
|
document.getElementById('Edit_strItmName_'+id).style.display='none';
|
document.getElementById('strItmName_'+id).disabled=true;
|
document.getElementById('Show_strItmUnit_'+id).style.display='';
|
document.getElementById('Edit_strItmUnit_'+id).style.display='none';
|
document.getElementById('strItmUnit_'+id).disabled=true;
|
document.getElementById('Show_strItmClass_'+id).style.display='';
|
document.getElementById('Edit_strItmClass_'+id).style.display='none';
|
document.getElementById('strItmClassID_'+id).disabled=true;
|
document.getElementById('Show_PurchasePrice_'+id).style.display='';
|
document.getElementById('Edit_PurchasePrice_'+id).style.display='none';
|
document.getElementById('PurchasePrice_'+id).disabled=true;
|
document.getElementById('Show_SellingPrice_'+id).style.display='';
|
document.getElementById('Edit_SellingPrice_'+id).style.display='none';
|
document.getElementById('SellingPrice_'+id).disabled=true;
|
document.getElementById('Show_CreditsPrice_'+id).style.display='';
|
document.getElementById('Edit_CreditsPrice_'+id).style.display='none';
|
document.getElementById('CreditsPrice_'+id).disabled=true;
|
document.getElementById('Show_strItmRemarks_'+id).style.display='';
|
document.getElementById('Edit_strItmRemarks_'+id).style.display='none';
|
document.getElementById('strItmRemarks_'+id).disabled=true;
|
document.getElementById('Show_isCarStItm_'+id).style.display='';
|
document.getElementById('Edit_isCarStItm_'+id).style.display='none';
|
document.getElementById('isCarStItm_'+id).disabled=true;
|
}
|
else
|
{
|
document.getElementById('Show_strItmNo_'+id).style.display='none';
|
document.getElementById('Edit_strItmNo_'+id).style.display='';
|
document.getElementById('strItmNo_'+id).disabled=false;
|
document.getElementById('Show_strItmBarcode_'+id).style.display='none';
|
document.getElementById('Edit_strItmBarcode_'+id).style.display='';
|
document.getElementById('strItmBarcode_'+id).disabled=false;
|
document.getElementById('Show_strItmPinyin_'+id).style.display='none';
|
document.getElementById('Edit_strItmPinyin_'+id).style.display='';
|
document.getElementById('strItmPinyin_'+id).disabled=false;
|
document.getElementById('Show_strItmName_'+id).style.display='none';
|
document.getElementById('Edit_strItmName_'+id).style.display='';
|
document.getElementById('strItmName_'+id).disabled=false;
|
document.getElementById('Show_strItmUnit_'+id).style.display='none';
|
document.getElementById('Edit_strItmUnit_'+id).style.display='';
|
document.getElementById('strItmUnit_'+id).disabled=false;
|
document.getElementById('Show_strItmClass_'+id).style.display='none';
|
document.getElementById('Edit_strItmClass_'+id).style.display='';
|
document.getElementById('strItmClassID_'+id).disabled=false;
|
document.getElementById('Show_PurchasePrice_'+id).style.display='none';
|
document.getElementById('Edit_PurchasePrice_'+id).style.display='';
|
document.getElementById('PurchasePrice_'+id).disabled=false;
|
document.getElementById('Show_SellingPrice_'+id).style.display='none';
|
document.getElementById('Edit_SellingPrice_'+id).style.display='';
|
document.getElementById('SellingPrice_'+id).disabled=false;
|
document.getElementById('Show_CreditsPrice_'+id).style.display='none';
|
document.getElementById('Edit_CreditsPrice_'+id).style.display='';
|
document.getElementById('CreditsPrice_'+id).disabled=false;
|
document.getElementById('Show_strItmRemarks_'+id).style.display='none';
|
document.getElementById('Edit_strItmRemarks_'+id).style.display='';
|
document.getElementById('strItmRemarks_'+id).disabled=false;
|
document.getElementById('Show_isCarStItm_'+id).style.display='none';
|
document.getElementById('Edit_isCarStItm_'+id).style.display='';
|
document.getElementById('isCarStItm_'+id).disabled=false;
|
}
|
}
|
//新建字典-关闭上传窗口
|
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>
|
<%'默认物料号
|
sql="select top 1 strItmNo from tblStItm where strItmNo is not null order by strItmID desc"
|
rs.open sql,objConn,1,1
|
if not rs.eof then
|
strItmNo=rs("strItmNo")
|
MyString = strItmNo
|
MyNum = 0
|
For I = 1 to Len(MyString)
|
MyTemp = Mid(MyString,i,1)
|
If not IsNumeric(MyTemp) Then
|
myNum = MyNum + 1
|
Else
|
exit for
|
End If
|
Next
|
If IsNumeric(Mid(strItmNo,myNum+1)) Then
|
NewStrItmNo=Mid(strItmNo,1,myNum)&(Mid(strItmNo,myNum+1)+1)
|
End If
|
end If
|
rs.close()
|
NewPurchasePrice=0
|
NewSellingPrice=0
|
NewCreditsPricee=0
|
If session("strItmNo")<>"" Then NewStrItmNo=session("strItmNo")
|
If session("PurchasePrice")<>"" Then NewPurchasePrice=session("PurchasePrice")
|
If session("SellingPrice")<>"" Then NewSellingPrice=session("SellingPrice")
|
If session("CreditsPricee")<>"" Then NewCreditsPricee=session("CreditsPricee")
|
%>
|
<form id="form2" name="form2" action="admin_save.gds" method="post">
|
<input name="admin_save" type="hidden" value="70">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<div class="dialogJcontent">
|
<div class="dialogJbody" id="dialogJbody" style="height: 335pxpx;">
|
<div class="modify-album-name">
|
<span style="margin-left: 12px;">物料号:</span>
|
<input id="strItmNo" name="strItmNo" type="text" value="<%=NewStrItmNo%>" maxlength="99/" style="width:80px;">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">名称:</span>
|
<input id="strItmName" name="strItmName" type="text" value="<%=session("strItmName")%>" maxlength="99/">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 12px;">拼音码:</span>
|
<input id="strItmPinyin" name="strItmPinyin" type="text" value="<%=session("strItmPinyin")%>" maxlength="99/" style="width:80px;">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 12px;">条形码:</span>
|
<input id="strItmBarcode" name="strItmBarcode" type="text" value="<%=session("strItmBarcode")%>" maxlength="99/">
|
</div>
|
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">单位:</span>
|
<input id="strItmUnit" name="strItmUnit" type="text" value="<%=session("strItmUnit")%>" maxlength="99/" style="width:80px;">
|
<span> 分类:</span>
|
<select name="strItmClassID" id="strItmClassID" style="padding: 5px 0 5px 8px;" onchange="form2_FromClass()">
|
<%for z = 1 to UBOUND(strItmClassTypesPS)
|
strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
|
vID=strItmClassTypesPS1(0)
|
vtext=strItmClassTypesPS1(1)
|
%>
|
<option value="<%=vID%>"<%If OldvID=vID Then Response.Write " selected"%>><%=vtext%></option>
|
<%next%>
|
</select>
|
<script LANGUAGE="javascript">
|
function form2_FromClass(){
|
strItmClassID = document.form2.strItmClassID.value;
|
NewStrItmNo='';
|
<%
|
for z = 1 to UBOUND(strItmClassTypesPS)
|
strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
|
%>
|
if(strItmClassID=='<%=strItmClassTypesPS1(0)%>') {
|
NewStrItmNo='<%=strItmClassTypesPS1(2)%>';
|
}
|
<%Next%>
|
document.form2.strItmNo.value = NewStrItmNo;
|
lbs_driving();
|
}
|
</script>
|
</div>
|
<div class="modify-album-name">
|
<span>标准进价:</span>
|
<input id="PurchasePrice" name="PurchasePrice" type="text" value="<%=NewPurchasePrice%>" maxlength="99/" style="width:50px;"> 元
|
</div>
|
<div class="modify-album-name">
|
<span>销售价:</span>
|
<input id="SellingPrice" name="SellingPrice" type="text" value="<%=NewSellingPrice%>" maxlength="99/" style="width:50px;"> 元
|
<span> 积分:</span>
|
<input id="CreditsPrice" name="CreditsPrice" type="text" value="<%=NewCreditsPrice%>" maxlength="99/" style="width:50px;">
|
</div>
|
<div class="modify-album-name">
|
<span style="margin-left: 24px;">备注:</span>
|
<input id="strItmRemarks" name="strItmRemarks" type="text" value="<%=session("strItmRemarks")%>" 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>
|
<%If SMT="3" Or SMT="9" Or SMT="7" Or SMT="2" Then%><script LANGUAGE="javascript">dictionaryCreate.style.display='block';document.all.strItmBarcode.focus();</script><%End If%>
|
<!-- end box / title -->
|
<%
|
acc1=request("page")
|
if acc1=empty then acc1=clng(1)
|
QuantityInt = 20
|
acc2=0
|
acc3=0
|
|
If searchTXT="常用物品" Then
|
searchSql=" and strItmState=1 and isCarStItm=1 "
|
elseif searchTXT<>"" Then
|
searchSql=" and (strItmName like '%"&searchTXT&"%' or strItmNo='"&searchTXT&"' or strItmPinyin like '%"&searchTXT&"%') "
|
else
|
searchSql=" and strItmState=1 "
|
end If
|
If strItmClassID<>"" and strItmClassID<>"0" Then
|
searchSql=searchSql&" and strItmClassID="&strItmClassID
|
End If
|
|
sql="select * from tblStItm,dictionary where strItmClassID=vID and vtitle='strItmClass'"&searchSql&" order by strItmID desc"
|
'Response.Write sql
|
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" style="overflow:auto">
|
<form id="form1" name="form1" action="" method="post">
|
<input name="admin_save" type="hidden" value="52">
|
<input name="Car_Check" type="hidden" value="">
|
<input name="searchTXT" type="hidden" value="<%=searchTXT%>">
|
<input name="page" type="hidden" value="<%=acc1%>">
|
<table>
|
<thead>
|
<tr style="white-space: nowrap;">
|
<th class="selected"><input type="checkbox" class="checkall" /></th>
|
<th>物料号</th>
|
<th>条形码</th>
|
<th>拼音码</th>
|
<th>物品名称</th>
|
<th class="selected">单位</th>
|
<th class="selected">分类</th>
|
<th class="selected">标准进价</th>
|
<th class="selected">销售价</th>
|
<th class="selected">积分</th>
|
<th>说明备注</th>
|
<th class="selected">常用物品</th>
|
<th class="selected last">停用状态</th>
|
</tr>
|
</thead>
|
<tbody>
|
|
<%i=1
|
do while not rs.Eof and i<=QuantityInt
|
strItmID = rs("strItmID") '物品ID
|
id = strItmID '物品ID
|
strItmNo = rs("strItmNo") '物料号
|
strItmPinyin = rs("strItmPinyin") '拼音码
|
strItmName = rs("strItmName") '物品名称
|
strItmBarcode = rs("strItmBarcode") '条形码
|
PurchasePrice = FN(rs("PurchasePrice")) '标准进价
|
SellingPrice = FN(rs("SellingPrice")) '标准售价
|
CreditsPrice = FN(rs("CreditsPrice")) '积分售价
|
strItmUnit = rs("strItmUnit") '单位
|
strItmClassID = rs("strItmClassID") '分类ID
|
strItmClass = rs("vtext") '分类名称
|
strItmRemarks = rs("strItmRemarks") '说明备注
|
strItmState = rs("strItmState") '停用状态 (0停用,1正常)
|
isCarStItm = rs("isCarStItm") '常用物品(0否,1是)
|
|
If PurchasePrice="" Or PurchasePrice="0" Then
|
PurchasePriceTXT = "--"
|
Else
|
PurchasePriceTXT = PurchasePrice&"元"
|
End If
|
If SellingPrice="" Or SellingPrice="0" Then
|
SellingPriceTXT = "--"
|
Else
|
SellingPriceTXT = SellingPrice&"元"
|
End If
|
If CreditsPrice="" Or CreditsPrice="0" Then
|
CreditsPriceTXT = "--"
|
Else
|
CreditsPriceTXT = CreditsPrice
|
End If
|
If strItmState="0" Then
|
strItmStateTXT = "√"
|
Else
|
strItmStateTXT = ""
|
End If
|
If isCarStItm="1" Then
|
isCarStItmTXT = "√"
|
Else
|
isCarStItmTXT = ""
|
End If
|
i=i+1
|
|
%>
|
|
<tr style="white-space: nowrap;">
|
<input name="strItmID_<%=id%>" type="hidden" value="<%=strItmID%>">
|
<td class="selected"><input type="checkbox" id="ID_<%=id%>" name="ID" value="<%=id%>" onclick="javascript:form1_dictionary_Edit('<%=id%>')"/></td>
|
<td class="selected" id="Show_strItmNo_<%=id%>"><%=strItmNo%></td>
|
<td class="selected" id="Edit_strItmNo_<%=id%>" style="display:none;"><input id="strItmNo_<%=id%>" name="strItmNo_<%=id%>" class="small" style="width:60px;text-align: center;" value="<%=strItmNo%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_strItmBarcode_<%=id%>"><%=strItmBarcode%></td>
|
<td class="selected" id="Edit_strItmBarcode_<%=id%>" style="display:none;"><input id="strItmBarcode_<%=id%>" name="strItmBarcode_<%=id%>" class="small" style="width:118px;text-align: center;" value="<%=strItmBarcode%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_strItmPinyin_<%=id%>"><%=strItmPinyin%></td>
|
<td class="selected" id="Edit_strItmPinyin_<%=id%>" style="display:none;"><input id="strItmPinyin_<%=id%>" name="strItmPinyin_<%=id%>" class="small" style="width:60px;text-align: center;" value="<%=strItmPinyin%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_strItmName_<%=id%>"><%=strItmName%></td>
|
<td class="category" id="Edit_strItmName_<%=id%>" style="display:none;"><input id="strItmName_<%=id%>" name="strItmName_<%=id%>" class="small" style="width:200px;text-align: center;" value="<%=strItmName%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_strItmUnit_<%=id%>"><%=strItmUnit%></td>
|
<td class="selected" id="Edit_strItmUnit_<%=id%>" style="display:none;"><input id="strItmUnit_<%=id%>" name="strItmUnit_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=strItmUnit%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_strItmClass_<%=id%>"><%=strItmClass%></td>
|
<td class="selected" id="Edit_strItmClass_<%=id%>" style="display:none;"><select name="strItmClassID_<%=id%>" id="strItmClassID_<%=id%>" style="padding: 5px 0 5px 8px;" disabled="true">
|
<%for z = 1 to UBOUND(strItmClassTypesPS)
|
strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
|
vID=strItmClassTypesPS1(0)
|
vtext=strItmClassTypesPS1(1)
|
%>
|
<option value="<%=vID%>"<%If CInt(vID)=strItmClassID Then Response.Write " selected"%>><%=vtext%></option>
|
<%next%>
|
</select></td>
|
<td class="selected" id="Show_PurchasePrice_<%=id%>"><%=PurchasePriceTXT%></td>
|
<td class="selected" id="Edit_PurchasePrice_<%=id%>" style="display:none;"><input id="PurchasePrice_<%=id%>" name="PurchasePrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=PurchasePrice%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_SellingPrice_<%=id%>"><%=SellingPriceTXT%></td>
|
<td class="selected" id="Edit_SellingPrice_<%=id%>" style="display:none;"><input id="SellingPrice_<%=id%>" name="SellingPrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=SellingPrice%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_CreditsPrice_<%=id%>"><%=CreditsPriceTXT%></td>
|
<td class="selected" id="Edit_CreditsPrice_<%=id%>" style="display:none;"><input id="CreditsPrice_<%=id%>" name="CreditsPrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=CreditsPrice%>" type="text" disabled="true"></td>
|
<td class="category" id="Show_strItmRemarks_<%=id%>"><%=strItmRemarks%></td>
|
<td class="category" id="Edit_strItmRemarks_<%=id%>" style="display:none;"><input id="strItmRemarks_<%=id%>" name="strItmRemarks_<%=id%>" class="small" style="width:300px;text-align: center;" value="<%=strItmRemarks%>" type="text" disabled="true"></td>
|
<td class="selected" id="Show_isCarStItm_<%=id%>"><%=isCarStItmTXT%></td>
|
<td class="selected" id="Edit_isCarStItm_<%=id%>" style="display:none;"><input type="checkbox" id="isCarStItm_<%=id%>" name="isCarStItm_<%=id%>" value="1"<%If isCarStItm="1" Then Response.Write " checked"%> disabled="true"></td>
|
<td class="selected category2 last"><%=strItmStateTXT%></td>
|
</tr>
|
<%rs.movenext
|
loop
|
rs.close()
|
%>
|
<%for j=i to 20%>
|
<tr>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </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"-->
|
<IFRAME id="HiddenFrame" name="HiddenFrame" WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#ffffff></IFRAME>
|
</body>
|
</html>
|