📄 edit1.asp
字号:
function getPaletteAsString(){
hexArray = new Array("00","55","AA","FF");
out = "";
out2 = "";
line = ""
row = 1;
count = 1;
for(i=hexArray.length-1;i>=0;i--){
val0 = hexArray[i];
for(j=hexArray.length-1;j>=0;j--){
val1 = hexArray[j];
for(k=hexArray.length-1;k>=0;k--){
val2 = hexArray[k];
hexVal = val0+val1+val2;
line = line + "\n <td id='#"+hexVal+"' bgcolor='#"+hexVal+"' width='15' height='15' onmouseover='this.style.border=\"1px dotted white\"' onclick='area.setColor(this.id)'><img width='1' height='1'></td>";
if(count==1 || (row % 2) == 0){
if(((count - 1) % 8) == 0){
out = out + "\n<tr>";
row++
}
out = out + line;
if((count % 8) == 0){
out = out + "\n</tr>";
}
}else{
if(((count - 1) % 8) == 0){
out2 = out2 + "\n<tr>";
row++
}
out2 = out2 + line;
if((count % 8) == 0){
out2 = out2 + "\n</tr>";
}
}
line = "";
count++;
}
}
}
out = '<table cellpadding="0" cellspacing="1" border="1" align="center">' + out + out2 + "</table>";
return out;
}
function getTableDialogAsString(){
out = '<html><body><form name="tableDialog">';
out = out + '<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BDD7F7"><tr><td>';
out = out + '<table width="100%" cellpadding="2" cellspacing="2" border="0" bgcolor="#FFFFFF">';
out = out + '<tr bgcolor="#eff7ff">';
out = out + '<td colspan=2 align=center><font size=2px>插入表格</font></td>';
out = out + '</tr>';
out = out + '<tr bgcolor="#ffffde">';
out = out + '<td align=center><font size=2px>行数:</font></td><td align=center><font size=2px>列数:</font></td>';
out = out + '</tr>';
out = out + '<tr bgcolor="#ffffde">';
out = out + '<td align=center><input type="text" name="rows" size="7" value="3"/></td>';
out = out + '<td align=center><input type="text" name="cols" size="7" value="3"/></td>';
out = out + '<tr bgcolor="#ffffde">';
out = out + '<td colspan=2 align=center><input type="button" name="button" value="确定" onclick="window.opener.HyperTextArea.activeArea.insertTable(this.form.rows.value,this.form.cols.value,2,2,true);self.close()"/> <input type="button" name="cancel" value="取消" onclick="self.close()"/></td>';
out = out + '</tr>';
out = out + '</table>';
out = out + '</td></tr></table>';
out = out + '</form></body></html>';
return out;
}
function enableDesignMode(areaName){
try{
if (document.all) {
frames[areaName].document.designMode = "On";
}else{
contentDocument = document.getElementById(areaName).contentDocument;
contentDocument.designMode = "on";
}
self.status = "";
area.setContent(area.html)
}catch(e){
//attempt to recover from any exceptions
exp = "enableDesignMode('"+areaName+"')";
area = HyperTextArea.getArea(areaName);
area.designModeRetryCount++
self.status = "Error in setting designMode property on attempt number "+ area.designModeRetryCount +". Retrying.";
if(area.designModeRetryCount <= 10){
t = setTimeout(exp,100);
}else{
self.status = areaName + " failed to initialize properly";
throw e;
}
}
}
function onHyperTextAreaLoad(areaName) {
self.status = "attempting to set designMode property";
area = HyperTextArea.getArea(areaName);
area.cpWindow = frames['cp' + areaName].window;
//enables the area to determine what form it belongs to
area.form = document.getElementById("hdn"+areaName).form;
//attaches to the forms submit handler only once
formAlreadyStored = false;
for(i=0;i<HyperTextArea.forms.length;i++){
if(area.form == HyperTextArea.forms[i]){
formAlreadyStored = true;
break;
}
}
if(!formAlreadyStored){
onSubmitFunc = area.form.onsubmit;
area.form.onsubmit = function(){
HyperTextArea.updateAllAreas();
if(onSubmitFunc){
onSubmitFunc();
}
}
HyperTextArea.forms[HyperTextArea.forms.length] = area.form;
}
area.setContent(area.html)
if (document.all) {
cp = frames["cp" + areaName];
cp.document.write(getPaletteAsString());
} else {
cp = document.getElementById("cp"+areaName);
d = cp.contentDocument;
d.open();
d.write(getPaletteAsString());
d.close()
}
enableDesignMode(areaName);
area.setContent(area.html)
}
//-->
</script>
<script>
var details = '<%=changechr(rs("xxsm"))%>';
area = new HyperTextArea("area1", details, 450, 200,"");
</script>
</div>
<textarea style="display:none" name="p_z_Z_Details" cols=50 rows=10></textarea>
<table width="100%" cellPadding="0" cellSpacing="0" border="0">
<tr>
<td class="S"> <font color="#FF0000">您可直接从word、excel中将现成资料拷贝过来,经过优化后可能会与原内容不同,请您发布前先点击“预览这条商业信息”确认。</font>
<br><SPAN class=note>说明尽可能详细,以提高信息的可信度,促使您做成生意;<BR><FONT
color=red>注意:请不要在详细说明中留下公司名称和任何联系方式。</FONT></SPAN></td>
</tr>
</table></td>
</TR>
<TR bgcolor="#FFF8EE">
<TD colspan="2" align="center"><span id="pic"></span></TD>
</TR>
</TBODY></TABLE> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="ff7300"></td>
</tr>
</table><BR>
<IMG id=img1 src="../images/downArrow.gif" align=absMiddle>
<span class="C"><b>补充更多信息(非必须)</b></span><BR><BR>
<TABLE cellSpacing=2 cellPadding=3 width="100%" border=0>
<COLGROUP>
<COL class=formtop></COLGROUP>
<TBODY>
<TR>
<TD class=C bgColor=#FFFCF7><B>产品品牌:</B></TD>
<TD class=lh15 bgColor=#FFF8EE><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="cpsb" value="<%=rs("cpsb")%>"> </TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>产品数量</B>:</TD>
<TD class=lh15 bgColor=#FFF8EE><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="Quantity" value="<%=rs("Quantity")%>"></TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>包装说明:</B></TD>
<TD class=lh15 bgColor=#FFF8EE><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="Packaging" value="<%=rs("Packaging")%>"></TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>价格说明:</B></TD>
<TD class=lh15 bgColor=#FFF8EE><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="cpjg" value="<%=rs("cpjg")%>"></TD></TR></TBODY></TABLE> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="ff7300"></td>
</tr>
</table><BR>
<TABLE cellSpacing=6 cellPadding=3 width="100%" bgColor=#f9f9f9
border=0>
<TBODY>
<TR>
<TD><INPUT type=checkbox <%if rs("FeedbackFlag")=true then response.write"CHECKED"%> value="<%=rs("FeedbackFlag")%>"
name="FeedbackFlag">
我将优先考虑“<A
href="javascript:win=window.open('../../help/trust_score.html','contact','width=550,height=550,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();">商贸通会员</A>”的反馈
</TD>
</TR></TBODY></TABLE> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="ff7300"></td>
</tr>
</table><BR>
<TABLE width="95%">
<TBODY>
<TR>
<TD class=lh15><SPAN class=C><FONT
color=#ff0000><STRONG>最后一步很重要!<BR>
</STRONG></FONT></SPAN><STRONG>请确保联系资料是完整准确的,以保证客户找到您。如要修改,<A
href="../modify/modify_info.asp"
target=_blank>点此修改联系资料</A></STRONG></TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
<TBODY>
<TR>
<TD bgColor=#cccccc>
<TABLE cellSpacing=1 cellPadding=4 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-LEFT: 10px" align=right width="25%"
bgColor=#ffffff>姓名:</TD>
<TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs5("name")%>
<%=rs5("ch")%> </TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px" align=right
bgColor=#ffffff>公司名称:</TD>
<TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs5("qymc")%> </TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px" align=right
bgColor=#ffffff>电话:</TD>
<TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs5("phone")%> </TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px" align=right
bgColor=#ffffff>传真:</TD>
<TD style="PADDING-LEFT: 10px" bgColor=#ffffff><%=rs5("fax")%> </TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px" align=right
bgColor=#ffffff>电子邮件:</TD>
<TD style="PADDING-LEFT: 10px"
bgColor=#ffffff><%=rs5("email")%>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=4 border=0>
<TBODY>
<TR>
<TD vAlign=top noWrap><INPUT class=subbutton style="WIDTH: 160px" onclick="javascript:post(this.form)" type=button value=一切完成,我要发布! name=Post>
</TD></TR></TBODY></TABLE></FORM><BR>
<TABLE class=bdr1 cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD height=103>
<TABLE class=bdr2 cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD class=lh13 height=91><SPAN
class=M>重要提醒:</SPAN><BR><BR>
1、只要两小时!您发布的信息就能被百万商人看到!(工作日8:00-17:30) <BR>
· 节假日发布的信息顺延至工作日上网;<BR>·
信息发布高峰期上网时间稍有延后,敬请谅解!<BR><BR>2、发布信息后,为保证客户及时与您联系,请确保您的联系信息(特别是电话、电子邮箱地址)准确无误。<BR><BR>3、请勿一天内重复提交相同内容的信息,否则将不被审核通过。<BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR><BR>
<BR><BR></TD></TR></TBODY></TABLE><BR><BR></TD></TR>
</TABLE><IMG
height=10 src="../images/bottom.gif" width=778><BR>
<script>
//category methods
function Category(id,title) {
this.id = id;
this.title=title;
this.boardlist=new Array();
this.addBoard=addBoard;
this.getOptions = getOptions;
}
function addBoard(board) {
this.boardlist = this.boardlist.concat(board);
}
function getOptions() {
var tmp = new Array();
for(var i=0; i < this.boardlist.length;i++) {
var b = this.boardlist[i];
tmp[i]= b.getOption();
}
return tmp;
}
//board methods
function Board(catid,id,title,total) {
this.catid=catid;
this.id=id;
this.title=title;
this.getOption=getOption;
}
function getOption() {
return new Option(this.title,this.id);
}
function changeCategory(list) {
if (list.selectedIndex<=0) {
catForm.options[0].selected=true;
var len = boardForm.options.length;
for (var i=len-1;i>0;i--){
boardForm.options[i]=null;
}
}
else {
var boards = catArr[list.selectedIndex-1].getOptions();
var len = boardForm.options.length;
for (var i=len-1;i>0;i--){
boardForm.options[i]=null;
}
for (var i=0;i<boards.length;i++) {
boardForm.options[i+1]=boards[i];
}
}
boardForm.options[0].selected=true;
}
function selectBoard(catid,bid,list) {
var isExist = false; //是否是叶子类目
for(var i=0;i<catForm.length;i++) {
if (catForm.options[i].value==catid) {
//alert("get Category");
catForm.options[i].selected=true;
changeCategory(catForm);
break;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -