<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Zoomla.Website.manage.Shop.Producer, App_Web_2afsdgkd" masterpagefile="~/Manage/I/Default.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content runat="server" ContentPlaceHolderID="head">
<title>添加厂商</title>
<script type="text/javascript" charset="utf-8" src="/Plugins/Ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/Plugins/Ueditor/ueditor.all.min.js"></script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
  <table class="table table-striped table-bordered table-hover">
    <tr align="center">
    </tr>
    <tr>
      <td  style="width:100px">厂商名称：</td>
      <td valign="middle"><asp:TextBox ID="Producername" runat="server" class="form-control"  />
        <span style="color:red;margin-left:5px;">*</span>
        <asp:HiddenField ID="ID" runat="server" />
        <asp:HiddenField ID="uptype" runat="server" /></td>
    </tr>
    <tr>
      <td>厂商缩写：</td>
      <td valign="middle"><asp:TextBox ID="Smallname" runat="server" class="form-control" ></asp:TextBox></td>
    </tr>
    <tr>
      <td>创建日期：</td>
      <td valign="middle"><asp:TextBox ID="CreateTime" runat="server" class="form-control" onclick="WdatePicker({ dateFmt: 'yyyy/MM/dd HH:mm:ss' });"></asp:TextBox></td>
    </tr>
    <tr>
      <td>公司地址：</td>
      <td valign="middle"><asp:TextBox ID="Coadd" runat="server" class="form-control" ></asp:TextBox>
        <span style="color:red;margin-left:5px;">*</span></td>
    </tr>
    <tr>
      <td>联系电话：</td>
      <td valign="middle"><asp:TextBox ID="Telpho" runat="server" class="form-control"></asp:TextBox>
        <span style="color:red;margin-left:5px;">*</span></td>
    </tr>
    <tr>
      <td>传真号码：</td>
      <td valign="middle"><asp:TextBox ID="FaxCode" runat="server" class="form-control"></asp:TextBox></td>
    </tr>
    <tr>
      <td>邮政编码：</td>
      <td valign="middle"><asp:TextBox ID="PostCode" runat="server" class="form-control"></asp:TextBox></td>
    </tr>
    <tr>
      <td>厂商主页：</td>
      <td valign="middle"><asp:TextBox ID="CoWebsite" runat="server" class="form-control" ></asp:TextBox></td>
    </tr>
    <tr>
      <td>电子邮件：</td>
      <td valign="middle"><asp:TextBox ID="Email" runat="server" class="form-control"></asp:TextBox></td>
    </tr>
    <tr>
      <td>厂商分类：</td>
      <td valign="middle"><asp:RadioButtonList ID="CoClass" runat="server" RepeatDirection="Horizontal"  Width="420px">
          <asp:ListItem Selected="True">大陆厂商</asp:ListItem>
          <asp:ListItem>港台厂商</asp:ListItem>
          <asp:ListItem>日韩厂商</asp:ListItem>
          <asp:ListItem>欧美厂商</asp:ListItem>
          <asp:ListItem>其他厂商</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
    <tr>
      <td>厂商照片：</td>
      <td valign="middle"><asp:TextBox ID="CoPhoto" class="form-control" runat="server" Width="321px"></asp:TextBox>
        <iframe id="proimgs" style="top:2px" src="../../Shop/fileupload.aspx?menu=CoPhoto" width="50%" height="25px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe></td>
    </tr>
    <tr class="WebPart">
      <td>厂商简介：</td>
      <td valign="middle">
        <textarea   id="Content"  name="Content"   runat="server" style="width:80%;height:300px;"></textarea>
        <%=Call.GetUEditor("Content",2) %></td>
    </tr>
    <tr class="tdbg">
      <td colspan="2" align="" class="tdbg"><asp:Button ID="Button1" runat="server" class="btn btn-primary"  Text="保存设置" OnClick="Button1_Click" OnClientClick="return checkValue()"/></td>
    </tr>
  </table>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent">
<script type="text/javascript" src="/Plugins/Ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/Plugins/kindeditor/kindeditor.js" charset="utf-8"></script>
<script type="text/javascript" src="/JS/DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
    function checkValue() {
        var a = document.getElementById("<%=Producername.ClientID%>").value;
    var b = document.getElementById("<%=Coadd.ClientID%>").value;
    var c = document.getElementById("<%=Telpho.ClientID%>").value;
    if (a == "" || b == "" || c == "") {
        alert("请将必要信息填满");
        return false;
    }
    return true;
}
</script>
</asp:Content>