Skip to content

Commit 1d859b7

Browse files
author
Kristan Kenney
committed
Move web statistics in domain dialogs
1 parent 4d731a3 commit 1d859b7

File tree

1 file changed

+55
-54
lines changed

1 file changed

+55
-54
lines changed

web/templates/admin/add_web.html

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,61 @@
125125
</td>
126126
</tr>
127127
<?php echo ""; }?>
128+
<tr>
129+
<td class="vst-text step-top">
130+
<?php print __('Web Statistics');?>
131+
</td>
132+
</tr>
133+
<tr>
134+
<td>
135+
<select class="vst-list" name="v_stats">
136+
<?php
137+
foreach ($stats as $key => $value) {
138+
$svalue = "'".$value."'";
139+
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
140+
if (empty($v_stats)) $v_stats = 'none';
141+
if (( $value == $v_stats ) || ($svalue == $v_stats )){
142+
echo ' selected' ;
143+
}
144+
echo ">" . htmlentities(__($value)) . "</option>\n";
145+
}
146+
?>
147+
</select>
148+
</td>
149+
</tr>
150+
<tr class="stats-auth" style="<? if (trim($v_stats, "'") == 'none') { ?>display:none<? } ?>">
151+
<td class="step-left vst-text input-label">
152+
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?>
153+
onclick="javascript:elementHideShow('statstable');"> <?=__('Statistics Authorization')?></label>
154+
</td>
155+
</tr>
156+
<tr>
157+
<td class="step-left">
158+
<table style="display:<?php if (empty($v_stats_user)) { echo 'none';} else {echo 'block';}?> ;" id="statstable" name="v-add-web-domain-stats-user">
159+
<tr>
160+
<td class="vst-text input-label">
161+
<?php print __('Username');?>
162+
</td>
163+
</tr>
164+
<tr>
165+
<td>
166+
<input type="text" size="20" class="vst-input" name="v_stats_user" value="<?=htmlentities(trim($v_stats_user, "'"))?>">
167+
</td>
168+
</tr>
169+
<tr>
170+
<td class="vst-text input-label">
171+
<?php print __('Password');?> / <a href="javascript:WEBrandom();" class="generate"><?php print __('generate');?></a>
172+
</td>
173+
</tr>
174+
<tr>
175+
<td>
176+
<input type="text" size="20" class="vst-input password" name="v_stats_password" value="<?=htmlentities(trim($v_stats_password, "'"))?>" id="v_password">
177+
</td>
178+
</tr>
179+
</table>
180+
</td>
181+
</tr>
182+
128183
<tr>
129184
<td class="step-top vst-text">
130185
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl" <?php if($v_ssl == 'yes' || $v_ssl == 'on') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');"> <?php print __('SSL Support');?></label>
@@ -194,60 +249,6 @@
194249
</table>
195250
</td>
196251
</tr>
197-
<tr>
198-
<td class="vst-text step-top">
199-
<?php print __('Web Statistics');?>
200-
</td>
201-
</tr>
202-
<tr>
203-
<td>
204-
<select class="vst-list" name="v_stats">
205-
<?php
206-
foreach ($stats as $key => $value) {
207-
$svalue = "'".$value."'";
208-
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
209-
if (empty($v_stats)) $v_stats = 'none';
210-
if (( $value == $v_stats ) || ($svalue == $v_stats )){
211-
echo ' selected' ;
212-
}
213-
echo ">" . htmlentities(__($value)) . "</option>\n";
214-
}
215-
?>
216-
</select>
217-
</td>
218-
</tr>
219-
<tr class="stats-auth" style="<? if (trim($v_stats, "'") == 'none') { ?>display:none<? } ?>">
220-
<td class="step-left vst-text input-label">
221-
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?>
222-
onclick="javascript:elementHideShow('statstable');"> <?=__('Statistics Authorization')?></label>
223-
</td>
224-
</tr>
225-
<tr>
226-
<td class="step-left">
227-
<table style="display:<?php if (empty($v_stats_user)) { echo 'none';} else {echo 'block';}?> ;" id="statstable" name="v-add-web-domain-stats-user">
228-
<tr>
229-
<td class="vst-text input-label">
230-
<?php print __('Username');?>
231-
</td>
232-
</tr>
233-
<tr>
234-
<td>
235-
<input type="text" size="20" class="vst-input" name="v_stats_user" value="<?=htmlentities(trim($v_stats_user, "'"))?>">
236-
</td>
237-
</tr>
238-
<tr>
239-
<td class="vst-text input-label">
240-
<?php print __('Password');?> / <a href="javascript:WEBrandom();" class="generate"><?php print __('generate');?></a>
241-
</td>
242-
</tr>
243-
<tr>
244-
<td>
245-
<input type="text" size="20" class="vst-input password" name="v_stats_password" value="<?=htmlentities(trim($v_stats_password, "'"))?>" id="v_password">
246-
</td>
247-
</tr>
248-
</table>
249-
</td>
250-
</tr>
251252
<tr>
252253
<td class="vst-text step-top">
253254
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ftp" <?php if (!empty($v_ftp) && count($v_ftp_users)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_additional_ftp_accounts(this)"> <?php print __('Additional FTP Account');?></label>

0 commit comments

Comments
 (0)