Размер файла: 4.44Kb
<form class="ScheduleList" action="<?=cn('ajax_action_multiple')?>">
<div class="row">
<div class="clearfix"></div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
<i class="fa fa-floppy-o" aria-hidden="true"></i> <?=l('Save management')?>
</h2>
</div>
<div class="header">
<div class="form-inline">
<div class="btn-group" role="group">
<div class="btn-group" role="group">
<button type="button" class="btn bg-red waves-effect dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?=l('Action')?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a class="btnActionModule" data-action="active" href="javascript:void(0);"><?=l('Active')?></a></li>
<li><a class="btnActionModule" data-action="disable" href="javascript:void(0);"><?=l('Deactive')?></a></li>
<li><a class="btnActionModule" data-action="delete" data-confirm="<?=l('Are you sure you want to delete this items?')?>" href="javascript:void(0);"><?=l('Delete')?></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="body p0">
<table class="table table-bordered table-striped table-hover js-dataTable dataTable mb0">
<thead>
<tr>
<th style="width: 10px;">
<input type="checkbox" id="md_checkbox_211" class="filled-in chk-col-red checkAll">
<label class="p0 m0" for="md_checkbox_211"> </label>
</th>
<th><?=l('Name')?></th>
<th><?=l('Category')?></th>
<th><?=l('Type')?></th>
<th><?=l('Status')?></th>
<th><?=l('Option')?></th>
</tr>
</thead>
<tbody>
<?php
if(!empty($result)){
foreach ($result as $key => $row) {
?>
<tr class="pending" data-action="<?=cn('ajax_action_item')?>" data-id="<?=$row->id?>">
<td>
<input type="checkbox" name="id[]" id="md_checkbox_<?=$key?>" class="filled-in chk-col-red checkItem" value="<?=$row->id?>">
<label class="p0 m0" for="md_checkbox_<?=$key?>"> </label>
</td>
<td><?=$row->name?></td>
<td><?=$row->category?></td>
<td><?=$row->type?></td>
<td style="width: 60px;">
<div class="switch">
<label><input type="checkbox" class="btnActionModuleItem" <?=$row->status==1?"checked":""?>><span class="lever switch-col-light-blue"></span></label>
</div>
</td>
<td style="width: 80px;">
<div class="btn-group" role="group">
<button type="button" class="btn bg-light-green waves-effect btnActionModuleItem" data-action="delete" data-confirm="<?=l('Are you sure you want to delete this item?')?>"><i class="fa fa-trash" aria-hidden="true"></i></button>
</div>
</td>
</tr>
<?php }}?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>