edit.asp

来自「物流管理系统,可以用于中小企业,建立自己的内部物流管理.」· ASP 代码 · 共 178 行

ASP
178
字号
<%@ codepage ="936" %>
<%
if instr(session("flag_fyadmin"),"11")=0 then
response.redirect "../login.asp"
response.end
end if
%><!--#include file="../../inc/config.asp"-->
<!--#include file="../../conn/dbconn2.asp" -->
<LINK href="../Style.css" rel=stylesheet type=text/css>
<body bgcolor="#FFFFFF" marginheight=0 marginwidth=0 leftmargin=0>
<Script LANGUAGE="JavaScript">
function check()
{
if (document.Form1.showname.value=="")
{
alert("信息标题不能为空")
document.Form1.showname.focus()
document.Form1.showname.select()
return
}
if (document.Form1.content.value=="")
{
alert("信息内容不能为空")
document.Form1.content.focus()
document.Form1.content.select() 
return
}
document.Form1.submit()
}
</SCRIPT>
<SCRIPT language=javascript>
function PopupCatSel()
{
var selProdWnd=window.open("select_sort.asp","new","resizable=yes,width=580,height=320,top=0,scrollbars=yes");
if(selProdWnd.opener== null) 
selProdWnd.opener = self;
return (false);
}
</SCRIPT>
<SCRIPT language=javascript>
var upfile_obj;
function OnUpFile()
{
upfile_obj.src=upfile_obj.lowsrc;
upfile_obj.src=document.forms["form1"].upfile.value;
}
</SCRIPT>
<%
if not isEmpty(request("info_id")) then
info_id=request("info_id")
else
info_ID=1
end if
sql="select * from info where info_id="+cstr(info_id)+" order by info_ID desc"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
Set rssort= Server.CreateObject("ADODB.Recordset") 
sortsql="select * from class_1 where sortid="&rs("sortid")&""
rssort.open sortsql,conn,1,1
sortname=rssort("sort")
rssort.close
set rstype=server.createobject("adodb.recordset") 
typesql="select * from class_2 where typeid="&rs("typeid")&""
rstype.open typesql,conn,1,1
name=rstype("typename")
rstype.close
%>
<body bgcolor="#FFFFFF" marginheight=0 marginwidth=0 leftmargin=0>
<CENTER>
<FORM method="post" action=Save_Edit.asp?info_id=<%=rs("info_id")%> name="Form1">
<TABLE border=1 cellPadding=4 cellSpacing=0 width="550" style="border-collapse: collapse" bordercolor="#111111" bordercolorlight="#EFEFEF" bordercolordark="#EFEFEF">
<TBODY>
<TR><TD colSpan=3 height="28" bgcolor=#EFEFEF width="542"><b>供求信息审核与修改--</b></TD></TR>
<TR><TD colSpan=3 height="10" width="542" bgcolor="#FBFDFF"></TD></TR>
<TR>
  <TD bgcolor="#FBFDFF"> </TD>
  <TD bgcolor="#FBFDFF">顺序号</TD>
  <TD bgcolor="#FBFDFF"><input name="qorder" type="text" id="qorder" value=<%=rs("qorder")%> size="10"></TD>
