?? officegoods_purchase_input.asp
字號:
<%@ Language=VBScript %>
<!--#include file="../dbase.asp"-->
<!--#include file="OfficeGoods_function.asp"-->
<html>
<head>
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<meta name="GENERATOR" Content="Microsoft Visual Studio.NET 7.0">
<link href="../mstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center">今天購買的物品清單</p>
<table width="82%" height="337" border="1" style="border-collapse: collapse" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111">
<tbody>
<tr>
<td height="297" align="center" valign="top">
<div style="width: 100%; height: 297; overflow: auto;">
<%
todayPurchase=WhosePurchase(Session("UserTrueName"),FormatDateTime(now(),2))
'調(diào)用得到用戶某天的購入物品OfficeGoods_function.asp
if isnull(todayPurchase) then
response.Write("今天還沒有登記任何購買的物品")
else
response.Write("<table border='1' cellpadding='0' cellspacing='0'"&_
" style='border-collapse: collapse' bordercolor='#111111' width='100%'>")
response.Write("<tr><td width='30%' align='center'>物品名稱</td>")
response.Write("<td width='5%' align='center' nowrap>數(shù)量</td>")
response.Write("<td width='5%' align='center'nowrap>單位</td>")
response.Write("<td width='15%' align='center'>總額(¥)</td>")
response.Write("<td width='40%' align='center'>備 注</td>")
response.Write("<td width='5%'></td></tr>")
for i= 0 to ubound(todayPurchase,2)
response.Write("<tr>")
response.Write("<td width='30%' align='right'>"& todayPurchase(1,i) &"</td>")
response.Write("<td width='5%' align='right'>"& todayPurchase(2,i) &"</td>")
response.Write("<td width='5%'>"& todayPurchase(2,i) &"</td>")
response.Write("<td width='15%' align='right'>"& todayPurchase(8,i) &"元</td>")
response.Write("<td width='405%'>"& todayPurchase(7,i) &"</td>")
response.Write("<td width='5%'><input type='button' value='刪'"&_
" onclick=""self.location.href='OfficeGoods_purchase_deal.asp?way=delete&id="&todayPurchase(0,i)&"'""></td>")
response.Write("</tr>")
next
response.Write("</table>")
end if
%></div>
</td>
</tr>
<tr>
<td height="38" bgcolor="#993399"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="OfficeGoods_purchase_deal.asp?way=addnew" method="post" target="_self" name="form1">
<tr>
<td height="21" align="center" nowrap ><font color="#00FFFF"> 物品名稱</font><strong>
<input name="GoodsName" type="text" id="GoodsName">
</strong><font color="#00FFFF"> 采購數(shù)量及單位</font>
<input name="PurchaseAmount" type="text" id="PurchaseAmount" size="6" maxlength="6"><input name="unit" type="text" id="unit" size="4" maxlength="4">
<font color="#00FFFF">金額 <INPUT type="text" ID="PurchasePrice" NAME="PurchasePrice" size="5" > 元</font>
<input type=button value="備" onclick="showRemark();"><input type="submit" value="添加"><br>
<textarea id="remark" cols=50 rows=4 name="remark" style="display: none"></textarea></td>
</tr>
</form>
</table></td>
</tr>
</tbody>
</table>
</body>
</html>
<script language=javascript>
<!--
function showRemark(){
if (form1.remark.style.display==''){
form1.remark.style.display='none';}
else {
form1.remark.style.display='';}
}
//-->
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -