📄 newprintsetup.asp
字号:
<!--#include file="../config.ini" -->
<!--#include file="../commfunction.inc" -->
<%
if request("id")<>"" then
dim connq
dim rsq
set connq=server.CreateObject("adodb.connection")
set rsq=server.CreateObject("adodb.recordset")
connq.Open connstring
rsq.Open "select * from printsetup where id="&request("id"),connq,2,3,1
strline=rsq("line")
strtype=rsq("type")
rsq.Close
set rsq=nothing
connq.Close
set connq=nothing
else
strmaxdiscount=0
end if
if request("line")<>"" then
dim conn
dim rs
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
conn.Open connstring
if request("id")="" then
rs.Open "select * from printsetup",conn,2,3,1
rs.AddNew
else
rs.Open "select * from printsetup where id="&request("id"),conn,2,3,1
end if
rs("line")=request("line")
rs.Update
rs.Close
set rs=nothing
conn.Close
set conn=nothing
if Request("uploadpic")=1 then
%>
<script>
//window.opener.location.reload(true);
window.location='uploadpic.asp?id=<%=request("id")%>'
</script>
<%
else
%>
<script>
window.opener.location.reload(true);
window.close();
</script>
<%
end if
end if
%>
<script language="javascript">
function save(){
if (form1.line.value==''){
alert('请输入每页行数');
form1.line.focus();
return;
}
if (form1.line.value!=''){
if (isNaN(form1.line.value)){
alert('请输入数字');
form1.line.focus();
return;
}
}
form1.submit();
}
</script>
<HTML><HEAD><TITLE>修改打印参数</TITLE>
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<form name=form1 method="post" id=form1>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><strong><font size="2" class=title><b>修改打印参数</b></font></strong></td>
<td> </td>
</tr>
<tr >
<td height="16" colspan="2" background="../images/title.gif"> </td>
</tr>
<tr>
<td height=4></td>
</tr>
<tr><td>
<div align="center" style="cursor:hand"><a onclick="save();"><img src="../images/button_save.gif"></a> <a onclick="window.close();"><img src="../images/button_cancel.gif"></a>
</div></td>
</tr>
</table>
<table cellspacing="1" bgcolor="#FFFFFF" width=100% >
<tr bgcolor="white">
<td width="15%" nowrap bgcolor="DEDFDE"> <div align="center">打印类型</div></td>
<td width="35%" bgcolor="EFEFEF"><%=strtype%></td>
<td width="15%" nowrap bgcolor="DEDFDE"> <div align="center">每页细目行数</div></td>
<td width="35%" bgcolor="EFEFEF"> <input name=line type=text value="<%=strline%>" size="8"></td>
</tr>
<tr bgcolor="white">
<td width="15%" bgcolor="DEDFDE" nowrap> <div align="center">上传LOGO?</div></td>
<td width="35%" bgcolor="EFEFEF"><input type=checkbox name="uploadpic" value=1></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center"></div></td>
<td width="35%" bgcolor="EFEFEF"> </td>
</tr>
<tr bgcolor="white">
<td width="15%" bgcolor="DEDFDE" > <div align="center"></div></td>
<td width="35%" bgcolor="EFEFEF"> </td>
<td width="15%" bgcolor="DEDFDE"> <div align="center"></div></td>
<td width="35%" bgcolor="EFEFEF"> </td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -