~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to theme/default/html/dataset_form_column_grid.php

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Xibo - Digital Signage - http://www.xibo.org.uk
4
 
 * Copyright (C) 2006-2013 Daniel Garner
5
 
 *
6
 
 * This file is part of Xibo.
7
 
 *
8
 
 * Xibo is free software: you can redistribute it and/or modify
9
 
 * it under the terms of the GNU Affero General Public License as published by
10
 
 * the Free Software Foundation, either version 3 of the License, or
11
 
 * any later version. 
12
 
 *
13
 
 * Xibo is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU Affero General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Affero General Public License
19
 
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
20
 
 *
21
 
 * Theme variables:
22
 
 *      table_rows = Array containing the table rows
23
 
 *        topic = 
24
 
 *        category = 
25
 
 *        link = 
26
 
 *        buttons = The buttons enabled for the layout
27
 
 *          id = The ID of the button
28
 
 *          text = The Text for the button
29
 
 *          url = The URL of the button
30
 
 */
31
 
use Xibo\Helper\Theme;
32
 
 
33
 
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
34
 
?>
35
 
<table class="table">
36
 
        <thead>
37
 
                <tr>
38
 
                        <th><?php echo Theme::Translate('Heading'); ?></th>
39
 
                        <th><?php echo Theme::Translate('List Content'); ?></th>
40
 
                        <th><?php echo Theme::Translate('Column Order'); ?></th>
41
 
                        <th><?php echo Theme::Translate('Data Type'); ?></th>
42
 
                        <th><?php echo Theme::Translate('Column Type'); ?></th>
43
 
                </tr>
44
 
        </thead>
45
 
        <tbody>
46
 
                <?php foreach(Theme::Get('table_rows') as $row) { ?>
47
 
                <tr>
48
 
                        <td><?php echo $row['heading']; ?></td>
49
 
                        <td><?php echo $row['listcontent']; ?></td>
50
 
                        <td><?php echo $row['columnorder']; ?></td>
51
 
                        <td><?php echo $row['datatype']; ?></td>
52
 
                        <td><?php echo $row['datasetcolumntype']; ?></td>
53
 
                        <td>
54
 
                                <div class="btn-group pull-right">
55
 
                                <button class="btn dropdown-toggle" data-toggle="dropdown">
56
 
                                        <?php echo Theme::Translate('Action'); ?>
57
 
                                        <span class="glyphicon glyphicon-tasks"></span>
58
 
                                </button>
59
 
                                <ul class="dropdown-menu">
60
 
                                                <?php foreach($row['buttons'] as $button) { ?>
61
 
                                                <li class="<?php echo (($button['id'] == 'layout_button_design') ? 'XiboRedirectButton' : 'XiboFormButton'); ?>" href="<?php echo $button['url']; ?>"><a tabindex="-1" href="#"><?php echo $button['text']; ?></a></li>
62
 
                                                <?php } ?>
63
 
                                </ul>
64
 
                                </div>
65
 
                        </td>
66
 
                </tr>
67
 
                <?php } ?>
68
 
        </tbody>
69
 
</table>
 
 
b'\\ No newline at end of file'