?? addjiangpin.asp
字號:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權限!</b></font></div>"
response.End
end if
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body>
<br><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="25" bgcolor="f1f1f1">
<div align="center"><font color="#000000">添加新獎品</font></div>
</td>
</tr>
<tr>
<form name="myform" method="post" action="savejiangpin.asp?action=add" onSubmit="return checkkk()" >
<td height="126" bgcolor="#FFFFFF">
<table width="80%" border="0" align="center" cellpadding="2" cellspacing="5">
<tr>
<td width="23%" align="right">獎品名稱: </td>
<td colspan="2">
<input name="shopname" type="text" id="shopname" size="30" class="wenbenkuang">
</td>
</tr>
<tr>
<td width="23%" align="right">規格: </td>
<td colspan="2">
<input name="guige" type="text" id="guige" size="20" class="wenbenkuang">
</td>
</tr>
<tr>
<td width="23%" align="right"> </td>
<td colspan="2">市場價
<input name="shichangjia" type="text" class="wenbenkuang" id="shichangjia" size="6" onKeyPress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))" value="0">
元 所需積分
<input name="jifen" type="text" id="jifen" class="wenbenkuang" size="6" onKeyPress = "return regInput(this, /^\d*\.?\d{0,2}$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/, event.dataTransfer.getData('Text'))" value="50">
</td>
</tr>
<tr>
<td height="18" width="23%" align="right">獎品圖片: </td>
<td height="18" colspan="2">
<input name="shoppic" type="text" class="wenbenkuang" id="shoppic" size="30">
<input type="button" name="Submit2" class="go-wenbenkuang" value="上傳小圖片" onClick="window.open('../upload_flash.asp?formname=myform&editname=shoppic&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
</td>
</tr>
<tr>
<td height="18" width="23%" align="right"> </td>
<td height="18" colspan="2">
<input name="shoppic2" type="text" class="wenbenkuang" id="shoppic2" size="30">
<input type="button" name="Submit2" class="go-wenbenkuang" value="上傳大圖片" onClick="window.open('../upload_flash.asp?formname=myform&editname=shoppic2&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
</td>
</tr>
<tr>
<td valign="top" width="23%" align="right">獎品說明: </td>
<td colspan="2">
<textarea name="shopcontent" class="wenbenkuang" cols="46" rows="8" id="shopcontent"></textarea>
</td>
</tr>
<!--<tr>
<td valign="top"> </td>
<td valign="top">
<%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * From shop_ziduan where ziduanorder=1 ",conn,1,1
%>
<input type="text" name="ml" size="12" value="<%=rs_s("ziduanname")%>">
<%
rs_s.close
set rs_s=nothing
conn.Close
set conn = nothing
%>
</td>
<td colspan="2">
<textarea name="shopmulu" cols="46" rows="8" id="shopmulu"></textarea>
</td>
</tr>-->
<tr>
<td height="32" colspan="2">
<div align="center">
<input name="xianshi" type="checkbox" id="xianshi" value="1">
顯示(指讓不讓用戶在前臺看到)</div>
</td>
<td width="24%" align="center">
<input type="submit" class="go-wenbenkuang" name="Submit" value="添 加">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<br>
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkkk()
{
if(checkspace(document.myform.shopname.value)) {
document.myform.shopname.focus();
alert("請輸入商品名稱!");
return false;
}
if(checkspace(document.myform.shichangjia.value)) {
document.myform.shichangjia.focus();
alert("請輸入市場價格!");
return false;
}
if(checkspace(document.myform.jifen.value)) {
document.myform.jifen.focus();
alert("請輸入所需積分!");
return false;
}
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<script>
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -