Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/views/grid_template.php | ||
---|---|---|
<?php echo ($filter) ? $filter.'<br />' : '' ?>
|
||
<?php echo empty($buttons) ? '' : implode(' | ', $buttons).'<br /><br />' ?>
|
||
|
||
<?php if(isset($items)): ?>
|
||
|
||
<?php if ($form)
|
||
{
|
||
echo form::open(NULL, array('class' => 'grid_form'));
|
||
echo form::open(NULL, array('class' => 'grid_form', 'method' => $method));
|
||
|
||
if (isset($form_extra_buttons["position"]) && $form_extra_buttons["position"] == 'top')
|
||
{
|
||
... | ... | |
else if ($field instanceof Action_Field)
|
||
{
|
||
?>
|
||
<th class="{sorter: false}"><?php echo $field->label?><?php if ($field->help!='') echo $field->help ?>
|
||
<th class="noprint {sorter: false}"><?php echo $field->label?><?php if ($field->help!='') echo $field->help ?>
|
||
</th>
|
||
<?php
|
||
}
|
||
... | ... | |
if (count($field->actions_fields))
|
||
{
|
||
?>
|
||
<th class="{sorter: false}"><?php echo $field->label?><?php if ($field->help!='') echo $field->help ?>
|
||
<th class="noprint {sorter: false}"><?php echo $field->label?><?php if ($field->help!='') echo $field->help ?>
|
||
</th>
|
||
<?php
|
||
}
|
||
... | ... | |
}
|
||
|
||
$property = $action_field->name;
|
||
|
||
// do not display row with empty property
|
||
if (!$item->$property)
|
||
continue;
|
||
|
||
$class = array();
|
||
|
||
if (!empty($action_field->class))
|
||
... | ... | |
$href = $item->$property;
|
||
$property = $field->data_name;
|
||
$text = $item->$property;
|
||
$property = $field->data_title;
|
||
$title = ($property) ? $item->$property : '';
|
||
|
||
echo '<td class="noprint">';
|
||
echo '<td>';
|
||
|
||
if (!empty($href))
|
||
{
|
||
echo html::anchor($field->url.'/'.$href, $text, array
|
||
(
|
||
'script' => $field->script,
|
||
'class' => $field->class
|
||
'class' => $field->class,
|
||
'title' => $title
|
||
));
|
||
}
|
||
else
|
||
... | ... | |
if ($field instanceof Callback_Field || $field instanceof Order_Callback_Field)
|
||
{
|
||
if (isset($field->callback))
|
||
{
|
||
if (!is_callable($field->callback))
|
||
$field->callback = 'callback::'.$field->callback;
|
||
|
||
call_user_func($field->callback, $item, $field->name, $field->args['callback']);
|
||
}
|
||
else
|
||
echo $item->$field;
|
||
}
|
||
... | ... | |
echo $form_extra_button;
|
||
}
|
||
|
||
echo form::submit('submit', $form_submit_value);
|
||
echo form::submit('submit', $form_submit_value, ' class="submit"');
|
||
echo form::close();
|
||
}
|
||
?>
|
||
|
||
<?php echo $paginator; ?>
|
||
<?php echo $selector; ?>
|
||
|
||
<?php endif ?>
|
||
|
||
</div>
|
Také k dispozici: Unified diff
Release 1.1.0