📄 edit_enter.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/ServerControl.asp" -->
<!--#include file="../include/check_session.asp" -->
<%
dim str,member_id
member_id = Session("member_id")
str = "select * from v_enter where member_id = " & member_id
session("rs").open str,session("conn")
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="../enterprise/admin_enter.asp" method="post" enctype="multipart/form-data" name="frmEnter">
<table width="400" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#dddddd">
<tr bgcolor="#FFFFFF">
<td width="60">企业名称</td>
<td colspan="2"><input name="name" type="text" id="name" value="<%= session("rs")("name") %>" style="width:200;"></td>
<td width="140" align="right"> 企业类型 <%
dim cmbtype
set cmbtype = new DBCombo
cmbtype.name = "type"
cmbtype.selected = session("rs")("type_id")
cmbtype.writehtml "select * from enterprise_type",session("conn")
%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="60">法人代表</td>
<td width="140"><input name="corporation" type="text" id="corporation" value="<%= session("rs")("corporation") %>"></td>
<td width="60">联系人</td>
<td width="140"><a href="javascript:window.open('','_blank')"><input type="text" name="contact" value="<%= session("rs")("member_name") %>" readonly="true" style="cursor:hand;"></a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="60">地址</td>
<td width="140"><input type="text" name="address" value="<%= session("rs")("address") %>"></td>
<td width="60">主页</td>
<td width="140"><input type="text" name="homepage" value="<%= session("rs")("homepage") %>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="60">主营业务</td>
<td colspan="3"><input type="text" name="main_business" value="<%= session("rs")("main_business") %>" style="width:346;"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td >企业图片</td>
<td colspan="3" align="right"> <% If session("rs")("pic").ActualSize <> 0 Then %> <a href="theEnterImg.asp?id=<%= session("rs")("id") %>" target="_blank">查看图片</a>
<% End If %> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4"><input type="file" name="enter_pic" style="width:400;"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4">企业介绍</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4" valign="top"><textarea name="intro" style="width:400;height:150;"><%= session("rs")("intro") %></textarea></td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td colspan="4"><input type="submit" name="Submit" value="修 改">
<input name="member_id" type="hidden" value="<%= session("rs")("member_id") %>">
<input name="action" type="hidden" id="action" value="edit"> <input name="id" type="hidden" id="id"<%= session("rs")("id") %>>
<input name="reset" type="button" id="reset" value="重 置">
<input name="cancel" type="button" id="cancel" value="取 消" onClick="history.back();"></td>
</tr>
</table>
</form>
<%
session("rs").close
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -