* Refact browse page, create page, edit page, view page, linkcase page of testsuite.

This commit is contained in:
liugang
2018-05-11 16:07:54 +08:00
parent b2b0766275
commit 0eeaeb1219
19 changed files with 975 additions and 726 deletions
+5 -4
View File
@@ -125,13 +125,14 @@ class datatableModel extends model
$id = $col->id;
if($col->show)
{
$fixed = $col->fixed == 'no' ? 'true': 'false';
$width = is_numeric($col->width) ? "{$col->width}px" : $col->width;
$title = isset($col->name) ? "title='$col->name'" : '';
$fixed = $col->fixed == 'no' ? 'true': 'false';
$width = is_numeric($col->width) ? "{$col->width}px" : $col->width;
$title = isset($col->name) ? "title='$col->name'" : '';
if($id == 'id' and (int)$width < 90) $width = '90px';
$width = "data-width='$width' style='width:$width'";
$align = $id == 'actions' ? 'text-center' : '';
echo "<th data-flex='$fixed' $width class='c-$id' $title>";
echo "<th data-flex='$fixed' $width class='c-$id $align' $title>";
if($id == 'actions')
{
echo $this->lang->actions;