<%@ page language="C#" autoeventwireup="true" inherits="Admin_en_Products_AdminProColorManager, YBBQYCMS_deploy" masterpagefile="../../MasterPage/Default.Master" theme="Standard" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/css/subModal.css" />

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/common.js"></script>

    <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/subModal.js"></script>

    <table style="width:100%">
        <tr>
            <td>
                <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
                    HeadTitleTxt="" HeadHelpTxt="帮助">
                </DataLayerWebControls:HeadMenuWebControls>
                <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="基本信息">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    颜色名称</td>
                                <td class="table_none">
                                    <asp:TextBox ID="ColorName_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                  </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    颜色图片</td>
                                <td class="table_none">
				                    <asp:TextBox ID="txtColorPhotoUrl" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    颜色图片上传</td>
                                <td class="table_none">
				                    <iframe id="Iframe1" src="../../UploadPic1.aspx?Id=Iframe1" width="100%" height="30" scrolling="no" frameborder="0"></iframe>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    产品小图片</td>
                                <td class="table_none">
				                    <asp:TextBox ID="txtProAllOtherPhotoUrl" runat="server" Height="97px" TextMode="MultiLine" Width="97%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    产品小图片上传</td>
                                <td class="table_none">
				                    <iframe id="Iframe2" src="../../UploadPic1.aspx?Id=Iframe2" width="100%" height="30" scrolling="no" frameborder="0"></iframe>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    产品大图片</td>
                                <td class="table_none">
				                    <asp:TextBox ID="txtProAllOtherBPhotoUrl" runat="server" Height="97px" TextMode="MultiLine" Width="97%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    产品大图片上传</td>
                                <td class="table_none">
				                    <iframe id="Iframe3" src="../../UploadPic1.aspx?Id=Iframe3" width="100%" height="30" scrolling="no" frameborder="0"></iframe>
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>
                <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" id="PostButton"
                    runat="server">
                    <tr>
                        <td align="right">
                            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定"  OnClick ="Button1_Click"/>
                            <input id="Reset1" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <script type="text/javascript">
  rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 
    // end central randomizer. --> 
   //插入上传图片
function AttachmentOperater(path,type,size,obj){
  if(obj=="Iframe1")
  {
	    document.all.<%=this.txtColorPhotoUrl.ClientID %>.value=path;
  }
  else if(obj=="Iframe2")
  {
  var currUrl=document.all.<%=this.txtProAllOtherPhotoUrl.ClientID %>.value;
    if(currUrl!="")
		document.all.<%=this.txtProAllOtherPhotoUrl.ClientID %>.value=currUrl + "\r" + path;
	else
	    document.all.<%=this.txtProAllOtherPhotoUrl.ClientID %>.value=path;
  }
  else
  {
  var currUrl=document.all.<%=this.txtProAllOtherBPhotoUrl.ClientID %>.value;
    if(currUrl!="")
		document.all.<%=this.txtProAllOtherBPhotoUrl.ClientID %>.value=currUrl + "\r" + path;
	else
	    document.all.<%=this.txtProAllOtherBPhotoUrl.ClientID %>.value=path;
  }
}
    </script>

</asp:Content>