Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <!-- BEGIN PAGE HEADER--> |
| 2 | <h3 class="page-title"> |
||
| 3 | Ajax Datatables <small>ajax datatable samples</small> |
||
| 4 | </h3> |
||
| 5 | <div class="page-bar"> |
||
| 6 | <ul class="page-breadcrumb"> |
||
| 7 | <li> |
||
| 8 | <i class="fa fa-home"></i> |
||
| 9 | <a href="#/dashboard.html">Home</a> |
||
| 10 | <i class="fa fa-angle-right"></i> |
||
| 11 | </li> |
||
| 12 | <li> |
||
| 13 | <a href="#/datatables/advanced.html">Datatables</a> |
||
| 14 | </li> |
||
| 15 | <li> |
||
| 16 | <a href="#/datatables/advanced.html">Ajax Datatables</a> |
||
| 17 | </li> |
||
| 18 | </ul> |
||
| 19 | <div class="page-toolbar"> |
||
| 20 | <div class="btn-group pull-right"> |
||
| 21 | <button type="button" class="btn btn-fit-height grey-salt dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"> |
||
| 22 | Actions <i class="fa fa-angle-down"></i> |
||
| 23 | </button> |
||
| 24 | <ul class="dropdown-menu pull-right" role="menu"> |
||
| 25 | <li> |
||
| 26 | <a href="#"> |
||
| 27 | <i class="icon-user"></i> New User </a> |
||
| 28 | </li> |
||
| 29 | <li> |
||
| 30 | <a href="#"> |
||
| 31 | <i class="icon-present"></i> New Event <span class="badge badge-success">4</span> |
||
| 32 | </a> |
||
| 33 | </li> |
||
| 34 | <li> |
||
| 35 | <a href="#"> |
||
| 36 | <i class="icon-basket"></i> New order </a> |
||
| 37 | </li> |
||
| 38 | <li class="divider"> |
||
| 39 | </li> |
||
| 40 | <li> |
||
| 41 | <a href="#"> |
||
| 42 | <i class="icon-flag"></i> Pending Orders <span class="badge badge-danger">4</span> |
||
| 43 | </a> |
||
| 44 | </li> |
||
| 45 | <li> |
||
| 46 | <a href="#"> |
||
| 47 | <i class="icon-users"></i> Pending Users <span class="badge badge-warning">12</span> |
||
| 48 | </a> |
||
| 49 | </li> |
||
| 50 | </ul> |
||
| 51 | </div> |
||
| 52 | </div> |
||
| 53 | </div> |
||
| 54 | <!-- END PAGE HEADER--> |
||
| 55 | <!-- BEGIN MAIN CONTENT --> |
||
| 56 | <div class="row"> |
||
| 57 | <div class="col-md-12"> |
||
| 58 | <div class="note note-danger note-bordered"> |
||
| 59 | <p> |
||
| 60 | NOTE: The below datatable is not connected to a real database so the filter and sorting is just simulated for demo purposes only. |
||
| 61 | </p> |
||
| 62 | </div> |
||
| 63 | <!-- Begin: life time stats --> |
||
| 64 | <div class="portlet light"> |
||
| 65 | <div class="portlet-title"> |
||
| 66 | <div class="caption font-green-sharp"> |
||
| 67 | <i class="icon-settings font-green-sharp"></i> |
||
| 68 | <span class="caption-subject bold uppercase">Order Listing</span> |
||
| 69 | </div> |
||
| 70 | <div class="actions"> |
||
| 71 | <a href="#" class="btn default yellow-stripe"> |
||
| 72 | <i class="fa fa-plus"></i> |
||
| 73 | <span class="hidden-480"> |
||
| 74 | New Order </span> |
||
| 75 | </a> |
||
| 76 | <div class="btn-group"> |
||
| 77 | <a class="btn default yellow-stripe" href="#" data-toggle="dropdown"> |
||
| 78 | <i class="fa fa-share"></i> |
||
| 79 | <span class="hidden-480"> |
||
| 80 | Tools </span> |
||
| 81 | <i class="fa fa-angle-down"></i> |
||
| 82 | </a> |
||
| 83 | <ul class="dropdown-menu pull-right"> |
||
| 84 | <li> |
||
| 85 | <a href="#"> |
||
| 86 | Export to Excel </a> |
||
| 87 | </li> |
||
| 88 | <li> |
||
| 89 | <a href="#"> |
||
| 90 | Export to CSV </a> |
||
| 91 | </li> |
||
| 92 | <li> |
||
| 93 | <a href="#"> |
||
| 94 | Export to XML </a> |
||
| 95 | </li> |
||
| 96 | <li class="divider"> |
||
| 97 | </li> |
||
| 98 | <li> |
||
| 99 | <a href="#"> |
||
| 100 | Print Invoices </a> |
||
| 101 | </li> |
||
| 102 | </ul> |
||
| 103 | </div> |
||
| 104 | </div> |
||
| 105 | </div> |
||
| 106 | <div class="portlet-body"> |
||
| 107 | <div class="table-container"> |
||
| 108 | <div class="table-actions-wrapper"> |
||
| 109 | <span> |
||
| 110 | </span> |
||
| 111 | <select class="table-group-action-input form-control input-inline input-small input-sm"> |
||
| 112 | <option value="">Select...</option> |
||
| 113 | <option value="Cancel">Cancel</option> |
||
| 114 | <option value="Cancel">Hold</option> |
||
| 115 | <option value="Cancel">On Hold</option> |
||
| 116 | <option value="Close">Close</option> |
||
| 117 | </select> |
||
| 118 | <button class="btn btn-sm yellow table-group-action-submit"><i class="fa fa-check"></i> Submit</button> |
||
| 119 | </div> |
||
| 120 | <table class="table table-striped table-bordered table-hover" id="datatable_ajax"> |
||
| 121 | <thead> |
||
| 122 | <tr role="row" class="heading"> |
||
| 123 | <th width="2%"> |
||
| 124 | <input type="checkbox" class="group-checkable"> |
||
| 125 | </th> |
||
| 126 | <th width="5%"> |
||
| 127 | Record # |
||
| 128 | </th> |
||
| 129 | <th width="15%"> |
||
| 130 | Date |
||
| 131 | </th> |
||
| 132 | <th width="15%"> |
||
| 133 | Customer |
||
| 134 | </th> |
||
| 135 | <th width="10%"> |
||
| 136 | Ship To |
||
| 137 | </th> |
||
| 138 | <th width="10%"> |
||
| 139 | Price |
||
| 140 | </th> |
||
| 141 | <th width="10%"> |
||
| 142 | Amount |
||
| 143 | </th> |
||
| 144 | <th width="10%"> |
||
| 145 | Status |
||
| 146 | </th> |
||
| 147 | <th width="10%"> |
||
| 148 | Actions |
||
| 149 | </th> |
||
| 150 | </tr> |
||
| 151 | <tr role="row" class="filter"> |
||
| 152 | <td> |
||
| 153 | </td> |
||
| 154 | <td> |
||
| 155 | <input type="text" class="form-control form-filter input-sm" name="order_id"> |
||
| 156 | </td> |
||
| 157 | <td> |
||
| 158 | <div class="input-group date date-picker margin-bottom-5" data-date-format="dd/mm/yyyy"> |
||
| 159 | <input type="text" class="form-control form-filter input-sm" readonly name="order_date_from" placeholder="From"> |
||
| 160 | <span class="input-group-btn"> |
||
| 161 | <button class="btn btn-sm default" type="button"><i class="fa fa-calendar"></i></button> |
||
| 162 | </span> |
||
| 163 | </div> |
||
| 164 | <div class="input-group date date-picker" data-date-format="dd/mm/yyyy"> |
||
| 165 | <input type="text" class="form-control form-filter input-sm" readonly name="order_date_to" placeholder="To"> |
||
| 166 | <span class="input-group-btn"> |
||
| 167 | <button class="btn btn-sm default" type="button"><i class="fa fa-calendar"></i></button> |
||
| 168 | </span> |
||
| 169 | </div> |
||
| 170 | </td> |
||
| 171 | <td> |
||
| 172 | <input type="text" class="form-control form-filter input-sm" name="order_customer_name"> |
||
| 173 | </td> |
||
| 174 | <td> |
||
| 175 | <input type="text" class="form-control form-filter input-sm" name="order_ship_to"> |
||
| 176 | </td> |
||
| 177 | <td> |
||
| 178 | <div class="margin-bottom-5"> |
||
| 179 | <input type="text" class="form-control form-filter input-sm" name="order_price_from" placeholder="From"/> |
||
| 180 | </div> |
||
| 181 | <input type="text" class="form-control form-filter input-sm" name="order_price_to" placeholder="To"/> |
||
| 182 | </td> |
||
| 183 | <td> |
||
| 184 | <div class="margin-bottom-5"> |
||
| 185 | <input type="text" class="form-control form-filter input-sm margin-bottom-5 clearfix" name="order_quantity_from" placeholder="From"/> |
||
| 186 | </div> |
||
| 187 | <input type="text" class="form-control form-filter input-sm" name="order_quantity_to" placeholder="To"/> |
||
| 188 | </td> |
||
| 189 | <td> |
||
| 190 | <select name="order_status" class="form-control form-filter input-sm"> |
||
| 191 | <option value="">Select...</option> |
||
| 192 | <option value="pending">Pending</option> |
||
| 193 | <option value="closed">Closed</option> |
||
| 194 | <option value="hold">On Hold</option> |
||
| 195 | <option value="fraud">Fraud</option> |
||
| 196 | </select> |
||
| 197 | </td> |
||
| 198 | <td> |
||
| 199 | <div class="margin-bottom-5"> |
||
| 200 | <button class="btn btn-sm yellow filter-submit margin-bottom"><i class="fa fa-search"></i> Search</button> |
||
| 201 | </div> |
||
| 202 | <button class="btn btn-sm red filter-cancel"><i class="fa fa-times"></i> Reset</button> |
||
| 203 | </td> |
||
| 204 | </tr> |
||
| 205 | </thead> |
||
| 206 | <tbody> |
||
| 207 | </tbody> |
||
| 208 | </table> |
||
| 209 | </div> |
||
| 210 | </div> |
||
| 211 | </div> |
||
| 212 | <!-- End: life time stats --> |
||
| 213 | </div> |
||
| 214 | </div> |
||
| 215 | <!-- END MAIN CONTENT --> |
||
| 216 | <!-- BEGIN MAIN JS --> |
||
| 217 | <script> |
||
| 218 | TableAjax.init(); |
||
| 219 | </script> |
||
| 220 | <!-- END MAIN JS --> |