</TR>
<TR>
<TD width=41 bgcolor="#FBFDFF"> </TD>
<TD width=78 bgcolor="#FBFDFF">信息标题</TD>
<TD width=407 bgcolor="#FBFDFF"><input type="text" size="50" name="showname" value=<%=rs("showname")%>><font color="#FF6600">*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">信息类别</TD>
<TD width="407" bgcolor="#FBFDFF">
<select name="type">
<OPTION <%if rs("type")="采购" then response.write "selected"%> value="采购">采购</OPTION>
<OPTION <%if rs("type")="供应" then response.write "selected"%> value="供应">供应</OPTION>
<OPTION <%if rs("type")="合作" then response.write "selected"%> value="合作">合作</OPTION>
<OPTION <%if rs("type")="代理" then response.write "selected"%> value="代理">代理</OPTION>
</select><font color="#FF6600">*</font></TD>
</TR>
<TR> 
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">有效期</TD>
<TD width="407" bgcolor="#FBFDFF">
<select name="period"> 
<OPTION <%if rs("period")="一周" then response.write "selected"%> value="一周">一周</OPTION>
<OPTION <%if rs("period")="半月" then response.write "selected"%> value="半月">半月</OPTION>
<OPTION <%if rs("period")="一个月" then response.write "selected"%> value="一个月">一个月</OPTION>
<OPTION <%if rs("period")="三个月" then response.write "selected"%> value="三个月">三个月</OPTION>
<OPTION <%if rs("period")="六个月" then response.write "selected"%> value="六个月">六个月</OPTION>
<OPTION <%if rs("period")="一年" then response.write "selected"%> value="一年">一年</OPTION>
<OPTION <%if rs("period")="长期" then response.write "selected"%> value="长期">长期</OPTION>
</select><font color="#FF6600">*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">行业类别</TD>
<TD width="407" bgcolor="#FBFDFF"><INPUT name=sortid type=hidden value="<%=session("sortid")%>"><INPUT name=typeid type=hidden value="<%=session("typeid")%>">
<INPUT disabled name=cat_sel_name size=30 value="<%=sortname%> >> <%=name%>"> 
<INPUT name=cat onclick=return(PopupCatSel()) type=button value=请选择您的类别> <font color="#FF6600">
*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">信息内容</TD>
<TD width="407" bgcolor="#FBFDFF"><textarea rows="6" cols="50" name="content" style="font-size: 9pt"><%=rs("content")%></textarea><font color="#FF6600">*</TD>
</TR>
<TR>
<TD width=41 bgcolor="#FBFDFF"> </TD>
<TD width=78 bgcolor="#FBFDFF">联系人</TD>
<TD width=407 bgcolor="#FBFDFF"><input type="text" size="20" name="linkman" value=<%=rs("linkman")%>><font color="#FF6600">*</font></TD>
</tr>
<tr> 
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">联系电话</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="25" name="phone" value=<%=rs("phone")%>><font color="#FF6600">*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">公司名称</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="32" name="company" value=<%=rs("company")%>><font color="#FF6600">*</font></TD>
</tr>
<tr>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">公司地址</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="35" name="address" value=<%=rs("address")%>><font color="#FF6600">*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">所属省份</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="20" name="country" value=<%=rs("country")%>><font color="#FF6600">*</font></TD>
</tr>
<tr>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">所属城市</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="20" name="city" value=<%=rs("city")%>><font color="#FF6600">*</font></TD>
</TR>
<TR>
<TD width="41" bgcolor="#FBFDFF"> </TD>
<TD width="78" bgcolor="#FBFDFF">电子邮件</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="30" name="email" value=<%=rs("mail")%>><font color="#FF6600">*</font></TD>
</tr>
<tr>
<TD width="42" bgcolor="#FBFDFF"> </TD>
<TD width="77" bgcolor="#FBFDFF">邮政编码</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="16" name="postcode" value=<%=rs("postcode")%>></TD>
</TR>
<TR>
<TD width="42" bgcolor="#FBFDFF"> </TD>
<TD width="77" bgcolor="#FBFDFF">公司传真</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="16" name="fax" value=<%=rs("fax")%>><font color="#FF6600">*</font></TD>
</tr>
<tr> 
<TD width="42" bgcolor="#FBFDFF"> </TD>
<TD width="77" bgcolor="#FBFDFF">公司网址</TD>
<TD width="407" bgcolor="#FBFDFF"><input type="text" size="30" name="web" value=<%=rs("web")%>></TD>
</TR>
<TR><TD colSpan=3 height="10" width="542" bgcolor="#FBFDFF"></TD></TR>
<TR height=30 bgcolor=#EFEFEF>
<TD width="542" align="center" colspan="3"><input type="button" value="修 改" onclick="check()">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="smallInput"value="返 回" onclick=javascript:history.go(-1)></TD>
</TR>
</table>
</form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?