<div class="wrapper-md" ng-controller="admin_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}管理员
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">管理员帐号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="A_login" value="{{data.A_login}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">密码</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="A_pwd" placeholder="若不修改密码则留空">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">管理员类型</label>
            <div class="col-sm-10">
          <label class="i-checks" style="width: 100px;">
                <input type="radio" name="A_type" value="1" ng-model="data.A_type" ng-checked="isSelected2(data.A_type,1)">
                <i></i>
                顶级管理员
              </label>
              <label class="i-checks" style="width: 100px;">
                <input type="radio" name="A_type" value="0" ng-model="data.A_type" ng-checked="isSelected2(data.A_type,0)">
                <i></i>
                子管理员
              </label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">模块权限</label>
          <div class="col-sm-10">
           <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="A_a0" value="1" ng-checked="isSelected(data.A_a0)">
                <i></i>
                后台首页&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a1" value="1" ng-checked="isSelected(data.A_a1)">
                <i></i>
                基本设置&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a2" value="1" ng-checked="isSelected(data.A_a2)">
                <i></i>
                <span ng-bind-html="ttitle(C_sort)" style="margin:0;"></span>管理&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a3" value="1" ng-checked="isSelected(data.A_a3)">
                <i></i>
                <span ng-bind-html="ntitle(C_sort)" style="margin:0;"></span>管理&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a4" value="1" ng-checked="isSelected(data.A_a4)">
                <i></i>
                <span ng-bind-html="ptitle(C_sort)" style="margin:0;"></span>管理&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a5" value="1" ng-checked="isSelected(data.A_a5)">
                <i></i>
                万能表单&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a12" value="1" ng-checked="isSelected(data.A_a12)">
                <i></i>
                论坛管理&nbsp;
              </label>
              </div>
              <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="A_a6" value="1" ng-checked="isSelected(data.A_a6)">
                <i></i>
                模板插件&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a8" value="1" ng-checked="isSelected(data.A_a8)">
                <i></i>
                联系方式&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a10" value="1" ng-checked="isSelected(data.A_a10)">
                <i></i>
                手机版本&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a7" value="1" ng-checked="isSelected(data.A_a7)">
                <i></i>
                菜单管理&nbsp;
              </label>
              <label class="i-checks" ng-show="isSelected2(data.A_type,1)">
                <input type="checkbox" name="A_a9" value="1" ng-checked="isSelected(data.A_a9)&&isSelected2(data.A_type,1)">
                <i></i>
                <b>帐号管理</b>&nbsp;
              </label>
              <label class="i-checks">
                <input type="checkbox" name="A_a11" value="1" ng-checked="isSelected(data.A_a11)">
                <i></i>
                网站安全&nbsp;
              </label>
            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">说明</label>
          <div class="col-sm-10">
          顶级管理员：拥有所有的管理权限<br>
          子管理员：不可管理其他帐号，不可删除操作日志
          </div>
          </div>
<hr>
<div class="hr-more">模块内部权限</div>

<div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ttitle(C_sort)" style="margin:0;"></span>权限</label>
          <div class="col-sm-10">
          <div class="checkbox">
          <span ng-bind-html="trust(data.textauth)"></span>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)" style="margin:0;"></span>分类权限</label>
          <div class="col-sm-10">
          <div class="checkbox">
          <span ng-bind-html="trust(data.newsauth)"></span>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)" style="margin:0;"></span>分类权限</label>
          <div class="col-sm-10">
          <div class="checkbox">
          <span ng-bind-html="trust(data.productauth)"></span>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">表单权限</label>
          <div class="col-sm-10">
          <div class="checkbox">
          <span ng-bind-html="trust(data.formauth)"></span>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">论坛权限</label>
          <div class="col-sm-10">
          <div class="checkbox">
          <span ng-bind-html="trust(data.bbsauth)"></span>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">说明</label>
          <div class="col-sm-10">
          如果选中“全部”，那么以后无论分类增减，均对所有分类拥有权限<br>
          如果选中特定分类，那么只对选中的分类拥有权限
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="admin_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         管理员列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>管理员</th>
        <th>权限</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in admin_list" id="item_{{x.A_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.A_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td>{{x.A_login}}</td>
        <td><span ng-bind-html="trust(x.A_part)"></span></td>
        <td><a href="#/app/admin_add/{{x.A_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.A_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
        </form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
<a href='#/app/admin_add/' class='edit'><i class='fa fa-plus'></i> 新增管理员</a>
    </div>
  </div>
</div>
^
  <div data-ng-include=" 'tpl.php?page=66' " class="app-header navbar">
  </div>
  <div data-ng-include=" 'tpl.php?page=65' " class="app-aside hidden-xs {{app.settings.asideColor}}">
  </div>
  <div class="app-content">
    <div ui-butterbar></div>
    <a href class="off-screen-toggle hide" ui-toggle-class="off-screen" data-target=".app-aside" ></a>
    <div class="app-content-body fade-in-up" ui-view></div>
  </div>
  <div class="app-aside-right pos-fix no-padder w-md w-auto-xs bg-white b-l animated fadeInRight hide">
    
  </div>
  <alert ng-repeat="alert in alerts" type="{{alert.type}}" ng-hide="alerthide" close="closeAlert($index)" style="position: fixed; top:60px; right: 10px; z-index: 100000; width: 270px;"><span ng-bind-html="trust(alert.msg)"></span></alert>
^
<div class="wrapper-md" ng-controller="config_Ctrl" >

  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         基本设置
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <tabset class="tab-container">
          <tab heading="SEO设置" active="tab0">
          <div class="form-group">
          <label class="col-sm-2 control-label">网站标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_title" value="{{data.C_webtitle}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">网站关键词</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_keywords" popover="写几个最符合网站的关键词，注意词与词之间用半角逗号（,）隔开，对SEO优化有帮助" popover-trigger="focus" value="{{data.C_keywords}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">网站描述</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="3" name="C_content" popover="写一段描述你的网站的文字，不要超过100字，对SEO优化有帮助" popover-trigger="focus">{{data.C_description}}</textarea>
          </div>
          </div>

          </tab>
          <tab heading="基本设置" active="tab1">
          <div class="form-group">
          <label class="col-sm-2 control-label">版权文字</label>
          <div class="col-sm-10">
            <textarea  spellcheck="false" class="form-control {{lcss}}" rows="3" name="C_foot">{{data.C_foot}}</textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">网站备案号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_beian" value="{{data.C_beian}}" placeholder="可留空">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">网址跳转</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_domain" value="{{data.C_todomain}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">网站logo</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_logo|pic}}" id="C_logox" class="L_pic" ng-click="showUpload('C_logo');">
           <div class="input-group">

              <input type="text" class="form-control" name="C_logo" id="C_logo" value="{{data.C_logo}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_logo');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_logo');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label" required>logoX坐标</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_logox" value="{{data.C_logox}}" popover="控制LOGO左右方向" popover-trigger="focus"> 
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label" required>logoY坐标</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_logoy" value="{{data.C_logoy}}" popover="控制LOGO上下方向" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label" required>网站ico文件</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_ico|pic}}" id="C_icox" class="L_pic" ng-click="showUpload('C_ico');">
           <div class="input-group">
              <input type="text" class="form-control" name="C_ico" id="C_ico" value="{{data.C_ico}}" popover="ico文件，显示在地址栏及标题栏的小图标" popover-trigger="focus">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_ico');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_ico');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label" required>搜索热词</label>
          <div class="col-sm-10">
          <input type="text" class="form-control {{lcss}}" name="C_hotwords" value="{{data.C_hotwords}}" popover="每个词之间使用半角逗号,隔开" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label" required>会员登录背景图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_memberbg|pic}}" id="C_memberbgx" class="L_pic" ng-click="showUpload('C_memberbg');">
           <div class="input-group">
              <input type="text" class="form-control" name="C_memberbg" id="C_memberbg" value="{{data.C_memberbg}}" popover="会员登录/注册界面的背景图" popover-trigger="focus">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_memberbg');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_memberbg');">选择</button>
              </span>
            </div>
          </div>
          </div>

          </tab>

          <tab heading="辅助功能" active="tab2">
          <div class="form-group">
          <label class="col-sm-2 control-label">辅助功能</label>
          <div class="col-sm-10">
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" ng-model="data.C_qqon" name="C_qqon" value="1" ng-checked="isSelected(data.C_qqon)">
                <i></i>
                开启客服插件
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_member" value="1" ng-checked="isSelected(data.C_member)">
                <i></i>
                开启会员中心
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_top" value="1" ng-checked="isSelected(data.C_top)">
                <i></i>
                返回顶部按钮
              </label>

            </div>


            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_close"  value="1" ng-checked="isSelected(data.C_close)">
                <i></i>
                临时关站
              </label>

            </div>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label">开启静态</label>
          <div class="col-sm-10" style="padding-top: 7px;">
            <div class="checkbox">
            <label class="i-checks">
                <input type="radio" name="C_html" value="0" ng-checked="isSelected2(data.C_html,0)" >
                <i></i>
                <b>不开启静态</b>&nbsp;&nbsp;
              </label>
            </div>
<div class="checkbox">
              <label class="i-checks">
                <input type="radio" name="C_html" value="1" ng-checked="isSelected2(data.C_html,1)" >
                <i></i>
                <b>开启真静态</b>&nbsp;&nbsp;（开启真静态后，需要手动 <a href="#/app/tohtml/" class="btn btn-primary btn-xs">生成静态</a> 文件）
              </label>
</div>
<div class="checkbox">
              <label class="i-checks">
                <input type="radio" name="C_html" value="2" ng-checked="isSelected2(data.C_html,2)" >
                <i></i>
                <b>开启伪静态</b>&nbsp;&nbsp;（需先确认主机是否支持伪静态）
              </label>
</div>
          </div>
          </div>





          <hr>
          <div class="hr-more">外部代码</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">统计代码<br><a href="help.php?page=1.3.1" target="_blank" class="btn btn-xs btn-success">帮助？</a></label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="C_code" rows="3" id="C_code">{{data.C_code}}</textarea>
            <div style="margin-top: 5px">*系统已内置了<a href="#/app/config/13"><u>百度统计</u></a>，如果您使用其他第三方统计，可以将代码在此填写</div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">分享代码<br><a href="help.php?page=1.3.2" target="_blank" class="btn btn-xs btn-success">帮助？</a></label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="C_fenxiang" rows="3" id="C_fenxiang">{{data.C_fenxiang}}</textarea>
          </div>
          </div>
          <hr>
          <div class="hr-more">客服设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">QQ/旺旺客服</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" name="C_qq" rows="4" popover="格式为：号码|职务，每行一个" popover-trigger="focus">{{data.C_qq}}</textarea>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">电话客服</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="C_mobile" rows="3" popover="每行一个" popover-trigger="focus">{{data.C_mobile}}</textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">客服悬浮框</label>
          <div class="col-sm-10" style="padding-top: 7px;">
            <label class="i-checks">
                <input type="radio" name="C_kfon" value="0" ng-checked="isSelected2(data.C_kfon,0)" >
                <i></i>
                默认缩起&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_kfon" value="1" ng-checked="isSelected2(data.C_kfon,1)" >
                <i></i>
                默认展开&nbsp;&nbsp;
              </label>
          </div>
          </div>


          <div class="form-group" ng-show="isSelected2(data.C_qqon,1)">
          <label class="col-sm-2 control-label">客服插件</label>
          <div class="col-sm-10">
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_qq1" value="1" ng-checked="isSelected(data.C_qq1)">
                
                <i></i>
                在线客服
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_qq2" value="1" ng-checked="isSelected(data.C_qq2)">
                
                <i></i>
                电话客服
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_qq3" value="1" ng-checked="isSelected(data.C_qq3)">
                
                <i></i>
                网站二维码
              </label>

            </div>
          <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_qq4" value="1" ng-checked="isSelected(data.C_qq4)">
                <i></i>
                微信公众号
              </label>

            </div>
          </div>
          </div>

          <div ng-show="isSelected(c.x7)">
          <hr>
          <div class="hr-more">语言设置</div>
