📄 add_vipinfo.asp
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="../../conn/conn.asp"-->
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"41")=0 then
response.redirect "../err.asp"
response.end
end if
%>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
<LINK href="../css/style.css" rel=stylesheet type=text/css>
<title>添加专项商机</title>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr>
<th height=25 colspan="2" class="tableHeaderText">专项商机管理 </th>
</tr>
<tr>
<td colspan="2" class="forumRowHighlight"><p><B>注意</B>:<BR>
①类别直接与发布的信息相关联,删除类别可能会影响到以前发布的专项商机信息。<BR> </td>
</tr>
<tr>
<td width="12%" height=25 class="forumRowHighlight"> <B>操作选项</B></td>
<td width="88%" class="forumRowHighlight"><a href="index.asp">管理专项商机</a> | <a href="add_vipinfo.asp">添加专项商机</a> | <a href="type.asp">管理商机类别</a> | <a href="class_ok.asp?action=add_class_1">添加专项类别</a> | [<a href="javascript:location.reload()">刷新页面</a>]</td>
</tr>
</table>
<br>
<form name="form" method="POST" action="save_vipinfo.asp" enctype="multipart/form-data" >
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="tableBorder" align=center>
<tr>
<th align=left height=23>商机信息</th>
</tr>
<tr>
<td>
<SCRIPT language=javascript>
<!--
function admin_Size(num,objname)
{
var obj=document.getElementById(objname)
if (parseInt(obj.rows)+num>=3) {
obj.rows = parseInt(obj.rows) + num;
}
if (num>0)
{
obj.width="90%";
}
}
//-->
</SCRIPT>
<SCRIPT language=JavaScript>
function setSubjectText(){
var keywords = form.keywords.value;
for(i=0;i<keywords.length;i++){keywords=keywords.replace(',',',');}
if(form.keywords2.value){
for(i=0;i<form.keywords2.value.length;i++){form.keywords2.value=form.keywords2.value.replace(',',',');}
keywords+=','+form.keywords2.value;
}
if(form.keywords3.value){
for(i=0;i<form.keywords3.value.length;i++){form.keywords3.value=form.keywords3.value.replace(',',',');}
keywords+=','+form.keywords3.value;
}
form.p_z_Z_Keywords.value = keywords
// return true;
document.form.submit()
}
function trim(inputString) {
if (typeof inputString != "string") { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
//检查字符串开始部分的空格
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") {
//检查字符串结束部分的空格
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
//将文字中间多个相连的空格变为一个空格
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length);
}
return retValue;
}
</SCRIPT>
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="15%" class=forumRow>信息主题:</td>
<td width="85%" class=forumRow> <input type="text" size="45" name="showname" style="border-style: solid; border-width: 1">
<font color="#CC3300"> * </font> </td>
</tr>
<tr>
<td class=forumRow>是否推荐:</td>
<td width="85%" class=forumRow><input type="checkbox" name="checkbox" value="1"></td>
</tr>
<tr>
<td width="15%" class=forumRow>有 效 期:</td>
<td width="85%" class=forumRow> <select size="1" name="period" class="f11" style="border-style: solid; border-width: 1">
<option value="一周">一周</option>
<option value="半月">半月</option>
<option value="一个月">一个月</option>
<option value="三个月">三个月</option>
<option value="六个月">六个月</option>
<option value="一年">一年</option>
<option value="长期">长期</option>
</select>
<font color="#CC3300"> *</font></td>
</tr>
<tr>
<td width="15%" class=forumRow>价格说明:</td>
<td width="85%" class=forumRow> <input name="jgsm" type="text" style="border-style: solid; border-width: 1" value="详谈" size="20">
<font color="#CC3300"> *</font></td>
</tr>
<tr>
<td width="15%" class=forumRow>交易类别:</td>
<td width="85%" class=forumRow> <select name="type" size="1">
<option selected value="">--请选择交易类别--</option>
<%
set rs1=conn.execute("select * from vipinfo_class")
do while not rs1.eof
response.write "<option value='"&rs1("typeid")&"'>"&rs1("type")&"</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select>
<font color="#CC3300"> *</font></td>
</tr>
<tr>
<td class=forumRow>上传图片:</td>
<td class=forumRow><INPUT type="file" name="file" style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30 title=上传产品图片资料不能大于200K。></td>
</tr>
<tr>
<td class=forumRow>所属网站行业类别:</td>
<td class=forumRow> <select name="p_z_Z_RootCategory" onchange="changeCategory(this)" >
<option selected>--请选择行业大类--</option>
</select> <select name="p_z_Z_CategoryId1" maxlength="80">
<option value="" selected>--请选择行业子类--</option>
</select> *</font>
</td>
</tr>
<tr>
<td class=forumRow>关 键 字:</td>
<td width="85%" class=forumRow><INPUT maxLength=8 size=20
name=keywords>, <INPUT maxLength=8 size=20 name=keywords2>,
<INPUT maxLength=8 size=20 name=keywords3> <INPUT type=hidden
name=p_z_Z_Keywords><font color="#CC3300"> *</font></td>
</tr>
<tr>
<td class=forumRow>信息内容:</td>
<td class=forumRow><textarea rows="10" cols="80" name="content" class="f11" id="conter"></textarea>
<a href="javascript:admin_Size(-5,'conter')"><img src="../images/minus.gif" unselectable="on" border='0'></a> <a href="javascript:admin_Size(5,'conter')"><img src="../images/plus.gif" unselectable="on" border='0'></a>
</td>
</tr>
</table></td>
</tr>
<tr>
<th height=23 align=left>联系信息</th>
</tr>
<tr>
<td><table width="100%" height="121" border="0" cellpadding="0" cellspacing="1">
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -