Modal and buttons
Modal() can show full value of separate cell in modal window. Additional buttons can be added in buttons columns. Button() method supports {field_tags}
HIDE CODE
<?php
$xcrud = Xcrud::get_instance();
$xcrud->table('gallery');
$xcrud->modal('image,description');
$xcrud->change_type('image', 'image', false, array(
'width' => 450,
'path' => '../uploads/gallery',
'thumbs' => array(array(
'height' => 55,
'width' => 120,
'crop' => true,
'marker' => '_th'))));
$xcrud->button('index.php?page=modal_and_buttons&theme=bootstrap', 'bootstrap theme');
$xcrud->button('index.php?page=modal_and_buttons&theme=default', 'default theme');
echo $xcrud->render();
?>
Gallery
| # | Image | Title | Description | Active | |
|---|---|---|---|---|---|
| 1 | Yes | bootstrap theme default theme View Edit Remove | |||
| 2 | No | bootstrap theme default theme View Edit Remove | |||
| 3 | No | bootstrap theme default theme View Edit Remove | |||
| 4 | No | bootstrap theme default theme View Edit Remove | |||
| 5 | aa | Yes | bootstrap theme default theme View Edit Remove | ||
| 6 | No | bootstrap theme default theme View Edit Remove | |||
| 7 | No | bootstrap theme default theme View Edit Remove | |||
| 8 | No | bootstrap theme default theme View Edit Remove | |||
| 9 | No | bootstrap theme default theme View Edit Remove | |||
| 10 | No | bootstrap theme default theme View Edit Remove |