~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to web/theme/default/html/displaygroup_fileassociations_form_assign.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
 *      layout_form_add_url = The URL for calling the Layout Add Form
 
23
 *      id = The GridID for rendering AJAX layout table return
 
24
 *      filter_id = The Filter Form ID
 
25
 *      form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
 
26
 *      pager = A paging control for this Xibo Grid
 
27
 */
 
28
use Xibo\Helper\Theme;
 
29
 
 
30
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
 
31
?>
 
32
<div id="FileAssociationsAssign" class="well">
 
33
        <div>
 
34
        <ul id="FileAssociationsSortable">
 
35
                <?php foreach(Theme::Get('existing_associations') as $row) { ?>
 
36
                        <li id="MediaID_<?php echo $row['MediaID']; ?>" class="li-sortable"><?php echo $row['Name']; ?><span class="glyphicon glyphicon-minus-sign"></span></li>
 
37
                <?php } ?>
 
38
        </ul>
 
39
    </div>
 
40
</div>
 
41
<div class="XiboGrid" id="<?php echo Theme::Get('id'); ?>">
 
42
        <div class="XiboFilter">
 
43
                <div class="FilterDiv" id="Filter">
 
44
                        <form>
 
45
                                <?php echo Theme::Get('form_meta'); ?>
 
46
                        
 
47
                                <table class="filterform">
 
48
                                        <tr>
 
49
                                                <td><?php echo Theme::Translate('Name') ?></td>
 
50
                                                <td><input class="form-control" type="text" name="filter_name" value="<?php echo Theme::Get('filter_name'); ?>"></td>
 
51
                                                <td><?php echo Theme::Translate('Type') ?></td>
 
52
                                                <td><?php echo Theme::SelectList('filter_type', Theme::Get('module_field_list'), 'moduleid', 'module', Theme::Get('filter_type')); ?></td>
 
53
                                        </tr>
 
54
                                </table>
 
55
                        </form>
 
56
                </div>
 
57
        </div>
 
58
        <div class="XiboData"></div>
 
59
        <?php echo Theme::Get('pager'); ?>
 
60
</div>