<div class="form-group">
          <label class="col-sm-2 control-label">开启语言</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks" style="width: 150px;">
                <input type="checkbox" name="C_lang[]" value="0" ng-checked="ishave(data.C_lang,0)">
                <i></i>
                <input type="text" name="C_langtitle0" value="{{data.C_langtitle0}}"  style="opacity:1;width:60px;margin-left:7px;">
                <input type="text" name="C_langtag0" value="{{data.C_langtag0}}"  style="opacity:1;width:40px;margin-left:70px;">
              </label>
              <label class="i-checks" >
                <input type="radio" name="C_delang" value="0" ng-checked="isSelected2(data.C_delang,0)">
                <i></i>
                默认语言
              </label>

              <label class="i-checks" >
                <b>旗帜：</b>
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag0" value="cn" ng-checked="isSelected2(data.C_flag0,'cn')">
                <i></i>
                cn <img src="../images/cn.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag0" value="sg" ng-checked="isSelected2(data.C_flag0,'sg')">
                <i></i>
                sg <img src="../images/sg.png">
              </label>
            </div>
            
            <div class="radio">
              <label class="i-checks" style="width: 150px;">
                <input type="checkbox" name="C_lang[]" value="2" ng-checked="ishave(data.C_lang,2)">
                <i></i>
                <input type="text" name="C_langtitle1" value="{{data.C_langtitle1}}" style="opacity:1;width:60px;margin-left:7px;">
                <input type="text" name="C_langtag1" value="{{data.C_langtag1}}"  style="opacity:1;width:40px;margin-left:70px;">
              </label>
              <label class="i-checks" >
                <input type="radio" name="C_delang" value="2" ng-checked="isSelected2(data.C_delang,2)">
                <i></i>
                默认语言
              </label>

              <label class="i-checks" >
                <b>旗帜：</b>
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag2" value="cn" ng-checked="isSelected2(data.C_flag2,'cn')">
                <i></i>
                cn <img src="../images/cn.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag2" value="hk" ng-checked="isSelected2(data.C_flag2,'hk')">
                <i></i>
                hk <img src="../images/hk.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag2" value="mo" ng-checked="isSelected2(data.C_flag2,'mo')">
                <i></i>
                mo <img src="../images/mo.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag2" value="tw" ng-checked="isSelected2(data.C_flag2,'tw')">
                <i></i>
                tw <img src="../images/tw.png">
              </label>


            </div>
            <div class="radio">
              <label class="i-checks" style="width: 150px;">
                <input type="checkbox" name="C_lang[]" value="1" ng-checked="ishave(data.C_lang,1)">
                <i></i>
                <input type="text" name="C_langtitle2" value="{{data.C_langtitle2}}" style="opacity:1;width:60px;margin-left:7px;">
                <input type="text" name="C_langtag2" value="{{data.C_langtag2}}"  style="opacity:1;width:40px;margin-left:70px;">
              </label>
              <label class="i-checks" >
                <input type="radio" name="C_delang" value="1" ng-checked="isSelected2(data.C_delang,1)">
                <i></i>
                默认语言
              </label>

              <label class="i-checks" >
                <b>旗帜：</b>
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag1" value="uk" ng-checked="isSelected2(data.C_flag1,'uk')">
                <i></i>
                uk <img src="../images/uk.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag1" value="us" ng-checked="isSelected2(data.C_flag1,'us')">
                <i></i>
                us <img src="../images/us.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag1" value="ca" ng-checked="isSelected2(data.C_flag1,'ca')">
                <i></i>
                ca <img src="../images/ca.png">
              </label>
              <label class="i-checks" style="width: 70px;">
                <input type="radio" name="C_flag1" value="au" ng-checked="isSelected2(data.C_flag1,'au')">
                <i></i>
                au <img src="../images/au.png">
              </label>
            </div>
          </div>
          </div>
          </div>
          <hr>
          <div class="hr-more">社交网站</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微博主页</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_weibo" value="{{data.C_weibo}}" >
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">公众号二维码</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_wcode|pic}}" id="C_wcodex" class="L_pic" ng-click="showUpload('C_wcode');">
            <div class="input-group">
              <input type="text" class="form-control" id="C_wcode" name="C_wcode" value="{{data.C_wcode}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_wcode');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_wcode');">选择</button>
              </span>
            </div>
          </div>
          </div>

          </tab>
          <tab heading="分页设置" active="tab3">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>分页</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_npage" value="{{data.C_npage}}" popover="新闻每页的条数（填写大于0的整数）" popover-trigger="focus">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>分页</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_ppage" value="{{data.C_ppage}}" popover="产品每页的个数（填写大于0的整数）" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            说明：数字即每页显示的条数，请填写大于0的整数
          </div>
          </div>

          </tab>
          <tab heading="水印设置" active="tab4">
          
          <div class="form-group" ng-show="C_db!='mysql'">
          <label class="col-sm-2 control-label">水印组件</label>
          <div class="col-sm-10 ">
          persits.jpeg组件 <span style="color:#009900" ng-show="isSelected2(data.C_jpeg,1)">√ 支持</span> <span style="color:#ff0000" ng-show="isSelected2(data.C_jpeg,0)">× 不支持，请先联系空间商安装</span>
          </div>
          </div>
          <div ng-show="isSelected2(data.C_jpeg,1) || C_db=='mysql'">
          <div class="form-group">
          <label class="col-sm-2 control-label">水印开关</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_mark" value="1" ng-checked="isSelected2(data.C_mark,1)" ng-click="mark(1)">
                <i></i>
                文字水印&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_mark" value="2" ng-checked="isSelected2(data.C_mark,2)" ng-click="mark(2)">
                <i></i>
                图片水印&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_mark" value="0" ng-checked="isSelected2(data.C_mark,0)" ng-click="mark(0)">
                <i></i>
                关闭水印&nbsp;&nbsp;
              </label>
            </div>
          </div>
          </div>
          <div class="form-group" ng-hide="isSelected2(data.C_mark,0)">
          <label class="col-sm-2 control-label">水印位置</label>
          <div class="col-sm-10">
           <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_m_position" value="1" ng-checked="isSelected2(data.C_m_position,1)">
                <i></i>
                左上&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_m_position" value="2" ng-checked="isSelected2(data.C_m_position,2)">
                <i></i>
                右上&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_m_position" value="3" ng-checked="isSelected2(data.C_m_position,3)">
                <i></i>
                左下&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_m_position" value="4" ng-checked="isSelected2(data.C_m_position,4)">
                <i></i>
                右下&nbsp;&nbsp;
              </label>
              <label class="i-checks">
                <input type="radio" name="C_m_position" value="5" ng-checked="isSelected2(data.C_m_position,5)">
                <i></i>
                居中&nbsp;&nbsp;
              </label>
            </div>
          </div>
          </div>
          <div ng-show="isSelected2(data.C_mark,1)">
          <hr>
          <div class="form-group">
          <label class="col-sm-2 control-label">水印文字</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_m_text" value="{{data.C_m_text}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">水印字体</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_m_font" value="{{data.C_m_font}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">文字大小</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_m_size" value="{{data.C_m_size}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">文字颜色</label>
          <div class="col-sm-10">
            <input type="text" id="hue-demo" class="form-control" name="C_m_color" value="{{data.C_m_color}}">
          </div>
          </div>
          <script>
            $('#hue-demo').minicolors({
                    change: function(hex, opacity) {
                        if( !hex ) return;
                        if( opacity ) hex += ', ' + opacity;
                        try {
                            console.log(hex);
                        } catch(e) {}
                    },
                    theme: 'bootstrap'
                });
          </script>
          
          </div>
          <div ng-show="isSelected2(data.C_mark,2)">
          <hr>
          <div class="form-group">
          <label class="col-sm-2 control-label" required>水印图片</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_m_logo|pic}}" id="C_m_logox" class="L_pic" ng-click="showUpload('C_m_logo');">
           <div class="input-group">
              <input type="text" class="form-control" name="C_m_logo" id="C_m_logo" value="{{data.C_m_logo}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_m_logo');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_m_logo');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">图片宽度</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_m_width" value="{{data.C_m_width}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">图片高度</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_m_height" value="{{data.C_m_height}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">透明度</label>

          <div class="col-sm-10">
            <div class="input-group">
            <input type="text" class="form-control" name="C_m_transparent" value="{{data.C_m_transparent}}">
            <span class="input-group-addon">%</span>
          </div>
          </div>
          </div>
          说明：PNG格式水印暂时不支持调整透明度。
          </div>
          </div>
          </tab>
<!--
          <tab heading="客服云">
          <div class="form-group">
          <label class="col-sm-2 control-label">代码</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="C_kefuyun" id="C_kefuyun" style="height: 300px;">{{data.C_kefuyun}}</textarea>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">

          以上接口由 <a href="https://shanling.top" target="_blank" class="btn btn-xs btn-info">闪灵客服云</a> 提供  （接入客服云可在网页上与客户直接对话）<a href="help.php?page=1.3.7" target="_blank" class="btn btn-xs btn-default">帮助？</a> <a href="chat_test.php" target="_blank" class="btn btn-xs btn-primary">预览样式</a>

          </div>
          </div>
          </tab>
-->

          <tab heading="收款设置" active="tab5">
          <div ng-show="isSelected(c.x3)">

            <hr>
          <div class="hr-more">支付宝</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">支付宝账户</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_alipay" value="{{data.C_alipay}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">支付宝ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_alipayid" value="{{data.C_alipayid}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">支付宝KEY</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_alipaykey" value="{{data.C_alipaykey}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           以上接口由 <a href="http://www.alipay.com" target="_blank" class="btn btn-xs btn-info">支付宝</a> 提供 <a href="help.php?page=1.1.1" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>

          <hr>
          <div class="hr-more">微信支付</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信APPID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_appid" value="{{data.C_wx_appid}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信APPSECRET</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_wx_appsecret" value="{{data.C_wx_appsecret}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信MCHID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_mchid" value="{{data.C_wx_mchid}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信KEY</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_wx_key" value="{{data.C_wx_key}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           以上接口由 <a href="https://mp.weixin.qq.com" target="_blank" class="btn btn-xs btn-success">微信公众平台</a> <a href="https://pay.weixin.qq.com" target="_blank" class="btn btn-xs btn-success">微信支付</a> 提供（如果不需要微信支付功能，后两项可不填） <a href="help.php?page=1.1.2" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div> 
          </div>

          <hr>
          <div class="hr-more">Paypal</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">paypal账户</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_paypal" value="{{data.C_paypal}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">设置汇率</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_rate" value="{{data.C_rate}}" placeholder="1美元=多少人民币">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10"> 
           以上接口由 <a href="https://www.paypal.com" target="_blank" class="btn btn-xs btn-info">paypal</a> 提供（paypal主要面向海外用户收款，单位为美元）  <a href="help.php?page=1.1.3" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
          <hr>

<!--
          <div class="hr-more">7支付</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">7支付 PID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_7PID" value="{{data.C_7PID}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">7支付 PKEY</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_7PKEY" value="{{data.C_7PKEY}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10"> 
           以上接口由 <a href="https://7-pay.cn" target="_blank" class="btn btn-xs btn-primary">7支付</a> 提供 （个人站长收款推荐使用） <a href="help.php?page=1.1.3" target="_blank" class="btn btn-xs btn-default">帮助？</a>
          </div>
          </div>
          <hr>
-->
          
          <div class="form-group">
          <label class="col-sm-2 control-label">收款开关</label>
          <div class="col-sm-10">
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_alipayon" value="true" ng-checked="data.C_alipayon">
                <i></i>
                支付宝
              </label>
            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_wxpayon" value="true" ng-checked="data.C_wxpayon">
                <i></i>
                微信支付
              </label>
            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_paypalon" value="true" ng-checked="data.C_paypalon">
                <i></i>
                Paypal
              </label>
            </div>

      
            <!--<div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_bankon" value="true" ng-checked="data.C_bankon">
                <i></i>
                7支付
              </label>
              （免申请接口，适合个人站长）
            </div>-->
            

            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_balanceon" value="true" ng-checked="data.C_balanceon">
                <i></i>
                余额支付
              </label>
            </div>
          
          </div>
          </div>
          </div>
          <div ng-show="!isSelected(c.x3)">
          您还未购买此插件 <a href="#/app/plug/" class="del"><i class="fa fa-shopping-cart"></i> 购买</a>
          </div>
          </tab>

<!--
          <tab heading="打赏设置">
          <div>
          <div class="form-group">
          <label class="col-sm-2 control-label">打赏金额<br>(单位：元)</label>
          <div class="col-sm-10">
          <textarea spellcheck="false" class="form-control" name="C_7money" rows="6" popover="可填写多个金额，每行一个，最多六个" popover-trigger="focus">{{data.C_7money}}</textarea>
          </div>
          </div>
          <hr>
          <div class="form-group">
          <label class="col-sm-2 control-label">打赏开关</label>
          <div class="col-sm-10">
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_ds1" value="1" ng-checked="isSelected(data.C_ds1)">
                <i></i>
                <span ng-bind-html="ttitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_ds2" value="1" ng-checked="isSelected(data.C_ds2)">
                <i></i>
                <span ng-bind-html="ntitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_ds3" value="1" ng-checked="isSelected(data.C_ds3)">
                <i></i>
                <span ng-bind-html="ptitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           您可以通过文章打赏来获得更多收入，由 <a href="https://7-pay.cn" target="_blank" class="btn btn-xs btn-primary">7支付</a> 提供打赏插件 <a href="help.php?page=1.1.3" target="_blank" class="btn btn-xs btn-default">帮助？</a>
          </div>
          </div>
          </div>
          </tab>
-->

          <tab heading="邮箱设置" active="tab6">
          <div ng-show="isSelected(c.x6)">
          <div class="form-group">
          <label class="col-sm-2 control-label">邮箱接口</label>
          <div class="col-sm-10">
          	<label class="i-checks" style="width: 100px;">
                <input type="radio" name="C_mailtype" value="0" ng-model="data.C_mailtype" ng-checked="isSelected2(data.C_mailtype,0)">
                <i></i>
                自行提供
              </label>
          	<label class="i-checks" style="width: 100px;">
                <input type="radio" name="C_mailtype" value="1" ng-model="data.C_mailtype" ng-checked="isSelected2(data.C_mailtype,1)">
                <i></i>
                官网提供
            </label>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_mailtype,0)">
          <label class="col-sm-2 control-label">电子邮箱</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_email" value="{{data.C_email}}" popover="用于找回密码、发送通知等功能" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_mailtype,0)">
          <label class="col-sm-2 control-label">smtp</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_smtp" value="{{data.C_smtp}}" popover="如smtp.163.com" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_mailtype,0)">
          <label class="col-sm-2 control-label">邮箱授权码<br>或密码</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_mpwd" value="{{data.C_mpwd}}" popover="请到邮箱开启pop3/smtp功能，并且获取授权码填写在此" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           邮箱的设置和授权码的获得请参考使用帮助 <a href="help.php?page=1.3.5" target="_blank" class="btn btn-xs btn-success">帮助？</a> <a href="javascript:;"  class="btn btn-xs btn-info" ng-click="testmail()">测试</a>
          </div>
          </div>
          </div>

          <div ng-show="!isSelected(c.x6)">
          您还未购买此插件 <a href="#/app/plug/" class="del"><i class="fa fa-shopping-cart"></i> 购买</a>
          </div>
          </tab>

          <tab heading="短信设置" active="tab7">
          <div class="form-group">
          <label class="col-sm-2 control-label">开启短信功能</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" value="1" ng-model="data.C_reg3" ng-checked="isSelected2(data.C_reg3,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" value="0" ng-model="data.C_reg3" ng-checked="isSelected2(data.C_reg3,2)">
                <i></i>
                关闭
              </label>

          </div>
          </div>

<div ng-show="isSelected2(data.C_reg3,1)">
          <div class="form-group">
          <label class="col-sm-2 control-label">短信签名</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_smssign" value="{{data.C_smssign}}"  placeholder="4个字左右">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">企业ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_userid" value="{{data.C_userid}}" >
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">帐号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_codeid" value="{{data.C_codeid}}" >
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">密码</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_codekey" value="{{data.C_codekey}}" >
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">短信余量</label>
          <div class="col-sm-10" style="margin-top:8px;">
           <span ng-bind-html="trust(data.sms_rest)"></span>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            说明：如需开通短信套餐，请点击 <a href="javascript:;" ng-click="buy(data.C_userid)" class="btn btn-xs btn-primary">购买</a> <a href="javascript:;"  class="btn btn-xs btn-info" ng-click="testmobile()">测试</a>
            
          </div>
          </div>
</div>



          </tab>

<tab heading="邮费设置" active="tab8">
          <div class="form-group">
          <label class="col-sm-2 control-label">常规邮费</label>
          <div class="col-sm-10">
            <div class="input-group">
            <input type="text" class="form-control" name="C_postage" value="{{data.C_postage}}" >
            <span class="input-group-addon">元</span>
          </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">满额包邮</label>
          <div class="col-sm-10">
            <div class="input-group">
            <input type="text" class="form-control" name="C_baoyou" value="{{data.C_baoyou}}" >
            <span class="input-group-addon">元</span>
          </div>
          </div>
          </div>

          </tab>

          <tab heading="登录设置" active="tab9">


<div class="form-group">
          <label class="col-sm-2 control-label"><b>开启会员注册</b></label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_regon" value="1" ng-model="data.C_regon" ng-checked="isSelected2(data.C_regon,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_regon" value="0" ng-model="data.C_regon" ng-checked="isSelected2(data.C_regon,0)">
                <i></i>
                关闭
              </label>
          </div>
          </div>


            <div class="form-group">
          <label class="col-sm-2 control-label"><b>登录/注册开关</b></label>
          <div class="col-sm-10">
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_reg1" value="1" ng-checked="isSelected(data.C_reg1)">
                <i></i>
                帐号登录/注册
              </label>

            </div>
            
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_reg3" ng-model="data.C_reg3" value="1" ng-checked="isSelected(data.C_reg3)">
                <i></i>
                手机登录/注册
              </label>

            </div>

            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_reg2" value="1" ng-checked="isSelected(data.C_reg2)">
                <i></i>
                邮箱登录/注册
              </label>

            </div>
            
          </div>
          </div>
          <hr>
          <div ng-show="isSelected(c.x2)">

          <div class="form-group">
          <label class="col-sm-2 control-label"><b>QQ快捷登录</b></label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_qqkj" value="1" ng-model="data.C_qqkj" ng-checked="isSelected2(data.C_qqkj,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_qqkj" value="0" ng-model="data.C_qqkj" ng-checked="isSelected2(data.C_qqkj,0)">
                <i></i>
                关闭
              </label>
          </div>
          </div>
          <div ng-show="isSelected2(data.C_qqkj,1)">
          <div class="form-group">
          <label class="col-sm-2 control-label">QQ ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_qqid" value="{{data.C_qqid}}" popover="QQ ID非QQ号码，请到“QQ互联”申请ID及KEY" popover-trigger="focus">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">QQ KEY</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_qqkey" value="{{data.C_qqkey}}" popover="QQ KEY非QQ密码，请到“QQ互联”申请ID及KEY" popover-trigger="focus">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           以上接口由 <a href="https://connect.qq.com/" target="_blank" class="btn btn-xs btn-info">QQ互联</a> 提供 <a href="help.php?page=1.2.1" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
          </div>
<hr>
          <div class="form-group">
          <label class="col-sm-2 control-label"><b>微信快捷登录</b></label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_wxkj" value="1" ng-model="data.C_wxkj" ng-checked="isSelected2(data.C_wxkj,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_wxkj" value="0" ng-model="data.C_wxkj" ng-checked="isSelected2(data.C_wxkj,0)">
                <i></i>
                关闭
              </label>
          </div>
          </div>
          <div ng-show="isSelected2(data.C_wxkj,1)">
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            请到 “收款设置” 中修改 微信APPID 和 APPSECRET 参数
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           以上接口由 <a href="https://mp.weixin.qq.com" target="_blank" class="btn btn-xs btn-success">微信公众平台</a> 提供 <a href="help.php?page=1.1.2" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div> 
          </div>
          </div>


          </div>
          <div ng-show="!isSelected(c.x2)">
          您还未购买此插件 <a href="#/app/plug/" class="del"><i class="fa fa-shopping-cart"></i> 购买</a>
          </div>
          </tab>

          <tab heading="评论/点赞" active="tab10">
          <div ng-show="isSelected(c.x11)">
            <div class="form-group">
          <label class="col-sm-2 control-label">点赞功能开启</label>
          <div class="col-sm-10">
          <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_td" value="1" ng-checked="isSelected(data.C_td)">
                <i></i>
                <span ng-bind-html="ttitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_nd" value="1" ng-checked="isSelected(data.C_nd)">
                <i></i>
                <span ng-bind-html="ntitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_pd" value="1" ng-checked="isSelected(data.C_pd)">
                <i></i>
                <span ng-bind-html="ptitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label">评论功能开启</label>
          <div class="col-sm-10">
          <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_tp" value="1" ng-checked="isSelected(data.C_tp)">
                <i></i>
                <span ng-bind-html="ttitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_np" value="1" ng-checked="isSelected(data.C_np)">
                <i></i>
                <span ng-bind-html="ntitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
            <div class="checkbox">
              <label class="i-checks">
                <input type="checkbox" name="C_pp" value="1" ng-checked="isSelected(data.C_pp)">
                <i></i>
                <span ng-bind-html="ptitle(C_sort)" style="margin:0;"></span>
              </label>

            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">开启评论审核</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_psh" value="1"  ng-checked="isSelected2(data.C_psh,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_psh" value="0"  ng-checked="isSelected2(data.C_psh,0)">
                <i></i>
                关闭
              </label>
              <a href="#/app/comment/" class="btn btn-xs btn-info">审核评论</a>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          *说明：开启则所有评论经过审核才能在前台显示；关闭则所有评论直接在前台显示。
          </div>
          </div>

          </div>
          <div ng-show="!isSelected(c.x11)">
          您还未购买此插件 <a href="#/app/plug/" class="del"><i class="fa fa-shopping-cart"></i> 购买</a>
          </div>
          </tab>

          <tab heading="OSS云储存" active="tab11">
          <div class="form-group">
          <label class="col-sm-2 control-label">云储存开启</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_osson" value="1" ng-model="data.C_osson" ng-checked="isSelected2(data.C_osson,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_osson" value="0" ng-model="data.C_osson" ng-checked="isSelected2(data.C_osson,0)">
                <i></i>
                关闭
              </label>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_osson,1)">
          <label class="col-sm-2 control-label">Access Key ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_oss_id" value="{{data.C_oss_id}}">
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.C_osson,1)">
          <label class="col-sm-2 control-label">Access Key Secret</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_oss_key" value="{{data.C_oss_key}}">
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.C_osson,1)">
          <label class="col-sm-2 control-label">bucket</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_bucket" value="{{data.C_bucket}}">
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.C_osson,1)">
          <label class="col-sm-2 control-label">Endpoint</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_region" value="{{data.C_region}}">
          </div>
          </div>


          <div class="form-group" ng-show="isSelected2(data.C_osson,1)">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button style="display: none;" id="stop" ng-click="uppic('stop')" class="btn btn-sm btn-primary" type="button">停止上传</button>
            <button class="btn btn-sm btn-primary" ng-click="oss()" type="button" id="ossbtn">一键同步本地文件</button> *将之前上传的文件一键同步到OSS（保存OSS配置信息后再使用该功能）
      <div class="progress progress-striped active" style="margin-top: 10px;margin-bottom:0px;display: none" id="progressx">
        <div class="progress-bar progress-bar-success" role="progressbar"
           aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
           style="width: 0%;" id="progress">
        </div>
      </div>
      <div id="info" style="margin-top: 5px;display: none">已上传0个文件</div>
      <button type='button' ng-click='reupload()' class='btn btn-primary btn-xs' style="display: none;" id="reupload">重新上传</button>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">

          以上接口由 <a href="https://www.aliyun.com/product/oss" target="_blank" class="btn btn-xs btn-info">阿里云</a> 提供  （使用云储存可提高网站静态文件的加载速度并节省本地空间）<a href="help.php?page=1.3.6" target="_blank" class="btn btn-xs btn-success">帮助？</a>

          </div>
          </div>


          </tab>

          <tab heading="移动端加速" active="tab12">
          <div class="form-group">
          <label class="col-sm-2 control-label">移动端加速（MIP/AMP）</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_mipon" value="1" ng-model="data.C_mipon" ng-checked="isSelected2(data.C_mipon,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_mipon" value="0" ng-model="data.C_mipon" ng-checked="isSelected2(data.C_mipon,0)">
                <i></i>
                关闭
              </label>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_mipon,1)">
          <label class="col-sm-2 control-label">百度站长TOKEN</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_mip_token" value="{{data.C_mip_token}}">
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.C_mipon,1)">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" ng-click="ts('mip.php')">推送MIP页面</button>
            <button type="button" class="btn btn-sm btn-primary" ng-click="ts('amp.php')">推送AMP页面</button>
            <button type="button" class="btn btn-sm btn-primary" ng-click="ts('index.php')">推送普通页面</button>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">

          以上接口由 <a href="https://ziyuan.baidu.com" target="_blank" class="btn btn-xs btn-info">百度站长平台</a> 提供（开启移动端加速将有效的提高您网站的百度搜索排名）<a href="help.php?page=1.3.8" target="_blank" class="btn btn-xs btn-success">帮助？</a>

          </div>
          </div>
          </tab>

          <tab heading="访客统计" active="tab13">
          <div class="form-group">
          <label class="col-sm-2 control-label">百度统计帐号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_tj_account" value="{{data.C_tj_account}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">百度统计密码</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_tj_pwd" value="{{data.C_tj_pwd}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">站点ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_tj_siteid" value="{{data.C_tj_siteid}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">统计ID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_tj_id" value="{{data.C_tj_id}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">TOKEN</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_tj_token" value="{{data.C_tj_token}}">
          </div>
          </div>
          

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">

          以上接口由 <a href="https://tongji.baidu.com/" target="_blank" class="btn btn-xs btn-info">百度统计</a> 提供 ，如果您不知道如何填写，请点击<a href="help.php?page=1.3.1" target="_blank" class="btn btn-xs btn-success">帮助</a>按钮

          </div>
          </div>
          </tab>
          
         </tabset>
          <button type="submit" class="btn btn-info">保存</button>
  </form>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="config2_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         自定义设置
        </div>
<div class="table-responsive">
<form id="form" ng-submit="save(lang)">
<span ng-bind-html="trust(data.config2)"></span>
</form>
        </div>
      </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="contact_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
       <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         联系方式
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">联系标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_title" id="C_title" value="{{data.C_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）<a href="javascript:;" onclick="translatex('C_title')" class="btn btn-xs btn-info">翻译</a></label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_entitle" id="C_titlex" value="{{data.C_entitle}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">拨打电话</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="W_phone" value="{{data2.W_phone}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">发送邮件</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="W_email" value="{{data2.W_email}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">地图类型</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_map" value="baidu" ng-checked="isSelected2(data.C_map,'baidu')">
                <i></i>
                百度地图
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_map" value="google" ng-checked="isSelected2(data.C_map,'google')">
                <i></i>
                谷歌地图
              </label>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">地图设置（坐标）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_zb" value="{{data.C_zb}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">地图设置（地址）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_address" value="{{data.C_address}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">联系方式</label>
          <div class="col-sm-10">
          <script id="container" name="C_content" type="text/plain" style="height: 350px;"></script>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button> <a href="help.php?page=5.1" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
  </form>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/form_list/">表单管理</a></li>
        <li><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="content_add_Ctrl"> 
   <div class="row"> 

   <div class="col-lg-2">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         <b>{{F_title}}</b> - 条目列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.C_id==x.C_id}" ng-repeat="x in content_list" href="#/app/content_add/{{x.C_id}}">{{x.C_order}}.{{x.C_title}}</a>
      </div>
      </div>
    </div>
    <a href="#/app/content_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增条目</a>
  </div>
    <div class="col-lg-10"> 
     <div class="panel panel-info ng-scope"> 
      <div class="panel-heading">
        {{action}}条目 

        <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

      </div> 
      <div class="panel-body"> 
       <form class="form-horizontal" id="form" ng-submit="save(lang)"> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">条目标题</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control {{lcss}}" name="C_title" value="{{data.C_title}}" required="" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">条目备注</label> 
         <div class="col-sm-10"> 
          <textarea spellcheck="false" class="form-control {{lcss}}" name="C_bz" ng-model="data.C_bz" /></textarea>
         </div> 
        </div> 

        <div class="form-group"> 
         <label class="col-sm-2 control-label">是否必填</label> 
         <div class="col-sm-10"> 
          <div class="radio">
              <label class="i-checks" style="width: 50px">
                <input type="radio" name="C_required" value="1" ng-checked="isSelected2(data.C_required,1)">
                <i></i>
                是
              </label>

              <label class="i-checks">
                <input type="radio" name="C_required" value="0" ng-checked="isSelected2(data.C_required,0)">
                <i></i>
                否
              </label>
            </div>
            
         </div> 
        </div>

        <div class="form-group"> 
         <label class="col-sm-2 control-label">条目内容</label> 
         <div class="col-sm-10"> 
          <textarea spellcheck="false" class="form-control {{lcss}}" name="C_content" ng-model="data.C_content" popover="用“|”符号分开选项" popover-trigger="focus" /></textarea>
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">条目编号</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control" name="C_order" value="{{data.C_order}}" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">条目类型</label> 
         <div class="col-sm-10"> 
          <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="text" ng-checked="isSelected2(data.C_type,'text')">
                <i></i>
                文本框
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="area" ng-checked="isSelected2(data.C_type,'area')">
                <i></i>
                文本域
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="radio" ng-checked="isSelected2(data.C_type,'radio')">
                <i></i>
                单选按钮
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="checkbox" ng-checked="isSelected2(data.C_type,'checkbox')">
                <i></i>
                多选按钮
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="option" ng-checked="isSelected2(data.C_type,'option')">
                <i></i>
                下拉列表
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="pic" ng-checked="isSelected2(data.C_type,'pic')">
                <i></i>
                上传文件
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_type" value="date" ng-checked="isSelected2(data.C_type,'date')">
                <i></i>
                选择时间
              </label>
            </div>
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">所属表单</label> 
         <div class="col-sm-10"> 
          <select name="C_fid" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="{{x.F_id}}" ng-repeat="x in form_list" ng-selected="isSelected2(data.C_fid,x.F_id)">{{x.F_title}}</option>
          </select>
         </div> 
        </div>
        <div class="form-group"> 
         <label class="col-sm-2 control-label"></label> 
         <div class="col-sm-10"> 
          <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </div> 
   </div>
  </div>
^
<div class="wrapper-md">
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-danger ng-scope">
        <div class="panel-heading">
        无权限
        </div>
        <div class="panel-body">
        您没有管理该模块的权限，请联系顶级管理员。
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/space/">文件管理</a></li>
        <li class="active"><a href="#/app/file/">素材管理</a></li>
      </ul>
    </div>

<div class="wrapper-md" ng-controller="file_Ctrl">
<div class="row">
<form id="form">
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6" ng-repeat="x in file_list" id="item_{{x.id}}">
<div class="panel">
<div class="panel-body">
<a href='javascript:;' ng-click="show(x.filepic,x.filename)">
<div style="height: 100px; text-align: center;">
<img ng-src='{{x.filepic}}' style="max-height:100px;max-width: 100%" >
</div>
</a>
<br>
<div style='width:100%;overflow:hidden;'>{{x.filename}}</div>
<br>
<label class="i-checks"><input type="checkbox" name="id[]" value="{{x.id}}__{{x.filename}}" ng-checked="all" ng-disabled="isSelected(x.disabled)"><i></i></label>
<a href='javascript:;' ng-click="show(x.filepic,x.filename)" class='add'><i class='fa fa-sign-out'></i> 查看</a> 
<a href='javascript:;' ng-click="do(x.disabled,x.filename,x.id)" ng-class="{0:'del',1:'edit'}[x.disabled]" ng-bind-html='use(x.disabled)'></a>
</div>
</div>
</div>
</form>
  </div>
          <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/form_list/">表单管理</a></li>
        <li><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="form_add_Ctrl"> 
   <div class="row"> 
   <div class="col-lg-2">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         表单列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.F_id==x.F_id}" ng-repeat="x in form_list" href="#/app/form_add/{{x.F_id}}">{{x.F_title}}</a>
      </div>
      </div>
    </div>
    <a href="#/app/form_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增表单</a>
  </div>
    <div class="col-lg-10"> 
     <div class="panel panel-info ng-scope"> 
      <div class="panel-heading">
        {{action}}表单 

        <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

      </div> 
      <div class="panel-body"> 
       <form class="form-horizontal" id="form" ng-submit="save(lang)"> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">表单标题</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control {{lcss}}" id="F_title" name="F_title" value="{{data.F_title}}" required="" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">标题（第二语言）</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control {{lcss}}" id="F_titlex" name="F_entitle" value="{{data.F_entitle}}" onblur="translatex('F_title')" required="" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">开启登录验证</label> 
         <div class="col-sm-10"> 
          <label class="i-switch bg-info m-t-xs m-r"> 
          <input type="checkbox" value="1" name="F_yz" ng-checked="isSelected(data.F_yz)" /> <i></i> 
          </label>
           *开启后会员需要登录才能提交表单（仅表单类型为“收集信息”时有效）
         </div> 
        </div> 

        <div class="form-group"> 
         <label class="col-sm-2 control-label">图形验证码</label> 
         <div class="col-sm-10"> 
          <label class="i-switch bg-info m-t-xs m-r"> 
          <input type="checkbox" value="1" name="F_yzm" ng-checked="isSelected(data.F_yzm)" /> <i></i> 
          </label>
           *开启图形验证码后可有效防止垃圾信息的提交
         </div> 
        </div>

        <div class="form-group"> 
         <label class="col-sm-2 control-label">表单备注</label> 
         <div class="col-sm-10"> 
          <textarea spellcheck="false" class="form-control {{lcss}}" name="F_bz" ng-model="data.F_bz" /></textarea>
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">表单配图</label> 
         <div class="col-sm-10"> 
          <img ng-src="{{data.F_pic|pic}}" id="F_picx" class="L_pic" ng-click="showUpload('F_pic');" /> 
          <div class="input-group"> 
           <input type="text" class="form-control" id="F_pic" name="F_pic" value="{{data.F_pic}}" /> 
           <span class="input-group-btn"> 
            <button class="btn btn-info" type="button" ng-click="showUpload('F_pic');">上传</button>
            <button class="btn btn-primary" type="button" ng-click="choose('F_pic');">选择</button>
             </span> 
          </div> 
         </div> 
        </div> 
        <div class="form-group">
          <label class="col-sm-2 control-label">表单类型</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="F_type" ng-model="data.F_type" value="0" ng-checked="isSelected2(data.F_type,0)"><i></i>收集信息</label>
          <label class="i-checks"><input type="radio" name="F_type" ng-model="data.F_type" value="1" ng-checked="isSelected2(data.F_type,1)"><i></i>查询信息</label>
          </div>
          </div>
<div class="form-group" ng-show="isSelected2(data.F_type,0)">
          <label class="col-sm-2 control-label">关联查询</label>
          <div class="col-sm-10">
        <select name="F_cq" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
       <option  value="0" >不关联查询</option>   
<option ng-repeat="x in qsort" value="{{x.S_id}}" ng-selected="isSelected2(data.F_cq,x.S_id)">关联 -> {{x.S_title}}</option>
          </select>
          <div style="padding-top: 10px;">说明：关联查询后，每次用户提交信息都会获得一个查询码，通过查询码来获取处理进度或结果</div>
          </div>
          </div>


<div class="form-group" ng-show="isSelected2(data.F_type,1)">
          <label class="col-sm-2 control-label">查询分类<br><a href="#/app/qsort_add/" class="btn btn-xs btn-info">新建分类</a></label>
          <div class="col-sm-10">
        <select name="F_qsort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
       <option  value="0" >请选择一个查询分类</option>   
<option ng-repeat="x in qsort" value="{{x.S_id}}" ng-selected="isSelected2(data.F_qsort,x.S_id)">{{x.S_title}}</option>
          </select>
          </div>
          </div>

        <hr>
        <div class="hr-more">SEO设置</div>
         <div class="form-group"> 
         <label class="col-sm-2 control-label ">SEO设置<br />页面标题title</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control {{lcss}}" name="F_pagetitle" value="{{data.F_pagetitle}}" required="" placeholder="留空则调用表单标题" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label ">SEO设置<br />关键词keywords</label> 
         <div class="col-sm-10"> 
          <input type="text" class="form-control {{lcss}}" name="F_keywords" value="{{data.F_keywords}}" placeholder="多个词用半角逗号隔开" /> 
         </div> 
        </div> 
        <div class="form-group"> 
         <label class="col-sm-2 control-label">SEO设置<br />描述description</label> 
         <div class="col-sm-10"> 
          <textarea spellcheck="false" class="form-control {{lcss}}" name="F_description" ng-model="data.F_description" /></textarea>
         </div> 
        </div> 
        <div class="form-group" ng-show="showx">
          <label class="col-sm-2 control-label">加入到导航栏</label>
          <div class="col-sm-10">
        <select name='U_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
        <option value="x">不加入到导航栏</option>
        <option value="0">加入到网站主菜单</option>
        <option ng-repeat="x in menu_lists" value="{{x.U_id}}">成为“{{x.U_title}}”的子菜单</option>
        </select>
          </div>
          </div>
        <div class="form-group"> 
         <label class="col-sm-2 control-label"></label> 
         <div class="col-sm-10"> 
          <button type="submit" class="btn btn-info">保存并返回</button>
          <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </div> 
   </div>
  </div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/form_list/">表单管理</a></li>
        <li><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="form_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         表单列表
          <a href="#/app/form_add/" class="btn btn-xs btn-success"><i class='fa fa-plus'></i> 新增表单</a>
          <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>显示名称</th>
        <th>名称（第二语言）</th>
        <th>展示方式</th>
        <th>封面</th>
        <th>查看统计</th>
        <th>生成excel</th>
        <th>编辑</th>
        <th>删除</th>
        <th>添加到菜单</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in form_list">
           <tr id="item_f{{x.F_id}}" class="active">
       <td>
              /
        </td>
        <td>/</td>
       <td><input type='text' value='{{x.F_title}}' name='Ftitle_{{x.F_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.F_entitle}}' name='Fentitle_{{x.F_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><b>[{{x.F_type}}]</b></td>
        
        <td>
        <img ng-src='{{x.F_pic|pic}}' height='30' alt='<img src={{x.F_pic|pic}} width=400>' id="pic_{{x.F_id}}x" ng-click="showUpload(x.F_id)"></span>
        <input type="hidden" value="{{x.F_pic}}" id="pic_{{x.F_id}}" name="pic_{{x.F_id}}">
        </td>
        <td><a href="#/app/response_list/{{x.F_id}}" class="add"><i class="fa fa-tasks"></i> 查看统计</a> <span class="badge badge-sm up bg-danger pull-right-xs" ng-if="isSelected(x.F_count)">{{x.F_count}}</span></td>
        <td><a href="ajax.php?action=creat&type=form&F_id={{x.F_id}}" class="add"><i class="fa fa-file-excel-o"></i> 生成excel</a></td>
        <td><a href="#/app/form_add/{{x.F_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="delf(x.F_id)" class="del"><i class="fa fa-times-circle"></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(x.F_id)" class="add"><i class='fa fa-plus-circle'></i> 添加</a></td>
            </tr>

            <tr ng-repeat="y in x.content_list" id="item_c{{y.C_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{y.C_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{y.C_order}}' name='order_{{y.C_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
       <td><input type='text' value='{{y.C_title}}' name='Ctitle_{{y.C_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
       <td></td>
        <td>{{y.C_type}}</td>
        <td></td>
        <td></td>
        <td></td>
        <td><a href="#/app/content_add/{{y.C_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="delc(y.C_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td></td>
            </tr>

          </tbody>

        </table>

</form>
        </div>

      </div>


              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/form_add/' class='edit'><i class='fa fa-plus'></i> 新增表单</a>
<a href='#/app/content_add/' class='edit'><i class='fa fa-plus'></i> 新增条目</a>
    </div>
  
  </div>
</div>
^
<div class="wrapper-md" ng-controller="guestbook_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         留言列表
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>当日排序</th>
              <th>标题</th>
        <th>内容</th>
        <th>位置时间</th>
        <th>审核</th>
        <th>回复</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in guestbook|orderBy:x.G_time" id="item_{{x.G_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.G_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td>{{x.G_i}}</td>
       <td><input type='text' value='{{x.G_title}}' name='title_{{x.G_id}}' class="form-control"></td>
        <td><textarea spellcheck="false" ng-model="x.G_msg" class="form-control"></textarea></td>
        <td><p>{{x.G_add}}</p><p>IP：{{x.G_ip}}</p><p>{{x.G_time}}</p></td>
        <td>{{x.G_shinfo}}</td>
        <td><a href="#/app/reply/{{x.G_id}}" class="edit"><i class="fa fa-edit"></i> 回复</a></td>
        <td><a href="javascript:;" ng-click="del(x.G_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
           
          </tbody>
        </table>
        </form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">

    </div>
  
  </div>
</div>
^
<script>
setInterval(function(){
fnDate();
},1000);
function fnDate(){
var date=new Date();
var year=date.getFullYear();
var month=date.getMonth();
var data=date.getDate();
var hours=date.getHours();
var minute=date.getMinutes();
var second=date.getSeconds();
var time=year+"-"+fnW((month+1))+"-"+fnW(data)+" "+fnW(hours)+":"+fnW(minute)+":"+fnW(second);
$("#div1").html(time);
}
function fnW(str){
var num;
str>9?num=str:num="0"+str;
return num;
} 

function b(){ 
  t = parseInt(x.css('top'));
  y.css('top','19px');  
  x.animate({top: t - 19 + 'px'},'slow'); //19为每个li的高度
  if(Math.abs(t) == h-19){ //19为每个li的高度
    y.animate({top:'0px'},'slow');
    z=x;
    x=y;
    y=z;
  }
  setTimeout(b,3000);//滚动间隔时间 现在是3秒
}
$(document).ready(function(){
  $('.swap').html($('.news_li').html());
  x = $('.news_li');
  y = $('.swap');
  h = $('.news_li li').length * 19; //19为每个li的高度
  setTimeout(b,3000);//滚动间隔时间 现在是3秒
  
})
</script>
<style>
*{ padding:0; margin:0;}
ul,li{ list-style:none;}
.box{ height:25px;  overflow:hidden;display: inline-block;width: 500px;margin-left: 20px;margin-top: 5px;}
.t_news{ height:19px;  color:#333; padding-left:10px; margin:8px 0; overflow:hidden; position:relative;}
.t_news b{ line-height:19px; font-weight:bold; display:inline-block;}
.news_li,.swap{ line-height:19px; display:inline-block; position:absolute; top:0; left:72px;}
.news_li a,.swap a{ color:#333;}
.swap{top:19px;}
</style>

<div class="wrapper-md" ng-controller="index_Ctrl">
  
<div class="bg-light lter b-b wrapper-md" style="margin: -20px  -20px 20px -20px">
  <h1 class="m-n font-thin h3" style="display: inline-block;">后台首页</h1>
<div class="box">
  <div class="t_news">
    <b>通知提醒：</b>
    <ul class="news_li">
      <li ng-repeat="x in notice"><a href="javascript:;" ng-click="show(x.N_id)" >{{x.N_title}} [{{x.N_date}}]</a></li>
    </ul>
    <ul class="swap"></ul>
  </div>
</div>
<div style="float: right" calss="hidden-sm">

<form class="navbar-form navbar-form-sm navbar-left shift" ui-shift="prependTo" target=".navbar-collapse" role="search" ng-controller="TypeaheadDemoCtrl">
          <div class="form-group" >
            <div class="input-group" >
              <input type="text" id="search" ng-model="selected" class="form-control input-sm bg-light no-border rounded padder" placeholder="搜索项目" >
              <span class="input-group-btn">
                <button type="button" onclick="window.location='#/app/search/'+$('#search').val()" class="btn btn-sm bg-light rounded"><i class="fa fa-search"></i></button>
              </span>
            </div>
          </div>
        </form>

        <div class="nav navbar-nav hidden-xs" style="margin-left: 10px;">
          <a class="btn btn-xs btn-info no-shadow navbar-btn" ng-click="bug()" href="javascript:;">BUG反馈</a>
        </div>

    </div>
</div>

  <div class="row">
    <div class="col-lg-6">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
          网站信息
          <span class="pull-right" ng-show="istrue2(C_t_show)">电脑版[{{C_template}}] <span style="margin:0 20px 0 50px">手机版[{{C_wap}}]<span></span>
        </div>
        <div class="table-responsive">
<div class="panel-body">

<div style="min-width: 520px;">
<div style="float:right" ng-show="istrue2(C_t_show)"><a href="#/app/template_list/0"><img ng-src="../pc/{{C_template}}/template.jpg" width='100' height='100' style='width:100px; height:100px; border-radius:30%; overflow:hidden; border: #DDDDDD solid 2px;' alt="<img src='../pc/{{C_template}}/template.jpg' width='400'>"/></a><a href="#/app/template_list/1"><img ng-src="../wap/{{C_wap}}/template.jpg" width='100' height='100' style='width:100px; height:100px; border-radius:30%; overflow:hidden;border: #DDDDDD solid 2px;margin-left:20px;' alt="<img src='../wap/{{C_wap}}/template.jpg' width='200'>"/></a></div>
<p>网站名称：{{data.C_webtitle}} <a href="javascript:;" ng-click="clear(data.C_admin)" class="btn btn-xs btn-primary">清理缓存</a></p>
<p><a href="#/app/guestbook/">网站留言：未审核（{{gnum}}）</a>/ <a href="#/app/news_list///">文章投稿：未审核（{{nnum}}）</a></p>
<p>当前模板：<a href="#/app/template_list/0">电脑端[{{C_template}}]</a> / <a href="#/app/template_list/1">移动端[{{C_wap}}]</a></p>
<p>程序版本：php版 {{data.C_version}} <a href="javascript:;" ng-click="update()" class="add" ng-show="data.C_version!=version"><span><i class="fa fa-refresh"></i> 可更新{{version}}</span></a></p>
        </div>
      </div>
    </div>
    </div>
     </div>
  <div class="col-lg-6">
      <div  class="panel  panel-info ng-scope">
        <div class="panel-heading">
          系统信息 <span class="pull-right">微信二维码 <span style="margin:0 20px 0 40px">网址二维码<span></span>
        </div>
        <div class="table-responsive">
       <div class="panel-body">
       <div style="min-width: 520px;">
          <div style="float:right">
         
<div id='qrcode' style='margin:5px;float:right'></div>
<script>var qrcode = new QRCode('qrcode', {width: 88,height: 88,colorDark: '#000000',colorLight: '#ffffff',correctLevel: QRCode.CorrectLevel.H});</script>
 <img ng-src="{{data.C_wcode|pic}}"  width="100" alt="<img src='{{data.C_wcode|pic}}' width='200'"/>
</div>

<p>网站域名：{{https}}{{data.C_domain}}</p>
<p>后台路径：{{data.C_admin}} <a href="javascript:;" ng-click="editadmin(data.C_admin)" class="btn btn-xs btn-warning"><span ng-show="data.C_admin=='admin'">建议修改</span><span ng-show="data.C_admin!='admin'">修改</span></a></p>
<p>微信公众号二维码/网址二维码 →</p>
<p>现在时间：<span id="div1"></span></p>
        </div>
      </div>
    </div>
  </div>
    </div>
      </div>
  
  <div class="row">
    <div class="col-lg-6">
      <div class="panel  panel-info ng-scope" style="min-height: 330px">
        <div class="panel-heading">
         最新留言
         <span class="pull-right"><a href="#/app/guestbook/" class="btn btn-xs btn-info"><i class="fa fa-sign-out"></i> 查看更多</a></span>
        </div>
        <div class="table-responsive">
 <table class="table table-striped m-b-none" style="min-width: 520px;">
          <thead>
            <tr>
              <th>标题</th>
              <th>留言时间</th>
        <th>审核</th>
        <th>回复</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in messages" id="item_{{x.G_id}}">
              <td><input type="text" value="{{x.G_title}}" class="form-control"></td>
              <td>{{x.G_time}}</td>
        <td><span ng-bind-html="x.G_sh"></span></td>
        <td><a href="#/app/reply/{{x.G_id}}" class="btn btn-xs btn-success"><i class="fa fa-edit"></i> 回复</a></td>
        <td><a ng-click="del(x.G_id)" class="btn btn-xs btn-warning"><i class="fa fa-times-circle"></i> 删除</a></td>
            </tr>
           
          </tbody>
        </table>
        </div>
      </div>
    </div>
  <div class="col-lg-6">
      <div class="panel panel-info ng-scope" style="min-height: 320px">
        <div class="panel-heading">
         最新订单
          <span class="pull-right"><a href="#/app/order_list/" class="btn btn-xs btn-info"><i class="fa fa-sign-out"></i> 查看更多</a></span>
        </div>
        <div class="table-responsive">
 <table class="table table-striped m-b-none" style="min-width: 520px;">
          <thead>
            <tr>
              <th>商品名称</th>
              <th>状态</th>
        <th>总价</th>
        <th>会员</th>
        <th>提交时间</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in orders">
              <td><input type="text" value="{{x.P_title}}" class="form-control"></td>
              <td>{{x.O_state}}</td>
        <td>{{x.O_all}}元</td>
        <td>{{x.M_login}}</td>
        <td>{{x.O_time}}</td>
            </tr>
           
          </tbody>
        </table>
        </div>
      </div>
    </div>
  </div>

<div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
  <div class="panel-heading">访客统计
<span class="pull-right">
  <a href="#/app/config/13" class="btn btn-xs btn-primary"><i class="fa fa-send"></i> 前往设置</a>
  <a href="https://tongji.baidu.com" target="_blank" class="btn btn-xs btn-info"><i class="fa fa-sign-out"></i> 查看更多</a>
</span>
  </div>
  <div class="panel-body">
    <div id="main3" style="height:250px"></div>
  </div>

</div>
</div>
</div>


  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         最新会员
         <span class="pull-right"><a href="#/app/member_list/" class="btn btn-xs btn-info"><i class="fa fa-sign-out"></i> 查看更多</a></span>
        </div>
 <div class="table-responsive">
 <div class="panel-body index_member">

 <div ng-repeat="x in member" class="M_head" align='center'>
 <a href='#/app/member_add/{{x.M_id}}'>
 <img ng-src='{{x.M_pic}}' width='60' height='60' alt='<img src={{x.M_pic}}>'>
</a>
<p style="max-width: 60px;height:18px;overflow: hidden">{{x.M_login}}</p>
 <div style='color:#999999;'>{{x.M_regtime}}</div>
 </div>
        </div>
      </div>
    </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/link_list/">友链列表</a></li>
        <li><a href="#/app/lsort_list/">友链分类</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="link_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         友链列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:datax.L_id==x.L_id}" ng-repeat="x in link_list" href="#/app/link_add/{{x.L_id}}">{{x.L_title}}</a>
      </div>
      </div>
    </div>
    <a href="#/app/link_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增友链</a>
  </div>

    <div class="col-lg-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}友链
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">友链名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="L_title" value="{{datax.L_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">友链logo</label>
          <div class="col-sm-10">
          <img ng-src="{{datax.L_pic|pic}}" id="L_picx" class="L_pic" ng-click="showUpload('L_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="L_pic" name="L_pic" value="{{datax.L_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('L_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('L_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">友链网址</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="L_url" value="{{datax.L_url}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">友链分类</label>
          <div class="col-sm-10">
          <select name="L_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option ng-repeat="x in lsort_lists" value="{{x.S_id}}" ng-selected="isSelected2(datax.L_sort,x.S_id)">{{x.S_title}}</option>
          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">友链列表</a></li>
        <li><a href="#/app/lsort_list/">友链分类</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="link_list_Ctrl" >
  <div class="row">

  <div class="col-md-2">
      <div class="panel panel-info ng-scope" >
        <div class="panel-heading">
         友链分类
        </div>
<div class="table-responsive">
      <div class="list-group" >
        <a  class="list-group-item" ng-repeat="x in lsort_lists" href="#/app/link_list/{{x.S_id}}">
          <span class="badge bg-info">{{x.S_count}}</span>
          <i class="fa fa-link m-r-xs"></i> {{x.S_title}}
        </a>
      </div>

 </div>
 </div>
 <a href='#/app/link_add/' class='edit'><i class='fa fa-plus'></i> 新增友链</a>
 <a href='#/app/lsort_add/' class='edit'><i class='fa fa-plus'></i> 新增分类</a>
 <div style="height: 20px;"></div>
 </div>

    <div class="col-lg-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         友链列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
              <th>网站名称</th>
        <th>网址</th>
        <th>缩图</th>
        <th>所属分类</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in link_list" id="item_{{x.L_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.L_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.L_order}}' name='order_{{x.L_id}}' class="form-control" style="width: 50px;"></td>
       <td><input type='text' value='{{x.L_title}}' name='title_{{x.L_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.L_url}}' name='url_{{x.L_id}}' class="form-control" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.L_pic|pic}}' height='30' alt='<img src={{x.L_pic|pic}} width=200>' id="pic_{{x.L_id}}x" ng-click="showUpload(x.L_id)"></span>
        <input type="hidden" value="{{x.L_pic}}" id="pic_{{x.L_id}}" name="pic_{{x.L_id}}">
        </td>
        <td><span ng-bind-html="trust(x.L_sort)"></span></td>
        <td><a href="#/app/link_add/{{x.L_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.L_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/link_add/' class='edit'><i class='fa fa-plus'></i> 新增友链</a>
    </div>
  </div>
</div>
^
<script> 
function AddRow(tab)
{
 var Container = document.getElementById(tab);  
 var i =Container.rows.length;
 var Nam="'div1'";
 var Cod="fuJ"+i;
 var newTr = Container.insertRow();
 var _id=tab+"_"+i;

 var newTd0 = newTr.insertCell();
 var newTd1 = newTr.insertCell();
 var newTd2 = newTr.insertCell();
 var newTd3 = newTr.insertCell();
var newTd4 = newTr.insertCell();
 newTr.id=_id;
 
 newTd0.innerHTML ="礼品"+(i+1);
 newTd1.innerHTML ="<div class='input-group m-b'><span class='input-group-addon'>消耗</span> <input type='text' class='form-control' name='xo"+tab.split("_")[1]+"_"+i+"'> <span class='input-group-addon'>积分</span></div>";
 newTd2.innerHTML ="兑换";
 newTd3.innerHTML ="<div class='input-group m-b'><span class='input-group-addon'>礼品</span> <input type='text' class='form-control' name='xo"+tab.split("_")[1]+"_"+i+"x'></div>";
 newTd4.innerHTML = "<input type='button' value='- 删掉该行' class='add' onclick='DelRow(\""+tab+"\",\""+tab+"_"+i+"\")' style='margin:5px;'/>";
}
function DelRow(tab,i)
{
      var Container = document.getElementById(tab);   
    var _tr=document.getElementById(i); 
    row=_tr.rowIndex;
    Container.deleteRow(row); 
}
</script>
<div class="wrapper-md" ng-controller="lv_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         营销功能
        </div>
        <div class="panel-body">
          <tabset class="tab-container">
          <tab heading="等级设置">
          <div class="table-responsive">
          <form id="form">
<table class="table table-striped m-b-none" style="min-width: 600px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>等级名称</th>
        <th>享受折扣</th>
        <th>所需积分</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in lv_list" id="item_{{x.L_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.L_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.L_order}}' name='order_{{x.L_id}}' class="form-control" style="width: 50px;"></td>
       <td><input type='text' value='{{x.L_title}}' name='title_{{x.L_id}}' class="form-control"></td>
        <td>
<div class="input-group m-b">
            <input type='text' value='{{x.L_discount}}' name='discount_{{x.L_id}}' class="form-control">
            <span class="input-group-addon">%</span>
          </div>
        </td>
        <td>
        <div class="input-group m-b">
            <input type='text' value='{{x.L_fen}}' name='fen_{{x.L_id}}' class="form-control">
            <span class="input-group-addon">分</span>
          </div>
        
        </td>
        <td><a href="#/app/lv_add/{{x.L_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.L_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
        </form>
        </div>
        <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/lv_add/' class='edit'><i class='fa fa-plus'></i> 新增等级</a>
          </tab>
          <tab heading="积分获得">
          <div class="table-responsive">
          <form id="form2" ng-submit="save2()">
<table class="table table-striped m-b-none">
          <thead>
            <tr>
              <th>行为</th>
              <th>获得积分</th>
        <th>说明</th>
            </tr>
          </thead>
          <tbody>
           <tr>
        <td>消费一元</td>
       <td>
<div class="input-group m-b">
<span class="input-group-addon">获得</span>
            <input type='text' name='C_1yuan' value="{{data2.C_1yuan}}" class="form-control">
            <span class="input-group-addon">积分</span>
          </div>

       
        <td>禁用此功能则填“0”</td>
            </tr>
           <tr>
        <td>每日签到</td>
       <td><div class="input-group m-b">
<span class="input-group-addon">获得</span>
            <input type='text' name='C_sign' value="{{data2.C_sign}}" class="form-control">
            <span class="input-group-addon">积分</span>
          </div></td>
        <td>禁用此功能则填“0”</td>
            </tr>
        <tr>
        <tr>
        <td>完善资料</td>
       <td><div class="input-group m-b">
<span class="input-group-addon">获得</span>
            <input type='text' name='C_data' value="{{data2.C_data}}" class="form-control">
            <span class="input-group-addon">积分</span>
          </div></td>
        <td>禁用此功能则填“0”</td>
            </tr>
        <td>邀请好友<br>注册</td>
       <td><div class="input-group m-b">
<span class="input-group-addon">获得</span>
            <input type='text' name='C_invitation' value="{{data2.C_invitation}}" class="form-control">
            <span class="input-group-addon">积分</span>
          </div></td>
        <td>禁用此功能则填“0”</td>
            </tr>
            <tr>
        <td>邀请好友<br>消费一元</td>
       <td><div class="input-group m-b">
<span class="input-group-addon">获得</span>
            <input type='text' name='C_1yuan2' value="{{data2.C_1yuan2}}" class="form-control">
            <span class="input-group-addon">积分</span>
          </div></td>
        <td>禁用此功能则填“0”</td>
            </tr>
            
          </tbody>
        </table>
        <button type="submit" class="btn btn-info">保存</button>
</form>
</div>
          </tab>
          <tab heading="兑换礼品">

 <form id="form3">
          <span ng-bind-html="trust(data3.fen_use)"></span>
          <label class="i-checks">
                <input type="checkbox" name="C_gifton" value="1" ng-checked="isSelected(data3.C_gifton)">
                <i></i>
                开启此功能
              </label>
<button class="add" onclick="AddRow('tab_index')">+ 新增一行</button>
<button ng-click="save3()" class="edit"><i class="fa fa-save"></i> 保存</button>
</form>
          </tab>

          <tab heading="余额设置">
  <form class="form-horizontal" id="form4" ng-submit="save4(lang)">

          <div class="form-group">
          <label class="col-sm-2 control-label">余额转积分</label>
          <div class="col-sm-10">

            <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tofen" value="1" ng-model="data4.C_tofen" ng-checked="isSelected2(data4.C_tofen,1)">
                <i></i>
                开启
              </label>


              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tofen" value="0" ng-model="data4.C_tofen" ng-checked="isSelected2(data4.C_tofen,0)">
                <i></i>
                关闭
              </label>
<div class="input-group m-b" ng-show="isSelected2(data4.C_tofen,1)">
           <span class="input-group-addon">一元兑换</span>
            <input type="text" class="form-control" name="C_tofen_rate" value="{{data4.C_tofen_rate}}">
            <span class="input-group-addon">积分</span>
            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">积分转余额</label>
          <div class="col-sm-10">

            <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tomoney" value="1" ng-model="data4.C_tomoney" ng-checked="isSelected2(data4.C_tomoney,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tomoney" value="0" ng-model="data4.C_tomoney" ng-checked="isSelected2(data4.C_tomoney,0)">
                <i></i>
                关闭
              </label>
<div class="input-group m-b" ng-show="isSelected2(data4.C_tomoney,1)">
           <span class="input-group-addon">一积分兑换</span>
            <input type="text" class="form-control" name="C_tomoney_rate" value="{{data4.C_tomoney_rate}}">
            <span class="input-group-addon">元</span>
            </div>
          </div>
          </div>

<div class="form-group">
          <label class="col-sm-2 control-label">余额提现</label>
          <div class="col-sm-10">
            <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tx" value="1" ng-model="data4.C_tx" ng-checked="isSelected2(data4.C_tx,1)">
                <i></i>
                开启
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_tx" value="0" ng-model="data4.C_tx" ng-checked="isSelected2(data4.C_tx,2)">
                <i></i>
                关闭
              </label>
<div class="input-group m-b" ng-show="isSelected2(data4.C_tx,1)">
           <span class="input-group-addon">手续费</span>
            <input type="text" class="form-control" name="C_tx_rate" value="{{data4.C_tx_rate}}">
            <span class="input-group-addon">%</span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            说明：余额转积分、积分转余额由系统自动完成，无需审核；提现功能需人工审核。
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
</form>


          </tab>
          <tab heading="资金明细">

<table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>明细名称</th>
              <th>资金变动</th>
        <th>编号</th>
        <th>会员名称</th>
        <th>时间</th>
        <th>审核</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in money_list">
       <td>{{x.L_title}}</td>
        <td>{{x.L_change}}元</td>
        <td>{{x.L_no}}</td>
        <td><a href="#/app/member_add/{{x.L_mid}}">{{x.L_member}}</a></td>
        <td>{{x.L_time}}</td>
        <td>
        <a class="btn btn-xs btn-success" ng-show="isSelected2(x.L_sh,0)">已通过</a>
        <a class="btn btn-xs btn-info" ng-show="isSelected2(x.L_sh,1)" ng-click="sh1(x.L_id)">通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.L_sh,1)" ng-click="sh2(x.L_id)">不通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.L_sh,2)">未通过</a>
        </td>
            </tr>
          </tbody>
        </table>
          </tab>
          <tab heading="积分明细">
<table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>明细名称</th>
              <th>积分变动</th>
        <th>编号</th>
        <th>会员名称</th>
        <th>时间</th>
        <th>审核</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in fen_list">
       <td>{{x.L_title}}</td>
        <td>{{x.L_change}}</td>
        <td>{{x.L_no}}</td>
        <td><a href="#/app/member_add/{{x.L_mid}}">{{x.L_member}}</a></td>
        <td>{{x.L_time}}</td>
        <td>
        <a class="btn btn-xs btn-success" ng-show="isSelected2(x.L_sh,0)">已通过</a>
        <a class="btn btn-xs btn-info" ng-show="isSelected2(x.L_sh,1)" ng-click="sh1(x.L_id)">通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.L_sh,1)" ng-click="sh2(x.L_id)">不通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.L_sh,2)">未通过</a>
        </td>
            </tr>
          </tbody>
        </table>
          </tab>
          <tab heading="发票管理">
<table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
        <th>抬头</th>
        <th>税号</th>
        <th>明细</th>
        <th>金额</th>
        <th>时间</th>
        <th>会员</th>
        <th>审核</th>
        <th>删除</th>
            </tr>
          </thead>
      <tbody>
      <tr ng-repeat="x in invoice_list">
       <td>{{x.I_company}}</td>
        <td>{{x.I_no}}</td>
        <td>{{x.I_list}}</td>
        <td>{{x.I_money}}元</td>
        <td>{{x.I_time}}</td>
        <td><a href="#/app/member_add/{{x.I_mid}}">{{x.I_member}}</a></td>
        <td>
        <a class="btn btn-xs btn-success" ng-show="isSelected2(x.I_sh,1)">已通过</a>
        <a class="btn btn-xs btn-info" ng-show="isSelected2(x.I_sh,0)" ng-click="sh3(x.I_id)">通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.I_sh,0)" ng-click="sh4(x.I_id)">不通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.I_sh,2)">未通过</a>
        </td>
        <td><a href="javascript:;" ng-click="del2(x.I_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>
        </tbody>
        </table>
        </tab>
        </tabset>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="lv_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}等级
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">等级名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="L_title" value="{{data.L_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="L_order" value="{{data.L_order}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">等级折扣</label>
          <div class="col-sm-10">

                <div class="input-group m-b">

            <input type="text" class="form-control" name="L_discount" value="{{data.L_discount}}" required>
            <span class="input-group-addon">%</span>
          </div>
            
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">所需积分</label>
          <div class="col-sm-10">

          <div class="input-group m-b">

            <input type="text" class="form-control" name="L_fen" value="{{data.L_fen}}" required>
            <span class="input-group-addon">分</span>
          </div>

            
          </div>
          </div>
          
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="m_config_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         手机版设置
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          
          <div class="form-group">
          <label class="col-sm-2 control-label">手机版显示</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="W_show" value="1" ng-checked="isSelected2(datax.W_show,1)">
                <i></i>
                使用电脑版自带的手机版（部分模板不自带）
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="W_show" value="2" ng-checked="isSelected2(datax.W_show,2)">
                <i></i>
                使用独立手机版
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="W_show" value="0" ng-checked="isSelected2(datax.W_show,0)">
                <i></i>
                不显示手机版
              </label>
            </div>
            
          
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">拨打电话</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="W_phone" value="{{datax.W_phone}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">发送邮件</label>
          <div class="col-sm-10">
             <input type="text" class="form-control" name="W_email" value="{{datax.W_email}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">留言设置</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="W_msg" value="1" ng-checked="isSelected2(datax.W_msg,1)">
                <i></i>
                手机版显示用户的留言记录
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="W_msg" value="0" ng-checked="isSelected2(datax.W_msg,0)">
                <i></i>
                手机版不显示用户的留言记录
              </label>
            </div>
            
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">手机logo</label>
          <div class="col-sm-10">
          <img ng-src="{{datax.W_logo|pic}}" id="W_logox" class="L_pic" ng-click="showUpload('W_logo');">
           <div class="input-group">

              <input type="text" class="form-control" name="W_logo" id="W_logo" value="{{datax.W_logo}}" required>
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('W_logo');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('W_logo');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="m_config2_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         自定义设置
        </div>
<div class="table-responsive">
<form id="form" ng-submit="save(lang)">
<span ng-bind-html="trust(data.m_config2)"></span>
</form>
        </div>

      </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="m_slide_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}焦点图
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图描述</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" name="S_content" required>{{data.S_content}}</textarea>
          </div>
          </div>
          
          
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.S_pic|pic}}" id="S_picx" class="L_pic" ng-click="showUpload('S_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="S_pic" name="S_pic" value="{{data.S_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('S_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('S_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图链接</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_link" value="{{data.S_link}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="m_slide_list_Ctrl" >

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         焦点图列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>名称</th>
        <th>缩图</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in slide_list | orderBy : 'S_order'" id="item_{{x.S_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td><input type='text' value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.S_pic|pic}}' height='30' alt='<img src={{x.S_pic|pic}} width=400>' id="pic_{{x.S_id}}x" ng-click="showUpload(x.S_id)"></span>
        <input type="hidden" value="{{x.S_pic}}" id="pic_{{x.S_id}}" name="pic_{{x.S_id}}">
        </td>
        <td><a href="#/app/m_slide_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>


              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/m_slide_add/' class='edit'><i class='fa fa-plus'></i> 新增焦点图</a>
    </div>
  
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/member_list/">会员列表</a></li>
        <li><a href="#/app/mtype/">会员类型</a></li>
        <li><a href="#/app/need/">业务需求</a></li>
        <li><a href="#/app/agreement/">会员协议</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="member_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}会员
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">

          <div class="form-group">
          <label class="col-sm-2 control-label">会员头像</label>
          <div class="col-sm-10">
            <img ng-src="{{data.M_pic}}" class="headimg">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">会员名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_login" value="{{data.M_login}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">登录密码</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_pwd" value="{{data.M_pwd}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">会员类型</label>
          <div class="col-sm-10">
          	<div class="input-group">
          <select name="M_type" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
            <option ng-repeat="x in mtype_list" value="{{x.T_id}}" ng-selected="isSelected2(data.M_type,x.T_id)">{{x.T_name}}</option>
          </select>
          <span class="input-group-btn">
              <a class="btn btn-info" href="#/app/mtype/">
                管理类型
              </a>
            </span>
      </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">会员余额</label>
          <div class="col-sm-10">

          <div class="input-group m-b">
            <input type="text" class="form-control" name="M_money" value="{{data.M_money}}" required>
            <span class="input-group-addon">元</span>
          </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">业务需求</label>
          <div class="col-sm-10">
            {{data.M_need}}
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">会员等级</label>
          <div class="col-sm-10">
            {{data.M_lv}}
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">会员积分</label>
          <div class="col-sm-10">

          <div class="input-group m-b">
            <input type="text" class="form-control" name="M_fen" value="{{data.M_fen}}" required>
            <span class="input-group-addon">分</span>
          </div>
            
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">真实姓名</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_name" value="{{data.M_name}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">电子邮箱</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_email" value="{{data.M_email}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">QQ号码</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_qq" value="{{data.M_qq}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">联系地址</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_add" value="{{data.M_add}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">手机号码</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_mobile" value="{{data.M_mobile}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">邮政编码</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="M_code" value="{{data.M_code}}">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">备注信息</label>
          <div class="col-sm-10">
          <script id="container" name="M_info" type="text/plain" style="height: 350px;"></script>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/member_list/">会员列表</a></li>
        <li><a href="#/app/mtype/">会员类型</a></li>
        <li><a href="#/app/need/">业务需求</a></li>
        <li><a href="#/app/agreement/">会员协议</a></li>
      </ul>



    </div>
<div class="wrapper-md" ng-controller="member_list_Ctrl" >

	<form id="search" style="width:330px; float: right;margin-top: -70px;">
	<div class="input-group">
	<select name="S_type" class="form-control" id="S_type" style="width: 120px;">
			<option value="M_login">会员帐号</option>
			<option value="M_email">会员邮箱</option>
			<option value="M_name">会员姓名</option>
			<option value="T_name">会员类型</option>
			<option value="M_mobile">电话号码</option>
		</select>
        <input type="text" class="form-control" name="S_key" id="S_key" style="width: 156px;">
        <span class="input-group-btn">
            <button class="btn btn-info" type="button" ng-click="search()">搜索</button>
        </span>
    </div>
</form>

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         会员列表 
         <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>会员名称</th>
        <th>会员头像</th>
        <th>邮箱/手机</th>
        <th>余额</th>
        <th>积分</th>
        <th>等级</th>
        <th>类型</th>
        <th>需求</th>
        <th>推荐人</th>
        <th>编辑</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in member_list" id="item_{{x.M_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.M_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td>{{x.M_login}}</td>
       <td><img ng-src="{{x.M_pic}}" class="headimg"></td>
        <td>邮箱：{{x.M_email}}<br>手机：{{x.M_mobile}}</td>
        <td>{{x.M_money}}元</td>
        <td>{{x.M_fen}}</td>
        <td>{{x.M_lv}}</td>
        <td>{{x.M_type}}</td>
        <td>{{x.M_need}}</td>
        <td><a href="#/app/member_add/{{x.M_from}}">{{x.M_fname}}</a></td>
        <td><a href="#/app/member_add/{{x.M_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.M_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

<footer class="panel-footer">
      <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">   
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>

        </div>
      </div>
    </footer>

      </div>

              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<a class="add" href="#/app/member_add/">新增会员</a>
    </div>
  
  </div>
  
  

  
</div>
^
<div class="wrapper-md" ng-controller="menu_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         菜单列表
        </div>
<div class="table-responsive">
      <div class="list-group" >
      <span ng-repeat="x in main_menu">
        <a class="list-group-item" style="background: #f9f9f9"  ng-class="{active:data.U_id==x.U_id}" href="#/app/menu_add/{{x.U_id}}">
           <i class="fa fa-{{x.U_ico}}"></i> <b>{{x.U_title}}</b>
        </a>
        <a class="list-group-item" ng-repeat="y in x.sub_menu" ng-class="{active:data.U_id==y.U_id}" href="#/app/menu_add/{{y.U_id}}">
           &nbsp;&nbsp;&nbsp;&nbsp; <i class="fa fa-{{y.U_ico}}"></i>  {{y.U_title}}
        </a>
       </span>
      </div>
 </div>
 </div>
<a href="#/app/menu_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增菜单</a>

 </div>

    <div class="col-lg-10">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}菜单
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
  <input type="hidden" value="{{data.U_id}}" id="U_id">
  <div class="form-group" >
          <label class="col-sm-2 control-label">上级菜单</label>
          <div class="col-sm-10">

<select name="U_sub" id="U_sub" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" onchange="getorder('U_sub','U_order','menu','')">
<option value="0" ng-selected="isSelected2(0,data.U_sub)">网站主菜单</option>
          <option value="{{x.U_id}}" ng-selected="isSelected2(x.U_id,data.U_sub)" ng-repeat="x in data.m_all">┗ {{x.U_title}}</option>
          </select>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">链接到</label>
          <div class="col-sm-10">
          <div class="input-group">
           <select name="U_path" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" ng-change="change(x)" ng-model="x">
           <option value="index/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'index1')">网站首页</option>
           <optgroup label="{{x.title}}" ng-repeat="x in modules">
        <option value="{{y.type}}/{{y.id}}" ng-repeat="y in x.module" ng-selected="isSelected2(data.U_type+data.U_typeid,y.type+y.id)">{{y.title}}</option>
      </optgroup>
      <optgroup label="联系模块">
      <option value="contact/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'contact1')">└ 联系方式</option>
      <option value="guestbook/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'guestbook1')">└ 在线留言</option>
      </optgroup>
      <optgroup label="论坛模块">
      <option value="bbs/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'bbs1')">└ 论坛</option>
      </optgroup>
      <optgroup label="会员模块">
      <option value="member/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'member1')">└ 会员中心</option>
      </optgroup>

      <option value="link/1" ng-selected="isSelected2(data.U_type+data.U_typeid,'link1')">外部网址</option>
           </select>
           <span class="input-group-btn">
              <button type="button" ng-click="showmore()" class="btn btn-default">
                新建
              </button>
            </span>
</div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">菜单标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" id="U_title" name="U_title" ng-model="data.U_title" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" id="U_titlex" name="U_entitle" onfocus="translatex('U_title')" value="{{data.U_entitle}}">
          </div>
          </div>
          
          <div class="form-group" ng-show="isSelected(data.U_link)">
          <label class="col-sm-2 control-label">外链网址</label>
          <div class="col-sm-10">
            <div class="input-group">
              <input type="text" class="form-control" name="U_url" value="{{data.U_url}}">
              <div class="input-group-btn">
              <select name="U_target" class="form-control" style="width: auto">
                <option value="_blank" ng-selected="isSelected2(data.U_target,'_blank')">新窗口打开</option>
                <option value="_self" ng-selected="isSelected2(data.U_target,'_self')">原窗口打开</option>
              </select>
            </div>
          </div>

          </div>
          </div>

          <div class="form-group" ng-show="!isSelected(data.U_link)">
          <label class="col-sm-2 control-label"><b>电脑端</b>模板</label>
          <div class="col-sm-10">
          <select name="U_template" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="{{x.name}}" ng-selected="isSelected2(x.name,data.U_template)" ng-repeat="x in data.t_all">{{x.path}}</option>
          </select>
          </div>
          </div>

          <div class="form-group" ng-show="!isSelected(data.U_link)">
          <label class="col-sm-2 control-label"><b>移动端</b>模板</label>
          <div class="col-sm-10">
          <select name="U_wap" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="{{x.name}}" ng-selected="isSelected2(x.name,data.U_wap)" ng-repeat="x in data.w_all">{{x.path}}</option>
          </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">菜单排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="U_order" id="U_order" value="{{data.U_order}}" onfocus="getorder('U_sub','U_order','menu','U_id')" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">色调</label>
          <div class="col-sm-10">
            <input type="text" id="hue-demo" class="form-control" name="U_color" value="{{data.U_color}}">
          </div>
          </div>
          <script>
$('#hue-demo').minicolors({
                    change: function(hex, opacity) {
                        if( !hex ) return;
                        if( opacity ) hex += ', ' + opacity;
                        try {
                            console.log(hex);
                        } catch(e) {}
                    },
                    theme: 'bootstrap'
                });
          </script>
          <div class="form-group">
          <label class="col-sm-2 control-label">背景图</label>
          <div class="col-sm-10">
          <img id="U_bgx" class="L_pic" ng-click="showUpload('U_bg')" ng-src="{{data.U_bg|pic}}">
            <div class="input-group">
              <input type="text" class="form-control" id="U_bg" name="U_bg" value="{{data.U_bg}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('U_bg');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('U_bg');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">图标</label>
          <div class="col-sm-10">
              <input type="hidden" class="form-control" id="U_ico" name="U_ico" value="{{data.U_ico}}" ng-focus="showfont()">
              <div style="padding-top:5px;cursor:pointer" id="U_icox" ng-click="showfont()"><i class="fa fa-{{data.U_ico}} fa-2x"></i> 点击选择</div>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">隐藏菜单</label>
          <div class="col-sm-10">
<label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="U_hide" ng-checked="isSelected(data.U_hide)">
              <i></i>
            </label>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
        </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="menu_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         菜单列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 1300px;" >
          <thead>
            <tr>
            <th>选择</th>
              <th>排序</th>
               <th>调整</th>
              <th>名称</th>
        <th>名称（第二语言）</th>
        <th>展示类型</th>
        <th>手机图标</th>
        <th>色调</th>
        <th>链接</th>
        <th>菜单隐藏</th>
         <th>所属</th>
         <th>编辑</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in main_menu | orderBy: 'U_order'">
      <tr id="item_{{x.U_id}}" class="active">
      <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.U_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.U_order}}' name='order_{{x.U_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td></td>
        <td><input type='text' value='{{x.U_title}}' name='title_{{x.U_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.U_entitle}}' name='entitle_{{x.U_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>{{x.U_typeinfo}}</td>
        <td><i class='fa fa-{{x.U_ico}} fa-2x'></li></td>
        <td><font color='{{x.U_color}}'>█</font></td>
        <td><input type='text' value='{{x.U_url}}' name='url_{{x.U_id}}' class="form-control" ng-blur="save(lang)"></td>

        <td>
        <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="hide_{{x.U_id}}[]" ng-checked="isSelected(x.U_hide)" ng-click="save(lang)">
              <i></i>
            </label>
            <input type="hidden" value="0" name="hide_{{x.U_id}}[]">
        </td>
        <td><span ng-bind-html="trust(x.U_sub)"></span></td>
        <td><a href="#/app/menu_add/{{x.U_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.U_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>

        <tr ng-repeat="y in x.sub_menu  | orderBy: 'U_order'" id="item_{{y.U_id}}">
        <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{y.U_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td>
            <input type='text' value='{{y.U_order}}' name='order_{{y.U_id}}' class="form-control sub" style="width: 50px;" ng-blur="save(lang)">
          </td>
       <td></td>
        <td> 
            <input type='text' value='{{y.U_title}}' name='title_{{y.U_id}}' class="form-control sub {{lcss}}" ng-blur="save(lang)">
        </td>
        <td>
            <input type='text' value='{{y.U_entitle}}' name='entitle_{{y.U_id}}' class="form-control sub {{lcss}}" ng-blur="save(lang)">
          </td>
        <td>{{y.U_typeinfo}}</td>
        <td><i class='fa fa-{{y.U_ico}} fa-2x'></li></td>
        <td><font color='{{y.U_color}}'>█</font></td>
        <td><input type='text' value='{{y.U_url}}' name='url_{{y.U_id}}' class="form-control" ng-blur="save(lang)"></td>
        <td>
        <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="hide_{{y.U_id}}[]" ng-checked="isSelected(y.U_hide)" ng-click="save(lang)">
              <i></i>
            </label>
            <input type="hidden" value="0" name="hide_{{y.U_id}}[]">

        </td>
        <td><span ng-bind-html="trust(y.U_sub)"></span></td>
        <td><a href="#/app/menu_add/{{y.U_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(y.U_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>
          </tbody>
        </table>
</form>
        </div>
      </div>
<label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/menu_add/' class='edit'><i class='fa fa-plus'></i> 新增菜单</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href=""><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/nsort_list/"><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="news_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
<div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         [{{data.S_title}}] 列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.N_id==x.N_id}" ng-repeat="x in data.news_list" href="#/app/news_add/{{x.N_id}}">{{x.N_title}}</a>
      </div>
 </div>
    </div>
    <a href="#/app/news_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增<span ng-bind-html="ntitle(C_sort)"></span></a>
  </div>

    <div class="col-lg-10">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}<span ng-bind-html="ntitle(C_sort)"></span>

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="N_title" value="{{data.N_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>作者</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="N_author" value="{{data.N_author}}" required>
          </div>
          </div>
          
          
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>分类</label>
          <div class="col-sm-10">
          <select name="N_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <optgroup ng-repeat="x in nsort_lists" label="{{x.S_title}}">
<option ng-repeat="y in x.nsort_list" value="{{y.S_id}}" ng-selected="isSelected2(data.N_sort,y.S_id)">{{y.S_title}}</option>
</optgroup>

          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">发布时间</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="N_date" value="{{data.N_date}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>配图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.N_pic|pic}}" id="N_picx" class="L_pic" ng-click="showUpload('N_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="N_pic" name="N_pic" value="{{data.N_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('N_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('N_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          
          <hr>
          <div class="hr-more">高级设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">文章类型</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="0" ng-checked="isSelected2(data.N_type,0)"><i></i>普通新闻</label>
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="1" ng-checked="isSelected2(data.N_type,1)"><i></i>招聘信息</label>
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="2" ng-checked="isSelected2(data.N_type,2)"><i></i>文件下载</label>
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="3" ng-checked="isSelected2(data.N_type,3)"><i></i>视频播放</label>
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="4" ng-checked="isSelected2(data.N_type,4)"><i></i>通知公告</label>
          <label class="i-checks"><input type="radio" name="N_type" ng-model="data.N_type" value="5" ng-checked="isSelected2(data.N_type,5)"><i></i>公司团队</label>
          </div>
          </div>


          <div class="form-group" ng-show="isSelected2(data.N_type,1)">
          <label class="col-sm-2 control-label">招聘信息</label>
          <div class="col-sm-10">
          <div class="col-lg-4 col-md-6">
         <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname1}}" class="form-control" name="N_jobname1" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job1}}" class="form-control" name="N_job1"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname2}}" class="form-control" name="N_jobname2" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job2}}" class="form-control" name="N_job2"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname3}}" class="form-control" name="N_jobname3" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job3}}" class="form-control" name="N_job3"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname4}}" class="form-control" name="N_jobname4" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job4}}" class="form-control" name="N_job4"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname5}}" class="form-control" name="N_jobname5" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job5}}" class="form-control" name="N_job5"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname6}}" class="form-control" name="N_jobname6" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job6}}" class="form-control" name="N_job6"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname7}}" class="form-control" name="N_jobname7" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job7}}" class="form-control" name="N_job7"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname8}}" class="form-control" name="N_jobname8" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job8}}" class="form-control" name="N_job8"></div>
          </div>
          <div class="col-lg-4 col-md-6">
          <div class="input-group" style="margin: 5px;">
<input type="text" value="{{data.N_jobname9}}" class="form-control" name="N_jobname9" style="background: #edf1f2;border-bottom: none">
<input type="text" value="{{data.N_job9}}" class="form-control" name="N_job9"></div>
          </div>
          </div>
          </div>


          <div class="form-group" ng-show="isSelected2(data.N_type,2)">
          <label class="col-sm-2 control-label">软件下载</label>
          <div class="col-sm-10">
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">文件名称</span><input type="text" value="{{data.N_file1}}" class="form-control" name="N_file1" placeholder="例：XX助手" value=""></div>
          </div>
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">文件大小</span><input type="text" value="{{data.N_file2}}" class="form-control" name="N_file2" placeholder="例：20M" value=""></div>
          </div>
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">版本号</span><input type="text" value="{{data.N_file3}}" class="form-control" name="N_file3" placeholder="例：V1.0.0" value=""></div>
          </div>

          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">语言</span><input type="text" value="{{data.N_file4}}" class="form-control" name="N_file4" placeholder="例：中文/英语" value=""></div>
          </div>

          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">运行环境</span><input type="text" value="{{data.N_file5}}" class="form-control" name="N_file5" placeholder="例：windows" value=""></div>
          </div>



          <div class="col-lg-6 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">下载</span><input type="text" value="{{data.N_file6}}" class="form-control" name="N_file6" id="N_file6" value=""><span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('N_file6');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('N_file6');">选择</button>
              </span></div>

          </div>

          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">下载限制</span>
<select name="N_file7" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option  value="0" ng-selected="isSelected2(N_file7,0)">无限制</option>
          <option  ng-repeat="x in lv_list" value="{{x.L_id}}" ng-selected="isSelected2(data.N_file7,x.L_id)">{{x.L_title}}</option>
          </select>

</div>
          </div>
          </div>
          </div>


          <div class="form-group" ng-show="isSelected2(data.N_type,3)">
          <label class="col-sm-2 control-label">视频播放</label>
          <div class="col-sm-10">
          <textarea class="form-control" placeholder="请上传MP4视频或者粘贴视频代码" id="N_video" name="N_video">{{data.N_video}}</textarea>
          <button class="btn btn-info" type="button" ng-click="showUpload('N_video');" style="margin:10px 0;">上传视频</button> <a href="help.php?page=3.2.2" class="btn btn-default btn-xs" target="_blank">无法播放？</a>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.N_type,5)">

          <label class="col-sm-2 control-label">成员信息</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="N_teaminfo" ng-model="data.N_teaminfo" value="0" ng-checked="isSelected2(data.N_teaminfo,0)"><i></i>自行输入</label>
          <label class="i-checks"><input type="radio" name="N_teaminfo" ng-model="data.N_teaminfo" value="1" ng-checked="isSelected2(data.N_teaminfo,1)"><i></i>调用会员信息</label>
        </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.N_type,5) && isSelected2(data.N_teaminfo,1)">
          <label class="col-sm-2 control-label">会员列表</label>
          <div class="col-sm-10">
          
<div style="width:200px; float:left; overflow:hidden" ng-repeat="x in data.member_list">
      <table width="100%">
      <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff">
      <td width="10%">
      <input type="radio" name="N_teamid" value="{{x.M_id}}" id="{{x.M_id}}" ng-checked="isSelected2(data.N_teamid,x.M_id)"> 
      </td><td width="20%"><label for="{{x.M_id}}"><img ng-src="{{x.M_pic}}" width="40" height="40"></label></td><td width="70%"><span style="margin-left:10px;">{{x.M_login}} </span> <a href="#/app/member_add/{{x.M_id}}" class="add">管理</a>
      </td></tr></table></div>

          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.N_type,5) && isSelected2(data.N_teaminfo,0)">
          <label class="col-sm-2 control-label">公司团队</label>
          <div class="col-sm-10">
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">职位</span><input type="text" value="{{data.N_team1}}" class="form-control" name="N_team1" placeholder="例：销售经理" value=""></div>
          </div>
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">年龄</span><input type="text" value="{{data.N_team2}}" class="form-control" name="N_team2" placeholder="例：25" value=""></div>
          </div>
          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">部门</span><input type="text" value="{{data.N_team3}}" class="form-control" name="N_team3" placeholder="例：销售部" value=""></div>
          </div>

          <div class="col-lg-3 col-md-6">
          <div class="input-group" style="margin: 5px;">
<span class="input-group-addon">学历</span><input type="text" value="{{data.N_team4}}" class="form-control" name="N_team4" placeholder="例：本科" value=""></div>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">标题颜色</label>
          <div class="col-sm-10">
            <input id="hue-demo" data-control="hue" type="text" class="form-control" name="N_color" value="{{data.N_color}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题粗体</label>
          <div class="col-sm-10">
          <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="N_strong" ng-checked="isSelected(data.N_strong)">
              <i></i>
            </label>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">阅读次数</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="N_view" value="{{data.N_view}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">是否置顶</label>
          <div class="col-sm-10">
            <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="N_top" ng-checked="isSelected(data.N_top)">
              <i></i>
            </label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">是否审核</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="N_sh" value="0" ng-checked="isSelected2(data.N_sh,0)"><i></i>已通过</label>
          <label class="i-checks"><input type="radio" name="N_sh" value="1" ng-checked="isSelected2(data.N_sh,1)"><i></i>未通过</label>
          <label class="i-checks"><input type="radio" name="N_sh" value="2" ng-checked="isSelected2(data.N_sh,2)"><i></i>未审核</label>

          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(C_sort,2)">
          <label class="col-sm-2 control-label">文章标签</label>
          <div class="col-sm-10">
          <span ng-bind-html="trust(data.tag)"></span> <a href="javascript:;" ng-click="tag()" class="btn btn-info btn-xs">管理标签</a>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">阅读限制</label>
          <div class="col-sm-10">
          <select name="N_lv" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option  value="0" ng-selected="isSelected2(N_lv,0)">无限制</option>
          <option  ng-repeat="x in lv_list" value="{{x.L_id}}" ng-selected="isSelected2(data.N_lv,x.L_id)">{{x.L_title}}</option>
          </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">跳转链接</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="N_link" value="{{data.N_link}}" placeholder="一般情况下留空，如需跳转请填写链接地址">
          </div>
          </div>

          <hr>
          <div class="hr-more">SEO设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>页面标题title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="N_pagetitle" value="{{data.N_pagetitle}}" placeholder="留空则调用新闻标题">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>关键词keywords</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="N_keywords" value="{{data.N_keywords}}" placeholder="多个词用半角逗号隔开">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>描述description</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="3" name="N_description" ng-model="data.N_description" placeholder="留空则自动提取文章前100字"></textarea>
          </div>
          </div>

<!--
<div ng-show="isSelected2(C_sort,1)||isSelected2(C_sort,2)||isSelected2(C_sort,6)">
          <hr>
          <div class="hr-more">设置隐藏内容</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">开启该功能</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="N_hideon" ng-model="data.N_hideon" value="1" ng-checked="isSelected2(data.N_hideon,1)"><i></i>开启</label>
          <label class="i-checks"><input type="radio" name="N_hideon" ng-model="data.N_hideon" value="0" ng-checked="isSelected2(data.N_hideon,0)"><i></i>关闭</label>
          <span style="padding-left:10px;color: #0099ff; " ng-show="isSelected2(data.N_hideon,1)">*使用此功能前请到基本设置配置好“7支付”接口</span>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.N_hideon,1)">
          <label class="col-sm-2 control-label">内容售价</label>
          <div class="col-sm-10">
          <div class="input-group">
            <input type="text" class="form-control" name="N_price" value="{{data.N_price}}" placeholder="填写大于0的数字">
            <span class="input-group-addon">元</span>
          </div>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.N_hideon,1)">
          <label class="col-sm-2 control-label">收款样式</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="N_hidetype" value="div" ng-checked="isSelected2(data.N_hidetype,'div')"><i></i>区块式</label>
          <label class="i-checks"><input type="radio" name="N_hidetype" value="btn" ng-checked="isSelected2(data.N_hidetype,'btn')"><i></i>按钮式</label>
          <label class="i-checks"><input type="radio" name="N_hidetype" value="flt" ng-checked="isSelected2(data.N_hidetype,'flt')"><i></i>浮动式</label>
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.N_hideon,1)">
          <label class="col-sm-2 control-label">内容介绍</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="N_hideintro" value="{{data.N_hideintro}}" placeholder="隐藏内容的简单介绍">
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.N_hideon,1)">
          <label class="col-sm-2 control-label">隐藏内容</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" rows="3" name="N_hide" ng-model="data.N_hide" placeholder="用户支付后自动显示隐藏内容"></textarea>
          </div>
          </div>

</div>
-->
          <hr>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>内容</label>
          <div class="col-sm-10">
          <script id="container" name="N_content" type="text/plain" style="height: 350px;"></script>
          <script>

$('#hue-demo').minicolors({
                    change: function(hex, opacity) {
                        if( !hex ) return;
                        if( opacity ) hex += ', ' + opacity;
                        try {
                            console.log(hex);
                        } catch(e) {}
                    },
                    theme: 'bootstrap'
                });
          </script>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href=""><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/nsort_list/"><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="news_list_Ctrl" >

<form id="search" style="width:250px; float: right;margin-top: -70px;">
  <div class="input-group">
        <input type="text" class="form-control" name="S_key" id="S_key" style="width: 200px;" placeholder="输入关键词">
        <span class="input-group-btn">
            <button class="btn btn-info" type="button" ng-click="search()">搜索</button>
        </span>
    </div>
</form>

<div class="row">
<div class="col-md-2">
      <div class="panel panel-info ng-scope" ng-repeat="x in nsort_lists">
        <div class="panel-heading">
         {{x.S_title}}
        </div>
<div class="table-responsive">
      <div class="list-group" >
        <a class="list-group-item" ng-repeat="y in x.nsort_list" ng-click="tosort(y.S_id)">
          <span class="badge bg-info">{{y.S_count}}</span>
          <i class="fa fa-newspaper-o m-r-xs"></i> {{y.S_title}}
        </a>
      </div>

 </div>
 </div>
 <a href='#/app/news_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ntitle(C_sort)"></span></a>
 <a href='#/app/nsort_add/' class='edit'><i class='fa fa-plus'></i> 新增分类</a>
 <div style="height: 20px;"></div>
 </div>

    <div class="col-md-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ntitle(C_sort)"></span>列表 
         <a href="#/app/news_add/" class="btn btn-xs btn-success"><i class='fa fa-plus'></i> 新增<span ng-bind-html="ntitle(C_sort)"></span></a>

          <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>显示名称</th>
        <th>审核/等级限制</th>
        <th>类型</th>
        <th>是否置顶</th>
         <th>缩图</th>
         <th>所属分类</th>
         <th>编辑/删除</th>
         
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in news_list" id="item_{{x.N_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.N_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td><input type='text' value='{{x.N_order}}' name='order_{{x.N_id}}' class="form-control" style="width: 50px;"></td>
        <td><textarea spellcheck="false" type='text' name='title_{{x.N_id}}' class="form-control {{lcss}}" ng-model="x.N_title" ng-blur="save(lang)"></textarea></td>
        <td>
          <p><span ng-bind-html="trust(x.N_sh)"></span></p>
          <p><span ng-bind-html="trust(x.N_lv)"></span></p>
        </td>

        <td><span ng-bind-html="trust(x.N_type)"></span></td>
        <td><span ng-bind-html="trust(x.N_top)"></span></td>
        <td>
        <img ng-src='{{x.N_pic|pic}}' alt='<img src={{x.N_pic|pic}} width=400>' style='max-width: 100px; max-height:40px;' id="pic_{{x.N_id}}x" ng-click="showUpload(x.N_id)"></span>
        <input type="hidden" value="{{x.N_pic}}" id="pic_{{x.N_id}}" name="pic_{{x.N_id}}">
        </td>
        <td><span ng-bind-html="trust(x.N_sort)"></span></td>
        <td>
          <p><a href="#/app/news_add/{{x.N_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></p>
          <p><a href="javascript:;" ng-click="del(x.N_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></p>
        </td>

            </tr>
           
          </tbody>
        </table>
</form>
        </div>
<footer class="panel-footer">
      <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">   
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>

        </div>
      </div>
    </footer>
      </div>


              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/news_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ntitle(C_sort)"></span></a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/news_list///"><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li class="active"><a href="" ><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="nsort_add_Ctrl" >
  <div class="row">

<div class="col-lg-2">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ntitle(C_sort)"></span>分类列表


        </div>
<div class="table-responsive">
      <div class="list-group" >
      <span ng-repeat="x in nsort_lists">
        <a class="list-group-item"  ng-class="{active:data.S_id==x.S_id}" href="#/app/nsort_add/{{x.S_id}}">
           <b>{{x.S_title}}</b>
        </a>
        <a class="list-group-item" ng-repeat="y in x.nsort_list" ng-class="{active:data.S_id==y.S_id}" href="#/app/nsort_add/{{y.S_id}}">
           &nbsp;&nbsp;&nbsp;&nbsp;┗ {{y.S_title}}
        </a>
       </span>
      </div>
 </div>
 </div>
<a href="#/app/nsort_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增<span ng-bind-html="ntitle(C_sort)"></span>分类</a>

 </div>



    <div class="col-lg-10">
      
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}<span ng-bind-html="ntitle(C_sort)"></span>分类

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
<input type="hidden" value="{{data.S_id}}" id="S_id">
            <div class="form-group">
          <label class="col-sm-2 control-label">上级分类</label>
          <div class="col-sm-10">
        <select name='S_sub' id='S_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" onchange="getorder('S_sub','S_order','nsort','')">
        <option value="0" ng-selected="isSelected2(data.S_sub,0)">根分类</option>
        <option ng-repeat="x in nsort_lists" value="{{x.S_id}}" ng-selected="isSelected2(data.S_sub,x.S_id)">{{x.S_title}}</option>
        </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" id="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_entitle" onfocus="translatex('S_title')" id="S_titlex" value="{{data.S_entitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_order" id='S_order' value="{{data.S_order}}"  onfocus="getorder('S_sub','S_order','nsort','S_id')" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">展示隐藏</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_show" value="1" ng-model="data.S_show" ng-checked="isSelected2(data.S_show,1)">
                <i></i>
                展示
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_show" value="0" ng-model="data.S_show" ng-checked="isSelected2(data.S_show,2)">
                <i></i>
                隐藏
              </label>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">开放投稿</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_tg" value="1" ng-model="data.S_tg" ng-checked="isSelected2(data.S_tg,1)">
                <i></i>
                开放
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_tg" value="0" ng-model="data.S_tg" ng-checked="isSelected2(data.S_tg,2)">
                <i></i>
                关闭
              </label>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">分类封面图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.S_pic|pic}}" id="S_picx" class="L_pic" ng-click="showUpload('S_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="S_pic" name="S_pic" value="{{data.S_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('S_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('S_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
            <hr>
            <div class="hr-more">SEO设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>页面标题title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_pagetitle" value="{{data.S_pagetitle}}" placeholder="留空则调用新闻分类标题">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>关键词keywords</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_keywords" value="{{data.S_keywords}}" placeholder="多个词用半角逗号隔开">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>描述description</label>
          <div class="col-sm-10">
            <textarea spellcheck="false"  class="form-control {{lcss}}" name="S_description"  required>{{data.S_description}}</textarea>
          </div>
          </div>
        <div class="form-group" ng-show="showx">
          <label class="col-sm-2 control-label">加入到导航栏</label>
          <div class="col-sm-10">
        <select name='U_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
        <option value="x">不加入到导航栏</option>
        <option value="0">加入到网站主菜单</option>
        <option ng-repeat="x in menu_lists" value="{{x.U_id}}">成为“{{x.U_title}}”的子菜单</option>
        </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/news_list///"><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li class="active"><a href=""><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="nsort_list_Ctrl" >
  <div class="row">
  <div class="col-lg-12">
  <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ntitle(C_sort)"></span>总分类标题
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="formx" ng-submit="savex(lang)">
<input type="hidden" value="{{data.S_id}}" id="S_id">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ntitle(C_sort)"></span>总分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_nsorttitle" id="C_nsorttitle" value="{{data.C_nsorttitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_nsortentitle" onfocus="translatex('C_nsorttitle')" id="C_nsorttitlex" value="{{data.C_nsortentitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          </form>
        </div>
  </div>
  </div>
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ntitle(C_sort)"></span>分类列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;" >
          <thead>
            <tr>
            <th>ID</th>
              <th>选择</th>
               <th>排序</th>
              <th>显示名称</th>
        <th>名称（第二语言）</th>
        <th>配图</th>
        <th>展示</th>
        <th>所属</th>
        <th>编辑</th>
        <th>删除</th>
         <th>添加到菜单</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in nsort_lists | orderBy: 'S_order'">
      <tr id="item_{{x.S_id}}" class="active">
      <td>{{x.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_entitle}}' name='entitle_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.S_pic|pic}}' height='30' alt='<img src={{x.S_pic|pic}} width=400>' id="pic_{{x.S_id}}x" ng-click="showUpload(x.S_id)"></span>
        <input type="hidden" value="{{x.S_pic}}" id="pic_{{x.S_id}}" name="pic_{{x.S_id}}">
        </td>
        <td><span ng-bind-html="trust(x.S_show)"></span></td>
        <td><b>--根分类--</b></td>
        <td><a href="#/app/nsort_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(x.S_id)" class="add"><i class="fa fa-times-circle"></i> 添加</a></td>
        </tr>
        <tr ng-repeat="y in x.nsort_list  | orderBy: 'S_order'" id="item_{{y.S_id}}">
        <td>{{y.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{y.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{y.S_order}}' name='order_{{y.S_id}}' class="form-control sub" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{y.S_title}}' name='title_{{y.S_id}}' class="form-control {{lcss}} sub" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{y.S_entitle}}' name='entitle_{{y.S_id}}' class="form-control {{lcss}} sub" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{y.S_pic|pic}}' height='30' alt='<img src={{y.S_pic|pic}} width=400>' id="pic_{{y.S_id}}x" ng-click="showUpload(y.S_id)"></span>
        <input type="hidden" value="{{y.S_pic}}" id="pic_{{y.S_id}}" name="pic_{{y.S_id}}">
        </td>
        <td><span ng-bind-html="trust(y.S_show)"></span></td>
        <td>
        <select name='sort_{{y.S_id}}'>
        <option ng-repeat="z in nsort_lists" ng-selected="isSelected2(y.S_sub,z.S_id)" value="{{z.S_id}}">{{z.S_title}}</option>
        </select>
        </td>
        <td><a href="#/app/nsort_add/{{y.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(y.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(y.S_id)" class="add"><i class="fa fa-times-circle"></i> 添加</a></td>
        </tr>
          </tbody>
        </table>
</form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/nsort_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ntitle(C_sort)"></span>分类</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li class="active"> <a href="">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="order_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <form id="form">
      <div class="panel  panel-info ng-scope" ng-repeat="x in order_list" id="item_{{x.O_nox}}">
        <div class="panel-heading">
         <div style="width: 250px;display: inline-block;">订单号：<span ng-bind-html="trust(x.O_nox)"></span></div>
          <div style="display: inline-block;" ng-show="x.O_no!=''">交易号：<span ng-bind-html="trust(x.O_no)"></span></div> 
          <span class="pull-right">时间：{{x.O_time}}</span>
        </div>
<div class="table-responsive">

 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th width="5%">选择</th>
              <th width="45%">商品名称</th>
        <th width="10%">总价</th>
         <th width="20%">强制更改状态</th>
         <th style="text-align:center " width="10%">会员</th>
         <th width="10%">操作</th>
            </tr>
          </thead>
          <tbody>
           <tr >
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.O_nox}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td>
<div ng-repeat="y in x.p_list" id="{{y.P_id}}" style="{{$index==0?'':'padding-top:10px;border-top: dashed 1px #dddddd;'}} ">
        <img ng-src='{{y.P_pic|pic}}' style='height: 70px; display: inline-block;vertical-align:text-top;' alt='<img src={{y.P_pic|pic}} width=200>'>
        <div style="display: inline-block;vertical-align:text-top;margin-left: 10px;">
        <p style="width: 200px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><b><a href="../?type=productinfo&S_id={{y.P_id}}" target="_blank">{{y.P_title}} </a></b></p>
        <p><b>属性：</b>{{y.O_shuxing}}</p>
        <p>{{y.O_price}}元 × {{y.O_num}}件 </p>

      </div>
</div>
      </td>
        <td>
          
          <p><b>{{x.O_all}}元</b></p>
          <p style="color: #AAAAAA">邮费：{{x.O_postage}}元</p>
        </td>

        <td>
          <div class="input-group">
        <select name="state_{{x.O_nox}}" class="form-control">
        <option value="0" ng-selected="isSelected2(x.menu_sub,0)">未付款</option>
        <option value="1" ng-selected="isSelected2(x.menu_sub,1)">已付款未发货</option>
        <option value="2" ng-selected="isSelected2(x.menu_sub,2)">已付款已发货</option>
        <option value="3" ng-selected="isSelected2(x.menu_sub,3)">已确认</option>
        <option value="4" ng-selected="isSelected2(x.menu_sub,4)">用户申请退款</option>
        <option value="5" ng-selected="isSelected2(x.menu_sub,5)">已退款</option>
        </select>
        <span class="input-group-btn">
        <button ng-click="save(lang)" class="btn btn-info">保存</button>
      </span>
      </div>
        </td>
        
        <td><a href="#/app/member_add/{{x.M_id}}"><div style="text-align: center;"><img ng-src='../media/{{x.M_pic}}' height="50" style="border-radius: 5px;"><br>{{x.M_login}}</div></a></td>

        <td>
          <p><a href="#/app/send/{{x.O_nox}}" class="edit"><i class='fa fa-edit'></i> 详情</a></p>
          <p><a href="javascript:;" ng-click="del(x.O_nox)" class="del"><i class='fa fa-times-circle'></i> 删除</a></p>
          <p><span ng-bind-html="trust(x.O_pay)"></span></p>
        </td>
            </tr>
           
          </tbody>
        </table>
</form>
        </div>

      </div>


              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">

    </div>
  
  </div>
  
</div>
^
<div class="container w-xl w-auto-xs" ng-controller="forgot_ctrl" ng-init="app.settings.container = false;">
  <a href class="navbar-brand block m-t">{{app.name}}</a>
  <div class="m-b-lg">
    <div class="wrapper text-center">
      <strong>输入您预留的邮箱用来找回密码</strong>
    </div>
    <form name="reset" ng-init="isCollapsed=true">
      <div class="text-danger wrapper text-center" ng-show="authError" ng-bind-html="trust(authError)">
      </div>
      <div class="list-group list-group-sm">
        <div class="list-group-item">
          <input type="email" placeholder="邮箱" ng-model="email" class="form-control no-border" required>
        </div>
      </div>
      <button type="submit" ng-disabled="reset.$invalid" class="btn btn-lg btn-primary btn-block"  ng-click="found()" >发送</button>
    </form>
    <div class="wrapper text-center">
      如果忘记邮箱可使用 <strong><a href="help.php?page=9.6" target="_blank">>>找回密码工具</a></strong>
    </div>
    <div collapse="isCollapsed" class="m-t">
      <div class="alert alert-success">
        <p>请查收密码找回邮件 <a ui-sref="access.signin" class="btn btn-sm btn-success">登录</a></p>
      </div>
    </div>
  </div>
</div>
^
<div class="container w-xxl w-auto-xs" ng-controller="SigninFormController" ng-init="app.settings.container = false;">
  <a href class="navbar-brand block m-t">{{app.name}}</a>
  <div class="m-b-lg">
    <div class="wrapper text-center">
      <strong>输入用户名和密码登陆后台</strong>
    </div>
    <form name="form" class="form-validation" id="login_form">
      <div class="text-danger wrapper text-center" ng-show="authError" ng-bind-html="trust(authError)">
      </div>
      <div class="list-group list-group-sm">

        <div class="list-group-item">
          <input type="text" placeholder="用户名" class="form-control no-border" ng-model="user.email" required>
        </div>
        <div class="list-group-item">
           <input type="password" placeholder="密码" class="form-control no-border" ng-model="user.password" required>
        </div>

        <div class="list-group-item" style="display: none" id="emailcode">
           <input type="password" placeholder="邮箱验证码" class="form-control no-border" ng-model="user.emailcode" id="emailcode2" value="">
        </div>


        <iframe src="../function/code_1.php?name=vcode" scrolling="no" frameborder="0" width="100%" height="40" style="margin-top: 10px;margin-bottom: -15px;"></iframe>
      </div>

      <button type="submit" class="btn btn-lg btn-primary btn-block" ng-click="login()">登录</button>
      <div class="text-center m-t m-b"><a ui-sref="access.forgotpwd">忘记密码？</a></div>
    </form>
  </div>
  
</div>
^
<style>
.plug{margin:10px; padding:10px;background-color:#EEEEEE;line-height:200%;border:#DDDDDD solid 1px;-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius:10px;}
.plug img{border-radius:15px;float:left;}
</style>
<div class="wrapper-md" ng-controller="plug_Ctrl">
  <div class="row">
    <div class="col-lg-12">
   <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         插件列表 <button class="btn btn-xs btn-primary pull-right" type="button" ng-click="refresh_plug()" ><i class="fa fa-refresh"></i> 更新插件</button>
        </div>
<div class="table-responsive">

<div class='plug' ng-hide="isSelected(auth)||isfrom(C_from)">
<img ng-src='https://shanlingtest.oss-cn-shenzhen.aliyuncs.com/media/auth.png' width='100'>
<div style='float:left;margin-left:10px;'><b>授权名称</b>：S-CMS完整商业授权<br>
<b>授权介绍</b>：购买完整授权后可免费使用所有模板和插件（含电脑端和手机端），时长永久。<br>
<b>授权价格</b>：798元<br>
<a class="del" href="javascript:;" ng-click="getauth()"><i class="fa fa-shopping-cart"></i> 购买</a></div>
<div style='font: 0px/0px sans-serif;clear: both;display: block'> </div>
</div>

<div class='plug'>
<img ng-src='https://shanlingtest.oss-cn-shenzhen.aliyuncs.com/media/update.png' width='100'>
<div style='float:left;margin-left:10px;'><b>插件名称</b>：一键更新<br>
<b>插件介绍</b>：可以建站系统一键升级到最新版，无需手动替换文件，并承诺永久免费更新<br>
<b>插件价格</b>：免费使用<br>
<a class="edit" href="javascript:;"><i class="fa fa-check-circle"></i> 已开通</a>
<a class="add" href="javascript:;" ng-click="update()"><i class="fa fa-refresh"></i> 检测更新</a>
</div>
<div style='font: 0px/0px sans-serif;clear: both;display: block'> </div>
</div>

<div class='plug' ng-repeat="x in plug">
<img ng-src='https://shanlingtest.oss-cn-shenzhen.aliyuncs.com/media/{{x.P_no}}.png' width='100'>
<div style='float:left;margin-left:10px;'><b>插件名称</b>：{{x.P_title}}（编号：{{x.P_no}}）<br>
<b>插件介绍</b>：{{x.P_content}}<br>
<b>插件价格</b>：{{x.P_price}}元<br>
<a ng-class="{1: 'edit', 0: 'del'}[x.P_state]" ng-bind-html="button(x.P_state)" ng-click="click(x.P_state,x.P_no)"></a>

<a class="add" href="#/app/recycle/"  ng-show="x.P_no=='x15' && x.P_state==1"><i class="fa fa-send"></i> 回收站</a>
<a class="add" href="#/app/data/"  ng-show="x.P_no=='x14' && x.P_state==1"><i class="fa fa-send"></i> 网站搬家</a>
<a class="add" href="#/app/data/"  ng-show="x.P_no=='x13' && x.P_state==1"><i class="fa fa-send"></i> 数据备份</a>
<a class="add" href="javascript:;" ng-click="checkmm()"  ng-show="x.P_no=='x12' && x.P_state==1"><i class="fa fa-send"></i> 检测木马</a>
<a class="add" href="#/app/comment/"   ng-show="x.P_no=='x11' && x.P_state==1"><i class="fa fa-send"></i> 管理评论</a>
<a class="add" href="#/app/product_add2"   ng-show="x.P_no=='x9' && x.P_state==1"><i class="fa fa-send"></i> 批量上传</a>

<a class="add" href="javascript:;"   ng-show="x.P_no=='x8' && x.P_state==1"><i class="fa fa-check-circle"></i> 已移除版权信息</a>
<a class="add" href="#/app/w_config"   ng-show="x.P_no=='x5' && x.P_state==1"><i class="fa fa-send"></i> 设置</a>

<a class="add" href="#/app/news_list///"   ng-show="x.P_no=='x4' && x.P_state==1"><i class="fa fa-send"></i> 管理投稿</a>
<a class="add" href="#/app/config/"   ng-show="x.P_no=='x3' && x.P_state==1"><i class="fa fa-send"></i> 设置</a>
<a class="add" href="#/app/config/"   ng-show="x.P_no=='x2' && x.P_state==1"><i class="fa fa-send"></i> 设置</a>

<a class="add" href="#/app/tohtml/"   ng-show="x.P_no=='x1' && x.P_state==1"><i class="fa fa-send"></i> 生成静态</a>

</div>
<div style='font: 0px/0px sans-serif;clear: both;display: block'> </div>
</div>

</div>
</div>
    </div>
  </div>
</div>
^
<script> 
function AddRow()
{
 //添加一行
 var i =tab1.rows.length;
 var Nam="'div1'";
 var Cod="fuJ"+i;
 var newTr = tab1.insertRow();
 var _id='pd'+i;
 var newTd0 = newTr.insertCell();
 var newTd1 = newTr.insertCell();
 var newTd2 = newTr.insertCell();
 newTr.id=_id;
 newTr.setAttribute("bgcolor", "#FFFFFF");
 newTr.setAttribute("onmouseout", "this.style.backgroundColor=''");
 newTr.setAttribute("onmouseover", "this.style.backgroundColor='#F7F7F7'");
 
 newTd0.innerHTML = "<div class='input-group m-b'><span class='input-group-addon'>属性名称</span><input type='text' name='sctitle_"+i+"' value='' class='form-control'/></div>";
 newTd1.innerHTML ="<table width='100%' bgcolor='#FFFFFF' id='table"+i+"'><tr id='pd"+i+"_0"+"' bgcolor='#eeeeee' onmouseout='this.style.backgroundColor=\"\"' onmouseover='this.style.backgroundColor=\"#FFFFFF\"'><td><div class='input-group m-b'><span class='input-group-addon'>属性值</span><input type='text' name='scvvvv"+i+"_0' value='' class='form-control'/></div></td><td><div class='input-group m-b'><span class='input-group-addon'>加价</span><input type='text' name='spvvvv"+i+"_0' value='' class='form-control'/><span class='input-group-addon'>元</span></div></td><td><input type='button' value='- 删掉该行' class='add' onclick='DelRow2(\"table"+i+"\",\""+i+"_0"+"\")' style='margin:5px;'/></td></tr></table><div><input type='button' value='＋ 新增一行' class='add' onclick='AddRow2(\"table"+i+"\","+i+")' style='margin:5px;'/></div>";
 
 newTd2.innerHTML = "<input type='button' value='- 删掉该属性' class='add' onclick='DelRow("+i+")' style='margin:5px;'/>";

}

function AddRow2(tab,j)
{
 var Container = document.getElementById(tab);  
 var i =Container.rows.length;
 var Nam="'div1'";
 var Cod="fuJ"+i;
 var newTr = Container.insertRow();
 var _id='pd'+j+"_"+i;

 var newTd0 = newTr.insertCell();
 var newTd1 = newTr.insertCell();
 var newTd2 = newTr.insertCell();
 newTr.id=_id;
 newTr.setAttribute("bgcolor", "#EEEEEE");
 newTr.setAttribute("onmouseout", "this.style.backgroundColor=''");
 newTr.setAttribute("onmouseover", "this.style.backgroundColor='#FFFFFF'");
 
 newTd0.innerHTML = "<div class='input-group m-b'><span class='input-group-addon'>属性值</span><input type='text' name='scvvvv"+j+"_"+i+"' value='' class='form-control'/></div>";
 newTd1.innerHTML ="<div class='input-group m-b'><span class='input-group-addon'>加价</span><input type='text' name='spvvvv"+j+"_"+i+"' value='' class='form-control'/><span class='input-group-addon'>元</div></span>";
 newTd2.innerHTML = "<input type='button' value='- 删掉该行' class='add' onclick='DelRow2(\""+tab+"\",\""+j+"_"+i+"\")' style='margin:5px;'/>";

}
function AddPic()
{
 //添加一行
 var i =pic1.rows.length;
 var Nam="'div1'";
 var Cod="fuJ"+i;
 var newTr = pic1.insertRow();
 var _id='pp'+i;
 var newTd0 = newTr.insertCell();
 var newTd1 = newTr.insertCell();
 var newTd2 = newTr.insertCell();
 newTr.id=_id;
 newTr.setAttribute("bgcolor", "#FFFFFF");
 newTr.setAttribute("onmouseout", "this.style.backgroundColor=''");
 newTr.setAttribute("onmouseover", "this.style.backgroundColor='#F7F7F7'");
 
 newTd0.innerHTML ="<img ng-src='' class='p_pic' id='picpic1_"+i+"x' onclick='showUpload(\"picpic1_"+i+"\");'>"
 newTd1.innerHTML = "<div class='input-group'><input type='text' name='picpic1_"+i+"' id='picpic1_"+i+"' value='' class='form-control'><span class='input-group-btn'><button class='btn btn-info' type='button' onclick='showUpload(\"picpic1_"+i+"\");'>上传文件</button></span></div><br><input type='text' name='itrpic1_"+i+"' id='itrpic1_"+i+"' value='' class='form-control' placeholder='文字描述'>";
 newTd2.innerHTML ="<input type='button' value='- 删掉该图' class='add' onclick='DelPic("+i+")' style='margin:5px;'/>";
 
}
function DelPic(i)
{
  var Container = document.getElementById("pic1");    
    var _tr=document.getElementById("pp"+i);  
    row=_tr.rowIndex;
    Container.deleteRow(row); 
}
function DelRow(i)
{
  var Container = document.getElementById("tab1");    
    var _tr=document.getElementById("pd"+i);  
    row=_tr.rowIndex;
    Container.deleteRow(row); 
}
function DelRow2(tab,i)
{
      var Container = document.getElementById(tab);   
    var _tr=document.getElementById("pd"+i);  
    row=_tr.rowIndex;
    Container.deleteRow(row); 
}
</script>

<style>
td{ padding: 5px;}
.sx_list:hover{background: #f7f7f7;}
</style>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm" >
        <li class="active"><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
    
<div class="wrapper-md" ng-controller="product_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         [{{data.S_title}}] 列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.P_id==x.P_id}" ng-repeat="x in data.product_list" href="#/app/product_add/{{x.P_id}}">{{x.P_title}}</a>
      </div>
      </div>
    </div>
    <a href="#/app/product_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增<span ng-bind-html="ptitle(C_sort)"></span></a>
  </div>

    <div class="col-lg-10">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}<span ng-bind-html="ptitle(C_sort)"></span>

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>标题</label>
          <div class="col-sm-4">
            <input type="text" class="form-control {{lcss}}" name="P_title" value="{{data.P_title}}" required>
          </div>

          <label class="col-sm-2 control-label">发布时间</label>
          <div class="col-sm-4">
          <input type="text" class="form-control" name="P_time" value="{{data.P_time}}" required>
          </div>

          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>图片</label>
          <div class="col-sm-10">
           <span ng-bind-html="trust(data.P_pic)"></span>
           <input type="button" value="＋ 新增一个图片" onclick="AddPic()" class='add' style="margin:5px;" />
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">是否置顶</label>
          <div class="col-sm-10">
            <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="P_top" ng-checked="isSelected(data.P_top)">
              <i></i>
            </label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>分类</label>
          <div class="col-sm-4">
          	<div class="input-group">
          <select name="P_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
<optgroup ng-repeat="x in psort_lists" label="{{x.S_title}}">
<option ng-repeat="y in x.psort_list" value="{{y.S_id}}" ng-selected="isSelected2(data.P_sort,y.S_id)">{{y.S_title}}</option>
</optgroup>
          </select>
          <span class="input-group-btn">
              <a class="btn btn-info" href="#/app/psort_list/">
                管理分类
              </a>
            </span>
          </div>
      </div>

	<label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>品牌</label>
	<div class="col-sm-4">
    <div class="input-group">
          <select name="P_brand" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          	<option ng-repeat="x in brand_list" value="{{x.B_id}}" ng-selected="isSelected2(data.P_brand,x.B_id)">{{x.B_title}}</option>
          </select>
          <span class="input-group-btn">
              <a class="btn btn-info" href="#/app/brand_list/">
                管理品牌
              </a>
            </span>
          </div>
        </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">跳转链接</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="P_link" value="{{data.P_link}}" placeholder="一般情况下留空，如需跳转请填写链接地址">
          </div>
          </div>
          <div ng-show="isSelected2(C_sort,1)">
          <hr>
          <div class="hr-more">购买设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">开启购买</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="P_buy" value="1" ng-model="data.P_buy" ng-checked="isSelected2(data.P_buy,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="P_buy" value="0" ng-model="data.P_buy" ng-checked="isSelected2(data.P_buy,2)">
                <i></i>
                关闭
              </label>

          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.P_buy,1)">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>价格</label>
          <div class="col-sm-4">
          <div class="input-group m-b">
            <input type="text" class="form-control" name="P_price" value="{{data.P_price}}">
            <span class="input-group-addon">元</span>
          </div>
          </div>

          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>库存</label>
          <div class="col-sm-4">
          <div class="input-group m-b">
            <input type="text" class="form-control" name="P_rest" value="{{data.P_rest}}">
            <span class="input-group-addon">件</span>
          </div>
          </div>

          </div>

          
  
          <div class="form-group" ng-show="isSelected2(data.P_buy,1)">
          <label class="col-sm-2 control-label">开启免登录购买</label>
          <div class="col-sm-10">

          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="P_unlogin" value="1" ng-model="data.P_unlogin" ng-checked="isSelected2(data.P_unlogin,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="P_unlogin" value="0" ng-model="data.P_unlogin" ng-checked="isSelected2(data.P_unlogin,0)">
                <i></i>
                关闭
              </label>

<span style="padding-left:10px;color: #0099ff; " ng-show="isSelected2(data.P_buy,1)&&isSelected2(data.P_unlogin,1)"></span>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.P_buy,1)&&isSelected2(data.P_unlogin,1)">
          <label class="col-sm-2 control-label">填写收货信息</label>
          <div class="col-sm-10">

          <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_name" value="1" ng-checked="isSelected(data.P_name)">
                <i></i>
                姓名
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_email" value="1" ng-checked="isSelected(data.P_email)">
                <i></i>
                邮箱
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_mobile" value="1" ng-checked="isSelected(data.P_mobile)">
                <i></i>
                手机
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_address" value="1" ng-checked="isSelected(data.P_address)">
                <i></i>
                地址
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_postcode" value="1" ng-checked="isSelected(data.P_postcode)">
                <i></i>
                邮编
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_qq" value="1" ng-checked="isSelected(data.P_qq)">
                <i></i>
                QQ
              </label>
              <label class="i-checks" style="width: 60px;">
                <input type="checkbox" name="P_remark" value="1" ng-checked="isSelected(data.P_remark)">
                <i></i>
                备注
              </label>
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.P_buy,1)&&isSelected2(data.P_unlogin,1)">
          <label class="col-sm-2 control-label">商品类型</label>
          <div class="col-sm-10">

          <label class="i-checks" style="width: 100px;">
                <input type="radio" name="P_sence" value="1" ng-model="data.P_sence" ng-checked="isSelected2(data.P_sence,1)">
                <i></i>
                虚拟商品
              </label>

              <label class="i-checks" style="width: 100px;">
                <input type="radio" name="P_sence" value="2" ng-model="data.P_sence" ng-checked="isSelected2(data.P_sence,2)">
                <i></i>
                实物商品
              </label>

          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(data.P_buy,1)&&isSelected2(data.P_unlogin,1)&&isSelected2(data.P_sence,1)">
          <label class="col-sm-2 control-label">发货内容</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="3" name="P_sell" ng-model="data.P_sell" placeholder="虚拟商品填写发货内容，自动发货"></textarea>
          </div>
          </div>

          <div class="form-group" ng-show="isSelected2(data.P_buy,1)&&isSelected2(data.P_unlogin,1)&&isSelected2(data.P_sence,2)">
          <label class="col-sm-2 control-label">发货内容</label>
          <div class="col-sm-10">
            用户购买完成后，手动填写单号并发货
          </div>
          </div>

          

      </div>
          <hr>




          <div class="hr-more">SEO设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>页面标题title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="P_pagetitle" value="{{data.P_pagetitle}}" placeholder="留空则调用产品标题">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>关键词keywords</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="P_keywords" value="{{data.P_keywords}}" placeholder="多个词用半角逗号隔开">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>描述description</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="3" name="P_description" ng-model="data.P_description" placeholder="留空则自动提取文章前100字"></textarea>
          </div>
          </div>

          <hr>
         
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>介绍</label>
          <div class="col-sm-10">
          	<script id="container" name="P_content" type="text/plain" style="height: 350px;"></script>
          </div>
          </div>
          <div class="form-group" ng-show="isSelected2(C_sort,1)">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>属性</label>
          <div class="col-sm-10">
          <div class="table-responsive">
            <span ng-bind-html="trust(data.P_shuxing)"></span>
            <input type="button" value="＋ 新增一个属性" class="add" onclick="AddRow()" style="margin:5px;" />
            <input type="button" value="＋ 调用属性模板" class="edit" ng-click="showsx()" style="margin:5px;" />
            <div class="checkbox" style="display: inline-block;">
              <label class="i-checks">
                <input type="checkbox" ng-model="data.P_shuxingt" name="P_shuxingt" value="1" ng-checked="isSelected(data.P_shuxingt)">
                <i></i>
                设为属性模板
              </label>

            </div>
            <a href="help.php?page=3.3" class="btn btn-xs btn-success" target="_blank">帮助？</a> 

            <div style="max-height: 300px;overflow: auto;border: solid 1px #EEEEEE;padding: 10px;" ng-show="sx" >
              <div  style="border-bottom:solid 1px #eeeeee;padding: 10px;" ><b>您可以直接调用已有的属性模板：</b> </div>
              <div ng-repeat="x in sx_list" style="border-bottom:solid 1px #eeeeee;padding: 10px; " class="sx_list"><b>{{x.P_title}}</b> <button type="button" class="btn btn-xs btn-info" ng-click="dy(x.P_id)">调用</button><br>{{x.P_shuxing}}</div>
            </div>
          </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<script language="javascript">
function challs_flash_update(){ 
  var a={};
a.title = "上传文件"; 
a.FormName = "Filedata";
a.url="../function/update.php"; 
a.parameter="bs=tyi&id=50"; 
a.typefile=["Images (*.gif,*.png,*.jpg,*jpeg)","*.gif;*.png;*.jpg;*.jpeg;","GIF (*.gif)","*.gif;","PNG (*.png)","*.rar;","JPEG (*.jpg,*.jpeg)","*.jpg;*.jpeg;"];
a.UpSize=0;
a.fileNum=0;
a.size=2;
a.FormID=['select','select2'];
a.autoClose=1;
a.CompleteClose=false;
a.repeatFile=true;
a.returnServer=true;
a.MD5File = 1;
a.loadFileOrder=true;
a.mixFileNum=0;
return a ;
}
function challs_flash_onComplete(a){ 
  var name=a.fileName; 
  var size=a.fileSize; 
  var time=a.updateTime; 
  var type=a.fileType;
  document.getElementById('show').innerHTML+=name+' --- '+size+'字节 ----文件类型：'+type+'--- 用时 '+(time/1000)+'秒<br><br>'
}

function challs_flash_onCompleteData(a){
  document.getElementById('show').innerHTML+='<font color="#ff0000">服务器端反馈信息：</font><br />'+a+'<br />'; 
}
function challs_flash_onStart(a){
  var name=a.fileName; 
  var size=a.fileSize; 
  var type=a.fileType; 
  document.getElementById('show').innerHTML+=name+'开始上传！<br />';
}

function challs_flash_onCompleteAll(a){ 
  document.getElementById('show').innerHTML+='<font color="#ff0000">所有文件上传完毕，</font>上传失败'+a+'个！<br />';

}

function challs_flash_onError(a){ 
  var err=a.textErr;
  var name=a.fileName; 
  var size=a.fileSize; 
  var type=a.fileType; 
  document.getElementById('show').innerHTML+='<font color="#ff0000">'+name+' - '+err+'</font><br />';
}

function challs_flash_FormData(a){ 
  try{
    var value = '';
    var id=document.getElementById(a);
    if(id.type == 'radio'){
      var name = document.getElementsByName(id.name);
      for(var i = 0;i<name.length;i++){
        if(name[i].checked){
          value = name[i].value;
        }
      }
    }else if(id.type == 'checkbox'){
      if(id.checked){
        value = id.value;
      }
    }else{
      value = id.value;
    }
    return value;
   }catch(e){
    return '';
   }
}

var isMSIE = (navigator.appName == "Microsoft Internet Explorer");   
function thisMovie(movieName){   
  if(isMSIE){   
    return window[movieName];   
  }else{
    return document[movieName];   
  }   
}
</script>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="product_add2_Ctrl" >

  <div class="row">
<div class="col-lg-12">
<div ng-if="isSelected(c.x9)">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         批量新增<span ng-bind-html="ptitle(C_sort)"></span>
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form1">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>分类</label>
          <div class="col-sm-10">
          <select name="P_sort" id="select">

          <optgroup ng-repeat="x in psort_lists" label="{{x.S_title}}">
<option ng-repeat="y in x.psort_list" value="{{y.S_id}}">{{y.S_title}}</option>
</optgroup>

          </select>
          </div>
          </div>

<div class="form-group">
          <label class="col-sm-2 control-label">选择文件</label>
          <div class="col-sm-10">
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="100%" height="320" id="update" align="middle">
                  <param name="allowFullScreen" value="false" />
                  <param name="allowScriptAccess" value="always" />
                  <param name="movie" value="update.swf" />
                  <param name="quality" value="high" />
                  <param name="bgcolor" value="#ffffff" />
                  <embed src="update.swf" quality="high" bgcolor="#ffffff" width="100%" height="320" name="update" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />                
</object>
          </div>
          </div>
</form>
</div>
</div>
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         返回信息
        </div>
<div class="panel-body">
<div id="show" style="margin-top:20px; width:500px; text-align:left;"></div>
</div>
      </div>
</div>
      <div ng-if="!isSelected(c.x9)">
          您还未购买此插件 <a href="#/app/plug/" class="del"><i class="fa fa-shopping-cart"></i> 购买</a>
          </div>
    </div>

  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href=""><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="product_list_Ctrl" >

<form id="search" style="width:250px; float: right;margin-top: -70px;">
  <div class="input-group">
        <input type="text" class="form-control" name="S_key" id="S_key" style="width: 200px;" placeholder="输入关键词">
        <span class="input-group-btn">
            <button class="btn btn-info" type="button" ng-click="search()">搜索</button>
        </span>
    </div>
</form>

  <div class="row">
  <div class="col-md-2">
      <div class="panel panel-info ng-scope" ng-repeat="x in psort_lists">
        <div class="panel-heading">
         {{x.S_title}}
        </div>
<div class="table-responsive">
      <div class="list-group" >
        <a  class="list-group-item" ng-repeat="y in x.psort_list" ng-click="tosort(y.S_id)">
          <span class="badge bg-info">{{y.S_count}}</span>
          <i class="fa fa-star m-r-xs"></i> {{y.S_title}}
        </a>
      </div>

 </div>
 </div>
 <a href='#/app/product_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ptitle(C_sort)"></span></a>
 <a href='#/app/product_add2' class='edit'><i class='fa fa-plus'></i> 批量新增</a>
 <a href='#/app/psort_add/' class='edit'><i class='fa fa-plus'></i> 新增分类</a>
  <div style="height: 20px;"></div>
 </div>

    <div class="col-md-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ptitle(C_sort)"></span>列表 
         <a href="#/app/product_add/" class="btn btn-xs btn-success"><i class='fa fa-plus'></i> 新增<span ng-bind-html="ptitle(C_sort)"></span></a>


         <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 1000px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>显示名称</th>
        <th>是否置顶</th>
        <th ng-show="isSelected2(C_sort,1)">价格</th>
        <th>开启购买</th>
         <th>缩图</th>
         <th>所属分类</th>
         <th>编辑/删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in product_list" id="item_{{x.P_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.P_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td><input type='text' value='{{x.P_order}}' name='order_{{x.P_id}}' class="form-control" style="width: 50px;"></td>
        <td><textarea spellcheck="false" type='text' name='title_{{x.P_id}}' class="form-control {{lcss}}" ng-model="x.P_title" ng-blur="save(lang)" style="min-width: 200px;"></textarea></td>
        <td><span ng-bind-html="trust(x.P_top)"></span></td>
        <td ng-show="isSelected2(C_sort,1)">
        <div class="input-group m-b">
            <input type='text' name='price_{{x.P_id}}' value="{{x.P_price}}" class="form-control" ng-blur="save(lang)">
            <span class="input-group-addon">元</span>
          </div>
        </td>
        <td><span ng-bind-html="trust(x.P_buy)"></span></td>
        <td><img ng-src='{{x.P_pic|pic}}' style='max-width: 100px; max-height:40px;' alt='<img src={{x.P_pic|pic}} width=400>'></span></td>
        <td><span ng-bind-html="trust(x.P_sort)"></span></td>
        <td>
          <p><a href="#/app/product_add/{{x.P_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></p>
          <p><a href="javascript:;" ng-click="del(x.P_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></p>
      </td>

            </tr>
           
          </tbody>
        </table>
</form>
        </div>
<footer class="panel-footer">
      <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">      
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>
          
        </div>
      </div>
    </footer>
      </div>


              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/product_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ptitle(C_sort)"></span></a>
<a href='#/app/product_excel/' class='edit'><i class='fa fa-plus'></i> 导入Excel</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li class="active"><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="psort_add_Ctrl" >
  <div class="row">

<div class="col-lg-2">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ptitle(C_sort)"></span>分类列表
        </div>
<div class="table-responsive">
      <div class="list-group" >
      <span ng-repeat="x in psort_lists">
        <a class="list-group-item"  ng-class="{active:data.S_id==x.S_id}" href="#/app/psort_add/{{x.S_id}}">
           <b>{{x.S_title}}</b>
        </a>
        <a class="list-group-item" ng-repeat="y in x.psort_list" ng-class="{active:data.S_id==y.S_id}" href="#/app/psort_add/{{y.S_id}}">
           &nbsp;&nbsp;&nbsp;&nbsp;┗ {{y.S_title}}
        </a>
       </span>
      </div>
 </div>
 </div>
<a href="#/app/psort_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增<span ng-bind-html="ptitle(C_sort)"></span>分类</a>

 </div>


    <div class="col-lg-10">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}<span ng-bind-html="ptitle(C_sort)"></span>分类

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
  <input type="hidden" value="{{data.S_id}}" id="S_id">
            <div class="form-group">
          <label class="col-sm-2 control-label">上级分类</label>
          <div class="col-sm-10">
        <select name='S_sub' id='S_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" onchange="getorder('S_sub','S_order','psort','')">
        <option value="0" ng-selected="isSelected2(data.S_sub,0)">根分类</option>
        <option ng-repeat="x in psort_lists" value="{{x.S_id}}" ng-selected="isSelected2(data.S_sub,x.S_id)">{{x.S_title}}</option>
        </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" id="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_entitle" id="S_titlex" onfocus="translatex('S_title')" value="{{data.S_entitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id='S_order' name="S_order" value="{{data.S_order}}" onfocus="getorder('S_sub','S_order','psort','S_id')" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">展示隐藏</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_show" value="1" ng-model="data.S_show" ng-checked="isSelected2(data.S_show,1)">
                <i></i>
                展示
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_show" value="0" ng-model="data.S_show" ng-checked="isSelected2(data.S_show,2)">
                <i></i>
                隐藏
              </label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">分类封面图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.S_pic|pic}}" id="S_picx" class="L_pic" ng-click="showUpload('S_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="S_pic" name="S_pic" value="{{data.S_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('S_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('S_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">类型</label>
          <div class="col-sm-10">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="S_type" value="0" ng-checked="isSelected2(data.S_type,0)">
                <i></i>
                <span ng-bind-html="ptitle(C_sort)" style="margin: 0px;"></span>
              </label>
            </div>
            <div class="radio">
              <label class="i-checks">
                <input type="radio" name="S_type" value="1" ng-checked="isSelected2(data.S_type,1)">
                <i></i>
                案例
              </label>
            </div>
            </div>
            </div>
            <hr>
            <div class="hr-more">SEO设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>页面标题title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_pagetitle" value="{{data.S_pagetitle}}" placeholder="留空则调用产品分类标题">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>关键词keywords</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_keywords" value="{{data.S_keywords}}" placeholder="多个词用半角逗号隔开">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>描述description</label>
          <div class="col-sm-10">
            <textarea spellcheck="false"  class="form-control {{lcss}}" name="S_description"  required>{{data.S_description}}</textarea>
          </div>
          </div>
          

            <div class="form-group" ng-show="showx">
          <label class="col-sm-2 control-label">加入到导航栏</label>
          <div class="col-sm-10">
        <select name='U_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
        <option value="x">不加入到导航栏</option>
        <option value="0">加入到网站主菜单</option>
        <option ng-repeat="x in menu_lists" value="{{x.U_id}}">成为“{{x.U_title}}”的子菜单</option>
        </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li class="active"><a href=""><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="psort_list_Ctrl" >
  <div class="row">
  <div class="col-lg-12">
  <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ptitle(C_sort)"></span>总分类标题
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="formx" ng-submit="savex(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ptitle(C_sort)"></span>总分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_psorttitle" id="C_psorttitle" value="{{data.C_psorttitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="C_psortentitle" onfocus="translatex('C_psorttitle')" id="C_psorttitlex" value="{{data.C_psortentitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          </form>
        </div>
  </div>
  </div>

    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ptitle(C_sort)"></span>分类列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;" >
          <thead>
            <tr>
            <th>ID</th>
              <th>选择</th>
               <th>排序</th>
              <th>显示名称</th>
        <th>名称（第二语言）</th>
        <th>封面图</th>
        <th>类型</th>
        <th>展示</th>
        <th>所属</th>
        <th>编辑</th>
        <th>删除</th>
         <th>添加到菜单</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in psort_lists | orderBy: 'S_order'">
      <tr id="item_{{x.S_id}}" class="active">
      <td>{{x.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_entitle}}' name='entitle_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.S_pic|pic}}' height='30' alt='<img src={{x.S_pic|pic}} width=400>' id="pic_{{x.S_id}}x" ng-click="showUpload(x.S_id)"></span>
        <input type="hidden" value="{{x.S_pic}}" id="pic_{{x.S_id}}" name="pic_{{x.S_id}}">
        </td>
        <td>{{x.S_type}}</td>
        <td><span ng-bind-html="trust(x.S_show)"></span></td>
        <td><b>--根分类--</b></td>
        <td><a href="#/app/psort_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(x.S_id)" class="add"><i class="fa fa-times-circle"></i> 添加</a></td>
        </tr>

        <tr ng-repeat="y in x.psort_list  | orderBy: 'S_order'" id="item_{{y.S_id}}">
        <td>{{y.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{y.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{y.S_order}}' name='order_{{y.S_id}}' class="form-control sub" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{y.S_title}}' name='title_{{y.S_id}}' class="form-control {{lcss}} sub" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{y.S_entitle}}' name='entitle_{{y.S_id}}' class="form-control {{lcss}} sub" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{y.S_pic|pic}}' height='30' alt='<img src={{y.S_pic|pic}} width=400>' id="pic_{{y.S_id}}x" ng-click="showUpload(y.S_id)"></span>
        <input type="hidden" value="{{y.S_pic}}" id="pic_{{y.S_id}}" name="pic_{{y.S_id}}">
        </td>
        <td>{{y.S_type}}</td>
        
          <td><span ng-bind-html="trust(y.S_show)"></span></td>
          <td>
        <select name='sort_{{y.S_id}}'>
        <option ng-repeat="z in psort_lists" ng-selected="isSelected2(y.S_sub,z.S_id)" value="{{z.S_id}}">{{z.S_title}}</option>
        </select>
        </td>
        <td><a href="#/app/psort_add/{{y.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(y.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(y.S_id)" class="add"><i class="fa fa-times-circle"></i> 添加</a></td>
        </tr>




          </tbody>
        </table>
</form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/psort_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ptitle(C_sort)"></span>分类</a>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="reply_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         留言回复
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="G_title" value="{{data.G_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="G_name" value="{{data.G_name}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">邮箱</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="G_email" value="{{data.G_email}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">手机</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="G_phone" value="{{data.G_phone}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">留言</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="G_msg" ng-model="data.G_msg"></textarea>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">审核</label>
          <div class="col-sm-10">
          <label class="i-switch bg-info m-t-xs m-r">
              <input type="checkbox" value="1" name="G_sh" ng-checked="isSelected(data.G_sh)">
              <i></i>
            </label>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">回复</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control" name="G_reply" ng-model="data.G_reply"></textarea>
          </div>
          </div>



          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/form_list/">表单管理</a></li>
        <li><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="response_list_Ctrl">
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         “{{data.F_title}}”统计
        </div>
<div class="table-responsive">
<span ng-bind-html="trust(data.response_list)"></span>

        </div>

      </div>
    </div>
  
  </div>
  
</div>
<script>
 function delx(id){
swal({title:"",text: "确定要删除吗？",type: "warning",showCancelButton: true},function(){ajaxx("ajax.php?action=del&type=response&R_rid="+id,"","",4,id);});
 }
</script>
^
<div class="wrapper-md" ng-controller="safe_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         安全设置
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">


          <div class="form-group">
          <label class="col-sm-2 control-label">允许上传文件格式</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_filetype" value="{{data.S_filetype}}" required popover="用“|”分开" popover-trigger="focus">
            <div style="margin-top: 5px;">请勿设置允许asp、php、cgi等脚本文件上传</div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">上传文件大小限制</label>
          <div class="col-sm-10">

          <div class="input-group">
            <input type="text" class="form-control" name="S_filesize" value="{{data.S_filesize}}" required popover="用于万能表单用户上传文件大小限制" popover-trigger="focus">
            <span class="input-group-addon">M</span>
          </div>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">IP黑名单设置</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_ip" value="{{data.S_ip}}" required popover="用“|”分开，支持通配符，如“123.45.67.89|123.45.67.*”" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">敏感字符过滤</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_word" value="{{data.S_word}}" required popover="用“|”分开，防止网站注入攻击" popover-trigger="focus">
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">页面防复制</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_uncopy" value="1" ng-model="data.S_uncopy" ng-checked="isSelected2(data.S_uncopy,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_uncopy" value="0" ng-model="data.S_uncopy" ng-checked="isSelected2(data.S_uncopy,0)">
                <i></i>
                关闭
              </label>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">开启二次验证</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_login2" value="1" ng-model="data.S_login2" ng-checked="isSelected2(data.S_login2,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_login2" value="0" ng-model="data.S_login2" ng-checked="isSelected2(data.S_login2,0)">
                <i></i>
                关闭
              </label>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">开启自动备份</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_backup" value="1" ng-model="data.S_backup" ng-checked="isSelected2(data.S_backup,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_backup" value="0" ng-model="data.S_backup" ng-checked="isSelected2(data.S_backup,0)">
                <i></i>
                关闭
              </label>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">安全邮箱</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_email" value="{{data.S_email}}" required popover="用于接收验证码" popover-trigger="focus">
            <div style="margin-top: 5px;">当管理员的登录IP有变动时，会通过安全邮箱二次验证登录身份</div>
          </div>
          </div>
          
         
         <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>

          
         
  </form>
  </div>
  </div>
    </div>
  </div>
</div>
^

<div class="wrapper-md" ng-controller="search_Ctrl">
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         搜索项目
        </div>

        <div class="panel-body">

          <tabset class="tab-container">
          <tab ng-if="hide(data.slide_count)">
          <tab-heading>幻灯 <span class="badge badge-sm m-l-xs bg-primary">{{data.slide_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.slide_list">
          <a href="#/app/slide_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/slide_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>

          </tab>
          <tab ng-if="hide(data.link_count)">
          <tab-heading>友链 <span class="badge badge-sm m-l-xs bg-primary">{{data.link_count}}</span></tab-heading>

          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.link_list">
          <a href="#/app/link_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
           <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/link_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.text_count)">
          <tab-heading><span ng-bind-html="ttitle(C_sort)"></span> <span class="badge badge-sm m-l-xs bg-primary">{{data.text_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.text_list">
          <a href="#/app/text_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/text_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../?type=text&S_id={{x.id}}" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.news_count)">
          <tab-heading><span ng-bind-html="ntitle(C_sort)"></span> <span class="badge badge-sm m-l-xs bg-primary">{{data.news_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.news_list">
          <a href="#/app/news_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/news_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../?type=newsinfo&S_id={{x.id}}" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.product_count)">
          <tab-heading><span ng-bind-html="ptitle(C_sort)"></span> <span class="badge badge-sm m-l-xs bg-primary">{{data.product_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.product_list">
          <a href="#/app/product_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/product_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../?type=productinfo&S_id={{x.id}}" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div style="min-height:20px;" ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.form_count)">
          <tab-heading>表单 <span class="badge badge-sm m-l-xs bg-primary">{{data.form_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.form_list">
          <a href="#/app/form_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/form_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../?type=form&S_id={{x.id}}" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.menu_count)">
          <tab-heading>菜单 <span class="badge badge-sm m-l-xs bg-primary">{{data.menu_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.menu_list">
          <a href="#/app/menu_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
           <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> <a class="edit" href="#/app/menu_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div ng-bind-html="trust(x.content)"></div>
          </div>
        </li>
        </ul>
          </tab>
          <tab ng-if="hide(data.member_count)">
          <tab-heading>会员 <span class="badge badge-sm m-l-xs bg-primary">{{data.member_count}}</span></tab-heading>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.member_list">
          <a href="#/app/member_add/{{x.id}}" class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </a>
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm">{{x.title}}</span> <a class="edit" href="#/app/member_add/{{x.id}}"><i class="fa fa-edit"></i> 编辑</a> <a class="add" href="../" target="_blank"><i class="fa fa-send"></i> 查看</a></p>
            <div>{{x.content}}</div>
          </div>
        </li>
        </ul>
          </tab>
         </tabset>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li class="active"> <a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="send_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         订单列表
        </div>
<div class="table-responsive">

 <table class="table table-striped m-b-none" style="min-width: 1200px;">
          <thead>
            <tr>
             
              <th>商品名称</th>
        <th>总价</th>
         <th>状态</th>

         <th>交易号/时间</th>
         <th style="text-align:center ">会员</th>

            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.order_list" id="item_{{x.O_nox}}">

       <td>
        <img ng-src='{{x.P_pic|pic}}' style='height: 70px; display: inline-block;vertical-align:text-top;' alt='<img src={{x.P_pic|pic}} width=200>'>
        <div style="display: inline-block;vertical-align:text-top;margin-left: 10px;">
        <p style="width: 200px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><b><a href="../?type=productinfo&S_id={{x.P_id}}" target="_blank">{{x.P_title}} </a></b></p>
        <p><b>属性：</b>{{x.O_shuxing}}</p>
        <p>{{x.O_price}}元 × {{x.O_num}}件</p>

      </div>
      </td>
        <td>

          <p><b>{{x.O_all}}元</b></p>
        </td>
        <td>
          <p><span ng-bind-html="trust(x.O_state)"></span></p>
          
    </td>
        <td>
          <p>订单号：<span ng-bind-html="trust(x.O_nox)"></span></p>
          <p>交易号：<span ng-bind-html="trust(x.O_no)"></span></p>
          <p>时间：{{x.O_time}}</p>
        </td>
        <td><a href="#/app/member_add/{{x.M_id}}"><div style="text-align: center;"><img ng-src='../media/{{x.M_pic}}' height="50" style="border-radius: 5px;"><br>{{x.M_login}}</div></a></td>

            </tr>
           <tr><td></td><td></td><td></td><td></td><td style="text-align: right">
            <p>商品：{{data.all}}元</p>
            <p>邮费：{{data.O_postage}}元</p>
            <p style="font-size: 15px;color: #ff0000">合计：{{data.all-(-data.O_postage)}}元</p>
           </td></tr>
          </tbody>
        </table>

        </div>

      </div>

    </div>

<div class="col-lg-6" ng-show="data.O_state==0">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         发货信息
        </div>
<div class="panel-body">
等待用户付款后，方可发货。
</div>
      </div>
    </div>

<div class="col-lg-6" ng-show="data.O_state==1">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         发货信息
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form" ng-submit="send()">
          <div class="form-group">
          <label class="col-sm-2 control-label">物流公司</label>
          <div class="col-sm-10">
          <select name="O_wl" class="form-control m-t ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="申通|shentong">申通</option>
          <option value="圆通|yuantong">圆通</option>
          <option value="中通|zhongtong">中通</option>
          <option value="天天|tiantian">天天</option>
          <option value="百世汇通|huitongkuaidi">百世汇通</option>
          <option value="顺丰|shunfeng">顺丰</option>
          <option value="韵达|yunda">韵达</option>
          <option value="宅急送|zhaijisong">宅急送</option>
          <option value="EMS|ems">EMS</option>
          <option value="UPS|ups">UPS</option>
          <option value="E邮宝|ems">E邮宝</option>
          <option value="全峰快递|quanfengkuaidi">全峰快递</option>
          <option value="优速物流|yousuwuliu">优速物流</option>
          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">运单编号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="O_wlid" required>
          </div>
          </div>
          <input type="hidden" class="form-control" name="O_id" value="{{data.O_no}}" required>
          <input type="hidden" class="form-control" name="O_tradeno" value="{{data.O_tradeno}}" required>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">发货</button>
          </div>
          </div>
          
  </form>
</div>
      </div>
    </div>


    <div class="col-lg-6" ng-show="data.O_state>1">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">发货信息
         <span style="float: right;"> <b>物流公司：</b>{{data.O_wl}}
<b>运单编号：</b>{{data.O_wlid}}</span>
        </div>
<div class="panel-body">

<table class="table table-striped m-b-none" >
          <thead>
            <tr>
              <th>时间</th>
              <th>地点和跟踪进度</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.O_wllist[0].data">
       <td>{{x.time}}</td>
        <td>{{x.context}}</td>
            </tr>
          </tbody>
        </table>
</div>
      </div>
    </div>


    <div class="col-lg-6">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         收货信息
        </div>
<div class="panel-body">
<p>会员名：{{data.M_login}}</p>
<p>真实姓名：{{data.M_name}}</p>
<p>收货地址：{{data.M_add}}</p>
<p>手机号码：{{data.M_mobile}}</p>
<p>邮编：{{data.M_code}}</p>
<p style="color: #ff6600">备注：{{data.O_remark}}</p>
</div>
      </div></div>
  
  </div>
  
  

  
</div>
^

<div class="wrapper-md" ng-controller="sitemap_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         sitemap
        </div>
<div class="panel-body">

<form class="form-horizontal" id="form" ng-submit="save(lang)">

	<div class="form-group">
          <label class="col-sm-2 control-label">选择语言</label>
          <div class="col-sm-10">
           <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="0" ng-checked="ishave(C_lang,0)">
                <i></i>
                {{C_langtitle0}}
              </label>
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="2" ng-checked="ishave(C_lang,2)">
                <i></i>
                {{C_langtitle1}}
              </label>
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="1" ng-checked="ishave(C_lang,1)">
                <i></i>
                {{C_langtitle2}}
              </label>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">生成</button> <span ng-show="showsitemap">路径：{{data.path}}，请到“百度站长平台”提交sitemap。</span> 
          </div>
          </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="slide_add_Ctrl">
  <div class="row">

  <div class="col-lg-2">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         焦点图列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.S_id==x.S_id}" ng-repeat="x in slide_list" href="#/app/slide_add/{{x.S_id}}">{{x.S_title}}</a>
      </div>
      </div>
    </div>
    <a href="#/app/slide_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增焦点图</a>
  </div>


    <div class="col-lg-10">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}焦点图
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图描述</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" name="S_content" required>{{data.S_content}}</textarea>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.S_pic|pic}}" id="S_picx" class="L_pic" ng-click="showUpload('S_pic')">
            <div class="input-group">
              <input type="text" class="form-control" id="S_pic" name="S_pic" value="{{data.S_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('S_pic')">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('S_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图链接</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_link" value="{{data.S_link}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^

<div class="wrapper-md" ng-controller="slide_list_Ctrl" >

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         焦点图列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 600px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
        <th>名称</th>
        <th>缩图</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in slide_list | orderBy : 'S_order'" id="item_{{x.S_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td><input type='text' value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control" style="max-width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.S_pic|pic}}' height='30' alt='<img src={{x.S_pic|pic}} width=400>' id="pic_{{x.S_id}}x" ng-click="showUpload(x.S_id)"></span>
        <input type="hidden" value="{{x.S_pic}}" id="pic_{{x.S_id}}" name="pic_{{x.S_id}}">
        </td>
        <td><a href="#/app/slide_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>

              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/slide_add/' class='edit'><i class='fa fa-plus'></i> 新增焦点图</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">文件管理</a></li>
        <li><a href="#/app/file/">素材管理</a></li>
      </ul>
    </div>

<div class="wrapper-md" ng-controller="space_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{path}} <button class="btn btn-xs btn-info" ng-click="upload()"><i class="fa fa-cloud-upload"></i> 上传文件</button><input type="hidden" id="upload">
         <span class="pull-right">总占用：{{size_all}}</span>
        </div>
<div class="table-responsive">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>文件夹名称</th>
              <th>占用大小</th>
        <th>备注</th>
        
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in file_list" >
       <td><img ng-src='{{x.pic}}' height='10'> <a href="javascript:;" ng-click="file(x.type,x.name)">{{x.name}}</a></td>
       <td><img src='images/bar2.gif' width='{{x.width/5}}' height=10> {{x.space}}</td>
       <td><span ng-bind-html="trust(x.info)"></span></td>
            </tr>
           
          </tbody>
        </table>


      </div>
    </div>
  </div>
</div>
^
<style>
.box{width:160px;margin:10px; padding:10px;float:left;background-color:#EEEEEE;line-height:200%;border:#DDDDDD solid 1px;-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius:10px;}
.box img{-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius:10px;margin-bottom:10px;}
.sort{margin:10px; padding:10px;background-color:#EEEEEE;line-height:200%;border:#DDDDDD solid 1px;-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius:10px;}
.sort_list{float:left;font-size: 14px;  margin: 5px; width: 160px;}
.price{position: absolute; z-index: 999; padding: 0 3px; background: #23B7E5; color: #ffffff; left: 0px;}
.onactive{text-decoration:underline; color: #ff0000;}
</style>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/template_list/">本地模板</a></li>
        <li class="active"><a href="">模板库</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="template_all_Ctrl">
  <div class="row">
    <div class="col-lg-12">
          <tabset class="tab-container">
          <tab heading="电脑端模板">
<div class="table-responsive">

<div class="sort">
<div class="sort_list">
<a href="javascript:;" ng-click="show('all')"><b>全部模板</b></a>
</div>
<div ng-repeat="x in tsort" class="sort_list" ng-class="{true:'onactive',false:''}[isactive(x.S_id)]">
<a href="javascript:;" ng-click="show(x.S_id)">{{x.S_title}}({{x.T_count}})</a>
</div>
<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
</div>


<div ng-repeat="x in pc" ng-show="x.T_tag==sort || sort=='all'">
	<div class='box' align='center'>
		<a href='demo.php?T_id={{x.T_name}}' target="_blank" style="position: relative;">
			<img ng-src='https://scms5.oss-cn-shenzhen.aliyuncs.com/media/{{x.T_name}}_s.jpg' width='120' alt='<img src=https://scms5.oss-cn-shenzhen.aliyuncs.com/media/{{x.T_name}}.jpg width=400>'>
			<span class="price" ng-show="{1: false,2: false,3:true}[x.state] && !isfrom(C_from)">￥{{x.T_price}}</span>
		</a>
		<br>模板{{x.T_name}} / <a ng-class="{1: 'edit', 2: 'add',3:'del'}[x.state]" ng-bind-html="button(x.state)" ng-click="click(x.state,x.T_name)"></a>
	</div>
</div>

        </div>
          </tab>
          <tab heading="移动端模板" active="tabx">
<div class="table-responsive">
<div ng-repeat="x in wap">
<div class='box' align='center'>
<a href='demo.php?T_id={{x.T_name}}' target="_blank" style="position: relative;">
<img ng-src='https://scms5.oss-cn-shenzhen.aliyuncs.com/media/{{x.T_name}}.jpg' width='110' alt='<img src=https://scms5.oss-cn-shenzhen.aliyuncs.com/media/{{x.T_name}}.jpg width=200>'>
<span class="price" ng-show="{1: false,2: false,3:true}[x.state] && !isfrom(C_from)">￥{{x.T_price}}</span>
</a>
<br>模板{{x.T_name}} / <a ng-class="{1: 'edit', 2: 'add',3:'del'}[x.state]" ng-bind-html="button(x.state)" ng-click="click(x.state,x.T_name)"></a>
</div>
</div>
        </div>
          </tab>
         </tabset>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">本地模板</a></li>
        <li><a href="#/app/template_all/">模板库</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="template_edit_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         编辑模板
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
  <input type="hidden" name="T_id" value="{{data.T_id}}">
          <div class="form-group">
          <label class="col-sm-2 control-label">模板编号</label>
          <div class="col-sm-10">
           {{data.no}}
           <input type="hidden" name="no" value=" {{data.no}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">文件名称</label>
          <div class="col-sm-10">
            {{data.name}}.tpl
            <input type="hidden" name="name" value=" {{data.name}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">编辑内容</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control"  style="font-size: 12px;" rows="29" name="T_description" ng-model="T_html"></textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">说明</label>
          <div class="col-sm-10">
            不推荐在线编辑模板，有可能被安全软件拦截导致模板文件出错<br>建议在本地编辑模板文件后，再使用FTP上传到服务器<br>该文件路径：pc\{{data.no}}\{{data.name}}.tpl
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
        
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">本地模板</a></li>
        <li><a href="#/app/template_all/">模板库</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="template_html_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         编辑模板 编号{{data.no}}
        </div>
<div class="table-responsive">

<div style='width:130px;margin:10px; padding:10px;float:left;background-color:#FFFFFF;line-height:200%;border:#DDDDDD solid 1px;' align='center' ng-repeat="x in data.html_list">
<a ui-sref="app.template_edit({id:data.no,name:x.filename})">
<img src='images/html.png' width='50'>
<br>
{{x.filename}}.tpl
<br>
{{x.typeinfo}}
</a>
</div>
        </div>

      </div>
    </div>
  
  </div>
  

  
</div>
^
<div class="wrapper bg-light b-b" >
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">本地模板</a></li>
        <li><a href="#/app/template_all/">模板库</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="template_list_Ctrl">
  <div class="row">
    <div class="col-lg-12">
          <tabset class="tab-container">

          <tab heading="电脑端模板" style="position: relative;" >
<form id="template">
<div class="table-responsive">
<table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
        <th>模板编号</th>
        <th>缩图</th>
        <th>类型</th>
        <th>切换模板</th>
        <th>导入模板数据</th>
        <th>更新模板</th>
        <th>说明文件</th>
        <th>编辑模板</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in template_list" id="item_{{x.folername}}">
           <td>{{x.folername}}</td>
       <td><img ng-src="../pc/{{x.folername}}/template.jpg" width='100px' alt='<img src=../pc/{{x.folername}}/template.jpg width=400>'></td>
       <td>{{x.sort}}</td>
        <td><div class="radio">
              <label class="i-checks">
                <input type="radio" ng-click="save('template',x.folername)" name="C_template" value="{{x.folername}}" ng-checked="isSelected2(x.folername,data.C_template)">
                <i></i>
                {{x.folername}}
              </label>
            </div></td>
          <td><a href="javascript:;" ng-click="sql(x.folername)" class="add" ng-show="isSelected2(x.folername,data.C_template)"><i class="fa fa-sign-out"></i> 导入</a></td>
          <td><a href="javascript:;" ng-click="refresh(x.folername)" class="edit"><i class="fa fa-refresh"></i> 更新</a></td>
        <td><a href="javascript:;" ng-click="readme(x.folername)" class="add"><i class="fa fa-send"></i> 查看</a></td>
        <td><a href="#/app/template_html/{{x.folername}}" class="edit"><i class='fa fa-edit'></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.folername,'pc')" class="del"><i class="fa fa-times-circle"></i> 删除</a></td>
            </tr>
            <tr>
           <td></td>
        <td>说明：<br>（1）切换/更新模板不影响网站已保存的数据<br>（2）导入模板数据可能会覆盖部分网站数据</td>
        <td><a href="#/app/template_all/0" class="edit"><i class='fa fa-inbox'></i> 模板库</a></td>
        <td></td>
        <td>*使用模板演示数据</td>
        <td></td>
            </tr>
          </tbody>
        </table>
        </div>
</form>
          </tab>
          <tab heading="移动端模板" active="tabx">
<form id="wap">
<div class="table-responsive">
<table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
        <th>模板编号</th>
        <th>缩图</th>
        <th>应用该模板</th>
        <th>编辑</th>
        <th>更新</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in wap_list" id="item_{{x.folername}}">
           <td>{{x.folername}}</td>
       <td><img ng-src="../wap/{{x.folername}}/template.jpg" width='100px' alt='<img src=../wap/{{x.folername}}/template.jpg width=200>'></td>
        <td><div class="radio">
              <label class="i-checks">
                <input type="radio" name="C_template" ng-click="save('wap',x.folername)" value="{{x.folername}}" ng-checked="isSelected2(x.folername,data.C_wap)">
                <i></i>
                {{x.folername}}
              </label>
            </div></td>

        <td><a href="#/app/space/wap.{{x.folername}}." class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="refresh(x.folername)" class="add"><i class="fa fa-refresh"></i> 更新</a></td>
        <td><a href="javascript:;" ng-click="del(x.folername,'wap')" class="del"><i class="fa fa-times-circle"></i> 删除</a></td>
            </tr>
            <tr >
           <td></td>
       <td>说明：切换模板不影响网站已保存的数据</td>
        <td><a href="#/app/template_all/1" class="edit"><i class='fa fa-inbox'></i> 模板库</a></td>
        <td></td>
            </tr>
           
          </tbody>
        </table>
        </div>
        
        </form>
          </tab>
         </tabset>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="text_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
<div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ttitle(C_sort)"></span>列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.T_id==x.T_id}" ng-repeat="x in text_list" href="#/app/text_add/{{x.T_id}}">{{x.T_title}}</a>
      </div>

 </div>

    </div>
     <a href="#/app/text_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增<span ng-bind-html="ttitle(C_sort)"></span></a>
  </div>
    <div class="col-lg-10">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}<span ng-bind-html="ttitle(C_sort)"></span>

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
  <input type="hidden" name="T_id" value="{{data.T_id}}">
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ttitle(C_sort)"></span>标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" id="T_title" name="T_title" value="{{data.T_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">标题（第二语言）</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" id="T_titlex" name="T_entitle" onfocus="translatex('T_title')" value="{{data.T_entitle}}" required>
          </div>
          </div>
         
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ttitle(C_sort)"></span>配图</label>
          <div class="col-sm-10">
          <img ng-src="{{ data.T_pic | pic }}" id="T_picx" class="L_pic" ng-click="showUpload('T_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="T_pic" name="T_pic" value="{{data.T_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('T_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('T_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">跳转链接</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="T_link" ng-model="data.T_link" placeholder="一般情况下留空，如需跳转请填写链接地址">
          </div>
          </div>
          <hr>
          <div class="hr-more">SEO设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>页面标题title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="T_pagetitle" ng-model="data.T_pagetitle" placeholder="留空则调用简介标题">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>关键词keywords</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="T_keywords" ng-model="data.T_keywords" placeholder="多个词用半角逗号隔开">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">SEO设置<br>描述description</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="3" name="T_description" ng-model="data.T_description" placeholder="留空则自动提取文章前100字"></textarea>
          </div>
          </div>
          <hr>
          <div class="form-group">
          <label class="col-sm-2 control-label"><span ng-bind-html="ttitle(C_sort)"></span>内容</label>
          <div class="col-sm-10">
          <script id="container" name="T_content" type="text/plain" style="height: 350px;"></script>

          </div>
          </div>
        <div class="form-group" ng-show="showx">
          <label class="col-sm-2 control-label">加入到导航栏</label>
          <div class="col-sm-10">
        <select name='U_sub' class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
        <option value="x">不加入到导航栏</option>
        <option value="0">加入到网站主菜单</option>
        <option ng-repeat="x in menu_lists" value="{{x.U_id}}">成为“{{x.U_title}}”的子菜单</option>
        </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>

  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="text_list_Ctrl" >

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ttitle(C_sort)"></span>列表 
         <a href="#/app/text_add/" class="btn btn-xs btn-success"><i class='fa fa-plus'></i> 新增<span ng-bind-html="ttitle(C_sort)"></span></a>
         <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>排序</th>
              <th>显示名称</th>
        <th>名称（第二语言）</th>
        
        <th>插图</th>
        <th>编辑</th>
        <th>删除</th>
         <th>添加到菜单</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in text_list" id="item_{{x.T_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.T_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.T_order}}' name='order_{{x.T_id}}' class="form-control" style="width: 50px;"></td>
       <td><input type='text' value='{{x.T_title}}' name='title_{{x.T_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.T_entitle}}' name='entitle_{{x.T_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        
        <td>
        <img ng-src='{{x.T_pic|pic}}' height='30' alt='<img src={{x.T_pic|pic}} width=400>' id="pic_{{x.T_id}}x" ng-click="showUpload(x.T_id)"></span>
        <input type="hidden" value="{{x.T_pic}}" id="pic_{{x.T_id}}" name="pic_{{x.T_id}}">
        </td>
        <td><a href="#/app/text_add/{{x.T_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.T_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        <td><a href="javascript:;" ng-click="addmenu(x.T_id)" class="add"><i class="fa fa-times-circle"></i> 添加</a></td>
            </tr>
           
          </tbody>
        </table>
        </form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/text_add/' class='edit'><i class='fa fa-plus'></i> 新增<span ng-bind-html="ttitle(C_sort)"></span></a>
    </div>
  
  </div>


  

</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li class="active"> <a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="tk_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         订单列表
        </div>
<div class="table-responsive">
 <table class="table table-striped m-b-none" style="min-width: 1200px;">
          <thead>
            <tr>
              <th>商品名称</th>
        <th>总价</th>
         <th>状态</th>

         <th>交易号/时间</th>
         <th style="text-align:center ">会员</th>

            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.order_list" id="item_{{x.O_nox}}">

       <td>
        <img ng-src='{{x.P_pic|pic}}' style='height: 70px; display: inline-block;vertical-align:text-top;' alt='<img src={{x.P_pic|pic}} width=200>'>
        <div style="display: inline-block;vertical-align:text-top;margin-left: 10px;">
        <p style="width: 200px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><b><a href="../?type=productinfo&S_id={{x.P_id}}" target="_blank">{{x.P_title}} </a></b></p>
        <p><b>属性：</b>{{x.O_shuxing}}</p>
        <p>{{x.O_price}}元 × {{x.O_num}}件</p>

      </div>
      </td>
        <td>

          <p><b>{{x.O_all}}元</b></p>
        </td>
        <td>
          <p><span ng-bind-html="trust(x.O_state)"></span></p>
          
    </td>
        <td>
          <p>订单号：<span ng-bind-html="trust(x.O_nox)"></span></p>
          <p>交易号：<span ng-bind-html="trust(x.O_no)"></span></p>
          <p>时间：{{x.O_time}}</p>
        </td>
        <td><a href="#/app/member_add/{{x.M_id}}"><div style="text-align: center;"><img ng-src='../media/{{x.M_pic}}' height="50" style="border-radius: 5px;"><br>{{x.M_login}}</div></a></td>

            </tr>
           <tr><td></td><td></td><td></td><td></td><td style="text-align: right">
            <p>商品：{{data.all}}元</p>
            <p>邮费：{{data.O_postage}}元</p>
            <p style="font-size: 15px;color: #ff0000">合计：{{data.all-(-data.O_postage)}}元</p>
           </td></tr>
          </tbody>
        </table>

        </div>

      </div>

    </div>

<div class="col-lg-6" ng-show="data.O_state==0">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         发货信息
        </div>
<div class="panel-body">
等待用户付款后，方可发货。
</div>
      </div>
    </div>

<div class="col-lg-6" ng-show="data.O_state==1">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         发货信息
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form" ng-submit="send()">
          <div class="form-group">
          <label class="col-sm-2 control-label">物流公司</label>
          <div class="col-sm-10">
          <select name="O_wl" class="form-control m-t ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="申通|shentong">申通</option>
          <option value="圆通|yuantong">圆通</option>
          <option value="中通|zhongtong">中通</option>
          <option value="天天|tiantian">天天</option>
          <option value="百世汇通|huitongkuaidi">百世汇通</option>
          <option value="顺丰|shunfeng">顺丰</option>
          <option value="韵达|yunda">韵达</option>
          <option value="宅急送|zhaijisong">宅急送</option>
          <option value="EMS|ems">EMS</option>
          <option value="UPS|ups">UPS</option>
          <option value="E邮宝|ems">E邮宝</option>
          <option value="全峰快递|quanfengkuaidi">全峰快递</option>
          <option value="优速物流|yousuwuliu">优速物流</option>
          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">运单编号</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="O_wlid" required>
          </div>
          </div>
          <input type="hidden" class="form-control" name="O_id" value="{{data.O_no}}" required>
          <input type="hidden" class="form-control" name="O_tradeno" value="{{data.O_tradeno}}" required>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">发货</button>
          </div>
          </div>
          
  </form>
</div>
      </div>
    </div>


    <div class="col-lg-6" ng-show="data.O_state>1">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">发货信息
         <span style="float: right;"> <b>物流公司：</b>{{data.O_wl}}
<b>运单编号：</b>{{data.O_wlid}}</span>
        </div>
<div class="panel-body">

<table class="table table-striped m-b-none" >
          <thead>
            <tr>
              <th>时间</th>
              <th>地点和跟踪进度</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.O_wllist[0].data">
       <td>{{x.time}}</td>
        <td>{{x.context}}</td>
            </tr>
          </tbody>
        </table>
</div>
      </div>
    </div>


    <div class="col-lg-6">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         收货信息
        </div>
<div class="panel-body">
<p>会员名：{{data.M_login}}</p>
<p>真实姓名：{{data.M_name}}</p>
<p>收货地址：{{data.M_add}}</p>
<p>手机号码：{{data.M_mobile}}</p>
<p>邮编：{{data.M_code}}</p>
<p style="color: #ff6600">备注：{{data.O_remark}}</p>
</div>
      </div></div>
  
  </div>
  
  
<input type="button" value="同意退款" ng-click="tk('agree')" class="add">
<input type="button" value="拒绝退款" ng-click="tk('refuse')" class="del">
  
</div>
^
<div class="wrapper-md" ng-controller="tohtml_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
        <form id="form">
          <div class="radio">
选择需要生成静态的语言版本：
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="0" ng-checked="ishave(C_lang,0)">
                <i></i>
                {{C_langtitle0}}
              </label>
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="2" ng-checked="ishave(C_lang,2)">
                <i></i>
                {{C_langtitle1}}
              </label>
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="T_lang[]" value="1" ng-checked="ishave(C_lang,1)">
                <i></i>
                {{C_langtitle2}}
              </label>
            </div>
          </form>
        </div>
<div class="table-responsive">
 <table class="table table-striped m-b-none" style="min-width: 600px;">
          <thead>
            <tr>
              <th>网页类型</th>
              <th>内容页</th>
        <th>列表页</th>
            </tr>
          </thead>
          <tbody>
      <tr><td>网站首页</td><td></td><td><a href="javascript:;" ng-click="creat('index')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td><span ng-bind-html="ttitle(C_sort)"></span>页面</td><td></td><td><a href="javascript:;" ng-click="creat('text')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td><span ng-bind-html="ntitle(C_sort)"></span>页面</td><td><a href="javascript:;" ng-click="creat('news_list')" class="edit"><i class="fa fa-wrench"></i> 生成列表页</a></td><td><a href="javascript:;" ng-click="creat('news_info')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td><span ng-bind-html="ptitle(C_sort)"></span>页面</td><td><a href="javascript:;" ng-click="creat('product_list')" class="edit"><i class="fa fa-wrench"></i> 生成列表页</a></td><td><a href="javascript:;" ng-click="creat('product_info')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td>表单页面</td><td></td><td><a href="javascript:;" ng-click="creat('form')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td>留言页面</td><td></td><td><a href="javascript:;" ng-click="creat('guestbook')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td>联系页面</td><td></td><td><a href="javascript:;" ng-click="creat('contact')" class="add"><i class="fa fa-wrench"></i> 生成内容页</a></td></tr>
      <tr><td>全站页面</td><td><a href="javascript:;" ng-click="creatall(0)" class="del"><i class="fa fa-wrench"></i> 生成全站页面</a></td><td></td></tr>

          </tbody>
        </table>
        </div>
      </div>
<div class="progress progress-striped active" style="margin-bottom: 10px" id="progressx">
  <div class="progress-bar progress-bar-success" role="progressbar"
     aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
     style="width: 0%;" id="progress">
  </div>
</div>
*静态页面即后缀为.html的页面，可以减缓服务器压力，同时更容易被搜索引擎收录。
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
      <li class="active"><a href="">接口设置</a></li>
        <li><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_config_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         接口设置
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">公众号名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wtitle" value="{{data.C_wtitle}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">接口URL</label>
          <div class="col-sm-10">
            <p>{{data.C_url}}</p>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">接口TOKEN</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wtoken" value="{{data.C_wtoken}}" required>
            <p style="margin-top: 10px;">说明：接口TOKEN可随意设置，只需要与微信公众平台端一致即可</p>
            <p style="margin-top: 10px;">请到“微信公众平台”->“开发”->“基本配置”->“修改配置”，填写以上URL及TOKEN</p>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">公众号二维码</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_wcode|pic}}" id="C_wcodex" class="L_pic" ng-click="showUpload('C_wcode');">
            <div class="input-group">
              <input type="text" class="form-control" id="C_wcode" name="C_wcode" value="{{data.C_wcode}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_wcode');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_wcode');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">APPID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_appid" value="{{data.C_wx_appid}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">APPSECRET</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_wx_appsecret" value="{{data.C_wx_appsecret}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信MCHID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_mchid" value="{{data.C_wx_mchid}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">微信KEY</label>
          <div class="col-sm-10">
            <input type="password" class="form-control" name="C_wx_key" value="{{data.C_wx_key}}">
            <p style="margin-top: 10px;">说明：如果不使用微信支付功能，微信MCHID和微信KEY可以不填写</p>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">获取源IP</label>
          <div class="col-sm-10">
            <button type="button" class="btn btn-primary btn-sm" ng-click="getip()">获取</button> *请将获取到的IP填写至微信公众号IP白名单
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button> <a href="help.php?page=1.1.2" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li><a href="#/app/w_config">接口设置</a></li>
        <li><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li class="active"><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_event_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         事件库
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
 
              <th>事件名称</th>
        <th>事件类型</th>
        <th>事件内容</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.event" id="item_{{x.E_id}}">
       
       <td>{{x.E_title}}</td>
        <td>{{x.E_type}}</td>
        <td>{{x.E_content}}</span></td>
        <td><a href="#/app/w_event_add/{{x.E_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.E_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>

            <tr>
       
       <td>未匹配到关键词</td>
        <td>系统内置事件</td>
        <td>未识别您发的消息，请等待人工为您回复☺</span></td>
        <td>无法编辑</td>
        <td>无法删除</td>
            </tr>

            <tr>
       
       <td>推送网站目录</td>
        <td>系统内置事件</td>
        <td>推送网站目录</span></td>
        <td>无法编辑</td>
        <td>无法删除</td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>
<p><a href='#/app/w_event_add/' class='edit'><i class='fa fa-plus'></i> 新增事件</a><p>
<p>说明：当“自定义菜单”、“推送消息”、“自动回复”触发某个事件时，事件从“事件库”中调用。</p>
<p>图文前缀：T - <span ng-bind-html="ttitle(C_sort)"></span> / N - <span ng-bind-html="ntitle(C_sort)"></span> / P - <span ng-bind-html="ptitle(C_sort)"></span> / F - 表单 / C - 联系 / G - 留言。</p>
    </div>
  
  </div>
  
  

  
</div>
^
<style>
td{padding: 5px;}
</style>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li ><a href="#/app/w_config">接口设置</a></li>
        <li ><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li class="active"><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_event_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}事件
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">事件名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="E_title" value="{{data.E_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">事件类型</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="E_type" value="text" ng-checked="isSelected2(data.E_type,'text')" ng-click="data.E_type = 'text'"><i></i>纯文本</label>
          <label class="i-checks"><input type="radio" name="E_type" value="article" ng-checked="isSelected2(data.E_type,'article')" ng-click="data.E_type = 'article'"><i></i>单图文</label>
          <label class="i-checks"><input type="radio" name="E_type" value="articles" ng-checked="isSelected2(data.E_type,'articles')" ng-click="data.E_type = 'articles'"><i></i>多图文</label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">事件内容</label>
          <div class="col-sm-10">
          <textarea spellcheck="false" class="form-control" rows="3" name="E_content" ng-model="data.E_content" ng-show="{'text': true, 'article': false, 'articles': false}[data.E_type]"></textarea>
          <div ng-show="{'text': false, 'article': true, 'articles': false}[data.E_type]">

      <div style="width:250px; float:left; overflow:hidden" ng-repeat="x in data.E_all">
      <table width="100%">
      <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff">
      <td width="10%">
      <input type="radio" name="A_id" value="{{x.id}}" id="{{x.id}}" ng-checked="isSelected2(data.E_content,x.id)"> 
      </td><td width="20%"><label for="{{x.id}}"><img ng-src="{{x.pic|pic}}" width="40" height="40"></label></td><td width="70%"><label for="{{x.id}}">{{x.title}}</label> 
      </td></tr></table></div>


          </div>
          <div ng-show="{'text': false, 'article': false, 'articles': true}[data.E_type]">
          <div style="width:250px; float:left; overflow:hidden" ng-repeat="x in data.E_all">
      <table width="100%">
      <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff"><td width="10%">
      <input type="checkbox" name="A_idx[]" value="{{x.id}}" id="{{x.id}}x" ng-checked="isSelected3(data.E_content,x.id)">
       </td><td width="20%"><label for="{{x.id}}x"><img ng-src="{{x.pic|pic}}" width="40" height="40"></label></td><td width="70%"><label for="{{x.id}}x">{{x.title}}</label> 
      </td></tr></table></div>

          </div>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">说明</label>
          <div class="col-sm-10">

  1.事件类型为“纯文本”时，直接输入文字内容即可<br>
2.事件类型为“单图文”时，最多选择1篇文章<br>
3.事件类型为“多图文”时，最多选择8篇文章<br>
4.图文素材来自<span ng-bind-html="ttitle(C_sort)"></span>、<span ng-bind-html="ntitle(C_sort)"></span>、<span ng-bind-html="ptitle(C_sort)"></span>、表单、联系模块<br>



          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
        </form>
   </div>
    </div>
  </div>
</div>
^
<style>
td{padding: 5px;}
</style>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li><a href="#/app/w_config">接口设置</a></li>
        <li><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li class="active"><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_member_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
        粉丝管理 <button class="btn btn-sm btn-primary" ng-click="refresh()">同步粉丝</button>
        </div>
        <div class="panel-body">
           <div style="width:200px; float:left; overflow:hidden" ng-repeat="x in data.member">
           <table width="100%">
           <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff">
           <td width="10%">
            </td>
           <td width="20%"><label for="M_{{x.M_id}}"><img ng-src="{{x.M_pic}}" width="40" height="40"></label></td>
           <td width="70%"><label for="M_{{x.M_id}}">{{x.M_login}}</label></td>
           </tr>
           </table>
           </div>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li ><a href="#/app/w_config">接口设置</a></li>
        <li class="active"><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_menu_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
        自定义菜单
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 1100px;" >
          <thead>
            <tr>
              <th>排序</th>
              <th>名称</th>
        <th>展示类型</th>
        <th>菜单内容</th>
         <th>所属</th>
         <th>编辑</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in main_menu | orderBy: 'W_order'">
      <tr id="item_{{x.W_id}}" class="active">

        <td><input type='text' value='{{x.W_order}}' name='order_{{x.W_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.W_title}}' name='title_{{x.W_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        
        <td>{{x.W_type}}</td>
        <td>{{x.W_content}}</td>

        <td><span ng-bind-html="trust(x.W_sub)"></span></td>

        <td><a href="#/app/w_menu_add/{{x.W_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.W_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>

        <tr ng-repeat="y in x.sub_list | orderBy: 'W_order'" id="item_{{y.W_id}}">
        
       <td>
            <input type='text' value='{{y.W_order}}' name='order_{{y.W_id}}' class="form-control sub" style="width: 50px;">
          </td>
        <td> 

            <input type='text' value='{{y.W_title}}' name='title_{{y.W_id}}' class="form-control sub {{lcss}}">

        </td>
        
        <td>{{y.W_type}}</td>
        <td>{{y.W_content}}</td>
        
        <td><span ng-bind-html="trust(y.W_sub)"></span></td>
        <td><a href="#/app/w_menu_add/{{y.W_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(y.W_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>
          </tbody>
        </table>
</form>
        </div>
      </div>

<a href='javascript:;' class='add' ng-click="save(lang)"><i class='fa fa-save'></i> 保存设置</a>
<a href='javascript:;' class='del' ng-click="send()"><i class='fa fa-send'></i> 发布菜单</a>
<a href='#/app/w_menu_add/' class='edit'><i class='fa fa-plus'></i> 新增菜单</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li ><a href="#/app/w_config">接口设置</a></li>
        <li class="active"><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_menu_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}自定义菜单
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">菜单标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="W_title" value="{{data.W_title}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">菜单类型</label>
          <div class="col-sm-10">
          <label class="i-checks"><input type="radio" name="W_type" value="view" ng-checked="isSelected2(data.W_type,'view')" ng-click="data.W_type = 'view'"><i></i>链接</label>
          <label class="i-checks"><input type="radio" name="W_type" value="click" ng-checked="isSelected2(data.W_type,'click')" ng-click="data.W_type = 'click'"><i></i>事件</label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">链接/事件</label>
          <div class="col-sm-10">
          <select name="W_content2" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" ng-show="{'view': false, 'click': true}[data.W_type]">
          <option ng-repeat="x in event" value="{{x.E_id}}" ng-selected="isSelected2(data.W_content,x.E_id)">{{x.E_content}}</option>
          </select>
            <input type="text" class="form-control" name="W_content" value="{{data.W_content}}" ng-show="{'view': true, 'click': false}[data.W_type]">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">菜单归属</label>
          <div class="col-sm-10">
          <select name="W_sub" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="0" ng-selected="isSelected2(data.w_sub,0)">主菜单</option>
          <option ng-repeat="x in menu" value="{{x.W_id}}" ng-selected="isSelected2(data.W_sub,x.W_id)">{{x.W_title}}</option>
          </select>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
        </form>
   </div>
    </div>
  </div>
</div>
^
<style>
td{padding: 5px;}
</style>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li ><a href="#/app/w_config">接口设置</a></li>
        <li ><a href="#/app/w_menu">自定义菜单</a></li>
        <li class="active"><a href="#/app/w_msg">推送消息</a></li>
        <li><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_msg_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
        推送消息
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="send()">

          <div class="form-group">
          <label class="col-sm-2 control-label">推送对象</label>
          <div class="col-sm-10">
           

           <div style="width:200px; float:left; overflow:hidden" ng-repeat="x in data.member">
           <table width="100%">
           <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff">
           <td width="10%">
           <input type="checkbox" name="M_id[]" value="{{x.M_id}}" id="M_{{x.M_id}}"> </td>
           <td width="20%"><label for="M_{{x.M_id}}"><img ng-src="{{x.M_pic}}" width="40" height="40"></label></td>
           <td width="70%"><label for="M_{{x.M_id}}">{{x.M_login}}</label></td>
           </tr>
           </table>
           </div>

          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">推送内容</label>
          <div class="col-sm-10">
          <select name="all_content" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option ng-repeat="x in data.event" value="{{x.E_id}}">{{x.E_type}}</option>
          </select>
          <p style="margin-top: 20px;">推送内容来自 <a href="#/app/w_event" class="add">事件库</a></p>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">说明</label>
          <div class="col-sm-10">
           <label class="control-label">该推送调用的是“客服消息”接口，用户与公众号在48小时内有过交互即可收到消息（条数无限制）。</label>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">确认</button>
          </div>
          </div>

  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
       <li><a href="#/app/w_config">接口设置</a></li>
        <li><a href="#/app/w_menu">自定义菜单</a></li>
        <li><a href="#/app/w_msg">推送消息</a></li>
        <li class="active"><a href="#/app/w_reply">自动回复</a></li>
        <li><a href="#/app/w_event">事件库</a></li>
        <li><a href="#/app/w_member/">粉丝管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="w_reply_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         关键词自动回复
        </div>
<div class="table-responsive">

 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
         <th>关键词</th>
        <th>回复类型</th>
        <th>回复内容</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.reply" id="item_{{x.R_id}}">
       
       <td>{{x.R_key}}</td>
        <td>{{x.E_type}}</td>
        <td>{{x.E_content}}</span></td>
        <td><a href="#/app/w_reply_add/{{x.R_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.R_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>

        </div>

      </div>
<p><a href='#/app/w_reply_add/' class='edit'><i class='fa fa-plus'></i> 新增自动回复</a><p>


<div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         新用户关注自动回复
        </div>
<div class="panel-body">
<form id="form" class="form-horizontal" ng-submit="sub()">
<div class="form-group">
          <label class="col-sm-2 control-label">回复内容</label>
          <div class="col-sm-10">
          <select name="all_content" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option ng-repeat="x in data.event" value="{{x.E_id}}" ng-selected="isSelected2(data.sub_id,x.E_id)">{{x.E_content}}</option>
          </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
</form>
        </div>

      </div>
    </div>
  
  </div>
  
  

  
</div>
^
<div class="wrapper-md" ng-controller="w_reply_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}自动回复
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">关键词</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="R_key" value="{{data.R_key}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">回复内容</label>
          <div class="col-sm-10">
          <select name="R_reply" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option ng-repeat="x in event" value="{{x.E_id}}" ng-selected="isSelected2(data.R_reply,x.E_id)">{{x.E_content}}</option>
          </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
           <label class="control-label">回复内容来自 <a href="#/app/w_event" class="add">事件库</a></label>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
          
        </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li class="active"> <a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="wuliu_Ctrl" >
  <div class="row">
<div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         订单信息
        </div>
<div class="panel-body">
<p>物流公司：{{data.O_wl}}</p>
<p>运单号：{{data.O_wlid}}</p>
</div>
      </div>
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         查询物流
        </div>
<div class="panel-body">
<div class="col-lg-6">
<table class="table table-striped m-b-none" >
          <thead>
            <tr>
              <th>时间</th>
              <th>地点和跟踪进度</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in data.O_wllist[0].data">
       <td>{{x.time}}</td>
        <td>{{x.context}}</td>
            </tr>
          </tbody>
        </table>
</div>
</div>
      </div>
    </div>
  
  </div>
  
</div>
^
<div class="aside-wrap">
  <div class="navi-wrap">
    <div class="clearfix hidden-xs text-center hide" id="aside-user">
      <div class="dropdown wrapper" dropdown>
        
        
      </div>
      <div class="line dk hidden-folded"></div>
    </div>
    <nav ui-nav class="navi" ng-include="'tpl.php?page=67'"></nav>
  </div>
</div>
^

      <div class="navbar-header {{app.settings.navbarHeaderColor}}">
        <button class="pull-right visible-xs dk" ui-toggle-class="show" data-target=".navbar-collapse">
          <i class="fa fa-cog"></i>
        </button>
        <button class="pull-right visible-xs" ui-toggle-class="off-screen" data-target=".app-aside" ui-scroll="app">
          <i class="fa fa-bars"></i>
        </button>

        <a href="#/" class="navbar-brand text-lt">
          <i class="fa fa-home"></i>
          <span class="hidden-folded m-l-xs">{{app.name}}</span>
        </a>

      </div>

      <div class="collapse pos-rlt navbar-collapse box-shadow {{app.settings.navbarCollapseColor}}">
        <!-- buttons -->
        <div class="nav navbar-nav hidden-xs">
          <a href class="btn no-shadow navbar-btn" ng-click="app.settings.asideFolded = !app.settings.asideFolded">
            <i class="fa {{app.settings.asideFolded ? 'fa-indent' : 'fa-dedent'}} fa-fw"></i>
          </a>
          <a href class="btn no-shadow navbar-btn" ui-toggle-class="show" target="#aside-user">
            <i class="icon-user fa-fw"></i>
          </a>
        </div>

        <ul class="nav navbar-nav hidden-md hidden-sm hidden-xs">
          <li class="dropdown pos-stc" dropdown>
            <a href class="dropdown-toggle" dropdown-toggle>
              <span><i class="fa fa-bars"></i> 导航</span> 
              <span class="caret"></span>
            </a>
            <div class="dropdown-menu wrapper w-full bg-white">
              <div class="row">

                <div class="col-xs-6 col-md-2 " ng-show="auth1 == 1">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-cog"></i> 基本设置</div>
                      <ul class="list-unstyled l-h-2x">
                        <li>
                          <a ui-sref="app.config"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>基本设置</a>
                        </li>
                        <li ng-show="isSelected2(C_sort,1)">
                          <a ui-sref="app.lv"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>营销功能</a>
                        </li>

                        <li>
                          <a ui-sref="app.config2"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>自定义设置</a>
                        </li>
                        <li>
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>焦点图</b>[<a ui-sref="app.slide_list">列表</a>/<a ui-sref="app.slide_add">新增</a>]
                        </li>
                        <li>
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>友链</b>[<a ui-sref="app.link_list">列表</a>/<a ui-sref="app.link_add">新增</a>]
                        </li>
                        <li>
                          <a ui-sref="app.w_config"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>微信接入</a>
                        </li>
                        
                      </ul>
                </div>

                <div class="col-xs-6 col-md-2">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-file-o"></i> 内容管理</div>
                      <ul class="list-unstyled l-h-2x">
                        <li ng-show="auth2 == 1">
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b><span ng-bind-html="ttitle(C_sort)"></span></b>[<a ui-sref="app.text_list">列表</a>/<a ui-sref="app.text_add">新增</a>]
                        </li>
                        <li ng-show="auth3 == 1">
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b><span ng-bind-html="ntitle(C_sort)"></span></b>[<a ui-sref="app.news_list">列表</a>/<a ui-sref="app.nsort_list">分类</a>/<a ui-sref="app.collection">采集</a>]
                        </li>
                        <li ng-show="auth4 == 1">
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b><span ng-bind-html="ptitle(C_sort)"></span></b>[<a ui-sref="app.product_list">列表</a>/<a ui-sref="app.psort_list">分类</a>/<a ui-sref="app.order_list">订单</a>]
                        </li>

                        <li ng-show="auth5 == 1">
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>表单</b>[<a ui-sref="app.form_list">表单</a>/<a ui-sref="app.query_list">查询</a>]
                        </li>

                        <li>
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>论坛</b>[<a ui-sref="app.bbs_list">帖子</a>/<a ui-sref="app.bsort_list">板块</a>]
                        </li>

                      </ul>
                </div>
                <div class="col-xs-6 col-md-2" ng-show="auth6 == 1">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-bookmark-o"></i> 模板插件</div>
                      <ul class="list-unstyled l-h-2x">
                        <li ng-show="istrue2(C_t_show)">
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>模板</b>[<a ui-sref="app.template_list">本地</a>/<a ui-sref="app.template_all">模板库</a>]
                        </li>
                        <li ng-show="istrue2(C_x_show)">
                          <a ui-sref="app.plug"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>插件管理</a>
                        </li>
                        <li>
                          <a ui-sref="app.tohtml"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>生成静态</a>
                        </li>
                      </ul>
                </div>
                <div class="col-xs-6 col-md-2 " ng-show="auth10 == 1">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-mobile"></i> 手机版本</div>
                      <ul class="list-unstyled l-h-2x">
                        <li>
                          <a hui-sref="app.m_config"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>基本设置</a>
                        </li>
                        <li>
                          <a href="#/app/template_list/1"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>移动端模板</a>
                        </li>
                        <li>
                          <a ui-sref="app.m_config2"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>自定义设置</a>
                        </li>
                        <li>
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>焦点图</b>[<a ui-sref="app.m_slide_list">列表</a> / <a ui-sref="app.m_slide_list">新增</a>]
                        </li>
                      </ul>
                </div>
                <div class="col-xs-6 col-md-2 " ng-show="auth9 == 1">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-user"></i> 帐号管理</div>
                      <ul class="list-unstyled l-h-2x">
                        <li>
                          <i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i><b>管理员</b>[<a ui-sref="app.admin_list">列表</a>/<a ui-sref="app.admin_add">新增</a>]
                        </li>
                        <li>
                          <a ui-sref="app.member_list"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>会员列表</a>
                        </li>
                        
                      </ul>
                </div>
                <div class="col-xs-6 col-md-2 " ng-show="auth11 == 1">
                  <div class="m-l-xs m-t-xs m-b-xs font-bold"><i class="fa fa-lock"></i> 网站安全</div>
                      <ul class="list-unstyled l-h-2x">
                        <li>
                          <a ui-sref="app.safe"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>安全设置</a>
                        </li>
                        <li>
                          <a ng-click="checkmm()"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>检测木马</a>
                        </li>
                        <li>
                          <a ui-sref="app.space"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>文件管理</a>
                        </li>
                        <li>
                          <a ui-sref="app.recycle"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>回收站</a>
                        </li>
                        <li>
                          <a ui-sref="app.data"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>数据迁移</a>
                        </li>
                        <li>
                          <a ui-sref="app.sitemap"><i class="fa fa-fw fa-angle-right text-muted m-r-xs"></i>sitemap</a>
                        </li>
                      </ul>
                </div>
              </div>
            </div>
          </li>
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle" dropdown-toggle>
              <i class="fa fa-fw fa-plus visible-xs-inline-block"></i>
              <span><i class="fa fa-bell"></i> 消息</span> 
              <span class="badge badge-sm up bg-danger pull-right-xs" ng-if="isSelected(anum)" id="anum">{{anum}}</span>
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu" role="menu">
              <li>
                <a ui-sref="app.order_list">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(onum)" id="onum">{{onum}}</span>
                  <span>商品订单</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.form_list">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(fnum)" id="fnum">{{fnum}}</span>
                  <span>万能表单</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.guestbook">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(gnum)" id="gnum">{{gnum}}</span>
                  <span>在线留言</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.comment">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(pnum)" id="pnum">{{pnum}}</span>
                  <span>评论审核</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.news_list">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(nnum)" id="nnum">{{nnum}}</span>
                  <span>文章投稿</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.lv">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(fen_num)" id="fen_num">{{fen_num}}</span>
                  <span>积分变动</span>
                </a>
              </li>
              <li>
                <a ui-sref="app.lv">
                  <span class="badge bg-danger pull-right" ng-if="isSelected(money_num)" id="money_num">{{money_num}}</span>
                  <span>余额变动</span>
                </a>
              </li>
            </ul>
          </li>
        </ul>
        

        <form class="navbar-form navbar-form-sm navbar-left shift" ui-shift="prependTo" target=".navbar-collapse" role="search" id="auth" ng-controller="authcode" ng-hide="isSelected(auth)">
          <div class="form-group">
            <div class="input-group">
              <input type="text" class="form-control input-sm bg-light no-border rounded padder" name="code" placeholder="授权码">
              <span class="input-group-btn">
              <button type="button" ng-click="getauth()" class="btn btn-sm bg-light rounded"><i class="fa fa-arrow-circle-right"></i></button>
              </span>
            </div>
          </div>
        </form>

        <div class="nav navbar-nav hidden-xs" ng-hide="isfrom(C_from)||isSelected(auth)">
          <a href class="btn no-shadow navbar-btn" ng-click="getcode()" style="padding: 6px 0px;">
            <i class="fa fa-question-circle fa-fw"></i>
          </a>
        </div>

        


        <ul class="nav navbar-nav navbar-right">
          <li class="dropdown hidden-sm" dropdown>
            <a href class="dropdown-toggle" dropdown-toggle>
              <span ng-bind-html="trust(selectLang)"></span> <b class="caret"></b>
            </a>
            <ul class="dropdown-menu animated fadeInRight w">
              <li>
                <a ng-click="setLang(0)" href="javascript:;"><img src="../images/0.png"> {{C_langtitle0}}</a>
                <a ng-click="setLang(2)" href="javascript:;"><img src="../images/2.png"> {{C_langtitle1}}</a>
                <a ng-click="setLang(1)" href="javascript:;"><img src="../images/1.png"> {{C_langtitle2}}</a>
                <a ng-click="setLang(3)" href="javascript:;"><i class="fa fa-times-circle"></i> 关闭多语言</a>
              </li>
            </ul>

          </li>
          <li class="hidden-sm hidden-xs">
            <a href="help.php" target="_blank"><i class="fa fa-question-circle"></i> 帮助</a>
          </li>
          <li>
            <a href="javascript:;" onclick='ajaxx("ajax.php?type=unlogin","#/access/signin","",1,"")'><i class="fa fa-sign-out"></i> 退出</a>
          </li>
          <li class="hidden-xs">
            <a href="../" target="_blank"><i class="fa fa-tv"></i> 预览</a>
          </li>

        </ul>
      </div>
^
<ul class="nav">
  <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
    <span>导航栏 Navigation</span>
  </li>

  <li ui-sref-active="active" ng-show="auth0==1">
    <a ui-sref="app.index">
      <i class="fa fa-home"></i>
      <span class="font-bold">后台首页</span>
    </a>
  </li>

  <li>
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-cog"></i>
      <span class="font-bold">系统设置</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active" ng-show="auth1==1">
        <a ui-sref="app.config">
          <span>基本设置</span>
        </a>
      </li>
      <li ui-sref-active="active" ng-show="isSelected2(C_sort,1)">
        <a ui-sref="app.lv">
          <span>营销功能</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.config2">
          <span>自定义设置</span>
        </a>
      </li>
   <li ui-sref-active="active">
        <a ui-sref="app.slide_list">
          <span>焦点图管理</span>
        </a>
      </li>
    <li ui-sref-active="active">
        <a ui-sref="app.link_list">
          <span>友情链接</span>
        </a>
      </li>
    <li ui-sref-active="active" ng-if="isSelected(c.x5)">
        <a ui-sref="app.w_config">
          <span>微信接入</span>
        </a>
      </li>

      <li ui-sref-active="active" >
        <a ui-sref="app.zmt_api">
          <span>自媒体</span>
        </a>
      </li>
    
    </ul>
  </li>
  
  <li>
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-file-o"></i>
      <span class="font-bold">内容管理</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active" ng-show="auth2==1">
        <a ui-sref="app.text_list">
          <span><span ng-bind-html="ttitle(C_sort)"></span>管理</span>
        </a>
      </li>
      <li ui-sref-active="active" ng-show="auth3==1">
        <a ui-sref="app.news_list">
          <span><span ng-bind-html="ntitle(C_sort)"></span><span ng-bind-html="ntitle2(C_sort)"></span></span>
        </a>
      </li>
   <li ui-sref-active="active" ng-show="auth4==1">
        <a ui-sref="app.product_list">
          <span><span ng-bind-html="ptitle(C_sort)"></span><span ng-bind-html="ptitle2(C_sort)"></span></span>
        </a>
      </li>
    <li ui-sref-active="active" ng-show="auth5==1"> 
        <a ui-sref="app.form_list">
          <span>万能表单</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.bbs_list">
          <span>论坛管理</span>
        </a>
      </li>
    </ul>
  </li>
  
    <li ng-show="auth6==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-bookmark-o"></i>
      <span class="font-bold">模版插件</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active" ng-show="istrue2(C_t_show)">
        <a ui-sref="app.template_list">
          <span>模板管理</span>
        </a>
      </li>
      <li ui-sref-active="active" ng-show="istrue2(C_x_show)">
        <a ui-sref="app.plug">
          <span>插件管理</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.app">
          <span>生成APP</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.wxapp">
          <span>微信小程序</span>
        </a>
      </li>
   <li ui-sref-active="active">
        <a ui-sref="app.tohtml">
          <span>生成静态</span>
        </a>
      </li>
    </ul>
  </li>


    <li ng-show="auth8==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-envelope"></i>
      <span class="font-bold">联系方式</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active">
        <a ui-sref="app.contact">
          <span>联系方式</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.guestbook">
          <span>留言管理</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.comment">
          <span>评论管理</span>
        </a>
      </li>
    </ul>
  </li>
  

      <li ng-show="auth10==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-mobile"></i>
      <span class="font-bold">手机版本</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active">
        <a ui-sref="app.m_config">
          <span>基本设置</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a href="#/app/template_list/1">
          <span>移动端模板</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.m_config2">
          <span>自定义设置</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.m_slide_list">
          <span>焦点图设置</span>
        </a>
      </li>
    </ul>
  </li>
  
        <li ng-show="auth7==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-th"></i>
      <span class="font-bold">菜单管理</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active">
        <a ui-sref="app.menu_list">
          <span>菜单列表</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.menu_add">
          <span>新增菜单</span>
        </a>
      </li>
    </ul>
  </li>
        <li ng-show="auth9==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-user"></i>
      <span class="font-bold">帐号管理</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active">
        <a ui-sref="app.admin_list">
          <span>管理员列表</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.member_list">
          <span>会员列表</span>
        </a>
      </li>
    </ul>
  </li>
    <li ng-show="auth11==1">
    <a href class="auto">      
      <span class="pull-right text-muted">
        <i class="fa fa-fw fa-angle-right text"></i>
        <i class="fa fa-fw fa-angle-down text-active"></i>
      </span>
      <i class="fa fa-lock"></i>
      <span class="font-bold">网站安全</span>
    </a>
    <ul class="nav nav-sub dk">
      <li ui-sref-active="active">
        <a ui-sref="app.safe">
          <span>安全设置</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ng-click="checkmm()">
          <span>检测木马</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.space">
          <span>文件管理</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.recycle">
          <span>回收站</span>
        </a>
      </li>
      <li ui-sref-active="active">
        <a ui-sref="app.data">
          <span>数据迁移</span>
        </a>
      </li>

      <li ui-sref-active="active" ng-show="C_db!='mysql'">
        <a ng-click="tophp()">
          <span>ASP版转PHP版</span>
        </a>
      </li>

      <li ui-sref-active="active">
        <a ui-sref="app.sitemap">
          <span>sitemap</span>
        </a>
      </li>
    </ul>
  </li>
  <li ui-sref-active="active">
    <a ui-sref="app.log">
      <i class="fa fa-clock-o"></i>
      <span class="font-bold" >操作日志</span>
    </a>
  </li>
  <li ui-sref-active="active">
    <a href="javascript:;" ng-click="update()">
      <i class="fa fa-refresh"></i>
      <span class="font-bold" >检测更新</span>
    </a>
  </li>
  <li ui-sref-active="active" ng-hide="isSelected(auth)||istrue2(C_auth_close)||isfrom(C_from)">
    <a href="javascript:;" ng-click="getauth()">
      <i class="fa fa-certificate"></i>
      <span class="font-bold" >购买授权</span>
    </a>
  </li>
</ul>
^
<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">debug</h1>
</div>
<div class="wrapper-md" ng-controller="sql_Ctrl" >

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         sql
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="sql()">
          <div class="form-group">
          <label class="col-sm-2 control-label">sql</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="sql">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">执行</button>
            <button type="button" class="btn btn-info" ng-click="mdb()">导出mdb</button>
            <button type="button" class="btn btn-info" ng-click="clear()">清除冗余数据</button>
            <a class="btn btn-info" href="dbm.php" target="blank">在线管理</a>
          </div>
          </div>
  </form>
  </div>
  </div>
    </div>
  </div>

  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         download
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form2" >
          <div class="form-group">
          <label class="col-sm-2 control-label">path</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="d" ng-model="d">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="button" ng-click="download(d)" class="btn btn-info">download</button>
          </div>
          </div>
  </form>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list/">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="product_excel_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         导入EXCEL
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="form" ng-submit="excel()">
          <div class="form-group">
          <label class="col-sm-2 control-label">Excel文件</label>
          <div class="col-sm-10">
          <div class="input-group">
              <input type="text" class="form-control" name="excel" id="excel">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('excel');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('excel');">选择</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">导入</button> <a href="ajax.php?type=download">下载示例Excel</a>
          </div>
          </div>
  </form>
  </div>
  </div>
<p>说明：</p>
<p>1.“图片”一栏如果有多张图用“|”隔开，示例：111.jpg|222.jpg|333.jpg，<span ng-bind-html="ptitle(C_sort)"></span>图需提前上传到media文件夹内</p>
<p>2.“分类”一栏填写<span ng-bind-html="ptitle(C_sort)"></span>分类的数字ID，数字ID可以在<span ng-bind-html="ptitle(C_sort)"></span>分类页查看到;</p>
<p>3.“排序”一栏请填写整数，数字越小排序越靠前</p>
<p>4.“开启购买”一栏请填写0或1，0表示关闭，1表示开启</p>
<p>5.“属性”一栏格式比较复杂，请参考示例Excel，如果不熟悉可以导入excel后再到后台设置<span ng-bind-html="ptitle(C_sort)"></span>属性。</p>
<p>6.“置顶”一栏请填写0或1，0表示置顶，1表示普通</p>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="data_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         备份/还原数据
        </div>
        <div class="panel-body">
        <div class="row">
    <div class="col-lg-6">
        <form class="form-horizontal" id="form" ng-submit="dataup()">
          <div class="form-group">
          <label class="col-sm-2 control-label">数据文件</label>
          <div class="col-sm-10">
          <div class="input-group">
              <input type="text" class="form-control" name="data" id="data">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('data');">上传文件</button>
              </span>
            </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">还原数据</button> 
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            请上传之前备份的txt格式的备份文件
          </div>
          </div>
  </form>
  </div>


  <div class="col-lg-6">
  <form class="form-horizontal" id="form2" ng-submit="datadown()">
        <div class="form-group">
          <label class="col-sm-2 control-label">取名</label>
          <div class="col-sm-10">

          <div class="input-group">
            <input type="text" class="form-control" name="data" ng-model="data" required>
            <span class="input-group-addon">.txt</span>
          </div>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">备份数据</button> 
            
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            为保证网站安全，会在文件名前自动加20位随机字符串
          </div>
          </div>

  </form>
  </div>
  </div>
  </div>
  </div>

  <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         备份记录（自动备份的记录仅保留10天/手动备份的记录永久保存）
        </div>
        <div class="panel-body">
        <div class="table-responsive" style="height: 200px;overflow: auto;">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>名称</th>
              <th>备份时间</th>
              <th>程序版本</th>
        <th>大小</th>
        <th>查看</th>
        <th>下载</th>
        <th>恢复</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody>
      <tr ng-repeat="x in sql_list | orderBy: 'datetime'"" id="item_{{x.filename}}">
       <td>{{x.filename}}.txt</td>
       <td>{{x.datetime}}</td>
       <td>{{x.version}}</td>
        <td>{{x.size}} KB</td>
        <td><a href="javascript:;" ng-click="readsql(x.filename)" class="btn btn-info btn-xs"><i class="fa fa-send"></i> 查看</a></td>
        <td><a href="javascript:;" ng-click="download(x.filename)" class="btn btn-primary btn-xs"><i class="fa fa-download"></i> 下载</a></td>
        <td><a href="javascript:;" ng-click="refresh(x.filename)" class="btn btn-success btn-xs"><i class='fa fa-refresh'></i> 恢复</a></td>
        <td><a href="javascript:;" ng-click="del(x.filename)" class="btn btn-danger btn-xs"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>

        </div>

  </div>

  </div>
  <div class="row">
<div class="col-lg-6">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         修改数据表前缀
        </div>
        <div class="panel-body">
<p><form class="form-horizontal" id="form3" ng-submit="edittable()">
          <div class="form-group">
          <label class="col-sm-2 control-label">数据表前缀</label>
          <div class="col-sm-10">
          <div class="input-group">
              <input type="text" class="form-control" name="table" ng-model="table">
              <span class="input-group-btn">
                <button class="btn btn-info" type="submit" >修改</button>
              </span>
            </div>
          </div>
          </div>
  </form></p>

<br>说明：修改数据表前缀可以在同一个数据库内安装多个网站，保持每个数据表内容独立存在<br>非必要情况下无需修改表前缀，防止出错
  </div>
  </div>
</div>
<div class="col-lg-6">
<div class="panel panel-info ng-scope">
        <div class="panel-heading">
         网站搬家
        </div>
        <div class="panel-body">
<p><button class="btn btn-info" ng-click="move()">开始打包</button></p>
<br>步骤：（1）将下载到本地的web_xxx.zip(xxx为随机字符串)文件解压缩（2）后台文件夹如果不是<b>admin</b>请手动改为<b>admin</b>（3）上传到新的空间/服务器（4）执行安装操作即可<br>
注意：（1）网站根目录需有写入权限（2）网站剩余空间不能低于总空间的一半，不然无法生成安装包
  </div>
  </div>
</div>
</div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/link_list/">友链列表</a></li>
        <li class="active"><a href="">友链分类</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="lsort_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         友链分类列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;" >
          <thead>
            <tr>
            <th>ID</th>
              <th>选择</th>
               <th>排序</th>
              <th>显示名称</th>
        <th>编辑</th>
        <th>删除</th>

            </tr>
          </thead>
          <tbody ng-repeat="x in lsort_lists | orderBy: 'S_order'">
      <tr id="item_{{x.S_id}}">
      <td>{{x.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control" style="width: 50px;" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><a href="#/app/lsort_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>
          </tbody>
        </table>
</form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/lsort_add/' class='edit'><i class='fa fa-plus'></i> 新增友链分类</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/link_list/">友链列表</a></li>
        <li class="active"><a href="" >友链分类</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="lsort_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}友链分类
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">友链分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_order" value="{{data.S_order}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/news_list///"><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/nsort_list/"><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li class="active" ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="tag_Ctrl" >
  <div class="row">
    <div class="col-lg-12 col-md-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         标签管理
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">文章标签</label>
          <div class="col-sm-10">
            <textarea spellcheck="false" class="form-control {{lcss}}" rows="10" name="C_tag" ng-model="C_tag" placeholder="使用半角逗号隔开" popover="词与词之间用半角逗号（,）隔开" popover-trigger="focus" style="margin-bottom:10px; "></textarea>
            <span>词与词之间用半角逗号（,）隔开</span>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="comment_Ctrl" >
  <div class="row">
    <div class="col-lg-12 col-md-12">
    <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         评论管理
        </div>
        <div class="panel-body">
      <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
            <th>会员头像</th>
              <th>会员名称</th>
              <th>评论内容</th>
        <th>文章标题</th>
        <th>时间</th>
        <th>审核</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in comment_list" id="item_{{x.C_id}}">
           <td><img src="{{x.C_head}}" style="height: 40px;width: 40px;border-radius:10px; "></td>
      <td><a href="#/app/member_add/{{x.L_mid}}">{{x.C_member}}</a></td>
        <td><textarea class="form-control" ng-model="x.C_content"></textarea></td>
        <td><input class="form-control" ng-model="x.C_pagetitle"/><a class="btn btn-xs btn-success" style="margin-top:5px; " href="{{x.C_pageurl}}">查看</a></td>
        <td>{{x.C_time}}</td>
        <td>
        <a class="btn btn-xs btn-success" ng-show="isSelected2(x.C_sh,1)">已通过</a>
        <a class="btn btn-xs btn-info" ng-show="isSelected2(x.C_sh,0)" ng-click="sh(x.C_id,'sh1')">通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.C_sh,0)" ng-click="sh(x.C_id,'sh2')">不通过</a>
        <a class="btn btn-xs btn-danger" ng-show="isSelected2(x.C_sh,2)">未通过</a>
        </td>
        <td><a class="del" ng-click="del(x.C_id)"><i class="fa fa-times-circle"></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
  </div>
</div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/form_list/">表单管理</a></li>
        <li class="active"><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="query_list_Ctrl" >
  <div class="row">

  <div class="col-md-2">
      <div class="panel panel-info ng-scope" >
        <div class="panel-heading">
         查询分类 <a href="#/app/qsort_list/" class="btn btn-xs btn-info">编辑分类</a>
        </div>
<div class="table-responsive">
      <div class="list-group" >
        <a  class="list-group-item" ng-repeat="x in qsort_lists" href="#/app/query_list/{{x.S_id}}/">
          <span class="badge bg-info">{{x.S_count}}</span>
          <i class="fa fa-link m-r-xs"></i> {{x.S_title}}
        </a>
      </div>

 </div>
 </div>
 <a href='#/app/query_add/' class='edit'><i class='fa fa-plus'></i> 新增查询码</a>
 <a href='#/app/query_add2/' class='edit'><i class='fa fa-plus'></i> 批量新增</a>
 <a href='#/app/qsort_add/' class='edit'><i class='fa fa-plus'></i> 新增分类</a>
 <div style="height: 20px;"></div>
 </div>

    <div class="col-lg-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         查询码列表
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
              <th>查询码</th>
              <th>提交内容</th>
        <th>查询结果</th>
        <th>查询次数</th>
        <th>首次查询</th>
        <th>所属分类</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in query_list" id="item_{{x.Q_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.Q_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td><input type='text' value='{{x.Q_code}}' name='code_{{x.Q_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
       <td><span ng-bind-html="trust(x.Q_c)"></td>
        <td><span ng-bind-html="trust(x.Q_content)"></td>
        <td>
        {{x.Q_times}}次
        </td>
        <td>
        {{x.Q_first}}
        </td>
        <td><span ng-bind-html="trust(x.Q_sort)"></span></td>
        <td><a href="#/app/query_add/{{x.Q_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.Q_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

<footer class="panel-footer">
      <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">   
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>

        </div>
      </div>
    </footer>
    
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/query_add/' class='edit'><i class='fa fa-plus'></i> 新增查询码</a>
<a href='#/app/query_add2/' class='edit'><i class='fa fa-plus'></i> 批量新增</a>
    </div>
  </div>
</div>
^
<script>
function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
            + " " + date.getHours() + seperator2 + date.getMinutes()
            + seperator2 + date.getSeconds();
    return currentdate;
}

function AddPic()
{
 var i =pic1.rows.length;
 var Nam="'div1'";
 var Cod="fuJ"+i;
 var newTr = pic1.insertRow();
 var _id='pp'+i;
 var newTd0 = newTr.insertCell();
 var newTd1 = newTr.insertCell();
 var newTd2 = newTr.insertCell();
 newTr.id=_id;
 newTr.setAttribute("bgcolor", "#FFFFFF");
 newTr.setAttribute("onmouseout", "this.style.backgroundColor=''");
 newTr.setAttribute("onmouseover", "this.style.backgroundColor='#F7F7F7'");
 
 newTd0.innerHTML ="<div class='input-group'><span class='input-group-addon'>时间</span><input type='text' name='picpic1_"+i+"' value='"+getNowFormatDate()+"' class='form-control'/></div>"
 newTd1.innerHTML ="<div class='input-group'><span class='input-group-addon'>结果</span><input type='text' name='itrpic1_"+i+"' value='' class='form-control'/></div>";
 newTd2.innerHTML ="<input type='button' value='- 删掉该行' class='add' onclick='DelPic("+i+")' style='margin:5px;'/>";
 
}
function DelPic(i)
{
  var Container = document.getElementById("pic1");    
    var _tr=document.getElementById("pp"+i);  
    row=_tr.rowIndex;
    Container.deleteRow(row); 
}
</script>
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/form_list/">表单管理</a></li>
        <li class="active"><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="query_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}查询码
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">


          <div class="form-group">
          <label class="col-sm-2 control-label">查询码</label>
          <div class="col-sm-10">
          <input class="form-control" name="Q_code" ng-model="datax.Q_code"/>
          </div>
          </div>


          <div class="form-group" ng-if="datax.Q_res.length>0">
          <label class="col-sm-2 control-label">提交信息</label>
          <div class="col-sm-10">

<div class="col-md-4 col-xs-6" ng-repeat="x in datax.Q_res" style="font-size: 15px;padding: 5px;">
<b>{{x.R_ctitle}}</b>：{{x.R_response}}
</div>


          </div>
          </div>

          
          <div class="form-group">
          <label class="col-sm-2 control-label">查询结果</label>
          <div class="col-sm-10">
          <span ng-bind-html="trust(datax.Q_content)"></span>
          <input type="button" value="＋ 新增一行" onclick="AddPic()" class='add' style="margin:5px;" />
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">分类</label>
          <div class="col-sm-10">
          <select name="Q_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="0">请选择分类</option>
          <option ng-repeat="x in qsort_list" value="{{x.S_id}}" ng-selected="isSelected2(datax.Q_sort,x.S_id)">{{x.S_title}}</option>
          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/form_list/">表单管理</a></li>
        <li class="active"><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="qsort_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         查询分类列表
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;" >
          <thead>
            <tr>
            <th>ID</th>
              <th>选择</th>
               <th>分类名称</th>
              <th>备注</th>
        <th>编辑</th>
        <th>删除</th>

            </tr>
          </thead>
          <tbody ng-repeat="x in qsort_lists">
      <tr id="item_{{x.S_id}}">
      <td>{{x.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_content}}' name='content_{{x.S_id}}' class="form-control" ng-blur="save(lang)"></td>
        
        <td><a href="#/app/qsort_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
        </tr>
          </tbody>
        </table>
</form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/qsort_add/' class='edit'><i class='fa fa-plus'></i> 新增分类</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/form_list/">表单管理</a></li>
        <li class="active"><a href="#/app/query_list//">查询管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="qsort_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}查询分类
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">分类标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" value="{{data.S_title}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">描述</label>
          <div class="col-sm-10">
          <textarea class="form-control" name="S_content" rows="5">{{data.S_content}}</textarea>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/news_list///"><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/nsort_list/"><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li class="active"><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="collection_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         文章采集
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
        <th>选择</th>
        <th>任务名称</th>
        <th>采集页URL</th>
        <th>页数</th>
        <th>编码</th>
        <th>保存图片</th>
        <th>新闻分类</th>
        <th>执行任务</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in collection" id="item_{{x.C_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.C_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td>{{x.C_title}} <span id="img{{x.C_id}}"></span></td>
        <td>{{x.C_url}} </td>
        <td>{{x.C_pagestart}} - {{x.C_pageend}}</td>
        <td>{{x.C_code}}</td>
        <td>{{x.C_pic}}</td>
        <td>{{x.S_title}}</td>
        
        <td><a href="javascript:;" ng-click="start(x.C_id,0)" class="add"><i class="fa fa-play"></i> 执行</a> <a href="javascript:;" ng-click="test(x.C_id)" class="del"><i class="fa fa-play"></i> 测试</a></td>
        <td><a href="#/app/collection_add/{{x.C_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.C_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
           
          </tbody>
        </table>
        </form>
        </div>
      </div>

<div class="progress progress-striped active" style="margin-top: 10px;margin-bottom:0px;display: none" id="progressx">
        <div class="progress-bar progress-bar-success" role="progressbar"
           aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
           style="width: 0%;" id="progress">
        </div>
      </div>
      <div id="info" style="margin-top: 5px;display: none">已采集0个页面</div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>

<input type="button" value="删除所选" ng-click="delall()" class="del">
<button type="button" ng-click="start(0,1)" class="add"><i class="fa fa-play"></i> 全部执行</button>
<a href='#/app/collection_add/' class='edit'><i class='fa fa-plus'></i> 新增采集任务</a><br><br>
<p>说明：“测试”仅获取第一篇文章并且不写入数据库，供测试数据是否正确。</p>
    </div>
        
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href=""><span ng-bind-html="ntitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/nsort_list/"><span ng-bind-html="ntitle(C_sort)"></span>分类</a></li>
        <li ng-show="isSelected2(C_sort,2)"><a href="#/app/tag/">标签管理</a></li>
        <li class="active"><a href="#/app/collection/">文章采集</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="collection_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}采集任务
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
  <input type="hidden" name="T_id" value="{{data.T_id}}">
          <div class="form-group">
          <label class="col-sm-2 control-label">任务标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control"  name="C_title" value="{{data.C_title}}" required>

          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><b>采集页面url</b><br>（即文章列表页）</label>
          <div class="col-sm-10">

           <div class="input-group">
              <input type="text" class="form-control" name="C_url" ng-model="data.C_url" required>
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="getcontent(data.C_url,'utf-8');">获取内容(utf-8)</button>
                <button class="btn btn-success" type="button" ng-click="getcontent(data.C_url,'gb2312');">获取内容(gb2312)</button>
              </span>

            </div>
            说明：{page}代表页数通配符，如：http://www.aaa.com/news.html?page={page}

          </div>
          </div>

<div class="form-group">
          <label class="col-sm-2 control-label">采集页数</label>
          <div class="col-sm-10">
          <div class="input-group" style="width: 300px;">
            <span class="input-group-addon">第</span>
            <input type="number" class="form-control" name="C_pagestart" value="{{data.C_pagestart}}">
            <span class="input-group-addon">页 ~ 第</span>
            <input type="number" class="form-control" name="C_pageend" value="{{data.C_pageend}}">
            <span class="input-group-addon">页</span>

        </div>
        填写大于0的正整数，如果需要采集多页，请在填写“采集页面url”时使用通配符{page}
          </div>
          </div>


        
         <div class="form-group">
          <label class="col-sm-2 control-label">文章分类</label>
          <div class="col-sm-10">
          <select name="C_nsort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <optgroup ng-repeat="x in nsort_lists" label="{{x.S_title}}">
<option ng-repeat="y in x.nsort_list" value="{{y.S_id}}" ng-selected="isSelected2(data.C_nsort,y.S_id)">{{y.S_title}}</option>
</optgroup>

          </select>
          </div>
          </div>

<hr>
<div class="hr-more">列表页设置</div>
          <div class="form-group">
          <label class="col-sm-2 control-label"><b>文章列表页</b><br>采集区域开始标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_start" ng-model="data.C_start"></textarea>
          </div>

          <label class="col-sm-2 control-label"><b>文章列表页</b><br>采集区域结束标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_end" ng-model="data.C_end"></textarea>
          </div>
          </div>
<hr>
<div class="hr-more">内容页设置</div>
<div class="form-group">
          <label class="col-sm-2 control-label">内容页编码</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 80px;">
                <input type="radio" name="C_code" value="utf-8" ng-checked="isSelected2(data.C_code,'utf-8')">
                <i></i>
                utf-8
              </label>

              <label class="i-checks" style="width: 80px;">
                <input type="radio" name="C_code" value="gb2312" ng-checked="isSelected2(data.C_code,'gb2312')">
                <i></i>
                gb2312
              </label>

          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"><b>文章内容页</b><br>标题开始标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_titlestart" ng-model="data.C_titlestart"></textarea>
          </div>

          <label class="col-sm-2 control-label"><b>文章内容页</b><br>标题结束标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_titleend" ng-model="data.C_titleend"></textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><b>文章内容页</b><br>内容开始标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_contentstart" ng-model="data.C_contentstart"></textarea>
          </div>

          <label class="col-sm-2 control-label"><b>文章内容页</b><br>内容结束标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_contentend" ng-model="data.C_contentend"></textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"><b>文章内容页</b><br>发表时间开始标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_timestart" ng-model="data.C_timestart"></textarea>
          </div>

          <label class="col-sm-2 control-label"><b>文章内容页</b><br>发表时间结束标记</label>
          <div class="col-sm-4">
            <textarea spellcheck="false" class="form-control" rows="3" name="C_timeend" ng-model="data.C_timeend"></textarea>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label">保存远程图片到本地</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_pic" value="1" ng-model="data.C_pic" ng-checked="isSelected2(data.C_pic,1)">
                <i></i>
                开启
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="C_pic" value="0" ng-model="data.C_pic" ng-checked="isSelected2(data.C_pic,0)">
                <i></i>
                关闭
              </label>
              （图片存放在media文件夹内）
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          说明：（1）新闻作者为当前管理员（2）新闻配图为文章内第一张图（3）新闻阅读次数默认为100（4）当出现相同文章标题时则不采集<br>
          建议：（1）尽量采集与本站相关内容以免网站降权（2）采集前请了解文章是否允许转载，以免引起法律纠纷
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button> <a href="help.php?page=3.2.1" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>

  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="log_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         操作日志
         
        </div>
<div class="table-responsive">

<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
            <th>选择</th>
              <th>管理员</th>
              <th>操作</th>
        <th>IP</th>
        <th>位置</th>
        <th>时间</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
        <tr ng-repeat="x in log_list" id="item_{{x.L_id}}">
        <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.L_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
       <td>{{x.L_user}}</td>
       <td>{{x.L_action}}</td>
       <td>{{x.L_ip}}</td>
       <td>{{x.L_location}}</td>
       <td>{{x.L_time}}</td>
       <td><a href="javascript:;" ng-click="del(x.L_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>

          <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">   
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>

        </div>
        <div class="col-sm-12">
        <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="清空日志" ng-click="clear()" class="add">
      </div>
  </div>

  </form>
</div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/member_list/">会员列表</a></li>
        <li><a href="#/app/mtype/">会员类型</a></li>
        <li class="active"><a href="#/app/need/">业务需求</a></li>
        <li><a href="#/app/agreement/">会员协议</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="need_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         业务需求
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">业务需求</label>
          <div class="col-sm-10">
          <textarea class="form-control" name="need" rows="10" ng-model="C_need"/></textarea>
          </div>
          </div>

<div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          *用户在注册会员时可选择业务需求，方便为用户提供服务（每行一个）
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button> 
          </div>
          </div>
  </form>


        </div>

      </div>

    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="query_add2_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         批量新增查询码
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="form" ng-submit="save(lang)">

          <div class="form-group">
          <label class="col-sm-2 control-label">查询码</label>
          <div class="col-sm-10">
          <textarea class="form-control" name="Q_code" rows="20"></textarea>
          *可以批量录入查询码，每行一个
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">查询结果</label>
          <div class="col-sm-10">
          <input class="form-control" name="Q_content" />
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">分类</label>
          <div class="col-sm-10">
          <select name="Q_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option value="0">请选择分类</option>
          <option ng-repeat="x in qsort_list" value="{{x.S_id}}" ng-selected="isSelected2(datax.Q_sort,x.S_id)">{{x.S_title}}</option>
          </select>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="wxapp_Ctrl">
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         微信小程序
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="form" ng-submit="save(lang)">

        <div class="form-group">
          <label class="col-sm-2 control-label">开通状态</label>
          <div class="col-sm-10" style="padding-top:7px; ">
            <div ng-show="{{wxapp==1}}">已开通小程序功能 <a href="help.php?page=4.4" target="_blank" class="btn btn-xs btn-info">使用帮助</a></div>
            <div ng-show="{{wxapp==0}}">尚未开通小程序功能 
              <a href="javascript:;" ng-click="kt()" class="btn btn-xs btn-primary" ng-show="istrue2(C_x_show) && !isfrom(C_from)">点击开通</a>
              <sapn ng-show="isfrom(C_from)">（请到官网开通）</sapn>
            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">小程序标题</label>
          <div class="col-sm-10">
              <input type="text" class="form-control"  name="C_wxapptitle" value="{{data.C_wxapptitle}}">
          </div>
          </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">小程序AppID</label>
          <div class="col-sm-10">
              <input type="text" class="form-control"  name="C_wxappID" value="{{data.C_wxappID}}">
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">小程序AppSecret</label>
          <div class="col-sm-10">
              <input type="password" class="form-control"  name="C_wxappSecret" value="{{data.C_wxappSecret}}">
          </div>
          </div>
          

          <div class="form-group">
          <label class="col-sm-2 control-label">微信支付设置</label>
          <div class="col-sm-10" style="margin-top:8px ">
              请到“系统设置”->“基本设置”->“收款设置”填写好“微信MCHID”和“微信KEY”两项
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">小程序LOGO设置</label>
          <div class="col-sm-10">
          <img ng-src="{{data.C_wxapplogo|pic}}" id="C_wxapplogox" class="L_pic" ng-click="showUpload('C_wxapplogo');">
          <div class="input-group">
              <input type="text" class="form-control" id="C_wxapplogo" name="C_wxapplogo" value="{{data.C_wxapplogo}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('C_wxapplogo');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('C_wxapplogo');">选择</button>
              </span>
            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">网站是否支持https</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 80px;">
                <input type="radio" name="C_https" value="1" ng-model="data.C_https" ng-checked="isSelected2(data.C_https,1)" ng-click="save(lang)">
                <i></i>
                支持
              </label>

              <label class="i-checks" style="width: 80px;">
                <input type="radio" name="C_https" value="0" ng-model="data.C_https" ng-checked="isSelected2(data.C_https,0)" ng-click="save(lang)">
                <i></i>
                不支持
              </label>
              <p>说明：如果您的网站不支持https可以通过中间页的方式来实现小程序功能（访问速度会下降）</p>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">小程序色调</label>
          <div class="col-sm-10">
            <input type="text" id="hue-demo" class="form-control" name="C_wxcolor" value="{{data.C_wxcolor}}">
          </div>
          </div>
          <script>
$('#hue-demo').minicolors({
                    change: function(hex, opacity) {
                        if( !hex ) return;
                        if( opacity ) hex += ', ' + opacity;
                        try {
                            console.log(hex);
                        } catch(e) {}
                    },
                    theme: 'bootstrap'
                });
          </script>

          <div class="form-group">
          <label class="col-sm-2 control-label">选择样式</label>
          <div class="col-sm-10">
<div ng-repeat="x in wxapp_list" style="margin:0 10px;text-align: center;display: inline-block;border: solid 2px #DDDDDD;padding: 10px;border-radius:5px; ">
<label for="{{x.P_no}}">
<img ng-src='https://shanlingtest.oss-cn-shenzhen.aliyuncs.com/media/{{x.P_no}}.jpg' width='110' alt="<div style='text-align:center;'>使用微信预览<br><img src='http://www.s-cms.cn/media/{{x.P_no}}_code.jpg' width='200'></div>">
</label>
<p style="margin:10px 0 0 0; "> 
<label class="i-checks">
                <input type="radio" id="{{x.P_no}}" name="C_wxappno" value="{{x.P_no}}" ng-checked="isSelected3(data.C_wxappno,x.P_no)" ng-click="save(lang)">
                <i></i>
                 小程序编号{{x.P_no}}
              </label> </p>
</div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">焦点图设置</label>
          <div class="col-sm-10" style="padding-top:7px; ">
          与手机版本共用焦点图 <a class="btn btn-xs btn-info"  href="#/app/m_slide_list/">前往设置</a>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">底部导航</label>
          <div class="col-sm-10">
          <div class="tabbar" ng-repeat="x in menu_lists">
          <label class="i-checks">
                <input type="checkbox" value="{{x.U_id}}" name="C_wxapptabbar[]"  ng-checked="isSelected3(data.C_wxapptabbar,x.U_id)" ng-click="save(lang)">
                <i></i>
                <b class="fa fa-{{x.U_ico}}"></b> {{x.U_title}}
              </label>
          </div>
          
          <div class="tabbar">
          <label class="i-checks">
                <input type="checkbox" name="C_wxapptabbar[]" value="c" ng-checked="isSelected3(data.C_wxapptabbar,'c')" ng-click="save(lang)">
                <i></i>
                <b class="fa fa-shopping-cart"></b> 购物车
              </label>
          </div>
          <div class="tabbar">
          <label class="i-checks">
                <input type="checkbox" name="C_wxapptabbar[]" value="s" ng-checked="isSelected3(data.C_wxapptabbar,'s')" ng-click="save(lang)">
                <i></i>
                <b class="fa fa-search"></b> 搜索内容
              </label>
          </div>
          <div class="tabbar">
          <label class="i-checks">
                <input type="checkbox" name="C_wxapptabbar[]" value="m" ng-checked="isSelected3(data.C_wxapptabbar,'m')" ng-click="save(lang)">
                <i></i>
                <b class="fa fa-user"></b> 会员中心
              </label>
          </div>
          <a href="#/app/menu_list/" class="btn btn-info btn-xs">管理菜单</a>
          <p style="padding-top:10px; ">*至少选择1个，至多选择5个</p>
          <div style="width:400px;height: 200px;background: #EEEEEE;color: #AAAAAA;text-align: center;font-size: 20px;padding: 75px;">
          微信小程序<br>底部导航预览
          </div>
          <table width="400" style="border: solid 1px #DDDDDD;">
          <tr>
          <td style="padding: 10px;text-align: center;" ng-repeat="x in tabs"><i class="fa fa-{{x.U_ico}} fa-2x"></i><br>{{x.U_title}}</td>
          </tr>
          </table>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
          说明：<br>1.生成小程序时请在<b>外网环境</b>，确保服务器信息能够访问到<br>
          2.小程序部分页面使用了缓存，修改网站数据后，小程序需重启才可显示最新内容。
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="button" ng-click="save()" class="btn btn-info">保存</button>
            <button type="button" ng-click="creat(data.C_wxappno,data.C_wxcolor)" class="btn btn-primary" ng-show="wxapp_creat">生成小程序</button>

            <a href="help.php?page=4.4" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="creatapp_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         生成APP
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form" ng-submit="save(lang)">

        <div class="form-group">
          <label class="col-sm-2 control-label">开通状态</label>
          <div class="col-sm-10" style="padding-top:7px; ">
            <div ng-show="{{ktapp==1}}">已开通APP功能 </div>
            <div ng-show="{{ktapp==0}}">尚未开通APP功能 
              <a href="javascript:;" ng-click="kt()" class="btn btn-xs btn-primary" ng-show="istrue2(C_x_show) && !isfrom(C_from)">点击开通</a>
              <sapn ng-show="isfrom(C_from)">（请到官网开通）</sapn>
            </div>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="button" ng-click="creat()" class="btn btn-primary">生成APP</button>
            <a href="help.php?page=4.5" target="_blank" class="btn btn-xs btn-success">帮助？</a>
          </div>
          </div>
  </form>

        </div>
      </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="">帖子管理</a></li>
        <li><a href="#/app/bsort_list/">板块管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="bbs_list_Ctrl" >
  <div class="row">
<div class="col-md-2">
      <div class="panel panel-info">
        <div class="panel-heading ">
         板块管理
        </div>
<div class="table-responsive">
      <div class="list-group" >
        <a  class="list-group-item" ng-repeat="y in bsort_list" ng-click="tosort(y.S_id)">
          <span class="badge bg-info">{{y.S_count}}</span>
          <i class="fa fa-newspaper-o m-r-xs"></i> {{y.S_title}}
        </a>
      </div>
 </div>
 </div>

 <a href='#/app/bsort_add/' class='edit'><i class='fa fa-plus'></i> 新增板块</a>
 <div style="height: 20px;"></div>
 </div>

    <div class="col-md-10">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         帖子列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 900px;">
          <thead>
            <tr>
              <th>选择</th>
        <th>显示名称</th>
        <th>发布时间</th>
        <th>会员</th>
         <th>审核</th>
         <th>所属分类</th>
         <th>编辑</th>
         <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in bbs_list" id="item_{{x.B_id}}">
            <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.B_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><textarea spellcheck="false" type='text' name='title_{{x.B_id}}' class="form-control {{lcss}}" ng-model="x.B_title" ng-blur="save(lang)"></textarea></td>
        <td>{{x.B_time}}</td>
        <td><a href="#/app/member_add/{{x.B_mid}}">{{x.B_member}}</a></td>
        <td>{{x.B_sh==1?'已审核':'未审核'}}</td>
        <td>{{x.B_sort}}</td>
        <td><a href="#/app/bbs_add/{{x.B_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.B_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>
<footer class="panel-footer">
      <div class="row">
        <div class="col-sm-6 hidden-xs">
          <small class="text-muted inline m-t-sm m-b-sm">本页显示第 {{(selPage-1)*10+1}}-{{list2}} 条 共 {{count}} 条</small>
        </div>
        <div class="col-sm-6 text-right text-center-xs">   
<nav>
<ul class="pagination">
<li>
<a ng-click="Previous()">
<span>上一页</span>
</a>
</li>
<li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" >
<a ng-click="selectPage(page)" >{{ page }}</a>
</li>
<li>
<a ng-click="Next()">
<span>下一页</span>
</a>
</li>
</ul>
</nav>
        </div>
      </div>
    </footer>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/bbs_add/' class='edit'><i class='fa fa-plus'></i> 新增帖子</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/bbs_list///">帖子管理</a></li>
        <li><a href="#/app/bsort_list/">板块管理</a></li>

      </ul>
    </div>
<div class="wrapper-md" ng-controller="bbs_add_Ctrl" >
  <div class="row">
  <div class="col-lg-2">
<div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         [{{data.S_title}}] 列表
        </div>
        <div class="table-responsive">
      <div class="list-group">
        <a class="list-group-item ng-binding ng-scope" ng-class="{active:data.B_id==x.B_id}" ng-repeat="x in data.bbs_list" href="#/app/bbs_add/{{x.B_id}}">{{x.B_title}}</a>
      </div>
 </div>
    </div>
    <a href="#/app/bbs_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增帖子</a>
  </div>

    <div class="col-lg-10">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}帖子

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>

        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">帖子标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="B_title" value="{{data.B_title}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">帖子作者</label>
          <div class="col-sm-10" style="margin-top: 7px;">
            {{data.B_member}}
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">所属板块</label>
          <div class="col-sm-10">
          <select name="B_sort" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
            <option ng-repeat="y in bsort_list" value="{{y.S_id}}" ng-selected="isSelected2(data.B_sort,y.S_id)">{{y.S_title}}</option>
          </select>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label">发贴时间</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="B_time" value="{{data.B_time}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">审核</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 80px;">
                <input type="radio" name="B_sh" value="1" ng-model="data.B_sh" ng-checked="isSelected2(data.B_sh,1)">
                <i></i>
                已审核
              </label>

              <label class="i-checks" style="width: 80px;">
                <input type="radio" name="B_sh" value="0" ng-model="data.B_sh" ng-checked="isSelected2(data.B_sh,0)">
                <i></i>
                未审核
              </label>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">浏览次数</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="B_view" value="{{data.B_view}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">帖子内容</label>
          <div class="col-sm-10">
            <script id="container" name="B_content" type="text/plain" style="height: 350px;"></script>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/bbs_list///">帖子管理</a></li>
        <li class="active"><a href="">板块管理</a></li>

      </ul>
    </div>
<div class="wrapper-md" ng-controller="bsort_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         <span ng-bind-html="ntitle(C_sort)"></span>分类列表 <a href="#/app/recycle/" class="btn btn-primary btn-xs pull-right"><i class="fa fa-trash-o"></i> 回收站</a>
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table m-b-none table-hover" style="min-width: 900px;" >
          <thead>
            <tr>
            <th>ID</th>
              <th>选择</th>
              <th>排序</th>
              <th>显示名称</th>
              <th>浏览限制</th>
        <th>配图</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody ng-repeat="x in bsort_list">
      <tr id="item_{{x.S_id}}">
      <td>{{x.S_id}}</td>
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.S_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td><input type='text' style="width: 50px;" value='{{x.S_order}}' name='order_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><input type='text' value='{{x.S_title}}' name='title_{{x.S_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>{{x.S_lv}}</td>
        <td>
        <img ng-src='{{x.S_pic|pic}}' height='30' alt='<img src={{x.S_pic|pic}} width=400>' id="pic_{{x.S_id}}x" ng-click="showUpload(x.S_id)"></span>
        <input type="hidden" value="{{x.S_pic}}" id="pic_{{x.S_id}}" name="pic_{{x.S_id}}">
        </td>

        <td><a href="#/app/bsort_add/{{x.S_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.S_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>

        </tr>
        
          </tbody>
        </table>
</form>
        </div>
      </div>
              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/bsort_add/' class='edit'><i class='fa fa-plus'></i> 新增板块</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/bbs_list///">帖子管理</a></li>
        <li class="active"><a href="" >板块管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="bsort_add_Ctrl" >
  <div class="row">

<div class="col-lg-2">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         板块列表
        </div>
<div class="table-responsive">
      <div class="list-group" >
      <span ng-repeat="x in bsort_list">
        <a class="list-group-item"  ng-class="{active:data.S_id==x.S_id}" href="#/app/bsort_add/{{x.S_id}}">
          {{x.S_title}}
        </a>
        
       </span>
      </div>
 </div>
 </div>
<a href="#/app/bsort_add/" class="btn btn-xs btn-success"><i class="fa fa-plus"></i> 新增板块</a>
 </div>
    <div class="col-lg-10">
      
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         {{action}}板块

         <span class="pull-right">
          <a href="javascript:;" ng-click="save(lang)" class="btn btn-xs btn-info">保存并返回</a>
          <a href="javascript:;" ng-click="save2(lang)" class="btn btn-xs btn-primary">保存</a>
        </span>
        
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
<input type="hidden" value="{{data.S_id}}" id="S_id">
            
          <div class="form-group">
          <label class="col-sm-2 control-label">板块标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="S_title" value="{{data.S_title}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">板块介绍</label>
          <div class="col-sm-10">
            <textarea class="form-control {{lcss}}" name="S_content">{{data.S_content}}</textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">是否隐藏</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_hide" value="0" ng-model="data.S_hide" ng-checked="isSelected2(data.S_hide,1)">
                <i></i>
                展示
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_hide" value="1" ng-model="data.S_hide" ng-checked="isSelected2(data.S_hide,2)">
                <i></i>
                隐藏
              </label>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">发帖需要审核</label>
          <div class="col-sm-10">
          <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_sh" value="1" ng-model="data.S_sh" ng-checked="isSelected2(data.S_sh,1)">
                <i></i>
                是
              </label>

              <label class="i-checks" style="width: 60px;">
                <input type="radio" name="S_sh" value="0" ng-model="data.S_sh" ng-checked="isSelected2(data.S_sh,0)">
                <i></i>
                否
              </label>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">浏览限制</label>
          <div class="col-sm-10">
          <select name="S_lv" class="form-control ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched">
          <option  value="0" ng-selected="isSelected2(N_lv,0)">无限制</option>
          <option  ng-repeat="x in lv_list" value="{{x.L_id}}" ng-selected="isSelected2(data.S_lv,x.L_id)">{{x.L_title}}</option>
          </select>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">排序</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="S_order" id='S_order' value="{{data.S_order}}"  onfocus="getorder('S_sub','S_order','nsort','S_id')" required>
          </div>
          </div>
          

          <div class="form-group">
          <label class="col-sm-2 control-label">分类封面图</label>
          <div class="col-sm-10">
          <img ng-src="{{data.S_pic|pic}}" id="S_picx" class="L_pic" ng-click="showUpload('S_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="S_pic" name="S_pic" value="{{data.S_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('S_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('S_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
            
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存并返回</button>
            <button type="button" class="btn btn-primary" ng-click="save2(lang)">保存</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>

^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li ><a href="#/app/member_list/">会员列表</a></li>
        <li><a href="#/app/mtype/">会员类型</a></li>
        <li ><a href="#/app/need/">业务需求</a></li>
        <li class="active"><a href="#/app/agreement/">会员协议</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="agreement_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         会员协议
        </div>
<div class="panel-body">
<form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">会员协议</label>
          <div class="col-sm-10">
          <textarea class="form-control" name="agreement" rows="20" ng-model="agreement"/></textarea>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button> 
          </div>
          </div>
  </form>


        </div>

      </div>

    </div>
  </div>
</div>
^
<div class="wrapper-md" ng-controller="recycle_Ctrl">
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         回收站
        </div>

        <div class="panel-body">
          <tabset class="tab-container">

          <tab ng-if="hide(data.text_count)">
          <tab-heading>简介 <span class="badge badge-sm m-l-xs bg-primary">{{data.text_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('text')"><i class="fa fa-reply"></i> 恢复全部简介（{{data.text_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('text')"><i class="fa fa-trash-o"></i> 清空全部简介（{{data.text_count}}）</button>
          <a href="#/app/text_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到简介列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.text_list" id="item_text_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('text_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('text_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

        <tab ng-if="hide(data.nsort_count)">
          <tab-heading>新闻分类 <span class="badge badge-sm m-l-xs bg-primary">{{data.nsort_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('nsort')"><i class="fa fa-reply"></i> 恢复全部新闻分类（{{data.nsort_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('nsort')"><i class="fa fa-trash-o"></i> 清空全部新闻分类（{{data.nsort_count}}）</button>
          <a href="#/app/nsort_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到新闻分类列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.nsort_list" id="item_nsort_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('nsort_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('nsort_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

        <tab ng-if="hide(data.news_count)">
          <tab-heading>新闻 <span class="badge badge-sm m-l-xs bg-primary">{{data.news_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('news')"><i class="fa fa-reply"></i> 恢复全部新闻（{{data.news_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('news')"><i class="fa fa-trash-o"></i> 清空全部新闻（{{data.news_count}}）</button>
          <a href="#/app/news_list///" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到新闻列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.news_list" id="item_news_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('news_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('news_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

        <tab ng-if="hide(data.psort_count)">
          <tab-heading>产品分类 <span class="badge badge-sm m-l-xs bg-primary">{{data.psort_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('psort')"><i class="fa fa-reply"></i> 恢复全部产品分类（{{data.psort_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('psort')"><i class="fa fa-trash-o"></i> 清空全部产品分类（{{data.psort_count}}）</button>
          <a href="#/app/nsort_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到产品分类列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.psort_list" id="item_psort_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('psort_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('psort_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.product_count)">
          <tab-heading>产品 <span class="badge badge-sm m-l-xs bg-primary">{{data.product_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('product')"><i class="fa fa-reply"></i> 恢复全部产品（{{data.product_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('product')"><i class="fa fa-trash-o"></i> 清空全部产品（{{data.product_count}}）</button>
          <a href="#/app/product_list///" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到产品列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.product_list" id="item_product_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('product_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('product_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.form_count)">
          <tab-heading>表单 <span class="badge badge-sm m-l-xs bg-primary">{{data.form_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('form')"><i class="fa fa-reply"></i> 恢复全部表单（{{data.form_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('form')"><i class="fa fa-trash-o"></i> 清空全部表单（{{data.form_count}}）</button>
          <a href="#/app/form_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到表单列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.form_list" id="item_form_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('form_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('form_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.content_count)">
          <tab-heading>表单条目 <span class="badge badge-sm m-l-xs bg-primary">{{data.content_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('content')"><i class="fa fa-reply"></i> 恢复全部条目（{{data.content_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('content')"><i class="fa fa-trash-o"></i> 清空全部条目（{{data.content_count}}）</button>
          <a href="#/app/form_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到条目列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.content_list" id="item_content_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="../images/nopic.png" alt="<img src='../images/nopic.png' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('content_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('content_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.menu_count)">
          <tab-heading>菜单 <span class="badge badge-sm m-l-xs bg-primary">{{data.menu_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('menu')"><i class="fa fa-reply"></i> 恢复全部菜单（{{data.menu_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('menu')"><i class="fa fa-trash-o"></i> 清空全部菜单（{{data.menu_count}}）</button>
          <a href="#/app/menu_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到菜单列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.menu_list" id="item_menu_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="../images/nopic.png" alt="<img src='../images/nopic.png' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('menu_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('menu_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.slide_count)">
          <tab-heading>焦点图 <span class="badge badge-sm m-l-xs bg-primary">{{data.slide_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('slide')"><i class="fa fa-reply"></i> 恢复全部焦点图（{{data.slide_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('slide')"><i class="fa fa-trash-o"></i> 清空全部焦点图（{{data.slide_count}}）</button>
          <a href="#/app/slide_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到焦点图列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.slide_list" id="item_slide_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('slide_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('slide_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.link_count)">
          <tab-heading>友链 <span class="badge badge-sm m-l-xs bg-primary">{{data.link_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('link')"><i class="fa fa-reply"></i> 恢复全部友链（{{data.link_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('link')"><i class="fa fa-trash-o"></i> 清空全部友链（{{data.link_count}}）</button>
          <a href="#/app/link_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到友链列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.link_list" id="item_link_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('link_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('link_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.bbs_count)">
          <tab-heading>帖子 <span class="badge badge-sm m-l-xs bg-primary">{{data.bbs_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('bbs')"><i class="fa fa-reply"></i> 恢复全部帖子（{{data.bbs_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('bbs')"><i class="fa fa-trash-o"></i> 清空全部帖子（{{data.bbs_count}}）</button>
          <a href="#/app/bbs_list///" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到帖子列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.bbs_list" id="item_bbs_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="../images/nopic.png" alt="<img src='../images/nopic.png' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm">{{x.title}}</span> 
              <a class="add" href="javascript:;" ng-click="recovery('bbs_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('bbs_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div>{{x.content}}...</div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.bsort_count)">
          <tab-heading>BBS板块 <span class="badge badge-sm m-l-xs bg-primary">{{data.bsort_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('bsort')"><i class="fa fa-reply"></i> 恢复全部板块（{{data.bsort_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('bsort')"><i class="fa fa-trash-o"></i> 清空全部板块（{{data.bsort_count}}）</button>
          <a href="#/app/bsort_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到板块列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.bsort_list" id="item_bsort_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm">{{x.title}}</span> 
              <a class="add" href="javascript:;" ng-click="recovery('bsort_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('bsort_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div>{{x.content}}...</div>
          </div>
        </li>
        </ul>
          </tab>

        <tab ng-if="hide(data.member_count)">
          <tab-heading>会员 <span class="badge badge-sm m-l-xs bg-primary">{{data.member_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('member')"><i class="fa fa-reply"></i> 恢复全部会员（{{data.member_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('member')"><i class="fa fa-trash-o"></i> 清空全部会员（{{data.member_count}}）</button>
          <a href="#/app/member_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到会员列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.member_list" id="item_member_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="{{x.pic|pic}}" alt="<img src='{{x.pic|pic}}' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm">{{x.title}}</span> 
              <a class="add" href="javascript:;" ng-click="recovery('member_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('member_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div>{{x.content}}...</div>
          </div>
        </li>
        </ul>
          </tab>

          <tab ng-if="hide(data.admin_count)">
          <tab-heading>管理员 <span class="badge badge-sm m-l-xs bg-primary">{{data.admin_count}}</span></tab-heading>
          <button class="btn btn-sm btn-info" ng-click="recoveryall('admin')"><i class="fa fa-reply"></i> 恢复全部管理员（{{data.admin_count}}）</button>
          <button class="btn btn-sm btn-danger" ng-click="delall('admin')"><i class="fa fa-trash-o"></i> 清空全部管理员（{{data.admin_count}}）</button>
          <a href="#/app/admin_list/" class="btn btn-sm btn-primary"><i class="fa fa-arrow-circle-right"></i> 转到管理员列表</a><hr>
          <ul class="list-group list-group-alt list-group-lg no-borders pull-in m-b-none">
        <li class="list-group-item" ng-repeat="x in data.admin_list" id="item_admin_{{x.id}}">
          <div class="pull-left thumb-md m-r">
            <img ng-src="../images/nopic.png" alt="<img src='../images/nopic.png' width='200'>" class="search_pic">
          </div> 
          <div class="clear">
            <p><span class="h4 text-primary m-b-sm" ng-bind-html="trust(x.title)"></span> 
              <a class="add" href="javascript:;" ng-click="recovery('admin_'+x.id)"><i class="fa fa-reply"></i> 恢复</a> 
              <a class="del" href="javascript:;" ng-click="delete('admin_'+x.id)"><i class="fa fa-times-circle"></i> 删除</a></p>
            <div ng-bind-html="trust(x.content+'...')"></div>
          </div>
        </li>
        </ul>
          </tab>
         </tabset>
  </div>
  </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/member_list/">会员列表</a></li>
        <li class="active"><a href="#/app/mtype/">会员类型</a></li>
        <li><a href="#/app/need/">业务需求</a></li>
        <li><a href="#/app/agreement/">会员协议</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="mtype_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         会员分类列表 
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 600px;">
          <thead>
            <tr>
        <th>选择</th>
        <th>ID</th>
        <th>名称</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in mtype_list" id="item_{{x.T_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.T_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td>{{x.T_id}}</td>
        <td><input type='text' value='{{x.T_name}}' name='name_{{x.T_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td><a href="#/app/mtype_add/{{x.T_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.T_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>

              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/mtype_add/' class='edit'><i class='fa fa-plus'></i> 新增会员类型</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/member_list/">会员列表</a></li>
        <li class="active"><a href="#/app/mtype/">会员类型</a></li>
        <li><a href="#/app/need/">业务需求</a></li>
        <li><a href="#/app/agreement/">会员协议</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="mtype_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}会员类型
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">会员类型</label>
          <div class="col-sm-10">
            <input type="text" class="form-control {{lcss}}" name="T_name" value="{{data.T_name}}" required>
          </div>
          </div>
          
          
          <div class="form-group">
          <label class="col-sm-2 control-label">类型介绍</label>
          <div class="col-sm-10">
            <script id="container" name="T_content" type="text/plain" style="height: 350px;"></script>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
          
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li class="active"><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="brand_list_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-info ng-scope">
        <div class="panel-heading">
         品牌列表
        </div>
<div class="table-responsive">
<form id="form">
 <table class="table table-striped m-b-none" style="min-width: 600px;">
          <thead>
            <tr>
        <th>选择</th>
        <th>ID</th>
        <th>名称</th>
        <th>图片</th>
        <th>编辑</th>
        <th>删除</th>
            </tr>
          </thead>
          <tbody>
           <tr ng-repeat="x in brand_list" id="item_{{x.B_id}}">
       <td>
              <label class="i-checks">
                <input type="checkbox" name="id[]" id="id" value="{{x.B_id}}" ng-checked="all">
                <i></i>
              </label>
        </td>
        <td>{{x.B_id}}</td>
        <td><input type='text' value='{{x.B_title}}' name='name_{{x.B_id}}' class="form-control {{lcss}}" ng-blur="save(lang)"></td>
        <td>
        <img ng-src='{{x.B_pic|pic}}' alt='<img src={{x.B_pic|pic}} width=400>' style='max-width: 100px; max-height:40px;' id="pic_{{x.B_id}}x" ng-click="showUpload(x.B_id)"></span>
        <input type="hidden" value="{{x.B_pic}}" id="pic_{{x.B_id}}" name="pic_{{x.B_id}}">
        </td>
        <td><a href="#/app/brand_add/{{x.B_id}}" class="edit"><i class="fa fa-edit"></i> 编辑</a></td>
        <td><a href="javascript:;" ng-click="del(x.B_id)" class="del"><i class='fa fa-times-circle'></i> 删除</a></td>
            </tr>
          </tbody>
        </table>
</form>
        </div>

      </div>

              <label class="i-checks">
                <input type="checkbox" ng-model="all">
                <i></i>
                全选
              </label>
           
<input type="button" value="删除所选" ng-click="delall()" class="del">
<input type="button" value="保存修改" ng-click="save(lang)" class="add">
<a href='#/app/brand_add/' class='edit'><i class='fa fa-plus'></i> 新增品牌</a>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/product_list///"><span ng-bind-html="ptitle(C_sort)"></span>列表</a></li>
        <li><a href="#/app/psort_list/"><span ng-bind-html="ptitle(C_sort)"></span>分类</a></li>
        <li class="active"><a href="#/app/brand_list/"><span ng-bind-html="ptitle(C_sort)"></span>品牌</a></li>
         <li><a href="#/app/order_list">订单管理</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="brand_add_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         {{action}}品牌
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
          <div class="form-group">
          <label class="col-sm-2 control-label">品牌名称</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="B_title" value="{{data.B_title}}" required>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">品牌图片</label>
          <div class="col-sm-10">
          <img ng-src="{{data.B_pic|pic}}" id="B_picx" class="L_pic" ng-click="showUpload('B_pic');">
            <div class="input-group">
              <input type="text" class="form-control" id="B_pic" name="B_pic" value="{{data.B_pic}}">
              <span class="input-group-btn">
                <button class="btn btn-info" type="button" ng-click="showUpload('B_pic');">上传</button>
                <button class="btn btn-primary" type="button" ng-click="choose('B_pic');">选择</button>
              </span>
            </div>
          </div>
          </div>
          
          <div class="form-group">
          <label class="col-sm-2 control-label">品牌介绍</label>
          <div class="col-sm-10">
            <script id="container" name="B_content" type="text/plain" style="height: 350px;"></script>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>
          </div>
          </div>
         
  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li class="active"><a href="#/app/zmt_api">自媒体接入</a></li>
        <li><a href="#/app/zmt_article">推送文章</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="zmt_api_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         自媒体API接入
        </div>
        <div class="panel-body">
  <form class="form-horizontal" id="form" ng-submit="save(lang)">
<hr class="ng-scope">
<div class="hr-more">微信公众号</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">公众号APPID</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_appid" value="{{data.C_wx_appid}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">公众号APPSECRET</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_wx_appsecret" value="{{data.C_wx_appsecret}}" required>
          </div>
          </div>

<hr class="ng-scope">
<div class="hr-more">百家号</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">百家号app_id</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_bj_id" value="{{data.C_bj_id}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">百家号app_token</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_bj_key" value="{{data.C_bj_key}}" required>
          </div>
          </div>

<hr class="ng-scope">
<div class="hr-more">企鹅号</div>

          <div class="form-group">
          <label class="col-sm-2 control-label">企鹅号client_id</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_qe_id" value="{{data.C_qe_id}}" required>
          </div>
          </div>

          <div class="form-group">
          <label class="col-sm-2 control-label">企鹅号client_secret</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="C_qe_key" value="{{data.C_qe_key}}" required>
          </div>
          </div>
          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">

         如果您不知道如何填写，请点击<a href="help.php?page=1.3.9" target="_blank" class="btn btn-xs btn-success">帮助</a>按钮

          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">保存</button>

            <a class="btn btn-primary" href="#/app/zmt_article">推送文章</a>
          </div>
          </div>

          

  </form>
   </div>
    </div>
  </div>
</div>
^
<div class="wrapper bg-light b-b">
      <ul class="nav nav-pills nav-sm">
        <li><a href="#/app/zmt_api">自媒体接入</a></li>
        <li class="active"><a href="#/app/zmt_article">推送文章</a></li>
      </ul>
    </div>
<div class="wrapper-md" ng-controller="zmt_article_Ctrl" >
  <div class="row">
    <div class="col-lg-12">
      
      <div class="panel  panel-info ng-scope">
        <div class="panel-heading">
         推送文章
        </div>
        <div class="panel-body">
        <form class="form-horizontal" id="form" ng-submit="article(lang)">

          <div class="form-group">
          <label class="col-sm-2 control-label">选择文章</label>
          <div class="col-sm-10">
           <div >
          <div style="width:250px; float:left; overflow:hidden" ng-repeat="x in data">
      <table width="100%">
      <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#DFE6FD'" bgcolor="#ffffff">
        <td width="10%">
      <input type="radio" name="N_id" value="{{x.N_id}}" id="{{x.N_id}}" >
       </td><td width="20%"><label for="{{x.N_id}}"><img ng-src="{{x.N_pic|pic}}" width="40" height="40"></label></td><td width="70%"><label for="{{x.id}}">{{x.N_title}}</label> 
      </td></tr></table></div>

          </div>
          </div>
          </div>
<div class="form-group">
          <label class="col-sm-2 control-label">选择平台</label>
          <div class="col-sm-10">
           <label class="i-checks" style="width: 100px;">
                <input type="checkbox" name="zmt[]" value="0">
                <i></i>
                微信公众号
              </label>

              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="zmt[]" value="1">
                <i></i>
                百家号
              </label>
              
              <label class="i-checks" style="width: 80px;">
                <input type="checkbox" name="zmt[]" value="2">
                <i></i>
                企鹅号
              </label>
          </div>
          </div>


          <div class="form-group">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-10">
            <button type="submit" class="btn btn-info">推送文章</button>
          </div>
          </div>
  </form>
   </div>
    </div>
  </div>
</div>