?? brand_edit.asp
字號:
<%
'==============================================================
'OA 表單生成器
'版本: 1.1.0 -- 2005-5-24
'程序版權(quán):(c) 2004 by 展亮
'說明:本代碼為自由代碼,用戶可以自由使用,但請保留作者文件頭部說明
' 在使用過程中如出現(xiàn)什么問題請及時與作者聯(lián)系。
' 電子郵件:zlbox@yeah.net QQ:2343397
'=============================================================
'功能:添加/編輯注冊商標
'參數(shù): request.form("addedit_subed")="true"#表單提交; request("id")#要編輯記錄的ID;
'=============================================================
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<!--#include file="../inc/ronger.asp"-->
<%
'response.buffer=false
'------------------------------------------------設(shè)置參數(shù)
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '當前用戶ID
pid=request("id"):if pid="" then pid=0 '記錄ID
'------------------------------------------------
'------------------------------------------------添加/修改記錄
table="tbioaBrand" '表名
if request.form("addedit_subed")="true" then
'表單提交后
if pid=0 then
call insert(table,false)
response.write "<script>alert('注冊商標錄入成功!');this.location='brand_list.asp'</script>"
response.end
else
call update(table,"id",pid,false)
response.write "<script>alert('注冊商標修改成功!');history.go(-2)</script>"
response.end
end if
end if
'--------------------------------------------取記錄
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " where ID="&pid
rs.open sql,oConn,1,1
'------------------------------------------------
function showvalue(field)
if rs.eof then
showvalue=""
else
if (isnull(rs(field))) then showvalue="" else showvalue=Server.HTMLEncode(rs(field))
end if
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<script src="../js/Popup.js"></script>
<script src="../js/formatdate.js"></script>
<script src="../js/front_chec.js"></script>
</head>
<body topmargin="10" leftmargin="10">
<!--#include file="brand_menu.html"-->
<hr width="100%" size=1 color="#000000">
<br>
<div align="center">
<table width="500" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td width="100%" class="tdTop">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="tdTop">
<p align="left"><img border="0" src="../images/icon_title.gif" align="left">錄入注冊商標</p>
</td>
<td width="90" class="tdTop">
<p align="left"><img border="0" src="../images/icon_return.gif" align="left">
<a href="javascript:history.back()" class="linkTop">返回列表</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="25%" class="td1">
<form name="eventfrm" method="POST" action="?id=<%=pid%>" onSubmit="return checknull(this)">
<input type=hidden name="addedit_subed" value="true">
<input type=hidden name="userid" value="<%=LoginID%>">
<table border="0" width="100%" cellspacing="10" cellpadding="0">
<tr>
<td align="right" valign="top" nowrap>登記所:</td>
<td nowrap>
<select size="1" name="area" class="input">
<option value="<%=Session("DepID")%>" <%if area=Session("DepID") then response.write"selected"%>><%=GetTableValue("tbioaDepartment","Name","id",Session("DepID"))%></option>
<%Call pOptions("tbioaDepartment","Name",Session("DepID"),showvalue("area"),"├-")%>
</select> <font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>商標類別:</td>
<td width="400" nowrap>
<select size="1" name="sort" class="input" check_null="請?zhí)顚懮虡祟悇e">
<%Call Options("tbioaBrandSort","name",showvalue("sort"))%>
</select>
<font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>注冊商標名稱:</td>
<td width="400" nowrap><input type="text" name="sbmc" value="<%=showvalue("sbmc")%>" size="40" maxlength="250" class="input" check_null="請?zhí)顚懽陨虡嗣Q"> <font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>使用商品:</td>
<td width="400" nowrap><input type="text" name="sysp" value="<%=showvalue("sysp")%>" size="40" maxlength="250" class="input" check_null="請?zhí)顚懯褂蒙唐?quot;> <font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>商標注冊人:</td>
<td width="400" nowrap><input type="text" name="qymc" value="<%=showvalue("qymc")%>" size="40" maxlength="250" class="input" check_null="請?zhí)顚懮虡俗匀?quot;> <font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>地址:</td>
<td width="400" nowrap><input type="text" name="dz" value="<%=showvalue("dz")%>" size="40" maxlength="250" class="input" check_null="請?zhí)顚懙刂?quot;> <font COLOR="RED">*</font>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>申請日期:</td>
<td width="400" nowrap><input TYPE="TEXT" SIZE="12" MAXLENGTH="12" NAME="sqrq" value="<%=showvalue("sqrq")%>" class="input" check_date="日期格式錯誤" onKeyUp="DateFormat(this,this.value,event,false,'2')"> <a href=# title="選擇日期" onClick="fPopUpDlg('../js/calendar.htm', document.eventfrm.sqrq, 'winpop', 234, 261);return false"><img src="../images/datetime.gif" border=0></a>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>注冊日期:</td>
<td width="400" nowrap><input TYPE="TEXT" SIZE="12" MAXLENGTH="12" NAME="zcrq" value="<%=showvalue("zcrq")%>" class="input" check_date="日期格式錯誤" onKeyUp="DateFormat(this,this.value,event,false,'2')"> <a href=# title="選擇日期" onClick="fPopUpDlg('../js/calendar.htm', document.eventfrm.zcrq, 'winpop', 234, 261);return false"><img src="../images/datetime.gif" border=0></a>
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>注冊證號:</td>
<td width="400" nowrap><input type="text" name="zczh" value="<%=showvalue("zczh")%>" size="40" maxlength="250" class="input">
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>續(xù)展:</td>
<td width="400" nowrap><input type="text" name="xz" value="<%=showvalue("xz")%>" size="40" maxlength="250" class="input">
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>轉(zhuǎn)讓:</td>
<td width="400" nowrap><input type="text" name="zr" value="<%=showvalue("zr")%>" size="40" maxlength="250" class="input">
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>聯(lián)系電話:</td>
<td width="400" nowrap><input type="text" name="lxdh" value="<%=showvalue("lxdh")%>" size="40" maxlength="50" class="input">
</td>
</tr>
<tr>
<td width="100" align="right" valign="top" nowrap>備注:</td>
<td width="400" nowrap><input type="text" name="bz" value="<%=showvalue("bz")%>" size="40" maxlength="250" class="input">
</td>
</tr>
<tr>
<td width="100%" colspan="2" align="center">
<input type="submit" value="確定" class="button0" onmouseout=className="button0" onmouseover=className="button1"> <input type="reset" value="全部重寫" class="button0" onmouseout=className="button0" onmouseover=className="button1">
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="25%" class="tdBottom">
</td>
</tr>
</table>
</div>
</body>
</html>
<%'釋放對象變量
rs.close
oConn.close
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -