?? xggq.asp
字號:
<!--#include file="dbpath/dbpath.asp"-->
<%
if request.cookies("okadmin")="" then
response.redirect "login.asp"
end if
response.buffer=true
%>
<html>
<head>
<title>企業信息發布</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css"><!-- td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
a:link { text-decoration: none; color: blue }
a:visited { text-decoration: none; color: #993333 }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
<script language="JavaScript">
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
</script>
<script LANGUAGE="javascript">
<!--
function FrmAddLink_onsubmit() {
if (document.xggq.typeid.value=="")
{
alert("對不起,行業類型沒有選擇!")
document.xggq.typeid.focus()
return false
}
else if (document.xggq.txtcontop.value=="")
{
alert("對不起,企業名稱沒有輸入!")
document.xggq.txtcontop.focus()
return false
}
else if (document.xggq.txtgq.value=="")
{
alert("對不起,企業類型沒有選擇!")
document.xggq.txtgq.focus()
return false
}
else if(document.xggq.txtcontent.value=="")
{
alert("對不起,企業信息沒有輸入!")
document.xggq.txtcontent.focus()
return false
}
else if(document.xggq.txtcontent.value.length>500)
{
alert("對不起,企業信息請控制在250字以內!")
document.xggq.txtcontent.focus()
return false
}
else if (document.xggq.txtgs.value=="")
{
alert("對不起,電話沒有輸入!")
document.xggq.txtgs.focus()
return false
}
else if (document.xggq.txtname.value=="")
{
alert("對不起,聯系人沒有輸入!")
document.xggq.txtname.focus()
return false
}
else if (document.xggq.txtaddress.value=="")
{
alert("對不起,公司地址沒有輸入!")
document.xggq.txtaddress.focus()
return false
}
else if (document.xggq.txtcode.value=="")
{
alert("對不起,郵政編碼沒有輸入!")
document.xggq.txtcode.focus()
return false
}
else if (document.xggq.txtphone.value=="")
{
alert("對不起,網址沒有輸入!")
document.xggq.txtphone.focus()
return false
}
else if (document.xggq.txtemail.value=="")
{
alert("對不起,email沒有輸入!")
document.xggq.txtemail.focus()
return false
}
}
//-->
</script>
<%
dim strsql
dim rs
dim ssubject
dim smemo
useridtxt=request("userid")
pagetxt=request("page")
lbidtxt=request("lbid")
set rs=server.createobject("adodb.recordset")
strsql="select * from gq WHERE ID=" & useridtxt
rs.open strsql,conn,1,1
%>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<table border="0" width="478" cellspacing="0" cellpadding="0">
<center>
<tr>
</center>
<td bgcolor="#FFFFFF" width="315" valign="top">
<table border="2" width="100%" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="0" width="510">
</center>
<tr>
<td valign="top" width="443">
<p align="right"><font class="d"><a href="manage.asp">回到管理首頁</a></font>
| <a href="new.asp" target="_parent">最新企業信息</a> | <a href="addgq.asp" target="_parent">發布企業信息</a> |
<a href="login.asp" target="_parent">企業信息管理</a>
</td>
</tr>
<tr>
<td width="443" valign="top"></td>
</tr>
<tr>
<td width="443" valign="top">
<table border="0" width="111%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<table align="center">
<form method="POST" action="saveup.asp?userid=<%=useridtxt%>&page=<%=pagetxt%>&lbid=<%=lbidtxt%>" name="xggq" LANGUAGE="javascript"
onsubmit="return FrmAddLink_onsubmit()">
<tr>
<td colspan="2">( 帶 <font color="red">*</font> 的框為必填項目 )</td>
</tr>
<tr>
<td colspan="2" bgcolor="99cc99"><font class="d">商業信息內容:</font></td>
</tr>
<tr valign="top">
<td align="right" width="20%">選擇行業類別:</td>
<td><select class="smallSel" name="typeid" size="1" style="font-family: 宋體; font-size: 9pt">
<option>選擇行業類型</option>
<%
set rst=server.createobject("adodb.recordset")
sqlt="select * from gqlb"
rst.open sqlt,conn,1,1
do while not rst.eof
sel="selected"
if StrComp(rs("lbid"),Cstr(rst("lbid")))=0 then
response.write "<option selected value='"+CStr(rst("lbid"))+"' >"+rst("lbmc")+"</option>"+chr(13)+chr(10)
else
response.write "<option value='"+CStr(rst("lbid"))+"' >"+rst("lbmc")+"</option>"+chr(13)+chr(10)
end if
rst.movenext
loop
rst.close
%>
</select> <font color="ff0000">*</font></td>
</tr>
<tr valign="top">
<td align="right">企業名稱:</td>
<td><input type="text" name="txtcontop" size="50" value="<%=rs("subject")%>" maxlength="80">
<font color="ff0000">*</font></td>
</tr>
<tr valign="top">
<td align="right">企業類別:</td>
<td><select name="txtgq">
<option>選擇供求類型</option>
<% if rs("gq")= "單位名稱" then%>
<option value="單位名稱" selected>單位名稱</option>
<option value="企業名稱">企業名稱</option>
<%else%>
<option value="單位名稱">單位名稱</option>
<option value="企業名稱" selected>企業名稱</option>
<%end if%>
</select> <font color="ff0000">*</font></td>
</tr>
<tr valign="top">
<td align="right">詳細信息:</td>
<td><textarea rows="10" name="txtcontent" cols="50"><%=rs("memo")%></textarea> <font color="ff0000">*</font></td>
</tr>
<tr valign="top">
<td colspan="2" bgcolor="#ececec"><font class="d">公司聯絡信息:</font></td>
</tr>
<tr>
<td align="right">詳細地址:</td>
<td><input type="text" name="txtaddress" size="50" maxlength="100" value="<%=rs("address")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right">郵政編碼:</td>
<td><input type="text" name="txtcode" size="15" maxlength="10" value="<%=rs("code")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right">聯系人姓名:</td>
<td><input type="text" name="txtname" size="15" maxlength="20" value="<%=rs("name")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right">電話:</td>
<td><input type="text" name="txtgs" size="15" maxlength="50" value="<%=rs("gs")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right">網址:</td>
<td><input type="text" name="txtphone" size="15" maxlength="50" value="<%=rs("phone")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right">郵件:</td>
<td><input type="text" name="txtemail" size="15" maxlength="50" value="<%=rs("email")%>">
<font color="red">(*)</font></td>
</tr>
<tr>
<td align="right"></td>
<%rs.close%>
<td><br>
<input type="submit" style="font-family: 宋體; font-size: 9pt;" value="寫完了" name="submit">
<input type="reset" style="font-family: 宋體; font-size: 9pt;" value="重新寫" name="reset">
<input type="button" value="不想寫" name="cmdExit" style="font-family: 宋體; font-size: 9pt;" onclick=" history.back()"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<center>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -