[375] | 1 | <?php
|
---|
| 2 | $base_url = base_url();
|
---|
| 3 | $this->load->view('layout/admin/header', array('base_url' => $base_url));
|
---|
| 4 | $this->load->view('layout/admin/sidebar', array('base_url' => $base_url));
|
---|
| 5 | ?>
|
---|
| 6 | <script type="text/javascript">
|
---|
| 7 | function init_page()
|
---|
| 8 | {
|
---|
| 9 | $(".ajax_paging").click(function () {
|
---|
| 10 | $.ajax({
|
---|
| 11 | url: $(this).attr("href"),
|
---|
| 12 | type: "POST",
|
---|
| 13 | data: $("#user").serialize(),
|
---|
| 14 | success: function (data, textStatus, jqXHR)
|
---|
| 15 | {
|
---|
| 16 | $("#content").html(data);
|
---|
| 17 | init_page();
|
---|
| 18 | },
|
---|
| 19 | error: function (jqXHR, textStatus, errorThrown)
|
---|
| 20 | {
|
---|
| 21 | $(".ajaxloading").hide();
|
---|
| 22 | }
|
---|
| 23 | });
|
---|
| 24 | return false;
|
---|
| 25 | });
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | function filter()
|
---|
| 29 | {
|
---|
| 30 | $.ajax({
|
---|
| 31 | url: 'http://viettel.violet.vn/admin/nguoi_dung/trang/1',
|
---|
| 32 | type: "POST",
|
---|
| 33 | data: $("#user").serialize(),
|
---|
| 34 | success: function (data, textStatus, jqXHR)
|
---|
| 35 | {
|
---|
| 36 | $("#content").html(data);
|
---|
| 37 | init_page();
|
---|
| 38 | //$("#keyword").focus();
|
---|
| 39 | //$("#keyword").setCursorToTextEnd();
|
---|
| 40 |
|
---|
| 41 | },
|
---|
| 42 | error: function (jqXHR, textStatus, errorThrown)
|
---|
| 43 | {
|
---|
| 44 | $(".ajaxloading").hide();
|
---|
| 45 | }
|
---|
| 46 | });
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | </script>
|
---|
| 50 |
|
---|
| 51 | <div class="main-content" id="content">
|
---|
| 52 | <?php echo $content; ?>
|
---|
| 53 | </div><!-- /.main-content -->
|
---|
| 54 | </div><!-- /.main-container-inner -->
|
---|
| 55 |
|
---|
| 56 | <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
|
---|
| 57 | <i class="icon-double-angle-up icon-only bigger-110"></i>
|
---|
| 58 | </a>
|
---|
| 59 | </div><!-- /.main-container -->
|
---|
| 60 |
|
---|
| 61 | <div id="addUser" class="modal fade in" tabindex="-1">
|
---|
| 62 | <div class="modal-dialog">
|
---|
| 63 | <div class="modal-content">
|
---|
| 64 | <div class="modal-header no-padding">
|
---|
| 65 | <div class="table-header">
|
---|
| 66 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
---|
| 67 | <span class="white">Ã</span>
|
---|
| 68 | </button>
|
---|
| 69 | Thêm ngưá»i dùng
|
---|
| 70 | </div>
|
---|
| 71 | </div>
|
---|
| 72 |
|
---|
| 73 | <div class="modal-body">
|
---|
| 74 | <form id="add_user" onsubmit="return false;" class="form-horizontal" role="form">
|
---|
| 75 | <div class="form-group">
|
---|
| 76 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Sá» Äiá»n thoại </label>
|
---|
| 77 |
|
---|
| 78 | <div class="col-sm-9">
|
---|
| 79 | <span class="input-icon">
|
---|
[378] | 80 | <input name="phone" type="text" id="form-field-1" placeholder="Phone">
|
---|
[375] | 81 | <i class="icon-user blue"></i>
|
---|
| 82 | </span>
|
---|
| 83 | </div>
|
---|
| 84 | <div class="help-block"> </div>
|
---|
| 85 | </div>
|
---|
| 86 | <div class="form-group">
|
---|
[378] | 87 | <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Tên ÄÄng nháºp </label>
|
---|
[375] | 88 |
|
---|
| 89 | <div class="col-sm-9">
|
---|
| 90 | <span class="input-icon">
|
---|
[378] | 91 | <input name="login_name" type="text" id="form-field-2" placeholder="Tà i khoản">
|
---|
[375] | 92 | <i class="icon-user blue"></i>
|
---|
| 93 | </span>
|
---|
| 94 | </div>
|
---|
| 95 | <div class="help-block"> </div>
|
---|
| 96 | </div>
|
---|
| 97 |
|
---|
| 98 | <div class="form-group">
|
---|
| 99 | <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Máºt khẩu </label>
|
---|
| 100 |
|
---|
| 101 | <div class="col-sm-9">
|
---|
| 102 | <span class="input-icon">
|
---|
[378] | 103 | <input type="password" name="passwd" id="form-field-3" placeholder="Máºt khẩu">
|
---|
[375] | 104 | <i class="icon-lock blue"></i>
|
---|
| 105 | </span>
|
---|
| 106 | </div>
|
---|
| 107 | <div class="help-block"> </div>
|
---|
| 108 | </div>
|
---|
| 109 | <div class="form-group">
|
---|
[378] | 110 | <label class="col-sm-3 control-label no-padding-right" for="form-field-4"> Xác nháºn máºt khẩu </label>
|
---|
[375] | 111 |
|
---|
| 112 | <div class="col-sm-9">
|
---|
| 113 | <span class="input-icon">
|
---|
[378] | 114 | <input type="password" name="passwd2" id="form-field-4" placeholder="Nháºp lại máºt khẩu">
|
---|
[375] | 115 | <i class="icon-lock blue"></i>
|
---|
| 116 | </span>
|
---|
| 117 | </div>
|
---|
| 118 | <div class="help-block"> </div>
|
---|
| 119 | </div>
|
---|
| 120 |
|
---|
| 121 | <div class="space-4"></div>
|
---|
| 122 | <div class="form-group errors" id="add_user">
|
---|
| 123 |
|
---|
| 124 | </div>
|
---|
| 125 | <div class="clearfix form-actions">
|
---|
| 126 | <div class="col-md-offset-3 col-md-9">
|
---|
| 127 | <button class="btn btn-info" id="add_user" type="button">
|
---|
| 128 | <i class="icon-ok bigger-110"></i>
|
---|
| 129 | Hoà n tất
|
---|
| 130 | </button>
|
---|
| 131 |
|
---|
| 132 |
|
---|
| 133 | <button class="btn" type="reset">
|
---|
| 134 | <i class="icon-undo bigger-110"></i>
|
---|
| 135 | Xóa hết
|
---|
| 136 | </button>
|
---|
| 137 | </div>
|
---|
| 138 | </div>
|
---|
| 139 |
|
---|
| 140 | </form></div>
|
---|
| 141 |
|
---|
| 142 | </div>
|
---|
| 143 | </div><!-- /.modal-content -->
|
---|
| 144 | </div><!-- /.modal-dialog -->
|
---|
| 145 |
|
---|
| 146 | <?php
|
---|
| 147 | $this->load->view('layout/admin/footer', array('base_url' => $base_url));
|
---|
| 148 | ?> |
---|