📄 add_info.asp
字号:
</TR>
<TR>
<TD class=c bgColor=#FFFCF7><FONT color=#ff0000>*</FONT>
<B>有效期:</B></TD>
<td class="s" bgcolor=#FFF8EE> <div id=putong style="display: ">
<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: 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>
<tr>
<td valign="top"><span class="note"><font color="#FF0000">*</font></span></td>
<td><SPAN class=note>采购完成后,请及时在<a href="edit.asp" class=S>管理商业信息</a>页面中撤销这条采购信息!</span></td>
</tr>
</table>
</div></td></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>产品规格:</B></TD>
<TD class=lh15 bgColor=#FEF1E0><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="Specifications"> </TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>产品数量</B>:</TD>
<TD class=lh15 bgColor=#FEF1E0><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="Quantity"></TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>包装说明:</B></TD>
<TD class=lh15 bgColor=#FEF1E0><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="Packaging"></TD></TR>
<TR>
<TD class=C bgColor=#FFFCF7><B>价格说明:</B></TD>
<TD class=lh15 bgColor=#FEF1E0><INPUT
style="FONT-SIZE: 9pt; WIDTH: 250px" maxLength=50 size=30
name="PriceTerms"></TD></TR>
<TR>
<td bgcolor=#FFFCF7 class=C><font color="#FF0000">*</font> <b>详细说明:</b></td>
<td class="lh15" bgcolor=#FFF8EE> <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());
//第六部分
//this.addControl(new Button("insertImage","../images/post_button_image.gif","Insert Image","addImage"));
//this.addControl(new TextFormatButton("link","Create Link","../images/post_button_hyperlink.gif","createlink"));
//this.addControl(new Button("insertTable","../images/post_button_table.gif","插入表格","insertTableDialog"));
}
this.addControl = function(control){
control.resourcePath = this.resourcePath;
control.area = this;
i = this.controlNames.length
this.controlNames[eval(i)] = control.name;
this.controlsByName[control.name] = control;
}
this.getControl = function(name){
return this.controlsByName[name];
}
this.replaceControl = function(oldName,newControl){
if(this.getControl(oldName)){
for(i=0;i<this.controlNames.length;i++){
if(this.controlNames[i] == oldName){
break;
}
}
}else{
i = this.controlNames.length;
}
newControl.area = this;
newControl.resourcePath = this.resourcePath;
this.controlNames[i] = newControl.name;
this.controlsByName[newControl.name] = newControl;
}
this.insertControl = function(i,control){
control.resourcePath = this.resourcePath;
control.area = this;
this.controlNames.splice(i,0, control.name);
this.controlsByName[control.name] = control;
}
this.removeControl = function(name){
//alert("this.removeControl");
for(i=0;i<this.controlNames.length;i++){
if(this.controlNames[i] == name){
this.controlNames.splice(i,1);
return true;
}
}
return false;
}
this.render = function(html){
//alert("this.render");
HyperTextArea.activeArea = this;
text="this.render\n\n";
for(i=0;i<this.controlNames.length;i++){
text = text + "\t" + this.controlNames[i] + "\n";
}
if (this.isRichText) {
this._renderRTE(html);
} else {
this._renderDefault(html);
}
}
this._renderDefault = function(html){
//alert("this._renderDefault");
document.writeln('<textarea name="' + this.name + '" id="' + this.name + '" style="width: ' + this.width + 'px; height: ' + this.height + 'px;">' + html + '</textarea>');
}
this.getControlNames = function(lable){
text= lable + "\n\n";
for(i=0;i<this.controlNames.length;i++){
text = text + "\t" + this.controlNames[i] + "\n";
}
return text;
}
this._renderControls = function(){
//alert("this._renderControls");
text = "";
for(x=0;x<this.controlNames.length;x++){
control = this.controlsByName[this.controlNames[x]];
if(control){
text = text + control.getRenderedText();
}
}
text = text + '</tr>';
text = text + '</table>';
document.writeln(text);
}
this._renderRTE = function(){
//alert("this._renderRTE");
document.writeln('<style type="text/css">');
document.writeln('.btnImage {cursor: pointer; cursor: hand;}');
document.writeln('</style>');
this._renderControls();
document.writeln('<iframe id="' + this.name + '" width="' + this.width + 'px" height="' + this.height + 'px"></iframe>');
//document.writeln('<br /><input type="checkbox" id="chkSrc' + this.name + '" onclick="HyperTextArea.getArea(\''+this.name+'\').toggleHTMLSrc();" /> 查看HTML代码');
//reimplement this so that it is not in an iframe, rather in a div.
document.writeln('<iframe width="145" height="130" id="cp' + this.name + '" name="cp' + this.name + '" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; position: absolute;"></iframe>');
document.writeln('<input type="hidden" id="hdn' + this.name + '" name="' + this.name + '" value="">');
document.getElementById('hdn' + this.name).value = this.html;
this.setContent(this.html);
setTimeout('onHyperTextAreaLoad(\'' + this.name + '\')', 500);
}
this.setContent = function(html){
//alert("this.setContent");
HyperTextArea.activeArea = this;
var frameHtml = "<html>\n";
frameHtml += "<head>\n";
if (this.styleSheetUrl){
frameHtml += "<link media=\"all\" type=\"text/css\" href=\"style.css\" rel=\"stylesheet\">\n";
}
frameHtml += "</head>\n";
frameHtml += "<body>\n";
frameHtml += html;
frameHtml += "</body>\n";
frameHtml += "</html>";
if (document.all) {
var oRTE = frames[this.name].document;
oRTE.open();
oRTE.write(frameHtml);
oRTE.close();
} else {
var oRTE = document.getElementById(this.name).contentWindow.document;
oRTE.open();
oRTE.write(frameHtml);
oRTE.close();
//attach a keyboard handler for Mozilla to make keyboard shortcuts for formatting text work
oRTE.addEventListener("keypress", kb_handler, true);
}
}
this.update = function(){
//alert("this.update");
this.setViewMode(false);
//set message value
var oHdnMessage = document.getElementById('hdn' + this.name);
var oRTE = document.getElementById(this.name);
if (this.isRichText) {
if (oHdnMessage.value == null) oHdnMessage.value = "";
if (document.all) {
oHdnMessage.value = frames[this.name].document.body.innerHTML;
} else {
oHdnMessage.value = oRTE.contentWindow.document.body.innerHTML;
}
//if there is no content (other than formatting) set value to nothing
if (stripHTML(oHdnMessage.value.replace(" ", " ")) == "") oHdnMessage.value = "";
this.html = stripWordHTML(oHdnMessage.value);
}
}
this.setToolbarsVisible = function(isVisible){
//alert("this.setToolbarsVisible");
visibleStyle = isVisible?"visible":"hidden";
for (x=0;x<this.toolbarNames.length;x++){
document.getElementById(this.toolbarNames[x] + "_" + this.name).style.visibility = visibleStyle;
}
}
this.setViewMode = function(isSrcView){
//alert("this.setViewMode");
HyperTextArea.activeArea = this;
//contributed by Bob Hutzel (thanks Bob!)
var oRTE;
if (document.all) {
oRTE = frames[this.name].document;
} else {
oRTE = document.getElementById(this.name).contentWindow.document;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -