| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
- <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
- <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
- <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
- <style type="text/css">
- body {
- overflow: hidden;
- background: #fff;
- }
- .searchCover {
- margin: 20px 0;
- }
- .innerTable {
- padding: 0 1px 0 0;
- min-width: 750px;
- }
- .table,
- .table.table-striped>thead>tr>th {
- text-align: center;
- }
- table td {
- vertical-align: middle !important;
- }
- .nullData {
- display: none;
- width: 100%;
- height: 500px;
- background: #ddd;
- text-align: center;
- line-height: 500px;
- font-size: 20px;
- border: 1px solid #ddd;
- }
- #addAgent {
- display: none;
- }
- .editRole {
- padding: 10px 0 0 30px;
- }
- .editRole input {
- width: 200px;
- margin-bottom: 10px;
- }
- .refresh {
- font-size: 16px;
- color: #4C8FBD;
- margin-right: 30px;
- }
- .content{
- overflow-x: scroll;
- }
- /*代理商分配框 */
- #addAgentForm select{
- width: 150px;
- }
- .is_agent{
- vertical-align: middle;
- line-height: 33px;
- }
- .is_agent >input[type='checkbox']{
- display: none;
- border: none;
- border-radius: 0;
- padding: 8px;
- width: 95%;
- margin: 0;
- text-indent: 25px;
- }
- .is_agent >input[type='checkbox']+label{
- position: relative;
- padding-left: 25px;
- border: #F0F8FF;
- color: #7d7d7d;
- display: inline-block;
- font-size: 14px;
- vertical-align: text-top;
- }
- .is_agent >input[type="checkbox"]+label span:first-child{
- width: 18px;
- height: 18px;
- display: inline-block;
- border: 1px solid #7d7d7d;
- position: absolute;
- top: 1px;
- left: 4px;
- bottom: 4px;
- }
- .is_agent >input[type="checkbox"]:checked+label span:first-child:before {
- content: "";
- background: url(../static/img/tick.png) no-repeat;
- position: absolute;
- left: 3px;
- top: 3px;
- font-size: 10px;
- width: 10px;
- height: 10px;
- }
- </style>
- </head>
- <body>
- <div class="content">
- <div class="searchCover">
- <!-- 类型:
- <select style="width:150px;" name="type" id="utype">
- <option value="-1">请选择</option>
- <option value="0">超级管理员</option>
- <option value="1">管理员</option>
- <option value="2">用户</option>
- </select>
- 邮箱:
- <input type="email" class="input-user" placeholder="请输入邮箱" id="uemail" maxlength="20" onkeypress="if (event.keyCode == 13) sub_filter();"
- /> --> 用户名:
- <input type="text" class="input-user" id="uname" maxlength="32" value="" placeholder="请输入用户名" onkeypress="if (event.keyCode == 13) sub_filter();"
- />
- <button type="button" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
- <a class="refresh" onclick="addAgencyName()" href="javascript:;" style="float: right;">
- <i class="add">
- <img src="{% static '/img/addicon.png' %}" alt="" width="28">
- </i>添加新代理 </a>
- </div>
- <div class="innerTable">
- <table id="datatable" class="table table-striped table-hover">
- <thead>
- <tr>
- <td>用户名</td>
- <td>邮箱</td>
- <td>手机</td>
- <td>用户类型</td>
- <td>所属代理商</td>
- <td>是否为代理商</td>
- <td>上次登录</td>
- <td>创建时间</td>
- <!-- <td>用户等级</td> -->
- <td>操作</td>
- </tr>
- </thead>
- <tbody>
-
- </tbody>
- </table>
- <div class="fenpei-bottom">
- <input type="hidden" id="totalPage" value={{ nums }}>
- <div id="page" style="text-align: center;"></div>
- </div>
- </div>
- <div class="user-manage-top">
- <!-- 添加代理 -->
- <div id="addAgent">
- <form id="addAgentForm" action="" method="post"> {% csrf_token %}
- <div class="editRole">
- <div> 代理商列表:
- <select name="" id="role_describe">
- <option value="">无</option>
- {% for agency in agency_list %}
- <option value="{{ agency.name }}">{{ agency.name }}</option>
- {% endfor %}
- </select>
- </div>
- <div class="is_agent">是否为代理商:
- <input type="checkbox" id="is_agentBox" check="" value="">
- <label for="is_agentBox"><span> </span></label>
- </div>
- </div>
- </form>
- </div>
-
- </div>
- </div>
- <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
- <script src="{% static '/lib/layui/layui.all.js' %}"></script>
- <!-- <script src="{% static '/assets/js/newdistpicker.js' %}" type="text/javascript" charset="utf-8"></script>
- <script src="{% static '/assets/js/main.js' %}" type="text/javascript" charset="utf-8"></script> -->
- <script type="text/javascript">
- $.ajaxSetup({
- data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
- });
- </script>
- <script src="{% static '/js/usermanage/agency_view.js' %}?versions=0.5.0" type="text/javascript"></script>
- </body>
- </html>
|