<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductEdit.aspx.cs" Inherits="Admin_Trade_ProductEdit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../../Control/Upfile.ascx" TagName="Upfile" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改产品信息</title>
<link href="../skin/Style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/calendar.js"></script>
<script type="text/javascript" src="../../js/Industry.js"></script>
<script type="text/javascript">
function display() 
{ 
	var rowTest=document.getElementById("rowTest");
	switch (document.form1.chkChangeDirectionLink.checked) 
	{ 
		case false: 
			 document.form1.text.disabled=true;
			 rowTest.style.display="block";
			 document.form1.text.value="";
		break; 
		case true: 
			document.form1.text.disabled=false; 
			rowTest.style.display="none";
			document.form1.text.value="";
		break; 
		} 
 } 
function showadv()
{
	if (document.form1.pic_on.checked == true) 
	{
		adv.style.display = "";
		advance.innerText="取消上传标题图片"
	}
	else
	{
		adv.style.display = "none";
		advance.innerText="上传标题图片"
	}
}
 function $(id)
{
   return document.getElementById(id);
}
function check()
{
  if($("txtName").value=="")
  {
	document.getElementById("txt0").innerHTML="产品名称不能为空";
	return false;
  }
  if($("txtKeyWord").value=="")
  {
	document.getElementById("txt1").innerHTML="关键字不能为空";
	return false;
  }
  if($("txtPrice").value=="")
  {
	document.getElementById("txt2").innerHTML="靠前价格不能为空";
	return false;
  }
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="talbe_border marie">
<asp:HiddenField ID="txtSortB" runat="server"></asp:HiddenField>
<asp:HiddenField ID="txtSortM" runat="server"></asp:HiddenField>
<asp:HiddenField ID="txtSortS" runat="server"></asp:HiddenField>
<table cellspacing="0" cellpadding="0" border="0" class="talbe_list">
	<tr>
		<th colspan="2" class="header tou">
			修改产品信息</th>
	</tr>
	<tr>
		<td width="16%" class="left1">
			产品名称
		</td>
		<td class="left2">
			<span>
				<asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox></span>
			<div id="txt0" style="color:Red;">
			</div>
		</td>
	</tr>
	<tr>
		<td class="left1">
			行业分类
		</td>
		<td class="left2">
			<span>
				<select id="SortB" runat="server" size="8" style="width: 132px">
				</select>
				<select id="SortM" runat="server" size="8" style="width: 132px">
				</select>
				<select id="SortS" runat="server" size="8" style="width: 132px">
				</select>
			</span>
		</td>
	</tr>
	<tr>
		<td class="left1">
			图片
		</td>
		<td>
			<div style="float: left">
				<asp:HiddenField ID="ImgUrl1" runat="server" />
				<asp:HiddenField ID="HiddenField1" runat="server" />
				<a href="" id="txturldz" target="_blank">
					<img src="../../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
						border="0" id="ImgUrl" runat="server" /></a><br />
				<input id="txtupload" type="button" value="上传" /><br />
				<div id="rowTest" style="display: none">
					<iframe name="tag" src="../UpFile/Upload.html" style="width: 550px; height: 135px"
						frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
					</iframe>
				</div>
			</div>
		</td>
	</tr>
	<tr>
		<td class="left1">
			关键字</td>
		<td class="left2">
			<span>
				<asp:TextBox ID="txtKeyWord" runat="server" Width="200"></asp:TextBox></span>
			<div id="txt1"  style="color:Red;">
			</div>
		</td>
	</tr>
	<tr id="rowTests">
		<td class="left1">
			产品说明
		</td>
		<td>
			<FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/"
				ToolbarSet="Basic" Height="400px" Width="640">
			</FCKeditorV2:FCKeditor>
		</td>
	</tr>
	<tr>
		<td class="left1">
			添加时间</td>
		<td class="left2">
			<span>
				<asp:TextBox ID="txtAddDate" runat="server" onfocus="calendar()" Width="200"></asp:TextBox></span>
		</td>
	</tr>
	 <tr>
		<td class="left1">
			靠前价格</td>
		<td class="left2">
			<span>
				<asp:TextBox ID="txtPrice" runat="server" Width="200"></asp:TextBox></span>
			<div id="txt2"  style="color:Red;">
			</div>
		</td>
	</tr>
	<tr align="center">
		<td colspan="2" bgcolor="#F0F7FD">
			<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="确定" OnClientClick="javascript: return check()" CssClass="i_button" /><asp:Button
				ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CssClass="i_button" /></td>
	</tr>
</table>
</div>
</form>
<script language="javascript" type="text/javascript">
initialize(0);
</script>
<script type="text/javascript" src="../js/Supply.js"></script>
<script type="text/javascript" src="../../js/Common.js"></script>
</body>
</html>