1 <?php
/* Smarty version 2.6.14, created on 2009-02-05 20:08:58
2 compiled from phpgacl/assign_group.tpl */ ?
>
3 <?php
require_once(SMARTY_CORE_DIR
. 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'phpgacl/assign_group.tpl', 23, false),array('modifier', 'upper', 'phpgacl/assign_group.tpl', 54, false),)), $this); ?
>
5 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
6 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/header.tpl", 'smarty_include_vars' => array()));
7 $this->_tpl_vars
= $_smarty_tpl_vars;
8 unset($_smarty_tpl_vars);
10 <script LANGUAGE
="JavaScript">
11 <?php
echo $this->_tpl_vars
['js_array']; ?
>
14 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
15 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/acl_admin_js.tpl", 'smarty_include_vars' => array()));
16 $this->_tpl_vars
= $_smarty_tpl_vars;
17 unset($_smarty_tpl_vars);
20 <body onload
="populate(document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
21 _section,document.assign_group.elements['objects[]'], '<?php echo $this->_tpl_vars['js_array_name']; ?>
23 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
24 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/navigation.tpl", 'smarty_include_vars' => array()));
25 $this->_tpl_vars
= $_smarty_tpl_vars;
26 unset($_smarty_tpl_vars);
28 <form method
="post" name
="assign_group" action
="assign_group.php">
29 <table cellpadding
="2" cellspacing
="2" border
="2" width
="100%">
32 <th width
="32%">Sections
</th
>
33 <th width
="32%"><?php
echo $this->_tpl_vars
['object_type']; ?
>
35 <th width
="4%"> 
;</th
>
36 <th width
="32%">Selected
</th
>
38 <tr valign
="top" align
="center">
40 [ <a href
="edit_object_sections.php?object_type=<?php echo $this->_tpl_vars['group_type']; ?>
41 &return_page=<?php echo $this->_tpl_vars['return_page']; ?>
44 <select name
="<?php echo $this->_tpl_vars['group_type']; ?>
45 _section" tabindex
="0" size
="10" width
="200" onclick
="populate(document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
46 _section,document.assign_group.elements['objects[]'],'<?php echo $this->_tpl_vars['js_array_name']; ?>
48 <?php
echo smarty_function_html_options(array('options' => $this->_tpl_vars
['options_sections'],'selected' => $this->_tpl_vars
['section_value']), $this);?
>
53 [ <a href
="javascript: location.href = 'edit_objects.php?object_type=<?php echo $this->_tpl_vars['group_type']; ?>
54 §ion_value=' + document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
55 _section.options[document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
56 _section.selectedIndex].value + '&return_page=<?php echo $this->_tpl_vars['return_page']; ?>
58 [ <a href
="#" onClick
="window.open('object_search.php?src_form=assign_group&object_type=<?php echo $this->_tpl_vars['group_type']; ?>
59 §ion_value=' + document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
60 _section.options[document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
61 _section.selectedIndex].value,'','status=yes,width=400,height=400','','status=yes,width=400,height=400');">Search
</a
> ]
63 <select name
="objects[]" tabindex
="0" size
="10" width
="200" multiple
>
67 <br
/><input type
="button" class="select" name
="select" value
=" >> " onClick
="select_item(document.assign_group.<?php echo $this->_tpl_vars['group_type']; ?>
68 _section, document.assign_group.elements['objects[]'], document.assign_group.elements['selected_<?php echo $this->_tpl_vars['group_type']; ?>
70 <br
/><input type
="button" class="deselect" name
="deselect" value
=" << " onClick
="deselect_item(document.assign_group.elements['selected_<?php echo $this->_tpl_vars['group_type']; ?>
75 <select name
="selected_<?php echo $this->_tpl_vars['group_type']; ?>
76 []" tabindex
="0" size
="10" width
="200" multiple
>
77 <?php
echo smarty_function_html_options(array('options' => $this->_tpl_vars
['options_selected_objects'],'selected' => $this->_tpl_vars
['selected_object']), $this);?
>
82 <tr
class="controls" align
="center">
84 <input type
="submit" class="button" name
="action" value
="Submit"> <input type
="reset" class="button" value
="Reset">
90 <table cellpadding
="2" cellspacing
="2" border
="2" width
="100%">
92 <td colspan
="5"><b
><?php
echo $this->_tpl_vars
['total_objects']; ?
>
93 </b
> <?php
echo ((is_array($_tmp=$this->_tpl_vars
['group_type'])) ?
$this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?
>
94 s in Group
: <b
><?php
echo $this->_tpl_vars
['group_name']; ?
>
99 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
100 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/pager.tpl", 'smarty_include_vars' => array('pager_data' => $this->_tpl_vars
['paging_data'],'link' => "?group_type=".($this->_tpl_vars
['group_type'])."&group_id=".($this->_tpl_vars
['group_id'])."&")));
101 $this->_tpl_vars
= $_smarty_tpl_vars;
102 unset($_smarty_tpl_vars);
108 <th
><?php
echo $this->_tpl_vars
['object_type']; ?
>
110 <th
><?php
echo ((is_array($_tmp=$this->_tpl_vars
['group_type'])) ?
$this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?
>
112 <th width
="4%">Functions
</th
>
113 <th width
="2%"><input type
="checkbox" class="checkbox" name
="select_all" onClick
="checkAll(this)"/></th
>
115 <?php
$_from = $this->_tpl_vars
['rows']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
116 foreach ($_from as $this->_tpl_vars
['row']):
118 <tr valign
="top" align
="center">
120 <?php
echo $this->_tpl_vars
['row']['section']; ?
>
124 <?php
echo $this->_tpl_vars
['row']['name']; ?
>
128 <?php
echo $this->_tpl_vars
['row']['value']; ?
>
132 [ <a href
="acl_list.php?action=Filter&filter_<?php echo $this->_tpl_vars['group_type']; ?>
133 _section=<?php echo $this->_tpl_vars['row']['section_value']; ?>
134 &filter_<?php echo $this->_tpl_vars['group_type']; ?>
135 =<?php echo $this->_tpl_vars['row']['name']; ?>
136 &return_page=<?php echo $this->_tpl_vars['return_page']; ?>
140 <input type
="checkbox" class="checkbox" name
="delete_assigned_object[]" value
="<?php echo $this->_tpl_vars['row']['section_value']; ?>
141 ^<?php echo $this->_tpl_vars['row']['value']; ?>
145 <?php
endforeach; endif; unset($_from); ?
>
148 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
149 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/pager.tpl", 'smarty_include_vars' => array('pager_data' => $this->_tpl_vars
['paging_data'],'link' => "?")));
150 $this->_tpl_vars
= $_smarty_tpl_vars;
151 unset($_smarty_tpl_vars);
155 <tr
class="controls" align
="center">
156 <td colspan
="3"> 
;</td
>
158 <input type
="submit" class="button" name
="action" value
="Remove">
162 <input type
="hidden" name
="group_id" value
="<?php echo $this->_tpl_vars['group_id']; ?>
164 <input type
="hidden" name
="group_type" value
="<?php echo $this->_tpl_vars['group_type']; ?>
166 <input type
="hidden" name
="return_page" value
="<?php echo $this->_tpl_vars['return_page']; ?>
169 <?php
$_smarty_tpl_vars = $this->_tpl_vars
;
170 $this->_smarty_include(array('smarty_include_tpl_file' => "phpgacl/footer.tpl", 'smarty_include_vars' => array()));
171 $this->_tpl_vars
= $_smarty_tpl_vars;
172 unset($_smarty_tpl_vars);