source: pro-violet-viettel/sourcecode/application/modules/admin/views/smstemplate/listview.php @ 762

Last change on this file since 762 was 576, checked in by quyenla, 10 years ago
File size: 10.3 KB
Line 
1<div id="breadcrumbs" class="breadcrumbs">
2
3    <ul class="breadcrumb">
4        <li>
5            <i class="icon-home home-icon"></i>
6            <a href="#">Trang chá»§</a>
7        </li>
8
9        <li>
10            <a href="#">Quản lÜ tin nhắn</a>
11        </li>
12       
13    </ul><!-- .breadcrumb -->
14
15    <div id="nav-search" class="nav-search">
16        <form class="form-search">
17            <span class="input-icon">
18                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ...">
19                <i class="icon-search nav-search-icon"></i>
20            </span>
21        </form>
22    </div><!-- #nav-search -->
23</div>
24<div class="page-content">
25    <div class="page-header">
26        <h1>
27            Tin nhắn
28            <small>
29                <i class="icon-double-angle-right"></i>
30                Mẫu tin nhắn
31            </small>
32        </h1>
33    </div><!-- /.page-header -->
34
35    <div class="row">
36        <div class="col-xs-12">
37            <!-- PAGE CONTENT BEGINS -->
38            <div style="padding-bottom:4px" class="table-header">
39                Tin nhắn
40
41                <button href="#addSms" data-toggle="modal" class="btn btn-success pull-right">
42                    <i class="icon-plus"></i>
43                    Thêm tin nhắn
44                </button>
45
46            </div>
47
48            <div class="table-responsive">
49                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
50                    <form autocomplete="off" onsubmit="return false;" id="collaborator" >
51                        <div class="row">
52                            <div class="col-sm-6">
53                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
54                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                     
55                                            <?php foreach ($itemsoptions as $option) { ?>
56                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?php echo $option;?>"><?php echo $option;?></option>
57                                            <?php } ?>
58                                        </select> bản ghi</label>
59
60                                </div>
61                            </div>
62
63                            <div class="col-sm-6">
64                                <div class="dataTables_filter" id="sample-table-2_filter">
65                                    <label>Tìm kiếm:
66                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
67                                </div>
68                            </div>
69                        </div>
70                        <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" />
71                        <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/>
72                    </form>
73                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
74                        <thead>
75                            <tr role="row">
76                               
77                             
78                                <th class="<?php if ($sorting_field == 'sms_content') {echo $sorting_order;} else {echo "sorting";}?>" id="sms_content" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 283px;" aria-label="Họ tên: activate to sort column ascending">SMS Content</th>
79                                <th class="<?php if ($sorting_field == 'sms_reply') {echo $sorting_order;} else {echo "sorting";}?>" id="sms_reply" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">SMS Reply</th>
80                                <th class="<?php if ($sorting_field == 'service_id') {echo $sorting_order;} else {echo "sorting";}?>" id="service_id" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Service Id</th>
81                                <th class="<?php if ($sorting_field == 'commandcode') {echo $sorting_order;} else {echo "sorting";}?>" id="commandcode" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày đăng kÜ: activate to sort column ascending">Command Code</th>
82                                   <th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label="">Chức năng</th></tr>
83                        </thead>
84
85
86                        <tbody role="alert" aria-live="polite" aria-relevant="all">
87                           
88                            <?php
89                            foreach ($smstemplates as $smstemplate) {
90                                ?>
91                            <tr class="odd">
92                               
93                               
94                                <td class=" "><?php echo $smstemplate['sms_content']?></td>
95                                <td class=" ">
96                                    <a href="#"><?php echo $smstemplate['sms_reply']?></a>
97                                </td>
98                                <td class="hidden-480 "><?php echo $smstemplate['service_id']?></td>
99                                <td class=" "><?php echo $smstemplate['commandcode']?></td>
100
101                               
102
103                                <td class=" ">
104                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
105                                        <a href="#" class="blue">
106                                            <i data-toggle="ajaxModal" href='<?php echo base_url();?>admin/mau_tin_nhan/xem/<?php echo $smstemplate['sms_id'];?>'  class="icon-zoom-in bigger-130"></i>
107                                        </a>
108
109                                        <a href="#" class="green">
110                                            <i data-toggle="ajaxModal" href='<?php echo base_url();?>admin/mau_tin_nhan/sua/<?php echo $smstemplate['sms_id'];?>' data-toggle="modal" href='#editUser' class="icon-pencil bigger-130"></i>
111                                        </a>
112
113                                        <a href="#" class="red">
114                                            <i data-toggle="ajaxModal" href='<?php echo base_url();?>admin/mau_tin_nhan/xoa/<?php echo $smstemplate['sms_id'];?>' data-toggle="modal" href='#deleteUser' class="icon-trash bigger-130"></i>
115                                        </a>
116                                    </div>
117
118                                    <div class="visible-xs visible-sm hidden-md hidden-lg">
119                                        <div class="inline position-relative">
120                                            <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
121                                                <i class="icon-caret-down icon-only bigger-120"></i>
122                                            </button>
123
124                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
125                                                <li>
126                                                    <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
127                                                        <span class="blue">
128                                                            <i class="icon-zoom-in bigger-120"></i>
129                                                        </span>
130                                                    </a>
131                                                </li>
132
133                                                <li>
134                                                    <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
135                                                        <span class="green">
136                                                            <i class="icon-edit bigger-120"></i>
137                                                        </span>
138                                                    </a>
139                                                </li>
140
141                                                <li>
142                                                    <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
143                                                        <span class="red">
144                                                            <i class="icon-trash bigger-120"></i>
145                                                        </span>
146                                                    </a>
147                                                </li>
148                                            </ul>
149                                        </div>
150                                    </div>
151                                </td>
152                            </tr>
153                            <?php } ?>
154
155
156
157
158
159
160
161                        </tbody></table><div class="row"><div class="col-sm-6">
162                                <div class="dataTables_info" id="sample-table-2_info">Hiển thị <?php echo ($start+1)?> đến <?php echo ($start+$perpage)?> cá»§a <?php echo $total?> bản ghi</div>
163                                   
164                            </div>
165                        <div class="col-sm-6">
166                            <div class="dataTables_paginate paging_bootstrap">
167                                <ul class="pagination">
168                                    <?php echo $paging; ?>
169                                </ul>
170                            </div>
171                        </div>
172                    </div>
173
174                </div>
175            </div>
176
177           
178        </div>
179
180        <!-- PAGE CONTENT ENDS -->
181    </div><!-- /.col -->
182</div>
183<script type="text/javascript">
184    window.onload = function ()
185    {
186        init_page();
187    }
188
189
190</script>
Note: See TracBrowser for help on using the repository browser.