1 <?php
if(!empty($list)):?>
2 <?php echo $hasMultiple ?
'<form action="'.$multipleAction.
'" method="post">' : null ?>
3 <table
class=
"dataTable <?php echo $tblName ?>List">
8 echo
'<td class="checkCell checkHead"><input type="checkbox" name="checkAll" id="checkAll" /></td>';
9 foreach($headers as $h) {
11 if ($h[
'name'] == $sortBy || $tblName.
'.'.$h[
'name'] == $sortBy) {
12 echo
'<th class="'.$h[
'name'].
'Cell '.$h[
'name'].
'Head"> 13 <a href="'.$h[
'url'].
'">'.$h[
'label'].
'</a> 14 '.($sortDir ==
'asc' ? $sortIndicatorAsc : $sortIndicatorDesc).
' 17 echo
'<th class="'.$h[
'name'].
'Cell '.$h[
'name'].
'Head"><a href="'.$h[
'url'].
'">'.$h[
'label'].
'</a></th>';
19 echo
'<th class="'.$h[
'name'].
'Cell '.$h[
'name'].
'Head">'.$h[
'label'].
'</th>';
20 if ($h[
'type'] ==
'image')
27 echo
'<th class="actionsCell actionsHead">Actions</th>';
34 foreach($list as $l) {
37 echo
'<td class="checkCell"><input type="checkbox" name="'.$multipleIdent.
'[]" value="'.$l->get($multipleIdent).
'" /></td>';
38 foreach($headers as $h) {
39 $val = $l->get($h[
'name'],
'flatReal');
49 $val = $val ? $imgHelper->view($val) : $val;
52 $val = ucfirst(
tr::__($val ?
'yes' :
'no'));
55 $tmp = $l->getTable()->getField($h[
'name']);
56 $val = isset($tmp[
'precision'][$val]) ? $tmp[
'precision'][$val] : $val;
59 echo
'<td class="'.$h[
'name'].
'Cell">'.(is_array($val)? implode(
', ', $val) : $val).
'</td>';
62 echo
'<td class="actionsCell">';
63 if (array_key_exists($i, $actions))
64 foreach($actions[$i] as $a=>$v) {
65 $img = $actionsImg[$a];
66 echo
'<a href="'.$v.
'" class="'.$a.
'">'.($img? $img : $a).
'</a> ';
78 echo
'<select name="action"> 79 <option value="">'.$multipleLabel.
'</option>';
80 foreach($multiple as $k=>$m)
81 echo
'<option value="'.$k.
'">'.$m[
'label'].
'</option>';
83 <input type="submit" value="'.$multipleSubmit.
'" /> 99 echo
'Pages : <select onchange="javascript:location.href=this.value">';
100 foreach($pageLinks as $i=>$l) {
101 if ($i == $currentPage)
102 echo
'<option value="'.$l.
'" selected="selected">'.$i.
'</option>';
104 echo
'<option value="'.$l.
'">'.$i.
'</option>';
111 <?php echo $noData ?>
static __($key, $show=false, $out=true)
static formatDate($date, $type='date', $len='short2', $htmlOut=true)
static getHelper($className, array $cfg=array())