|
@@ -118,8 +118,10 @@ class UI {
|
|
|
$cols = array_keys((array)$firstRow);
|
|
$cols = array_keys((array)$firstRow);
|
|
|
}
|
|
}
|
|
|
// if (empty($cols)) return;
|
|
// if (empty($cols)) return;
|
|
|
|
|
+ $hiddenCols = V::get('hidden_cols', array(), $params);
|
|
|
|
|
+ $html_id = V::get('__html_id', '', $params);
|
|
|
?>
|
|
?>
|
|
|
- <table class="table table-bordered table-hover">
|
|
|
|
|
|
|
+ <table class="table table-bordered table-hover" <?php echo ($html_id)? 'id="' . $html_id . '"' : ''; ?>>
|
|
|
<?php if ($caption) : ?>
|
|
<?php if ($caption) : ?>
|
|
|
<caption><?php echo $caption; ?></caption>
|
|
<caption><?php echo $caption; ?></caption>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
@@ -129,17 +131,19 @@ class UI {
|
|
|
<th style="padding:2px">Lp.</th>
|
|
<th style="padding:2px">Lp.</th>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
<?php foreach ($cols as $colName) : ?>
|
|
<?php foreach ($cols as $colName) : ?>
|
|
|
|
|
+ <?php if (in_array($colName, $hiddenCols)) continue; ?>
|
|
|
<th style="padding:2px"><?php echo $colName; ?></th>
|
|
<th style="padding:2px"><?php echo $colName; ?></th>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<?php $i = 0; foreach ($rows as $row) : $i++; ?>
|
|
<?php $i = 0; foreach ($rows as $row) : $i++; ?>
|
|
|
- <tr>
|
|
|
|
|
|
|
+ <tr <?php echo (!empty($row['__js_on_click']))? 'onClick="' . $row['__js_on_click'] . '"' : ''; ?>>
|
|
|
<?php if ($showLp) : ?>
|
|
<?php if ($showLp) : ?>
|
|
|
<td style="padding:2px; color:#ccc"><?php echo $i; ?></td>
|
|
<td style="padding:2px; color:#ccc"><?php echo $i; ?></td>
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
<?php foreach ($cols as $colName) : ?>
|
|
<?php foreach ($cols as $colName) : ?>
|
|
|
|
|
+ <?php if (in_array($colName, $hiddenCols)) continue; ?>
|
|
|
<td style="padding:2px"><?php echo V::get($colName, '', $row); ?></td>
|
|
<td style="padding:2px"><?php echo V::get($colName, '', $row); ?></td>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -149,4 +153,8 @@ class UI {
|
|
|
<?php
|
|
<?php
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static function jsAjaxTable($params) {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|