?? print_buy.asp
字號:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<html>
<head>
<title><%=dianming%> - 打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
<script language=javascript>
function preview() {
bdhtml=window.document.body.innerHTML;
sprnstr="<!--startprint-->";
eprnstr="<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
window.document.body.innerHTML=bdhtml;
}
</script>
</HEAD>
<BODY>
<%
if fla2="0" then
%>
<br><center><font color="#FF0000">你不具備此權限,請與管理員聯系!</font></center>
<%
response.end
end if
%>
<%
nowku=request("ku")
nowhuohao=request("huohao")
nowshulian=request("shulian")
nowid_login=request("id_login")
set rs_buy=conn.execute("select * from buy order by id desc")
nownumber=rs_buy("id")+1000000
set rs_ku=conn.execute("select ku from ku where id="&nowku)
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
set rs_bigclass=conn.execute("select bigclass from bigclass where id="&rs_produit("id_bigclass"))
set rs_smallclass=conn.execute("select smallclass from smallclass where id="&rs_produit("id_smallclass"))
%>
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21" align="center"><img src="../images/print.jpg" align="absmiddle" style="cursor:hand;" onClick="preview();window.close()"></td>
</tr>
</table>
<!--startprint-->
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21" align="center"><h1>商品入庫單</h1></td>
</tr>
<tr>
<td height="21" align="right">
客戶名稱:<input type="text" value="" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
入庫日期:<input type="text" value="<%=rs_buy("selldate")%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
發票號碼:<input type="text" value="<%=nownumber%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
</td>
</tr>
</table>
<table width="98%" border="1" cellspacing="1" cellpadding="2" align="center">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30">貨號</th>
<th>產品名稱</th>
<th>數量</th>
<th>單位</th>
<th>單價</th>
<th>金額</th>
</tr>
<tr bgcolor="#ececec" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#ececec'">
<td align="center" height="25"><%if rs_produit.eof then%><%=rs_buy("huohao")%><%else%><%=rs_produit("huohao")%><%end if%></td>
<td align="center"><%if rs_produit.eof then%><%=rs_buy("title")%><%else%><%=rs_produit("title")%><%end if%></td>
<td align="center"><%=rs_buy("shulian")%></td>
<td align="center"><%=rs_produit("danwei")%></td>
<td align="center"><%=rs_produit("price2")%></td>
<td align="center"><%=rs_produit("price2")*rs_buy("shulian")%></td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21" align="right">
經辦人:<input type="text" value="<%=nowid_login%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
付款人:<input type="text" value="<%=nowid_login%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
</td>
</tr>
</table>
<!--endprint-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -