⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product_edit.asp

📁 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会
💻 ASP
📖 第 1 页 / 共 2 页
字号:
	<%end if%>
	<tr><td class=td1 align=right>图片位置:</td>
		<td class=td2>
			<input type=radio name=picalign value="left" <%if picalign="left" then Response.Write("checked")%>>左对齐
			<input type=radio name=picalign value="center" <%if picalign="center" then Response.Write("checked")%>>居中
			<input type=radio name=picalign value="right" <%if picalign="right" then Response.Write("checked")%>>右对齐
		</td></tr>
	<tr><td width=70 align=right>产品名称:</td>
		<td><input type="text" value="<%=title%>" name=title maxlength=120 size=60><font color=red>*</font></td></tr>
	<%if enflag="1" then%>	
	<tr><td width=70 align=right>名称(英):</td>
		<td><input type="text" value="<%=title2%>" name=title2 maxlength=120 size=60></td></tr>		
	<%end if%>
	<tr><td width=70 align=right>产品型号:</td>
		<td><input type="text" value="<%=protype%>" name=protype maxlength=120 size=60></td></tr>		
	<tr>
		<td width=70 align=right>参考价格:</td>
		<td>
			<input type="text" value="<%=price%>" name=price maxlength=10 size=10>
			<!--优惠价格:<input type="text" value="<%=price2%>" name=price2 maxlength=10 size=10>-->
		</td>
	</tr>		
	<!--tr><td width=70 align=right>产品规格:</td>
		<td><input type="text" value="<%=spec%>" name=spec maxlength=120 size=60></td></tr-->
	<%if enflag="1" then%>	
	<tr><td width=70 align=right>规格(英):</td>
		<td><input type="text" value="<%=spec2%>" name=spec2 maxlength=120 size=60></td></tr>
	<%end if%>
	<tr><td width=70 align=right>卖点功能:</td>
		<td><textarea rows=5 cols=60 name=intro style="font-family:宋体" ><%=intro%></textarea></td>
	</tr>
	<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;
			<img src="../admin/images/bold.gif" onclick="format('bold')" style="cursor:hand;" title="粗体">
			<img src="../admin/images/italicize.gif" onclick="format('italic')" style="cursor:hand;" title="斜体">
			<img src="../admin/images/underline.gif"  onclick="format('underline')" style="cursor:hand;" title="下划线">
			<img src="../admin/images/center.gif"  onclick="format('center')" style="cursor:hand;" title="居中">
			<img src="../admin/images/right.gif"  onclick="format('right')" style="cursor:hand;" title="右对齐">
			<img src="../admin/images/space.gif"  onclick="format('space')" style="cursor:hand;" title="空格">
			<img src="../admin/images/url.gif"  onclick="format('url')" style="cursor:hand;" title="超链接。如<a href='http://www.ibw.com.cn' target=_blank>网新科技</a>">
			<img src="../admin/images/email.gif"  onclick="format('email')" style="cursor:hand;" title="邮件。如<a href='mailto:xu256@sina.com'>xu256@sina.com</a>">
			<img src="../admin/images/image.gif"  onclick="format('image')" style="cursor:hand;" title="图片。如<img src='http://www.ourgo.com/815.jpg'>">
		<select name=font onchange="formatfont(this.options[this.selectedIndex].value)">
			<option value="宋体" selected>宋体
			<option value="楷体_gb2312">楷体GB2312
			<option value="黑体">黑体
			<option value="隶书">隶书
			<option value="Arial">Arial
			<option value="Arial Black">Arial Black
			<option value="Impact">Impact
			<option value="Tahoma">Tahoma
			<option value="Times New Roman">Times New Roman
			<option value="Verdana">Verdana
		</select>				
		<select name=fontsize style="width:50px" onchange="formatsize(this.options[this.selectedIndex].value)">
			<option value="6" >一号
			<option value="5">二号
			<option value="4">三号
			<option value="3">四号
			<option value="2"selected>五号
		</select>				
		<select name=color style="width:70px" onchange="formatcolor(this.options[this.selectedIndex].value)">
			<option style="background-color:000000;color=000000" value="000000">000000
			<option style="background-color:ffffff;color=ffffff" value="ffffff">ffffff
			<option style="background-color:808080;color=808080" value="808080">808080
			<option style="background-color:c0c0c0;color=c0c0c0" value="c0c0c0">c0c0c0
			<option style="background-color:ff0000;color=ff0000"  value="ff0000">ff0000
			<option style="background-color:008000;color=008000" value="008000">008000
			<option style="background-color:0000ff;color=0000ff" value="0000ff">0000ff
			<option style="background-color:ffff00;color=ffff00" value="ffff00">ffff00
			<option style="background-color:800080;color=800080" value="800080">800080
			<option style="background-color:808000;color=808000" value="808000">808000
			<option style="background-color:00ffff;color=00ffff" value="00ffff">00ffff
			<option style="background-color:00ff00;color=00ff00" value="00ff00">00ff00
			<option style="background-color:800000;color=800000" value="800000">800000
			<option style="background-color:008080;color=008080" value="008080">008080
			<option style="background-color:ff00ff;color=ff00ff" value="ff00ff">ff00ff
			<option style="background-color:006400;color=006400" value="006400">006400
			<option style="background-color:1e90ff;color=1e90ff" value="1e90ff">1e90ff
			<option style="background-color:20b2aa;color=20b2aa" value="20b2aa">20b2aa
			<option style="background-color:2e8b57;color=2e8b57" value="2e8b57">2e8b57
			<option style="background-color:48d1cc;color=48d1cc" value="48d1cc">48d1cc
			<option style="background-color:4169e1;color=4169e1" value="4169e1">4169e1
			<option style="background-color:4682b4;color=4682b4" value="4682b4">4682b4
			<option style="background-color:483d8b;color=483d8b" value="483d8b">483d8b
			<option style="background-color:8b008b;color=8b008b" value="8b008b">8b008b
			<option style="background-color:8b4513;color=8b4513" value="8b4513">8b4513
			<option style="background-color:d3d3d3;color=d3d3d3" value="d3d3d3">d3d3d3
			<option style="background-color:d8bfd8;color=d8bfd8" value="d8bfd8">d8bfd8
			<option style="background-color:deb887;color=deb887" value="deb887">deb887
			<option style="background-color:e6e6fa;color=e6e6fa" value="e6e6fa">e6e6fa
			<option style="background-color:e9967a;color=e9967a" value="e9967a">e9967a
			<option style="background-color:eee8aa;color=eee8aa" value="eee8aa">eee8aa
			<option style="background-color:f08080;color=f08080" value="f08080">f08080
			<option style="background-color:f5deb3;color=f5deb3" value="f5deb3">f5deb3
			<option style="background-color:ff1493;color=ff1493" value="ff1493">ff1493
			<option style="background-color:ff4500;color=ff4500" value="ff4500">ff4500
			<option style="background-color:ffd700;color=ffd700" value="ffd700">ffd700
			<option style="background-color:fffacd;color=fffacd" value="fffacd">fffacd
			<option style="background-color:ffebcd;color=ffebcd" value="ffebcd">ffebcd
		</select>
		</td></tr>
	<tr><td width=70 align=right>详细说明:</td>
		<td><textarea rows=10 cols=66 name=content style="font-family:宋体" ><%=content%></textarea></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td width=150 align=right height=40></td>
		<td><input type="submit" name="submit" value="确认提交" style="width:80px;height:26px">&nbsp;&nbsp;&nbsp;&nbsp;
		<input type=button value='预览' name=Button onclick=gopreview() style="width:60px;height:26px">				
		</td>
	</tr>
