edit.asp
来自「全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 」· ASP 代码 · 共 1,639 行 · 第 1/5 页
ASP
1,639 行
if (type == "0"){
if (catid=="25"||catid=="32"||catid=="12"){
document.form.p_z_Z_Subject.value="寻求"+orgSubject;
}else if(catid=="30"){
document.form.p_z_Z_Subject.value="提供"+orgSubject;
}else{
document.form.p_z_Z_Subject.value="求购"+orgSubject;
}
}else{
if (catid=="30"||catid=="32"||catid=="12"||catid=="31" ||catid=="33") {
document.form.p_z_Z_Subject.value="提供"+orgSubject;
}else if (catid=="30"){
document.form.p_z_Z_Subject.value="寻求"+orgSubject;
}else{
document.form.p_z_Z_Subject.value="供应"+orgSubject;
}
}
}
//用于三张图片显示效果
function table_display(t_id){
if (t_id == "table100" && document.all.table100.style.display == "none") {
document.all.table100.style.display="";
document.all.table101.style.display = "none"
document.all.table102.style.display = "none";
} else if (t_id == "table101" && document.all.table101.style.display == "none") {
document.all.table100.style.display= "none";
document.all.table101.style.display = "";
document.all.table102.style.display = "none";
} else if (t_id == "table102" && document.all.table102.style.display == "none") {
document.all.table100.style.display="none";
document.all.table101.style.display = "none"
document.all.table102.style.display = "";
} else {
document.all.table100.style.display= "none";
document.all.table101.style.display = "none"
document.all.table102.style.display = "none";
}
}
function delete_picture(id) {
if(id == "0") {
document.all.uploaded0.src = "../images/detail_no_pic.gif";
document.all.uploadPicBtn0.value = "上传";
document.all.picsample_0.value = "0";
form.p_z_Z_Picsample.value = "N";
}
if(id == "1") {
document.all.uploaded1.src = "../images/detail_no_pic.gif";
document.all.uploadPicBtn1.value = "上传";
document.all.picsample_1.value = "0";
if((document.all.picsample_0.value == "0")&&(document.all.picsample_2.value == "0")){
form.p_z_Z_Picsample.value = "N";
}
}
if(id == "2") {
document.all.uploaded2.src = "../images/detail_no_pic.gif";
document.all.uploadPicBtn2.value = "上传";
document.all.picsample_2.value = "0";
if((document.all.picsample_1.value == "0")&&(document.all.picsample_0.value == "0")){
form.p_z_Z_Picsample.value = "N";
}
}
}
function set_picture(id,ImageUrl) {
if(id == "0") {
document.all.uploaded0.src = ImageUrl;
document.all.uploadPicBtn0.value = "上传";
document.all.picsample_0.value = "0";
form.p_z_Z_Picsample.value = ImageUrl;
form.p_z_Z_TmpPictureName.value= ImageUrl;
}
if(id == "1") {
document.all.uploaded1.src = ImageUrl;
document.all.uploadPicBtn1.value = "上传";
document.all.picsample_1.value = "0";
if((document.all.picsample_0.value == "0")&&(document.all.picsample_2.value == "0")){
form.p_z_Z_Picsample.value = ImageUrl;
form.p_z_Z_TmpPictureName.value= ImageUrl;
}
}
if(id == "2") {
document.all.uploaded2.src = ImageUrl;
document.all.uploadPicBtn2.value = "上传";
document.all.picsample_2.value = "0";
if((document.all.picsample_1.value == "0")&&(document.all.picsample_0.value == "0")){
form.p_z_Z_Picsample.value = ImageUrl;
form.p_z_Z_TmpPictureName.value= ImageUrl;
}
}
}
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>
<FORM method="post" Action="save_edit.asp" Name="form" >
<input type='hidden' name='PID' value="">
<input type='hidden' name='catId' value="">
<input type='hidden' name='ruler_id' value="">
<input type='hidden' name='parent_id' value="">
<input type='hidden' name='SelectOfferId' value="">
<input type='hidden' name="p_z_Z_PictureName" value = "">
<input type='hidden' name="p_z_Z_TmpPictureName" value = "">
<input type='hidden' name="p_z_Z_PicsampleArray" value = "">
<input type='hidden' name="draw" value = "">
<input type='hidden' name="draw1" value = "">
<input type='hidden' name="draw2" value = "">
<input type='hidden' name='jinj' value="">
<input type='hidden' name='info_id' value="<%=info_id%>">
<input type='hidden' name='gsid' value="<%=gsid%>">
<input type='hidden' name='picture_summ' value="">
<TABLE cellSpacing=1 cellPadding=2 width="98%" border=0 align=center class="tableBorder">
<tr>
<th align=center height=23 colspan="2">供求基本信息</th>
</tr>
<tr>
<td width="18%" class=forumRow><font color="#FF0000">*</font>
<b>信息类型:</b></td>
<td width="80%" class=forumRow>
<input type="radio" name="InfoType" value="mm" onclick='javascript:changeInfoType("");' checked >供求
<input type="radio" name="InfoType" value="30" onclick='javascript:changeInfoType("");' >代理
<input type="radio" name="InfoType" value="25" onclick='javascript:changeInfoType("");' >加工
<input type="radio" name="InfoType" value="32" onclick='javascript:changeInfoType("");' >合作
<input type="radio" name="InfoType" value="12" onclick='javascript:changeInfoType("");' >商务服务
<input type="radio" name="InfoType" value="31" onclick='javascript:changeInfoType("");' >库存产品
<input type="radio" name="InfoType" value="33" onclick='javascript:changeInfoType("");' >二手设备
<br><img src="../images/shim.gif" width="1" height="8"></td>
</tr>
<TR>
<TD class=forumRow width="20%"><FONT
color=#ff0000>*</FONT> <B>买卖方向:</B></TD>
<TD class=forumRow width="80%" bgColor=#ffffde> <input type="radio" value="买" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if rs("type")="买" and jinji=0 then response.write"checked"%>>
<span id="typeDispBuy" > </span> <input type="radio" value="卖" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if rs("type")="卖" then response.write"checked"%>>
<span id="typeDispSale" > </span> <input type="radio" value="买" name="p_z_Z_Type" onClick="javascript:setSubject()" <%if jinji=1 then response.write"checked"%>>
紧急求购 <br>
<img src="../images/shim.gif" width="1" height="8"></TD></TR>
<TR>
<TD class=forumRow><FONT color=#ff0000>*</FONT>
<B>主题:</B></TD>
<TD class=forumRow bgColor=#ffffde><INPUT maxLength=50 size=65
value="<%=rs("showname")%>" name=p_z_Z_Subject> </TD>
</TR>
<TR>
<TD class=forumRow><FONT color=#ff0000>*</FONT>
<B>行业:</B></TD>
<TD class=forumRow bgColor=#ffffde> <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> </TD>
</TR>
<TR>
<TD class=forumRow vAlign=top><FONT
color=#ff0000>*</FONT> <B>关键字:</B></TD>
<TD class=forumRow bgColor=#ffffde><%
keywords=rs("keywords")
if keywords<>"" then
if instr(keywords,",")>0 then
kwarry=split(keywords,",")
if ubound(kwarry)=1 then
response.write"<INPUT maxLength=8 size=20 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=20 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=20 name=keywords3>"
elseif ubound(kwarry)=2 then
response.write"<INPUT maxLength=8 size=20 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=20 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=20 value='"&kwarry(2)&"' name=keywords3>"
elseif ubound(kwarry)>2 then
response.write"<INPUT maxLength=8 size=20 value='"&kwarry(0)&"' name=keywords>, <INPUT maxLength=8 size=20 value='"&kwarry(1)&"' name=keywords2>, <INPUT maxLength=8 size=20 value='"&kwarry(2)&"' name=keywords3>"
end if
else
response.write"<INPUT maxLength=8 size=10 value='"&keywords&"' name=keywords>, <INPUT maxLength=8 size=10 name=keywords2>, <INPUT maxLength=8 size=10 name=keywords3>"
end if
else
response.write"<INPUT maxLength=8 size=10 name=keywords>, <INPUT maxLength=8 size=10 name=keywords2>, <INPUT maxLength=8 size=10 name=keywords3>"
end if
%> <INPUT type=hidden
name=p_z_Z_Keywords> <SPAN
class=note><BR>
</SPAN></TD>
</TR>
<TR>
<TD class=forumRow><FONT color=#ff0000>*</FONT>
<B>有效期:</B></TD>
<td class=forumRow> <div id=putong style="display: <%if jinji=1 then response.write"none"%>">
<input name="p_z_Z_OfferExpire" type="radio" value="10" checked >
10天
<input name="p_z_Z_OfferExpire" type="radio" value="20" checked >
20天
<input name="p_z_Z_OfferExpire" type="radio" value="30" checked >
一个月
<input name="p_z_Z_OfferExpire" type="radio" value="90" checked >
三个月 <br>
</div>
<div id=jinji style="display: <%if jinji=0 then response.write"none"%>">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="1" valign="top"> </td>
<td><b><span class="s style1">3 天</span></b></td>
</tr>
<tr>
<td valign="top"><span class="note"><font color="#FF0000">*</font></span></td>
<td><SPAN class=note>紧急采购的有效期默认为3天;</span></td>
</tr>
</table>
</div></td></TR>
<TR>
<td class=forumRow><font color="#FF0000">*</font> <b>详细说明:</b></td>
<td class=forumRow> <div id="hyperTextEditor">
<script language="JavaScript" type="text/javascript">
<!--
function HyperTextArea(name, html, width, height,resourcePath,styleSheetUrl,delayRender){
this.isRichText = false;
this.rng = null;
this.name = name;
this.html = html||"";
this.width = width;
this.height = height;
this.resourcePath = resourcePath||"";
this.styleSheetUrl = styleSheetUrl||null;
if(this.resourcePath.length && this.resourcePath.substring(this.resourcePath.length-1) != "/"){
this.resourcePath = this.resourcePath + "/";
}
this.delayRender = delayRender||false;
this.controlNames = new Array();
this.controlsByName = new Array();
this.toolbarNames = new Array();
this.designModeRetryCount = 0;
this.isSrcView = false;
this.init = function(){
HyperTextArea.areas[this.name] = this;
//check to see if designMode mode is available
if (document.getElementById) {
if (document.all) {
//check for Internet Explorer 5+
this.isRichText = true;
} else {
//check for browsers that support designmode
//make sure that this is not safari (and perhaps other khtml based browsers)
//which returns "inherit" for document.designMode
if (document.designMode && document.designMode.toLowerCase() != "inherit"){
this.isRichText = true;
}
}
}
//this.addControl(new Toolbar("toolbar0"));
//menus
//styleMenu = new Menu("formatblock","formatblock");
//styleMenu.addItems("","Style","<p>","Paragraph","<h1>","Heading 1","<h2>","Heading 2","<h3>","Heading 3","<h4>","Heading 4","<h5>","Heading 5","<h6>","Heading 6","<address>","Address","<pre>","Preformatted");
//this.addControl(styleMenu);
//fontMenu = new Menu("fontname","fontname");
//fontMenu.addItems("","Font","Arial, Helvetica, sans-serif","Arial","Courier New, Courier, mono","Courier New","Times New Roman, Times, serif","Times New Roman","Verdana, Arial, Helvetica, sans-serif","Verdana");
//this.addControl(fontMenu);
//sizeMenu = new Menu("fontsize","fontsize");
//sizeMenu.addItems("","Size",1,1,2,2,3,3,4,4,5,5,6,6,7,7);
//this.addControl(sizeMenu);
this.addControl(new Toolbar("toolbar1"));
//增加功能点
//字体大小:10号、12号、14号、18号、24号
//字体默认为宋体
sizeMenu = new Menu("fontsize","fontsize");
sizeMenu.addItems("","字号",2,"1(小五)",3,"2(五号)",4,"3(小四)",5,"4(四号)",6,"5(小三)");
this.addControl(sizeMenu);
//颜色:褐色、黑色、红色、蓝色、绿色
colorMenu = new Menu("foreColor","foreColor");
colorMenu.addItems("","颜色","brown","褐色","black","黑色","red","红色","blue","蓝色","green","绿色");
this.addControl(colorMenu);
//第一部分
this.addControl(new TextFormatButton("copy","复制","../images/post_button_copy.gif","copy"));
this.addControl(new TextFormatButton("paste","粘贴","../images/post_button_paste.gif","paste"));
this.addControl(new TextFormatButton("cut","剪切","../images/post_button_cut.gif","cut"));
//this.addControl(new Spacer());
//第二部分
this.addControl(new TextFormatButton("bold","粗体","../images/post_button_bold.gif","bold"));
this.addControl(new TextFormatButton("italic","斜体","../images/post_button_italic.gif","italic"));
//this.addControl(new Spacer());
//第三部分
this.addControl(new TextFormatButton("left","左对齐","../images/post_button_left_just.gif","justifyleft"));
this.addControl(new TextFormatButton("center","居中","../images/post_button_centre.gif","justifycenter"));
this.addControl(new TextFormatButton("right","右对齐","../images/post_button_right_just.gif","justifyright"));
//this.addControl(new Spacer());
//第四部分
this.addControl(new TextFormatButton("orderedlist","编号","../images/post_button_numbered_list.gif","insertorderedlist"));
this.addControl(new TextFormatButton("unorderedlist","项目符号","../images/post_button_list.gif","insertunorderedlist"));
//this.addControl(new Spacer());
//第五部分
this.addControl(new TextFormatButton("outdent","减少缩进量","../images/post_button_outdent.gif","outdent"));
this.addControl(new TextFormatButton("indent","增加缩进量","../images/post_button_indent.gif","indent"));
//this.addControl(new TextFormatButton("forecolor","字体颜色","../images/post_button_textcolor.gif","forecolor"));
//this.addControl(new TextFormatButton("backcolor","背景颜色","../images/post_button_bgcolor.gif","backcolor"));
//this.addControl(new Spacer());
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?