<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_Title, LebiMall" %>

<!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 runat="server">
    <title>乐彼多用户商城系统（LBMall）后台管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/checked.js"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script src="js/topHead.js" type="text/javascript"></script>
    <script type="text/javascript">
        var $=jQuery;
        function btnSub(){
        document.getElementById("pwd").value=document.getElementById("txt_mailPwd").value;
            document.getElementById("btnSubmit").click();
        }
        function resizeEditor2(id,size){
         var newheight = parseInt(document.getElementById(id).style.height, 10)+size;   
	        if(newheight >= 50) {   
		        document.getElementById(id).style.height = newheight + 'px';   
	        }  
    }
    </script>
</head>
<body>
    <div id="dhtmltooltip">
        <img src=""></div>
    <script type="text/javascript" language="javascript" src="js/js_link.js"></script>
    <form id="form1" runat="server">
     <script>header(6,0,"images/");</script>
   
    <!--面包屑-->
    <div class="blank clearfix"></div>
    
    <!--功能区-->
   
    <div class="tab-mainbody3">
        <div class="tab-mainbody4">
        <div class="functionHandleArea clearfix">
            <input type="image" title=" 保存 " onclick="btnSub();" src="images/bt_app.gif" align="absmiddle">
            <input type="image" name="Submit" title=" 重填 " onclick="reset();return false;" src="images/bt_res.gif" align="absmiddle">
        </div>
        <div id="datalist">
            <table cellpadding="0" cellspacing="0"  width="100%" id="list">
                     <tr>
                        <th colspan="2">
                            网站信息设置
                            <script type="text/javascript">
                                var i = 2;
                                var f="<%=Session["returnValue"] %>";
                                if(f=="true"){
                                    tipsWindown('操作结果','text:操作成功！','250','60','true','2000','true','text');
                                    <% Session["returnValue"]= null; %>
                                }
                                if(f=="false"){
                                    tipsWindown('操作结果','text:操作失败！','250','60','true','2000','true','text');
                                    <% Session["returnValue"]= null; %>
                                }
                        </script>
                        </th>
                    </tr>
                <tr>
                    <td style="width:15%;">
                        网站名称：
                    </td>
                    <td style="width:85%;">
                        <input type="text" runat="server" id="txt_title" style="width:600px;" class="input" />
                        <input type="text" id="txt_titleId" runat="server" visible="false" />
                    </td>
                </tr>
                <tr>
                    <td>
                        网站描述：
                    </td>
                    <td >
                        <textarea id="txt_description" runat="server" class="input-textarea" style="width:700px; height:50px;" ></textarea>
                        <br />
                        <input type="image" src="images/bt_close.gif" onclick="javascript:resizeEditor2('txt_description',-50);return false;" />
                        <input type=image src="images/bt_open.gif" onclick="javascript:resizeEditor2('txt_description',50);return false;" />
                    </td>
                </tr>
                <tr>
                    <td style="height: 76px">
                        网站关键字：
                    </td>
                    <td style="height: 76px" >
                        <textarea id="txt_keyworlds" runat="server" style="width:700px; height:50px;" class="input-textarea"></textarea>
                        <br />
                        <input type="image" src="images/bt_close.gif" onclick="javascript:resizeEditor2('txt_keyworlds',-50);return false;" />
                        <input type=image src="images/bt_open.gif" onclick="javascript:resizeEditor2('txt_keyworlds',50);return false;" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <td>
                        商家：
                    </td>
                    <td >
                        <input type="text" runat="server" id="txt_author" class="txtcss" />
                    </td>
                </tr>
                <tr>
                    <td>
                        更换网站logo：
                    </td>
                    <td >
                        <%if (model.Logoimg != "")
                          { 
                        %>
                        <img src="../images/kind-pic001.jpg" name="logoimg" align='absmiddle' onmouseover="javascript:ddrivetip('<div class=hideimg><img src=../Upload/WebAdminImages/<%=model.Logoimg %>></div>', '#ffffff', '150')"
                            onmouseout="hideddrivetip()" />
                        <%
                      } 
                        %>
                         <input type="file" runat="server" id="txt_logoimg" class="input" />
                        <em>注：建议上传图片大小如230×58.gif</em></td>
                </tr>
                <tr>
                    <td>
                        更换店铺logo：
                    </td>
                    <td >
                        <%if (model.Shoplogo.ToString() != ""){ %>
                        <img src="../images/kind-pic001.jpg" name="logoimg" align='absmiddle' onmouseover="javascript:ddrivetip('<div class=hideimg><img src=../Upload/WebAdminImages/<%=model.Shoplogo %>></div>', '#ffffff', '150')"
                            onmouseout="hideddrivetip()" />
                        <%}%>
                        <input type="file" runat="server" id="txt_shoplogo" class="input" />
                        <em>注：建议上传图片大小如250×60.gif</em></td>
                </tr>
                <tr>
                    <td style="height: 40px">
                        更换店铺形象：
                    </td>
                    <td style="height: 40px; width: 453px;">
                        <%if (model.Shopimg != ""){%>
                        <img src="../images/kind-pic001.jpg" id="shopimg" align='absmiddle' onmouseover="javascript:ddrivetip('<div class=hideimg><img src=../Upload/WebAdminImages/<%=model.Shopimg %>></div>', '#ffffff', '150')"
                            onmouseout="hideddrivetip()" />
                        <%}%>
                        <input type="file" runat="server" id="txt_shopimg" class="input" />
                        <em>注：建议上传图片大小如100×100.gif</em>
                    </td>
                </tr>
                <tr>
                    <td style="height: 40px">
                        更换店铺所属网站形象：
                    </td>
                    <td style="height: 40px; width: 453px;">
                        <%if (model.Couponlogo != "")
                          { 
                        %>
                        <img src="../images/kind-pic001.jpg" id="couponlogo" align='absmiddle' onmouseover="javascript:ddrivetip('<div class=hideimg><img src=../Upload/WebAdminImages/<%=model.Couponlogo %>></div>', '#ffffff', '150')"
                            onmouseout="hideddrivetip()" />
                        <%
                      }
                        %>
                        <input type="file" runat="server" id="txt_couponlogo" class="input" />
                        <em>注：建议上传图片大小如138×38.gif</em>
                    </td>
                </tr>
                <tr>
                    <td>网站地址：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_Website_Add" runat="server"  size="30"/> &nbsp; 如：http://www.56770.com 
                    </td>
                </tr>
                <tr>
                    <td>联系QQ：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_QQ" size="30" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>联系电话：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_Phone" size="30" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>联系传真：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_Fax" size="30" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>电子邮件：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_email" size="30" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>网站安装路径：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_webPath" size="30" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>内部版权：
                    </td>
                    <td>
                    <textarea class="input-textarea" id="txt_copr" runat="server" style="width:700px; height:50px;"></textarea>
                    <br />
                    <input type="image" src="images/bt_close.gif" onclick="javascript:resizeEditor2('txt_copr',-50);return false;" />
                    <input type=image src="images/bt_open.gif" onclick="javascript:resizeEditor2('txt_copr',50);return false;" />

                    </td>
                </tr>
                <tr runat="server" id="copr_div">  
                    <td>是否显示版权信息：
                    </td>
                    <td>
                    <input id="Radio9" type="radio" name="comm" runat="server" />开启&nbsp;<input id="Radio10" type="radio" name="comm" runat="server" />关闭
                    </td>
                </tr>
                
                <tr>  
                    <td>是否开启二级域名：
                    </td>
                    <td>
                    <input id="Radio11" type="radio" name="comm1" runat="server" />开启&nbsp;<input id="Radio12" type="radio" name="comm1" runat="server" />关闭
                    </td>
                </tr>
                 <tr>  
                    <td>添加站点编号：
                    </td>
                    <td>
                    <input type="text" runat="server" class="input" id="txt_zdbh"  />
                    </td>
                </tr>
                <tr>  
                    <td>是否开启静态导航：
                    </td>
                    <td>
                    <input id="Radio13" type="radio" name="comm2" runat="server" />开启&nbsp;<input id="Radio14" type="radio" name="comm2" runat="server" />关闭
                    </td>
                </tr>
                 <tr>  
                    <td>无忧贴士内容：
                    </td>
                    <td>
                        <textarea class="input-textarea" id="txt_tieshi" runat="server" style="width:700px; height:50px;"></textarea>
                       <br />
                    <input type="image" src="images/bt_close.gif" onclick="javascript:resizeEditor2('txt_tieshi',-50);return false;" />
                    <input type=image src="images/bt_open.gif" onclick="javascript:resizeEditor2('txt_tieshi',50);return false;" />
                    </td>
                </tr>
              <%--  邮件 发送 设置--%>
                <tr><th colspan="2">邮件发送设置</th></tr>
                <tr>
                    <td>SMTP Server地址：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_smtpAddress" runat="server"  value="smtp.163.com"/> &nbsp; 如：smtp.163.com 
                    </td>
                </tr>
                <tr>
                    <td>邮件登陆名：
                    </td>
                    <td>
                    <input type="text" class="input" id="txt_mailName" runat="server" value="kingdge@163.com"/>  
                    </td>
                </tr>
                <tr>
                    <td>登陆密码：
                    </td>
                    <td>
                   <input type="password" id="txt_mailPwd" value="<%=baseConfigXML.XMLRead("MailPassWord") %>" class="input" size="21"  />
                       
                    </td>
                </tr>
                <tr>
                    <td>发件设置：
                    </td>
                    <td>
                    <input type="checkbox" id="cbx_registr" runat="server"/> 注册&nbsp;<input type="checkbox" id="cbx_orders" runat="server" />会员下单&nbsp;  <input type="checkbox" id="cbx_ordersChang" runat="server" />订单更改
                    </td>
                </tr>
                <tr><th colspan="2">首页推荐</th></tr>
                <tr><td>推荐热销排行总个数：</td><td><input type="text" class="input" id="top_count" runat="server" size="5" onkeyup="value=value.replace(/[^\d]/g,'')"
                            onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />&nbsp;<em>只可以输入数字</em></td></tr>
                <tr><td>推荐热销单品总个数：</td><td><input type="text" class="input" id="recommo_count" runat="server" size="5" onkeyup="value=value.replace(/[^\d]/g,'')"
                            onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />&nbsp;<em>只可以输入数字</em></td></tr>
                <tr><th colspan=2>服务协议</th>
                </tr>
                <tr><td colspan=2>
                    <textarea class="input-textarea" style="width:900px; height:100px;" runat="server" id="fuwu"></textarea>
                    <br />
                    <input type="image" src="images/bt_close.gif" onclick="javascript:resizeEditor2('fuwu',-200);return false;" />
                    <input type=image src="images/bt_open.gif" onclick="javascript:resizeEditor2('fuwu',200);return false;" />
                </td></tr>
                <tr><th colspan=2>文章设置</th>
                </tr>
                <tr>
                    <td>文章审核：
                    </td>
                    <td>
                    <input id="Radio1" type="radio" name="arg" runat="server" />开启&nbsp;<input id="Radio2" type="radio" name="arg" runat="server" />关闭
                    </td>
                </tr>
                <tr>  
                    <td>店主发表：
                    </td>
                    <td>
                    <input id="Radio3" type="radio" name="dzf" runat="server" />开启&nbsp;<input id="Radio4" type="radio" name="dzf" runat="server" />关闭
                    </td>
                </tr>
                <tr>  
                    <td>用户发表：
                    </td>
                    <td>
                    <input id="Radio5" type="radio" name="yhf" runat="server" />开启&nbsp;<input id="Radio6" type="radio" name="yhf" runat="server" />关闭
                    </td>
                </tr>
                <tr>  
                    <td>评论：
                    </td>
                    <td>
                    <input id="Radio7" type="radio" name="comm" runat="server" />开启&nbsp;<input id="Radio8" type="radio" name="comm" runat="server" />关闭
                    </td>
                </tr>
                
                  <tr>
                        <td colspan="2" class="classfaq">
                            <div class="faq_main">
                                <p class="faq_title">开启二级域名条件：</p>
                                1.二级域名需独立服务器方可开启<br>
                                2.需要做泛名解析
                            </div>
                        </td>
                    </tr>
                
                <tr>
                    <td colspan="2" style="height: 22px" class="list-foot">
                     &nbsp;<input type="image"  title=" 保存 " onclick="btnSub();" src="images/bt_app.gif" align="absmiddle">
                                <input type="image" name="Submit" title=" 重填 " onclick="reset();return false;" src="images/bt_res.gif" align="absmiddle">
                       <input id="btnSubmit" type="button" style="display:none;" value="提交" class="btn-css" runat="server"
                            onserverclick="btnSubmit_ServerClick1" />
                            <input type="hidden" id="pwd" runat="server"/>
                    </td>
                </tr>
                
            </table><script type="text/javascript">tdshowm("list");</script>
        </div>
        </div>
    </form>
</body>
</html>
