From 8cd3418f8cd8d61493316db2b091c9c812d547dd Mon Sep 17 00:00:00 2001 From: chenl <461625388@qq.com> Date: Fri, 28 Dec 2018 15:37:39 +0800 Subject: [PATCH] 代理商修改 --- application/admin/template/user_list/index.htm | 125 ++++++++++++++++++++++------------------- 1 files changed, 67 insertions(+), 58 deletions(-) diff --git a/application/admin/template/user_list/index.htm b/application/admin/template/user_list/index.htm index 2fdab85..24050cd 100644 --- a/application/admin/template/user_list/index.htm +++ b/application/admin/template/user_list/index.htm @@ -9,39 +9,41 @@ <div class="mDiv"> <div class="ftitle"> <h3>用户列表</h3> + <h5>(共{$pager->totalRows}条记录)</h5> </div> <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div> <form class="navbar-form form-inline" action="/login.php" method="get" onsubmit="layer_loading('正在处理');"> + {$searchform.hidden|default=''} <div class="sDiv"> <span style="font-size: 3px;">登录用户名:</span> <div class="sDiv2"> - <input type="text" size="30" name="user_name" class="qsbox" > + <input type="text" size="30" name="user_name" class="qsbox" value="{$Request.param.user_name}"> </div> <span style="font-size: 3px">手机号:</span> <div class="sDiv2"> - <input type="text" size="30" name="phone_number" class="qsbox" > + <input type="text" size="30" name="phone_number" class="qsbox" value="{$Request.param.phone_number}"> </div> <span style="font-size: 3px">注册时间:</span> <div class="sDiv2"> - <input type="text" id="min_date" name="min_date" class="qsbox" readonly="readonly" > + <input type="text" id="min_date" name="min_date" class="qsbox" value="{$Request.param.min_date}" readonly="readonly" > </div> <span style="font-size: 3px">~</span> <div class="sDiv2"> - <input type="text" id="max_date" name="max_date" class="qsbox" readonly="readonly"> + <input type="text" id="max_date" name="max_date" class="qsbox" value="{$Request.param.max_date}" readonly="readonly"> </div> - <input type="hidden" name="m" value="admin"> - <input type="hidden" name="c" value="UserList"> - <input type="hidden" name="a" value="index"> <span style="font-size: 3px">状态:</span> <div class="sDiv2"> <select name="status" class="qsbox"> <option value =""></option> - <option value ="0">无效</option> - <option value ="2">有效</option> + <option value ="0" {eq name="$Request.param.status" value="0"}selected{/eq}>无效</option> + <option value ="2" {eq name="$Request.param.status" value="2"}selected{/eq}>有效</option> </select> </div> <div class="sDiv2"> <input type="submit" class="btn" value="搜索"> + </div> + <div class="sDiv2"> + <input type="button" class="btn" value="重置" onClick="window.location.href='{:U('UserList/index')}';"> </div> </div> </form> @@ -55,7 +57,7 @@ <div style="text-align:center">登录用户名</div> </th> <th abbr="article_title" style="width: 11%"> - <div style="text-align:center">电话</div> + <div style="text-align:center">手机号</div> </th> <th abbr="article_title" style="width: 11%" > <div style="text-align:center">QQ</div> @@ -134,6 +136,7 @@ <div class="iDiv" style="display: none;"></div> </div> <!--分页位置--> + {$page} </div> </div> @@ -141,54 +144,60 @@ <script> // 暂时没有日历控件先写个临时的 - jQuery(function($){ - $.datepicker.regional['zh-CN'] = { - clearText: '清除', - clearStatus: '清除已选日期', - closeText: '关闭', - closeStatus: '不改变当前选择', - prevText: '< 上月', - prevStatus: '显示上月', - prevBigText: '<<', - prevBigStatus: '显示上一年', - nextText: '下月>', - nextStatus: '显示下月', - nextBigText: '>>', - nextBigStatus: '显示下一年', - currentText: '今天', - currentStatus: '显示本月', - monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], - monthNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], - monthStatus: '选择月份', - yearStatus: '选择年份', - weekHeader: '周', - weekStatus: '年内周次', - dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], - dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], - dayNamesMin: ['日','一','二','三','四','五','六'], - dayStatus: '设置 DD 为一周起始', - dateStatus: '选择 m月 d日, DD', - dateFormat: 'yy-mm-dd', - firstDay: 1, - initStatus: '请选择日期', - isRTL: false}; - $.datepicker.setDefaults($.datepicker.regional['zh-CN']); - }); - $.datepicker.setDefaults({ - showButtonPanel: true, - beforeShow : function( input ) { - setTimeout(function() { - var buttonPane = $(input) - .datepicker( "widget" ) - .find( ".ui-datepicker-buttonpane" ); - $( "<button>", { - text: "清除", - click: function() { - $.datepicker._clearDate(input); - } - }).addClass("ui-state-default ui-priority-primary ui-corner-all").appendTo( buttonPane ); - }, 1 ); - } + jQuery(function($){ + + // 点击刷新数据 + $('.fa-refresh').click(function(){ + location.href = location.href; + }); + + $.datepicker.regional['zh-CN'] = { + clearText: '清除', + clearStatus: '清除已选日期', + closeText: '关闭', + closeStatus: '不改变当前选择', + prevText: '< 上月', + prevStatus: '显示上月', + prevBigText: '<<', + prevBigStatus: '显示上一年', + nextText: '下月>', + nextStatus: '显示下月', + nextBigText: '>>', + nextBigStatus: '显示下一年', + currentText: '今天', + currentStatus: '显示本月', + monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], + monthStatus: '选择月份', + yearStatus: '选择年份', + weekHeader: '周', + weekStatus: '年内周次', + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + dayStatus: '设置 DD 为一周起始', + dateStatus: '选择 m月 d日, DD', + dateFormat: 'yy-mm-dd', + firstDay: 1, + initStatus: '请选择日期', + isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['zh-CN']); + }); + $.datepicker.setDefaults({ + showButtonPanel: true, + beforeShow : function( input ) { + setTimeout(function() { + var buttonPane = $(input) + .datepicker( "widget" ) + .find( ".ui-datepicker-buttonpane" ); + $( "<button>", { + text: "清除", + click: function() { + $.datepicker._clearDate(input); + } + }).addClass("ui-state-default ui-priority-primary ui-corner-all").appendTo( buttonPane ); + }, 1 ); + } }); $(() => { -- Gitblit v1.8.0