1 | <?php $this->_tpl_include('overall_header.html'); ?>
|
---|
2 |
|
---|
3 | <a name="maincontent"></a>
|
---|
4 |
|
---|
5 | <?php if ($this->_rootref['S_DELETE']) { ?>
|
---|
6 |
|
---|
7 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
8 |
|
---|
9 | <h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>
|
---|
10 |
|
---|
11 | <p><?php echo ((isset($this->_rootref['L_EXPLAIN'])) ? $this->_rootref['L_EXPLAIN'] : ((isset($user->lang['EXPLAIN'])) ? $user->lang['EXPLAIN'] : '{ EXPLAIN }')); ?></p>
|
---|
12 |
|
---|
13 | <form id="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
14 |
|
---|
15 | <fieldset>
|
---|
16 | <legend><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></legend>
|
---|
17 | <dl>
|
---|
18 | <dt><label><?php echo ((isset($this->_rootref['L_NAME'])) ? $this->_rootref['L_NAME'] : ((isset($user->lang['NAME'])) ? $user->lang['NAME'] : '{ NAME }')); ?>:</label></dt>
|
---|
19 | <dd><strong><?php echo (isset($this->_rootref['NAME'])) ? $this->_rootref['NAME'] : ''; ?></strong></dd>
|
---|
20 | </dl>
|
---|
21 | <dl>
|
---|
22 | <dt><label for="new_id"><?php echo ((isset($this->_rootref['L_REPLACE'])) ? $this->_rootref['L_REPLACE'] : ((isset($user->lang['REPLACE'])) ? $user->lang['REPLACE'] : '{ REPLACE }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_REPLACE_EXPLAIN'])) ? $this->_rootref['L_REPLACE_EXPLAIN'] : ((isset($user->lang['REPLACE_EXPLAIN'])) ? $user->lang['REPLACE_EXPLAIN'] : '{ REPLACE_EXPLAIN }')); ?></span></dt>
|
---|
23 | <dd><select name="new_id"><?php echo (isset($this->_rootref['S_REPLACE_OPTIONS'])) ? $this->_rootref['S_REPLACE_OPTIONS'] : ''; ?></select></dd>
|
---|
24 | </dl>
|
---|
25 |
|
---|
26 | <p class="quick">
|
---|
27 | <input class="button1" type="submit" name="update" value="<?php echo ((isset($this->_rootref['L_DELETE'])) ? $this->_rootref['L_DELETE'] : ((isset($user->lang['DELETE'])) ? $user->lang['DELETE'] : '{ DELETE }')); ?>" />
|
---|
28 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
29 | </p>
|
---|
30 | </fieldset>
|
---|
31 | </form>
|
---|
32 |
|
---|
33 | <?php } else if ($this->_rootref['S_EDIT_IMAGESET']) { ?>
|
---|
34 |
|
---|
35 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
36 |
|
---|
37 | <h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>
|
---|
38 |
|
---|
39 | <p><?php echo ((isset($this->_rootref['L_EXPLAIN'])) ? $this->_rootref['L_EXPLAIN'] : ((isset($user->lang['EXPLAIN'])) ? $user->lang['EXPLAIN'] : '{ EXPLAIN }')); ?></p>
|
---|
40 |
|
---|
41 | <?php if ($this->_rootref['SUCCESS']) { ?>
|
---|
42 | <div class="successbox">
|
---|
43 | <p><?php echo ((isset($this->_rootref['L_IMAGESET_UPDATED'])) ? $this->_rootref['L_IMAGESET_UPDATED'] : ((isset($user->lang['IMAGESET_UPDATED'])) ? $user->lang['IMAGESET_UPDATED'] : '{ IMAGESET_UPDATED }')); ?></p>
|
---|
44 | </div>
|
---|
45 | <?php } if ($this->_rootref['ERROR']) { ?>
|
---|
46 | <div class="errorbox">
|
---|
47 | <p><?php echo ((isset($this->_rootref['L_NO_IMAGE'])) ? $this->_rootref['L_NO_IMAGE'] : ((isset($user->lang['NO_IMAGE'])) ? $user->lang['NO_IMAGE'] : '{ NO_IMAGE }')); ?></p>
|
---|
48 | </div>
|
---|
49 | <?php } ?>
|
---|
50 |
|
---|
51 | <script type="text/javascript" defer="defer">
|
---|
52 | // <![CDATA[
|
---|
53 | function update_image(newimage)
|
---|
54 | {
|
---|
55 | document.getElementById('newimg').src = (newimage) ? '../styles/<?php echo (isset($this->_rootref['A_NAME'])) ? $this->_rootref['A_NAME'] : ''; ?>/imageset/' + encodeURI(newimage) : 'images/no_image.png';
|
---|
56 | }
|
---|
57 | // ]]>
|
---|
58 | </script>
|
---|
59 | <script type="text/javascript">
|
---|
60 | // <![CDATA[
|
---|
61 | /**
|
---|
62 | * Handle displaying/hiding the dimension fields
|
---|
63 | */
|
---|
64 | function display_options(value)
|
---|
65 | {
|
---|
66 | if (value == 0)
|
---|
67 | {
|
---|
68 | dE('img_dimensions', -1);
|
---|
69 | }
|
---|
70 | else
|
---|
71 | {
|
---|
72 | dE('img_dimensions', 1);
|
---|
73 | }
|
---|
74 | }
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * Init the wanted display functionality if javascript is enabled.
|
---|
78 | * If javascript is not available, the user is still able to properly administrate.
|
---|
79 | */
|
---|
80 | onload = function()
|
---|
81 | {
|
---|
82 | <?php if (! $this->_rootref['IMAGE_SIZE']) { ?>
|
---|
83 | dE('img_dimensions', -1);
|
---|
84 | <?php } ?>
|
---|
85 | }
|
---|
86 | // ]]>
|
---|
87 | </script>
|
---|
88 |
|
---|
89 | <form method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
90 |
|
---|
91 | <fieldset class="quick" style="text-align: left;">
|
---|
92 | <legend><?php echo ((isset($this->_rootref['L_SELECT_IMAGE'])) ? $this->_rootref['L_SELECT_IMAGE'] : ((isset($user->lang['SELECT_IMAGE'])) ? $user->lang['SELECT_IMAGE'] : '{ SELECT_IMAGE }')); ?></legend>
|
---|
93 | <?php echo ((isset($this->_rootref['L_SELECT_IMAGE'])) ? $this->_rootref['L_SELECT_IMAGE'] : ((isset($user->lang['SELECT_IMAGE'])) ? $user->lang['SELECT_IMAGE'] : '{ SELECT_IMAGE }')); ?>: <select name="imgname" onchange="this.form.submit();">
|
---|
94 | <?php $_category_count = (isset($this->_tpldata['category'])) ? sizeof($this->_tpldata['category']) : 0;if ($_category_count) {for ($_category_i = 0; $_category_i < $_category_count; ++$_category_i){$_category_val = &$this->_tpldata['category'][$_category_i]; ?>
|
---|
95 | <option class="sep" value="" disabled="disabled"><?php echo $_category_val['NAME']; ?></option>
|
---|
96 | <?php $_images_count = (isset($_category_val['images'])) ? sizeof($_category_val['images']) : 0;if ($_images_count) {for ($_images_i = 0; $_images_i < $_images_count; ++$_images_i){$_images_val = &$_category_val['images'][$_images_i]; ?><option value="<?php echo $_images_val['VALUE']; ?>"<?php if ($_images_val['SELECTED']) { ?> selected="selected"<?php } ?>> <?php echo $_images_val['TEXT']; ?></option>
|
---|
97 | <?php }} }} ?>
|
---|
98 | </select> <input class="button1" type="submit" value="<?php echo ((isset($this->_rootref['L_SELECT'])) ? $this->_rootref['L_SELECT'] : ((isset($user->lang['SELECT'])) ? $user->lang['SELECT'] : '{ SELECT }')); ?>" tabindex="100" />
|
---|
99 | </fieldset>
|
---|
100 |
|
---|
101 | <fieldset>
|
---|
102 | <legend><?php echo ((isset($this->_rootref['L_EDIT_IMAGESET'])) ? $this->_rootref['L_EDIT_IMAGESET'] : ((isset($user->lang['EDIT_IMAGESET'])) ? $user->lang['EDIT_IMAGESET'] : '{ EDIT_IMAGESET }')); ?></legend>
|
---|
103 | <dl>
|
---|
104 | <dt><label><?php echo ((isset($this->_rootref['L_CURRENT_IMAGE'])) ? $this->_rootref['L_CURRENT_IMAGE'] : ((isset($user->lang['CURRENT_IMAGE'])) ? $user->lang['CURRENT_IMAGE'] : '{ CURRENT_IMAGE }')); ?>:</label></dt>
|
---|
105 | <dd><img src="<?php if ($this->_rootref['IMAGE_REQUEST']) { echo (isset($this->_rootref['IMAGE_REQUEST'])) ? $this->_rootref['IMAGE_REQUEST'] : ''; } else { ?>images/no_image.png<?php } ?>" alt="" /></dd>
|
---|
106 | </dl>
|
---|
107 | <dl>
|
---|
108 | <dt><label><?php echo ((isset($this->_rootref['L_SELECTED_IMAGE'])) ? $this->_rootref['L_SELECTED_IMAGE'] : ((isset($user->lang['SELECTED_IMAGE'])) ? $user->lang['SELECTED_IMAGE'] : '{ SELECTED_IMAGE }')); ?>:</label></dt>
|
---|
109 | <dd><img src="<?php echo (isset($this->_rootref['IMG_SRC'])) ? $this->_rootref['IMG_SRC'] : ''; ?>" id="newimg" alt="" /></dd>
|
---|
110 | </dl>
|
---|
111 | </fieldset>
|
---|
112 |
|
---|
113 | <fieldset>
|
---|
114 | <legend><?php echo ((isset($this->_rootref['L_IMAGE'])) ? $this->_rootref['L_IMAGE'] : ((isset($user->lang['IMAGE'])) ? $user->lang['IMAGE'] : '{ IMAGE }')); ?></legend>
|
---|
115 | <dl>
|
---|
116 | <dt><label for="imgpath"><?php echo ((isset($this->_rootref['L_IMAGE'])) ? $this->_rootref['L_IMAGE'] : ((isset($user->lang['IMAGE'])) ? $user->lang['IMAGE'] : '{ IMAGE }')); ?>:</label></dt>
|
---|
117 | <dd><select id="imgpath" name="imgpath" onchange="update_image(this.options[selectedIndex].value);"><option value=""<?php if (! $this->_rootref['IMAGE_SELECT']) { ?> selected="selected"<?php } ?>><?php echo ((isset($this->_rootref['L_NO_IMAGE'])) ? $this->_rootref['L_NO_IMAGE'] : ((isset($user->lang['NO_IMAGE'])) ? $user->lang['NO_IMAGE'] : '{ NO_IMAGE }')); ?></option>
|
---|
118 | <?php $_imagesetlist_count = (isset($this->_tpldata['imagesetlist'])) ? sizeof($this->_tpldata['imagesetlist']) : 0;if ($_imagesetlist_count) {for ($_imagesetlist_i = 0; $_imagesetlist_i < $_imagesetlist_count; ++$_imagesetlist_i){$_imagesetlist_val = &$this->_tpldata['imagesetlist'][$_imagesetlist_i]; ?>
|
---|
119 | <option class="sep" value=""><?php if ($_imagesetlist_val['TYPE']) { echo ((isset($this->_rootref['L_LOCALISED_IMAGES'])) ? $this->_rootref['L_LOCALISED_IMAGES'] : ((isset($user->lang['LOCALISED_IMAGES'])) ? $user->lang['LOCALISED_IMAGES'] : '{ LOCALISED_IMAGES }')); } else { echo ((isset($this->_rootref['L_GLOBAL_IMAGES'])) ? $this->_rootref['L_GLOBAL_IMAGES'] : ((isset($user->lang['GLOBAL_IMAGES'])) ? $user->lang['GLOBAL_IMAGES'] : '{ GLOBAL_IMAGES }')); } ?></option>
|
---|
120 | <?php $_images_count = (isset($_imagesetlist_val['images'])) ? sizeof($_imagesetlist_val['images']) : 0;if ($_images_count) {for ($_images_i = 0; $_images_i < $_images_count; ++$_images_i){$_images_val = &$_imagesetlist_val['images'][$_images_i]; ?>
|
---|
121 | <option value="<?php echo $_images_val['VALUE']; ?>"<?php if ($_images_val['SELECTED']) { ?> selected="selected"<?php } ?>><?php echo $_images_val['TEXT']; ?></option>
|
---|
122 | <?php }} }} ?>
|
---|
123 | </select>
|
---|
124 | </dd>
|
---|
125 | </dl>
|
---|
126 | <dl>
|
---|
127 | <dt><label for="imgsize"><?php echo ((isset($this->_rootref['L_INCLUDE_DIMENSIONS'])) ? $this->_rootref['L_INCLUDE_DIMENSIONS'] : ((isset($user->lang['INCLUDE_DIMENSIONS'])) ? $user->lang['INCLUDE_DIMENSIONS'] : '{ INCLUDE_DIMENSIONS }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_DIMENSIONS_EXPLAIN'])) ? $this->_rootref['L_DIMENSIONS_EXPLAIN'] : ((isset($user->lang['DIMENSIONS_EXPLAIN'])) ? $user->lang['DIMENSIONS_EXPLAIN'] : '{ DIMENSIONS_EXPLAIN }')); ?></span></dt>
|
---|
128 | <dd><label><input type="radio" class="radio" name="imgsize" id="imgsize" onclick="display_options(1);" value="1"<?php if ($this->_rootref['IMAGE_SIZE']) { ?> checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
129 | <label><input type="radio" class="radio" name="imgsize" onclick="display_options(0);" value="0"<?php if (! $this->_rootref['IMAGE_SIZE']) { ?> checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
130 | </dl>
|
---|
131 | <div id="img_dimensions">
|
---|
132 | <dl>
|
---|
133 | <dt><label for="imgwidth"><?php echo ((isset($this->_rootref['L_IMAGE_WIDTH'])) ? $this->_rootref['L_IMAGE_WIDTH'] : ((isset($user->lang['IMAGE_WIDTH'])) ? $user->lang['IMAGE_WIDTH'] : '{ IMAGE_WIDTH }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_AUTOMATIC_EXPLAIN'])) ? $this->_rootref['L_AUTOMATIC_EXPLAIN'] : ((isset($user->lang['AUTOMATIC_EXPLAIN'])) ? $user->lang['AUTOMATIC_EXPLAIN'] : '{ AUTOMATIC_EXPLAIN }')); ?></span></dt>
|
---|
134 | <dd><input type="text" name="imgwidth" value="<?php echo (isset($this->_rootref['IMAGE_SIZE'])) ? $this->_rootref['IMAGE_SIZE'] : ''; ?>" /></dd>
|
---|
135 | </dl>
|
---|
136 | <dl>
|
---|
137 | <dt><label for="imgheight"><?php echo ((isset($this->_rootref['L_IMAGE_HEIGHT'])) ? $this->_rootref['L_IMAGE_HEIGHT'] : ((isset($user->lang['IMAGE_HEIGHT'])) ? $user->lang['IMAGE_HEIGHT'] : '{ IMAGE_HEIGHT }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_AUTOMATIC_EXPLAIN'])) ? $this->_rootref['L_AUTOMATIC_EXPLAIN'] : ((isset($user->lang['AUTOMATIC_EXPLAIN'])) ? $user->lang['AUTOMATIC_EXPLAIN'] : '{ AUTOMATIC_EXPLAIN }')); ?></span></dt>
|
---|
138 | <dd><input type="text" name="imgheight" value="<?php echo (isset($this->_rootref['IMAGE_HEIGHT'])) ? $this->_rootref['IMAGE_HEIGHT'] : ''; ?>" /></dd>
|
---|
139 | </dl>
|
---|
140 | </div>
|
---|
141 | </fieldset>
|
---|
142 |
|
---|
143 | <fieldset class="submit-buttons">
|
---|
144 | <legend><?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?></legend>
|
---|
145 | <input class="button1" type="submit" name="update" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" /> <input class="button2" type="reset" value="<?php echo ((isset($this->_rootref['L_RESET'])) ? $this->_rootref['L_RESET'] : ((isset($user->lang['RESET'])) ? $user->lang['RESET'] : '{ RESET }')); ?>" />
|
---|
146 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
147 | </fieldset>
|
---|
148 | </form>
|
---|
149 |
|
---|
150 | <?php } else if ($this->_rootref['S_EDIT_TEMPLATE'] || $this->_rootref['S_EDIT_THEME']) { ?>
|
---|
151 |
|
---|
152 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
153 |
|
---|
154 | <h1><?php echo ((isset($this->_rootref['L_EDIT'])) ? $this->_rootref['L_EDIT'] : ((isset($user->lang['EDIT'])) ? $user->lang['EDIT'] : '{ EDIT }')); ?></h1>
|
---|
155 |
|
---|
156 | <p><?php echo ((isset($this->_rootref['L_EDIT_EXPLAIN'])) ? $this->_rootref['L_EDIT_EXPLAIN'] : ((isset($user->lang['EDIT_EXPLAIN'])) ? $user->lang['EDIT_EXPLAIN'] : '{ EDIT_EXPLAIN }')); ?></p>
|
---|
157 |
|
---|
158 | <p><?php echo ((isset($this->_rootref['L_SELECTED'])) ? $this->_rootref['L_SELECTED'] : ((isset($user->lang['SELECTED'])) ? $user->lang['SELECTED'] : '{ SELECTED }')); ?>: <strong><?php echo (isset($this->_rootref['SELECTED_TEMPLATE'])) ? $this->_rootref['SELECTED_TEMPLATE'] : ''; ?></strong></p>
|
---|
159 |
|
---|
160 | <form id="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
161 |
|
---|
162 | <?php if ($this->_rootref['S_EDIT_TEMPLATE'] || ( $this->_rootref['S_EDIT_THEME'] && ! $this->_rootref['S_THEME_IN_DB'] )) { ?>
|
---|
163 | <fieldset>
|
---|
164 | <legend><?php echo ((isset($this->_rootref['L_SELECT'])) ? $this->_rootref['L_SELECT'] : ((isset($user->lang['SELECT'])) ? $user->lang['SELECT'] : '{ SELECT }')); ?></legend>
|
---|
165 | <dl>
|
---|
166 | <dt><label for="template_file"><?php echo ((isset($this->_rootref['L_FILE'])) ? $this->_rootref['L_FILE'] : ((isset($user->lang['FILE'])) ? $user->lang['FILE'] : '{ FILE }')); ?>:</label></dt>
|
---|
167 | <dd><select id="template_file" name="template_file" onchange="if (this.options[this.selectedIndex].value != '') this.form.submit();"><?php echo (isset($this->_rootref['S_TEMPLATES'])) ? $this->_rootref['S_TEMPLATES'] : ''; ?></select> <input class="button2" type="submit" value="<?php echo ((isset($this->_rootref['L_SELECT'])) ? $this->_rootref['L_SELECT'] : ((isset($user->lang['SELECT'])) ? $user->lang['SELECT'] : '{ SELECT }')); ?>" /></dd>
|
---|
168 | </dl>
|
---|
169 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
170 | </fieldset>
|
---|
171 | <?php } ?>
|
---|
172 | </form>
|
---|
173 |
|
---|
174 | <?php if ($this->_rootref['TEMPLATE_FILE'] || ( $this->_rootref['S_EDIT_THEME'] && $this->_rootref['S_THEME_IN_DB'] )) { ?>
|
---|
175 | <script type="text/javascript" defer="defer">
|
---|
176 | // <![CDATA[
|
---|
177 |
|
---|
178 | function change_editor_height(height)
|
---|
179 | {
|
---|
180 | height = Number(height);
|
---|
181 |
|
---|
182 | if (isNaN(height))
|
---|
183 | {
|
---|
184 | return;
|
---|
185 | }
|
---|
186 |
|
---|
187 | editor = document.getElementById('template_data');
|
---|
188 | editor.rows = Math.max(5, Math.min(height, 999));
|
---|
189 |
|
---|
190 | append_text_rows('acp_styles', height);
|
---|
191 | append_text_rows('acp_template', height);
|
---|
192 | }
|
---|
193 |
|
---|
194 | function append_text_rows(form_name, value)
|
---|
195 | {
|
---|
196 | value = Number(value);
|
---|
197 |
|
---|
198 | if (isNaN(value))
|
---|
199 | {
|
---|
200 | return;
|
---|
201 | }
|
---|
202 |
|
---|
203 | url = document.getElementById(form_name).action;
|
---|
204 |
|
---|
205 | // Make sure & is actually... &
|
---|
206 | url = url.replace(/&/g, '&');
|
---|
207 |
|
---|
208 | var_start = url.indexOf('&text_rows=');
|
---|
209 | if (var_start == -1)
|
---|
210 | {
|
---|
211 | document.getElementById(form_name).action = url + "&text_rows=" + value;
|
---|
212 | }
|
---|
213 | else
|
---|
214 | {
|
---|
215 | url_start = url.substring(0, var_start + 1);
|
---|
216 | var_end = url.substring(var_start + 1).indexOf('&');
|
---|
217 | if (var_end == -1)
|
---|
218 | {
|
---|
219 | document.getElementById(form_name).action = url_start + "text_rows=" + value;
|
---|
220 | }
|
---|
221 | else
|
---|
222 | {
|
---|
223 | document.getElementById(form_name).action = url_start + url.substring(var_end + var_start + 2) + "&text_rows=" + value;
|
---|
224 | }
|
---|
225 | }
|
---|
226 | }
|
---|
227 |
|
---|
228 | // ]]>
|
---|
229 | </script>
|
---|
230 |
|
---|
231 | <form id="acp_template" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
232 |
|
---|
233 | <fieldset>
|
---|
234 | <legend><?php echo ((isset($this->_rootref['L_EDITOR'])) ? $this->_rootref['L_EDITOR'] : ((isset($user->lang['EDITOR'])) ? $user->lang['EDITOR'] : '{ EDITOR }')); ?></legend>
|
---|
235 | <?php if ($this->_rootref['S_EDIT_TEMPLATE'] || ( $this->_rootref['S_EDIT_THEME'] && ! $this->_rootref['S_THEME_IN_DB'] )) { ?>
|
---|
236 | <dl>
|
---|
237 | <dt><label><?php echo ((isset($this->_rootref['L_SELECTED_FILE'])) ? $this->_rootref['L_SELECTED_FILE'] : ((isset($user->lang['SELECTED_FILE'])) ? $user->lang['SELECTED_FILE'] : '{ SELECTED_FILE }')); ?>:</label></dt>
|
---|
238 | <dd><?php echo (isset($this->_rootref['TEMPLATE_FILE'])) ? $this->_rootref['TEMPLATE_FILE'] : ''; ?></dd>
|
---|
239 | </dl>
|
---|
240 | <?php } ?>
|
---|
241 | <dl>
|
---|
242 | <dt><label for="text_rows"><?php echo ((isset($this->_rootref['L_EDITOR_HEIGHT'])) ? $this->_rootref['L_EDITOR_HEIGHT'] : ((isset($user->lang['EDITOR_HEIGHT'])) ? $user->lang['EDITOR_HEIGHT'] : '{ EDITOR_HEIGHT }')); ?>:</label></dt>
|
---|
243 | <dd><input id="text_rows" type="text" maxlength="3" value="<?php echo (isset($this->_rootref['TEXT_ROWS'])) ? $this->_rootref['TEXT_ROWS'] : ''; ?>" /> <input class="button2" type="button" name="update" onclick="change_editor_height(this.form.text_rows.value);" value="<?php echo ((isset($this->_rootref['L_UPDATE'])) ? $this->_rootref['L_UPDATE'] : ((isset($user->lang['UPDATE'])) ? $user->lang['UPDATE'] : '{ UPDATE }')); ?>" /></dd>
|
---|
244 | </dl>
|
---|
245 | <textarea id="template_data" name="template_data" style="font-family:'Courier New', monospace;font-size:9pt;line-height:125%;width:100%;" cols="80" rows="<?php echo (isset($this->_rootref['TEXT_ROWS'])) ? $this->_rootref['TEXT_ROWS'] : ''; ?>"><?php echo (isset($this->_rootref['TEMPLATE_DATA'])) ? $this->_rootref['TEMPLATE_DATA'] : ''; ?></textarea>
|
---|
246 | </fieldset>
|
---|
247 |
|
---|
248 | <fieldset class="submit-buttons">
|
---|
249 | <legend><?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?></legend>
|
---|
250 | <?php echo (isset($this->_rootref['S_HIDDEN_FIELDS'])) ? $this->_rootref['S_HIDDEN_FIELDS'] : ''; ?>
|
---|
251 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
252 | <input class="button1" id="save" type="submit" name="save" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" />
|
---|
253 | </fieldset>
|
---|
254 | </form>
|
---|
255 | <?php } } else if ($this->_rootref['S_CACHE']) { ?>
|
---|
256 |
|
---|
257 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
258 |
|
---|
259 | <h1><?php echo ((isset($this->_rootref['L_TEMPLATE_CACHE'])) ? $this->_rootref['L_TEMPLATE_CACHE'] : ((isset($user->lang['TEMPLATE_CACHE'])) ? $user->lang['TEMPLATE_CACHE'] : '{ TEMPLATE_CACHE }')); ?></h1>
|
---|
260 |
|
---|
261 | <p><?php echo ((isset($this->_rootref['L_TEMPLATE_CACHE_EXPLAIN'])) ? $this->_rootref['L_TEMPLATE_CACHE_EXPLAIN'] : ((isset($user->lang['TEMPLATE_CACHE_EXPLAIN'])) ? $user->lang['TEMPLATE_CACHE_EXPLAIN'] : '{ TEMPLATE_CACHE_EXPLAIN }')); ?></p>
|
---|
262 |
|
---|
263 | <form name="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
264 | <fieldset class="tabulated">
|
---|
265 | <legend><?php echo ((isset($this->_rootref['L_TEMPLATE_CACHE'])) ? $this->_rootref['L_TEMPLATE_CACHE'] : ((isset($user->lang['TEMPLATE_CACHE'])) ? $user->lang['TEMPLATE_CACHE'] : '{ TEMPLATE_CACHE }')); ?></legend>
|
---|
266 |
|
---|
267 | <table cellspacing="1">
|
---|
268 | <thead>
|
---|
269 | <tr>
|
---|
270 | <th><?php echo ((isset($this->_rootref['L_CACHE_FILENAME'])) ? $this->_rootref['L_CACHE_FILENAME'] : ((isset($user->lang['CACHE_FILENAME'])) ? $user->lang['CACHE_FILENAME'] : '{ CACHE_FILENAME }')); ?></th>
|
---|
271 | <th><?php echo ((isset($this->_rootref['L_CACHE_FILESIZE'])) ? $this->_rootref['L_CACHE_FILESIZE'] : ((isset($user->lang['CACHE_FILESIZE'])) ? $user->lang['CACHE_FILESIZE'] : '{ CACHE_FILESIZE }')); ?></th>
|
---|
272 | <th><?php echo ((isset($this->_rootref['L_CACHE_CACHED'])) ? $this->_rootref['L_CACHE_CACHED'] : ((isset($user->lang['CACHE_CACHED'])) ? $user->lang['CACHE_CACHED'] : '{ CACHE_CACHED }')); ?></th>
|
---|
273 | <th><?php echo ((isset($this->_rootref['L_CACHE_MODIFIED'])) ? $this->_rootref['L_CACHE_MODIFIED'] : ((isset($user->lang['CACHE_MODIFIED'])) ? $user->lang['CACHE_MODIFIED'] : '{ CACHE_MODIFIED }')); ?></th>
|
---|
274 | <th><?php echo ((isset($this->_rootref['L_MARK'])) ? $this->_rootref['L_MARK'] : ((isset($user->lang['MARK'])) ? $user->lang['MARK'] : '{ MARK }')); ?></th>
|
---|
275 | </tr>
|
---|
276 | </thead>
|
---|
277 | <tbody>
|
---|
278 | <?php $_file_count = (isset($this->_tpldata['file'])) ? sizeof($this->_tpldata['file']) : 0;if ($_file_count) {for ($_file_i = 0; $_file_i < $_file_count; ++$_file_i){$_file_val = &$this->_tpldata['file'][$_file_i]; if (!($_file_val['S_ROW_COUNT'] & 1) ) { ?><tr class="row1"><?php } else { ?><tr class="row2"><?php } ?>
|
---|
279 | <td><a href="<?php echo $_file_val['U_VIEWSOURCE']; ?>" onclick="popup(this.href, 750, 550, '_source'); return false;"><?php echo $_file_val['FILENAME']; ?></a></td>
|
---|
280 | <td><?php echo $_file_val['FILESIZE']; ?></td>
|
---|
281 | <td><?php echo $_file_val['CACHED']; ?></td>
|
---|
282 | <td><?php echo $_file_val['MODIFIED']; ?></td>
|
---|
283 | <td><input type="checkbox" class="radio" name="delete[]" value="<?php echo $_file_val['FILENAME']; ?>" /></td>
|
---|
284 | </tr>
|
---|
285 | <?php }} else { ?>
|
---|
286 | <tr class="row1">
|
---|
287 | <td colspan="5"><?php echo ((isset($this->_rootref['L_TEMPLATE_CACHE_EMPTY'])) ? $this->_rootref['L_TEMPLATE_CACHE_EMPTY'] : ((isset($user->lang['TEMPLATE_CACHE_EMPTY'])) ? $user->lang['TEMPLATE_CACHE_EMPTY'] : '{ TEMPLATE_CACHE_EMPTY }')); ?></td>
|
---|
288 | </tr>
|
---|
289 | <?php } ?>
|
---|
290 | </tbody>
|
---|
291 | </table>
|
---|
292 |
|
---|
293 | <p class="quick">
|
---|
294 | <span class="small"><a href="#" onclick="marklist('acp_styles', 'delete', true); return false;"><?php echo ((isset($this->_rootref['L_MARK_ALL'])) ? $this->_rootref['L_MARK_ALL'] : ((isset($user->lang['MARK_ALL'])) ? $user->lang['MARK_ALL'] : '{ MARK_ALL }')); ?></a> :: <a href="#" onclick="marklist('acp_styles', 'delete', false); return false;"><?php echo ((isset($this->_rootref['L_UNMARK_ALL'])) ? $this->_rootref['L_UNMARK_ALL'] : ((isset($user->lang['UNMARK_ALL'])) ? $user->lang['UNMARK_ALL'] : '{ UNMARK_ALL }')); ?></a></span><br />
|
---|
295 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
296 | <input class="button1" type="submit" id="submit" name="submit" value="<?php echo ((isset($this->_rootref['L_DELETE_MARKED'])) ? $this->_rootref['L_DELETE_MARKED'] : ((isset($user->lang['DELETE_MARKED'])) ? $user->lang['DELETE_MARKED'] : '{ DELETE_MARKED }')); ?>" />
|
---|
297 | </p>
|
---|
298 | </fieldset>
|
---|
299 | </form>
|
---|
300 |
|
---|
301 | <?php } else if ($this->_rootref['S_EXPORT']) { ?>
|
---|
302 |
|
---|
303 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
304 |
|
---|
305 | <h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>
|
---|
306 |
|
---|
307 | <p><?php echo ((isset($this->_rootref['L_EXPLAIN'])) ? $this->_rootref['L_EXPLAIN'] : ((isset($user->lang['EXPLAIN'])) ? $user->lang['EXPLAIN'] : '{ EXPLAIN }')); ?></p>
|
---|
308 |
|
---|
309 | <?php if ($this->_rootref['S_ERROR_MSG']) { ?>
|
---|
310 | <div class="errorbox">
|
---|
311 | <h3><?php echo ((isset($this->_rootref['L_WARNING'])) ? $this->_rootref['L_WARNING'] : ((isset($user->lang['WARNING'])) ? $user->lang['WARNING'] : '{ WARNING }')); ?></h3>
|
---|
312 | <p><?php echo (isset($this->_rootref['ERROR_MSG'])) ? $this->_rootref['ERROR_MSG'] : ''; ?></p>
|
---|
313 | </div>
|
---|
314 | <?php } ?>
|
---|
315 |
|
---|
316 | <form id="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
317 |
|
---|
318 | <fieldset>
|
---|
319 | <legend><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></legend>
|
---|
320 | <dl>
|
---|
321 | <dt><label><?php echo ((isset($this->_rootref['L_NAME'])) ? $this->_rootref['L_NAME'] : ((isset($user->lang['NAME'])) ? $user->lang['NAME'] : '{ NAME }')); ?>:</label></dt>
|
---|
322 | <dd><strong><?php echo (isset($this->_rootref['NAME'])) ? $this->_rootref['NAME'] : ''; ?></strong></dd>
|
---|
323 | </dl>
|
---|
324 | <?php if ($this->_rootref['S_STYLE']) { ?>
|
---|
325 | <dl>
|
---|
326 | <dt><label for="inc_template"><?php echo ((isset($this->_rootref['L_INCLUDE_TEMPLATE'])) ? $this->_rootref['L_INCLUDE_TEMPLATE'] : ((isset($user->lang['INCLUDE_TEMPLATE'])) ? $user->lang['INCLUDE_TEMPLATE'] : '{ INCLUDE_TEMPLATE }')); ?>:</label></dt>
|
---|
327 | <dd><label><input type="radio" class="radio" id="inc_template" name="inc_template" value="1" checked="checked" /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
328 | <label><input type="radio" class="radio" name="inc_template" value="0" /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
329 | </dl>
|
---|
330 | <dl>
|
---|
331 | <dt><label for="inc_theme"><?php echo ((isset($this->_rootref['L_INCLUDE_THEME'])) ? $this->_rootref['L_INCLUDE_THEME'] : ((isset($user->lang['INCLUDE_THEME'])) ? $user->lang['INCLUDE_THEME'] : '{ INCLUDE_THEME }')); ?>:</label></dt>
|
---|
332 | <dd><label><input type="radio" class="radio" id="inc_theme" name="inc_theme" value="1" checked="checked" /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
333 | <label><input type="radio" class="radio" name="inc_theme" value="0" /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
334 | </dl>
|
---|
335 | <dl>
|
---|
336 | <dt><label for="inc_imageset"><?php echo ((isset($this->_rootref['L_INCLUDE_IMAGESET'])) ? $this->_rootref['L_INCLUDE_IMAGESET'] : ((isset($user->lang['INCLUDE_IMAGESET'])) ? $user->lang['INCLUDE_IMAGESET'] : '{ INCLUDE_IMAGESET }')); ?>:</label></dt>
|
---|
337 | <dd><label><input type="radio" class="radio" id="inc_imageset" name="inc_imageset" value="1" checked="checked" /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
338 | <label><input type="radio" class="radio" name="inc_imageset" value="0" /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
339 | </dl>
|
---|
340 | <?php } ?>
|
---|
341 | <dl>
|
---|
342 | <dt><label for="store"><?php echo ((isset($this->_rootref['L_DOWNLOAD_STORE'])) ? $this->_rootref['L_DOWNLOAD_STORE'] : ((isset($user->lang['DOWNLOAD_STORE'])) ? $user->lang['DOWNLOAD_STORE'] : '{ DOWNLOAD_STORE }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_DOWNLOAD_STORE_EXPLAIN'])) ? $this->_rootref['L_DOWNLOAD_STORE_EXPLAIN'] : ((isset($user->lang['DOWNLOAD_STORE_EXPLAIN'])) ? $user->lang['DOWNLOAD_STORE_EXPLAIN'] : '{ DOWNLOAD_STORE_EXPLAIN }')); ?></span></dt>
|
---|
343 | <dd><label><input type="radio" class="radio" id="store" name="store" value="1" checked="checked" /> <?php echo ((isset($this->_rootref['L_EXPORT_STORE'])) ? $this->_rootref['L_EXPORT_STORE'] : ((isset($user->lang['EXPORT_STORE'])) ? $user->lang['EXPORT_STORE'] : '{ EXPORT_STORE }')); ?></label>
|
---|
344 | <label><input type="radio" class="radio" name="store" value="0" /> <?php echo ((isset($this->_rootref['L_EXPORT_DOWNLOAD'])) ? $this->_rootref['L_EXPORT_DOWNLOAD'] : ((isset($user->lang['EXPORT_DOWNLOAD'])) ? $user->lang['EXPORT_DOWNLOAD'] : '{ EXPORT_DOWNLOAD }')); ?></label></dd>
|
---|
345 | </dl>
|
---|
346 | <dl>
|
---|
347 | <dt><label for="format"><?php echo ((isset($this->_rootref['L_ARCHIVE_FORMAT'])) ? $this->_rootref['L_ARCHIVE_FORMAT'] : ((isset($user->lang['ARCHIVE_FORMAT'])) ? $user->lang['ARCHIVE_FORMAT'] : '{ ARCHIVE_FORMAT }')); ?>:</label></dt>
|
---|
348 | <dd><?php echo (isset($this->_rootref['FORMAT_BUTTONS'])) ? $this->_rootref['FORMAT_BUTTONS'] : ''; ?></dd>
|
---|
349 | </dl>
|
---|
350 |
|
---|
351 | <p class="quick">
|
---|
352 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
353 | <input class="button1" type="submit" name="update" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" />
|
---|
354 | </p>
|
---|
355 | </fieldset>
|
---|
356 |
|
---|
357 |
|
---|
358 | </form>
|
---|
359 |
|
---|
360 | <?php } else if ($this->_rootref['S_FRONTEND']) { ?>
|
---|
361 |
|
---|
362 | <h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>
|
---|
363 |
|
---|
364 | <p><?php echo ((isset($this->_rootref['L_EXPLAIN'])) ? $this->_rootref['L_EXPLAIN'] : ((isset($user->lang['EXPLAIN'])) ? $user->lang['EXPLAIN'] : '{ EXPLAIN }')); ?></p>
|
---|
365 |
|
---|
366 | <?php if ($this->_rootref['S_STYLE']) { $this->_tpldata['DEFINE']['.']['COLSPAN'] = 5; } else { $this->_tpldata['DEFINE']['.']['COLSPAN'] = 4; } ?>
|
---|
367 |
|
---|
368 | <table cellspacing="1">
|
---|
369 | <col class="row1" /><?php if ($this->_rootref['S_STYLE']) { ?><col class="row1" /><?php } ?><col class="row2" /><col class="row2" />
|
---|
370 | <thead>
|
---|
371 | <tr>
|
---|
372 | <th><?php echo ((isset($this->_rootref['L_NAME'])) ? $this->_rootref['L_NAME'] : ((isset($user->lang['NAME'])) ? $user->lang['NAME'] : '{ NAME }')); ?></th>
|
---|
373 | <?php if ($this->_rootref['S_STYLE']) { ?><th><?php echo ((isset($this->_rootref['L_STYLE_USED_BY'])) ? $this->_rootref['L_STYLE_USED_BY'] : ((isset($user->lang['STYLE_USED_BY'])) ? $user->lang['STYLE_USED_BY'] : '{ STYLE_USED_BY }')); ?></th><?php } ?>
|
---|
374 | <th><?php echo ((isset($this->_rootref['L_OPTIONS'])) ? $this->_rootref['L_OPTIONS'] : ((isset($user->lang['OPTIONS'])) ? $user->lang['OPTIONS'] : '{ OPTIONS }')); ?></th>
|
---|
375 | <th><?php echo ((isset($this->_rootref['L_ACTIONS'])) ? $this->_rootref['L_ACTIONS'] : ((isset($user->lang['ACTIONS'])) ? $user->lang['ACTIONS'] : '{ ACTIONS }')); ?></th>
|
---|
376 | </tr>
|
---|
377 | </thead>
|
---|
378 | <tbody>
|
---|
379 | <tr>
|
---|
380 | <td class="row3" colspan="<?php echo (isset($this->_tpldata['DEFINE']['.']['COLSPAN'])) ? $this->_tpldata['DEFINE']['.']['COLSPAN'] : ''; ?>"><strong><?php echo ((isset($this->_rootref['L_INSTALLED'])) ? $this->_rootref['L_INSTALLED'] : ((isset($user->lang['INSTALLED'])) ? $user->lang['INSTALLED'] : '{ INSTALLED }')); ?></strong></td>
|
---|
381 | </tr>
|
---|
382 | <?php $_installed_count = (isset($this->_tpldata['installed'])) ? sizeof($this->_tpldata['installed']) : 0;if ($_installed_count) {for ($_installed_i = 0; $_installed_i < $_installed_count; ++$_installed_i){$_installed_val = &$this->_tpldata['installed'][$_installed_i]; ?>
|
---|
383 | <tr>
|
---|
384 | <td><strong><?php echo $_installed_val['NAME']; ?></strong><?php if ($_installed_val['S_DEFAULT_STYLE']) { ?> *<?php } ?></td>
|
---|
385 | <?php if ($this->_rootref['S_STYLE']) { ?>
|
---|
386 | <td style="text-align: center;"><?php echo $_installed_val['STYLE_COUNT']; ?></td>
|
---|
387 | <?php } ?>
|
---|
388 | <td style="text-align: center;">
|
---|
389 | <?php echo $_installed_val['S_OPTIONS']; ?>
|
---|
390 | </td>
|
---|
391 | <td style="text-align: center;">
|
---|
392 | <?php if ($this->_rootref['S_STYLE']) { ?>
|
---|
393 | <a href="<?php echo $_installed_val['U_STYLE_ACT_DEACT']; ?>"><?php echo $_installed_val['L_STYLE_ACT_DEACT']; ?></a> |
|
---|
394 | <?php } ?>
|
---|
395 | <?php echo $_installed_val['S_ACTIONS']; ?>
|
---|
396 | <?php if ($this->_rootref['S_STYLE']) { ?>
|
---|
397 | | <a href="<?php echo $_installed_val['U_PREVIEW']; ?>"><?php echo ((isset($this->_rootref['L_PREVIEW'])) ? $this->_rootref['L_PREVIEW'] : ((isset($user->lang['PREVIEW'])) ? $user->lang['PREVIEW'] : '{ PREVIEW }')); ?></a>
|
---|
398 | <?php } ?>
|
---|
399 | </td>
|
---|
400 | </tr>
|
---|
401 | <?php }} ?>
|
---|
402 | <tr>
|
---|
403 | <td class="row3" colspan="<?php echo (isset($this->_tpldata['DEFINE']['.']['COLSPAN'])) ? $this->_tpldata['DEFINE']['.']['COLSPAN'] : ''; ?>"><strong><?php echo ((isset($this->_rootref['L_UNINSTALLED'])) ? $this->_rootref['L_UNINSTALLED'] : ((isset($user->lang['UNINSTALLED'])) ? $user->lang['UNINSTALLED'] : '{ UNINSTALLED }')); ?></strong></td>
|
---|
404 | </tr>
|
---|
405 | <?php if (! sizeof($this->_tpldata['uninstalled'])) { ?>
|
---|
406 | <tr>
|
---|
407 | <td class="row1" colspan="<?php echo (isset($this->_tpldata['DEFINE']['.']['COLSPAN'])) ? $this->_tpldata['DEFINE']['.']['COLSPAN'] : ''; ?>" style="text-align: center;"><?php echo ((isset($this->_rootref['L_NO_UNINSTALLED'])) ? $this->_rootref['L_NO_UNINSTALLED'] : ((isset($user->lang['NO_UNINSTALLED'])) ? $user->lang['NO_UNINSTALLED'] : '{ NO_UNINSTALLED }')); ?></td>
|
---|
408 | </tr>
|
---|
409 | <?php } $_uninstalled_count = (isset($this->_tpldata['uninstalled'])) ? sizeof($this->_tpldata['uninstalled']) : 0;if ($_uninstalled_count) {for ($_uninstalled_i = 0; $_uninstalled_i < $_uninstalled_count; ++$_uninstalled_i){$_uninstalled_val = &$this->_tpldata['uninstalled'][$_uninstalled_i]; ?>
|
---|
410 | <tr>
|
---|
411 | <td<?php if ($this->_rootref['S_STYLE']) { ?> colspan="2"<?php } ?>><strong><?php echo $_uninstalled_val['NAME']; ?></strong><br /><span><?php echo ((isset($this->_rootref['L_COPYRIGHT'])) ? $this->_rootref['L_COPYRIGHT'] : ((isset($user->lang['COPYRIGHT'])) ? $user->lang['COPYRIGHT'] : '{ COPYRIGHT }')); ?>: <?php echo $_uninstalled_val['COPYRIGHT']; ?></span></td>
|
---|
412 | <td style="text-align: center;" colspan="2"><a href="<?php echo $_uninstalled_val['U_INSTALL']; ?>"><?php echo ((isset($this->_rootref['L_INSTALL'])) ? $this->_rootref['L_INSTALL'] : ((isset($user->lang['INSTALL'])) ? $user->lang['INSTALL'] : '{ INSTALL }')); ?></a></td>
|
---|
413 | </tr>
|
---|
414 | <?php }} ?>
|
---|
415 | </tbody>
|
---|
416 | </table>
|
---|
417 |
|
---|
418 | <?php if ($this->_rootref['S_STYLE']) { ?>
|
---|
419 | <form id="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
420 |
|
---|
421 | <fieldset class="quick">
|
---|
422 | <legend><?php echo ((isset($this->_rootref['L_CREATE'])) ? $this->_rootref['L_CREATE'] : ((isset($user->lang['CREATE'])) ? $user->lang['CREATE'] : '{ CREATE }')); ?></legend>
|
---|
423 | <?php echo ((isset($this->_rootref['L_CREATE'])) ? $this->_rootref['L_CREATE'] : ((isset($user->lang['CREATE'])) ? $user->lang['CREATE'] : '{ CREATE }')); ?>: <input type="text" name="name" value="" /> <?php echo ((isset($this->_rootref['L_FROM'])) ? $this->_rootref['L_FROM'] : ((isset($user->lang['FROM'])) ? $user->lang['FROM'] : '{ FROM }')); ?> <select name="basis"><?php echo (isset($this->_rootref['S_BASIS_OPTIONS'])) ? $this->_rootref['S_BASIS_OPTIONS'] : ''; ?></select> <input class="button2" type="submit" name="add" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" />
|
---|
424 | </fieldset>
|
---|
425 |
|
---|
426 | </form>
|
---|
427 | <?php } } else if ($this->_rootref['S_DETAILS']) { ?>
|
---|
428 |
|
---|
429 | <a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">« <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>
|
---|
430 |
|
---|
431 | <h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>
|
---|
432 |
|
---|
433 | <p><?php echo ((isset($this->_rootref['L_EXPLAIN'])) ? $this->_rootref['L_EXPLAIN'] : ((isset($user->lang['EXPLAIN'])) ? $user->lang['EXPLAIN'] : '{ EXPLAIN }')); ?></p>
|
---|
434 |
|
---|
435 | <?php if ($this->_rootref['S_ERROR_MSG']) { ?>
|
---|
436 | <div class="errorbox">
|
---|
437 | <h3><?php echo ((isset($this->_rootref['L_WARNING'])) ? $this->_rootref['L_WARNING'] : ((isset($user->lang['WARNING'])) ? $user->lang['WARNING'] : '{ WARNING }')); ?></h3>
|
---|
438 | <p><?php echo (isset($this->_rootref['ERROR_MSG'])) ? $this->_rootref['ERROR_MSG'] : ''; ?></p>
|
---|
439 | </div>
|
---|
440 | <?php } ?>
|
---|
441 |
|
---|
442 | <form id="acp_styles" method="post" action="<?php echo (isset($this->_rootref['U_ACTION'])) ? $this->_rootref['U_ACTION'] : ''; ?>">
|
---|
443 |
|
---|
444 | <fieldset>
|
---|
445 | <legend><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></legend>
|
---|
446 | <dl>
|
---|
447 | <dt><label for="name"><?php echo ((isset($this->_rootref['L_NAME'])) ? $this->_rootref['L_NAME'] : ((isset($user->lang['NAME'])) ? $user->lang['NAME'] : '{ NAME }')); ?>:</label></dt>
|
---|
448 | <dd><?php if ($this->_rootref['S_INSTALL']) { ?><b id="name"><?php echo (isset($this->_rootref['NAME'])) ? $this->_rootref['NAME'] : ''; ?></b><?php } else { ?><input type="text" id="name" name="name" value="<?php echo (isset($this->_rootref['NAME'])) ? $this->_rootref['NAME'] : ''; ?>" /><?php } ?></dd>
|
---|
449 | </dl>
|
---|
450 | <dl>
|
---|
451 | <dt><label for="copyright"><?php echo ((isset($this->_rootref['L_COPYRIGHT'])) ? $this->_rootref['L_COPYRIGHT'] : ((isset($user->lang['COPYRIGHT'])) ? $user->lang['COPYRIGHT'] : '{ COPYRIGHT }')); ?>:</label></dt>
|
---|
452 | <dd><?php if ($this->_rootref['S_INSTALL']) { ?><b id="name"><?php echo (isset($this->_rootref['COPYRIGHT'])) ? $this->_rootref['COPYRIGHT'] : ''; ?></b><?php } else { ?><input type="text" id="copyright" name="copyright" value="<?php echo (isset($this->_rootref['COPYRIGHT'])) ? $this->_rootref['COPYRIGHT'] : ''; ?>" /><?php } ?></dd>
|
---|
453 | </dl>
|
---|
454 | <?php if ($this->_rootref['S_STYLE'] && ! $this->_rootref['S_BASIS']) { ?>
|
---|
455 | <dl>
|
---|
456 | <dt><label for="template_id"><?php echo ((isset($this->_rootref['L_STYLE_TEMPLATE'])) ? $this->_rootref['L_STYLE_TEMPLATE'] : ((isset($user->lang['STYLE_TEMPLATE'])) ? $user->lang['STYLE_TEMPLATE'] : '{ STYLE_TEMPLATE }')); ?>:</label></dt>
|
---|
457 | <dd><?php if ($this->_rootref['S_INSTALL']) { ?><b id="template_id"><?php echo (isset($this->_rootref['TEMPLATE_NAME'])) ? $this->_rootref['TEMPLATE_NAME'] : ''; ?></b><?php } else { ?><select id="template_id" name="template_id"><?php echo (isset($this->_rootref['S_TEMPLATE_OPTIONS'])) ? $this->_rootref['S_TEMPLATE_OPTIONS'] : ''; ?></select><?php } ?></dd>
|
---|
458 | </dl>
|
---|
459 | <dl>
|
---|
460 | <dt><label for="theme_id"><?php echo ((isset($this->_rootref['L_STYLE_THEME'])) ? $this->_rootref['L_STYLE_THEME'] : ((isset($user->lang['STYLE_THEME'])) ? $user->lang['STYLE_THEME'] : '{ STYLE_THEME }')); ?>:</label></dt>
|
---|
461 | <dd><?php if ($this->_rootref['S_INSTALL']) { ?><b id="theme_id"><?php echo (isset($this->_rootref['THEME_NAME'])) ? $this->_rootref['THEME_NAME'] : ''; ?></b><?php } else { ?><select id="theme_id" name="theme_id"><?php echo (isset($this->_rootref['S_THEME_OPTIONS'])) ? $this->_rootref['S_THEME_OPTIONS'] : ''; ?></select><?php } ?></dd>
|
---|
462 | </dl>
|
---|
463 | <dl>
|
---|
464 | <dt><label for="imageset_id"><?php echo ((isset($this->_rootref['L_STYLE_IMAGESET'])) ? $this->_rootref['L_STYLE_IMAGESET'] : ((isset($user->lang['STYLE_IMAGESET'])) ? $user->lang['STYLE_IMAGESET'] : '{ STYLE_IMAGESET }')); ?>:</label></dt>
|
---|
465 | <dd><?php if ($this->_rootref['S_INSTALL']) { ?><b id="imageset_id"><?php echo (isset($this->_rootref['IMAGESET_NAME'])) ? $this->_rootref['IMAGESET_NAME'] : ''; ?></b><?php } else { ?><select id="imageset_id" name="imageset_id"><?php echo (isset($this->_rootref['S_IMAGESET_OPTIONS'])) ? $this->_rootref['S_IMAGESET_OPTIONS'] : ''; ?></select><?php } ?></dd>
|
---|
466 | </dl>
|
---|
467 | <?php } if ($this->_rootref['S_TEMPLATE'] || $this->_rootref['S_THEME']) { ?>
|
---|
468 | <dl>
|
---|
469 | <dt><label for="store_db"><?php echo ((isset($this->_rootref['L_LOCATION'])) ? $this->_rootref['L_LOCATION'] : ((isset($user->lang['LOCATION'])) ? $user->lang['LOCATION'] : '{ LOCATION }')); ?>:</label><br /><span><?php echo ((isset($this->_rootref['L_LOCATION_EXPLAIN'])) ? $this->_rootref['L_LOCATION_EXPLAIN'] : ((isset($user->lang['LOCATION_EXPLAIN'])) ? $user->lang['LOCATION_EXPLAIN'] : '{ LOCATION_EXPLAIN }')); ?></span></dt>
|
---|
470 | <dd><label><input type="radio" class="radio" name="store_db" value="0"<?php if (! $this->_rootref['S_STORE_DB']) { ?> id="store_db" checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_STORE_FILESYSTEM'])) ? $this->_rootref['L_STORE_FILESYSTEM'] : ((isset($user->lang['STORE_FILESYSTEM'])) ? $user->lang['STORE_FILESYSTEM'] : '{ STORE_FILESYSTEM }')); ?></label>
|
---|
471 | <label><input type="radio" class="radio" name="store_db" value="1"<?php if ($this->_rootref['S_STORE_DB']) { ?> id="store_db" checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_STORE_DATABASE'])) ? $this->_rootref['L_STORE_DATABASE'] : ((isset($user->lang['STORE_DATABASE'])) ? $user->lang['STORE_DATABASE'] : '{ STORE_DATABASE }')); ?></label></dd>
|
---|
472 | </dl>
|
---|
473 | <?php } if ($this->_rootref['S_STYLE']) { ?>
|
---|
474 | </fieldset>
|
---|
475 |
|
---|
476 | <fieldset>
|
---|
477 | <legend><?php echo ((isset($this->_rootref['L_OPTIONS'])) ? $this->_rootref['L_OPTIONS'] : ((isset($user->lang['OPTIONS'])) ? $user->lang['OPTIONS'] : '{ OPTIONS }')); ?></legend>
|
---|
478 | <dl>
|
---|
479 | <dt><label for="style_active"><?php echo ((isset($this->_rootref['L_STYLE_ACTIVE'])) ? $this->_rootref['L_STYLE_ACTIVE'] : ((isset($user->lang['STYLE_ACTIVE'])) ? $user->lang['STYLE_ACTIVE'] : '{ STYLE_ACTIVE }')); ?>:</label></dt>
|
---|
480 | <dd><label><input type="radio" class="radio" name="style_active" value="1"<?php if ($this->_rootref['S_STYLE_ACTIVE']) { ?> id="style_active" checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
481 | <label><input type="radio" class="radio" name="style_active" value="0"<?php if (! $this->_rootref['S_STYLE_ACTIVE']) { ?> id="style_active" checked="checked"<?php } ?> /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
482 | </dl>
|
---|
483 | <?php if (! $this->_rootref['S_STYLE_DEFAULT']) { ?>
|
---|
484 | <dl>
|
---|
485 | <dt><label for="style_default"><?php echo ((isset($this->_rootref['L_STYLE_DEFAULT'])) ? $this->_rootref['L_STYLE_DEFAULT'] : ((isset($user->lang['STYLE_DEFAULT'])) ? $user->lang['STYLE_DEFAULT'] : '{ STYLE_DEFAULT }')); ?>:</label></dt>
|
---|
486 | <dd><label><input type="radio" class="radio" name="style_default" value="1" /> <?php echo ((isset($this->_rootref['L_YES'])) ? $this->_rootref['L_YES'] : ((isset($user->lang['YES'])) ? $user->lang['YES'] : '{ YES }')); ?></label>
|
---|
487 | <label><input type="radio" class="radio" id="style_default" name="style_default" value="0" checked="checked" /> <?php echo ((isset($this->_rootref['L_NO'])) ? $this->_rootref['L_NO'] : ((isset($user->lang['NO'])) ? $user->lang['NO'] : '{ NO }')); ?></label></dd>
|
---|
488 | </dl>
|
---|
489 | <?php } } ?>
|
---|
490 | </fieldset>
|
---|
491 |
|
---|
492 | <fieldset class="submit-buttons">
|
---|
493 | <legend><?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?></legend>
|
---|
494 | <input class="button1" type="submit" name="update" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" />
|
---|
495 | <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
|
---|
496 | </fieldset>
|
---|
497 |
|
---|
498 | </form>
|
---|
499 |
|
---|
500 | <?php } $this->_tpl_include('overall_footer.html'); ?>
|
---|