</form>
</table>	
<script language=Javascript>
	editform.title.focus()
</script>
<%
end if
%>
<form name=preview method=post action="content_view.asp" target=winview>
	<input type=hidden name=viewtitle value=""><input type=hidden name=viewbody value="">
</form>
<body>
</html>

<!-- #include file="sysfunc.inc.asp" -->

<script language=Javascript>

	function format(flag)
	{
		switch(flag){
			case "bold":
				begintxt="<b>";
				endtxt="</b>";
				break;
			case "italic":
				begintxt="<i>";
				endtxt="</i>";
				break;
			case "underline":
				begintxt="<u>";
				endtxt="</u>";
				break;
			case "center":
				begintxt="<center>";
				endtxt="</center>";
				break;
			case "right":
				begintxt="<div align=right>";
				endtxt="</div>";
				break;
			case "space":
				begintxt="&nbsp;";
				endtxt="";
				break;
			case "url":
				begintxt="<a href='http://' target=_blank>";
				endtxt="</a>";
				break;
			case "email":
				begintxt="<a href='mailto:'>";
				endtxt="</a>";
				break;
			case "image":
				begintxt="<img src=''>";
				endtxt="";
				break;
		}
		dealcontent()
	}

	function formatcolor(newvalue)
	{
		begintxt="<font color="+newvalue+">"
		endtxt="</font>";
		dealcontent()
	}

	function formatfont(newvalue)
	{
		begintxt="<font face="+newvalue+">"
		endtxt="</font>";
		dealcontent()
	}

	function formatsize(newvalue)
	{
		begintxt="<font size="+newvalue+">"
		endtxt="</font>";
		dealcontent()
	}

	function dealcontent()
	{
		
		if ((document.selection)&&(document.selection.type == "Text"))
		{
		var range = document.selection.createRange();
		var ch_text=range.text;
		range.text = begintxt + ch_text + endtxt;
		} 
		else 
		{
		document.editform.content.value=begintxt+document.editform.content.value+endtxt;
		document.editform.content.focus();
		}
	}


	function gopreview()
	{
	document.preview.viewtitle.value=document.editform.title.value;
	document.preview.viewbody.value=document.editform.content.value;
	window.open('product_view.asp', 'winview', 'scrollbars=yes,width=500,height=400');
	document.preview.submit()
	}


	function checkform(form)
	{
		if (form("title").value == "")
		{
			alert("请填入产品名称!");
			form("title").focus();
			return false;
		}
	}
	
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -