<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_UserPowerEdit.aspx.cs" Inherits="AndroidSevice.Web.JXS.Frm_UserPowerEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        function sAlert(info) {
            var message = info;
            layer.alert(message, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
        function sAlertok(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
        function sAlertOut(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                window.location.href = '../../default.aspx'; //刷新父页面
            });
        }
        function sAlertMes(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
        }
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['80%', '75%'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function ShowDataHelpImage(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['80%', '75%'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
    </script>
    <script type="text/javascript" src="../Scripts/jquery-2.1.4.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>用户配置设置</h5>
							</div>
							<div class="widget-content nopadding">
                                 <div class="control-group" id="div5" runat="server">
                                            <label class="control-label">默认仓库</label>
                                            <div class="controls">
                                                <input type="text" name="stock" id="stock"  value="<%=_stock %>" disabled="disabled" />
									                <a title="" onclick=ShowDataHelp('Frm_SelStock.aspx?','','') class="btn btn-mini" href="#"><i class="icon-plus"></i></a>
                                                
                                            </div>
                                 </div>
                                  <div class="control-group" id="div1" runat="server">
                                    <label class="control-label">设置全局价格方式</label>
                                    <div class="controls">
                                        <select class="selectstyle" name="dpriceW" id="dpriceW">
                                           <option <%=_dpriceW=="1"?"selected":"" %>  value="选择相关售价类型" >选择相关售价类型</option>
                                           <%-- <option  <%=_dpriceW=="2"?"selected":"" %>  value="启用客户价格类型跟踪" >启用客户价格类型跟踪</option>--%>
				                        </select>
                                    </div>
                                 </div>

                                 <div class="control-group" id="div2" runat="server">
                                    <label class="control-label">设置全局价格</label>
                                    <div class="controls">
                                         <select class="selectstyle" name="dprice" id="dprice">
                                            <%if (dtDprice != null && dtDprice.Rows.Count > 0)
                                                {
                                                    for (int i = 0; i < dtDprice.Rows.Count; i++)
                                                    { %>
				                                    <option  <%=dtDprice.Rows[i]["pricetypeid"].ToString()==_dprice?"selected":"" %> value=<%=dtDprice.Rows[i]["pricetypeid"].ToString()+","+dtDprice.Rows[i]["fullname"].ToString()%> ><%=dtDprice.Rows[i]["fullname"].ToString()%></option>
                                            <% 
                                                    }
                                              
                                                }
                                                %>
				                        </select>
                                    </div>
                                 </div>

                                 <div class="control-group" id="div_UserPower">
								    <label class="control-label">启用基本信息授权控制</label>
								    <div class="controls">
									    <input type="radio" value="是" name="UserPower" <%=_userPower=="是"?"checked":"" %>  id="UserPower1"/>是
                                        <input type="radio" value="否" name="UserPower" <%=_userPower=="否"?"checked":"" %> id="UserPower2"/>否
								    </div>
							     </div>
							
                                <div class="control-group" id="div3">
								    <label class="control-label">上传首页图片</label>
								    <div class="controls">
									    <button type="button" onclick=ShowDataHelpImage('../../WLTGL/Frm_DelarsUserPowerImages.aspx?1=1*tname=UploadMainImage','','') class="btn" >
                                                    <i class="icon-picture"></i>图片上传</button>
								    </div>
							    </div>
                                <div class="control-group" id="div4">
								    <label class="control-label">上传LOGO图片</label>
								    <div class="controls">
									    <div class="btns">
                                            <div id="picker" >选择图片</div>
                                        </div>
                                        <div id="thelist" class="uploader-list" style="width:150px;">
                                        </div>
                                        <button id="ctlBtn" name="ctlBtn" class="btn btn-primary">开始上传</button>
								    </div>
							    </div>
                                <div class="controls">
                                       <button type="submit" value="sub" name="sub" class="btn"><i class="icon-hdd"></i>保存</button>
                                </div>
							</div>
						</div>
					</div>
				</div>
    </div>
</asp:Content>
