Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
$headLabel = empty($headLabel) ? $spTextPanel['Proxy Settings'] : $headLabel;
3
echo showSectionHead($headLabel);
4
 
5
// if saved successfully
6
if (!empty($saved)) {
7
    showSuccessMsg($spTextSettings['allsettingssaved'], false);
8
}
9
?>
10
<form id="updateSettings">
11
<input type="hidden" value="update" name="sec">
12
<input type="hidden" value="<?php echo $category?>" name="category">
13
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
14
	<tr class="listHead">
15
		<td class="left" width='35%'><?php echo $headLabel?></td>
16
		<td class="right">&nbsp;</td>
17
	</tr>
18
	<?php
19
	foreach( $list as $i => $listInfo){
20
		$class = ($i % 2) ? "blue_row" : "white_row";
21
		switch($listInfo['set_type']){
22
 
23
			case "small":
24
				$width = 40;
25
				break;
26
 
27
			case "bool":
28
				if(empty($listInfo['set_val'])){
29
					$selectYes = "";
30
					$selectNo = "selected";
31
				}else{
32
					$selectYes = "selected";
33
					$selectNo = "";
34
				}
35
				break;
36
 
37
			case "medium":
38
				$width = 200;
39
				break;
40
 
41
			case "large":
42
			case "text":
43
				$width = 500;
44
				break;
45
		}
46
		?>
47
		<tr class="<?php echo $class?>">
48
			<td class="td_left_col"><?php echo $spTextSettings[$listInfo['set_name']]?>:</td>
49
			<td class="td_right_col">
50
				<?php if($listInfo['set_type'] != 'text'){?>
51
					<?php if($listInfo['set_type'] == 'bool'){?>
52
						<select  name="<?php echo $listInfo['set_name']?>">
53
							<option value="1" <?php echo $selectYes?>><?php echo $spText['common']['Yes']?></option>
54
							<option value="0" <?php echo $selectNo?>><?php echo $spText['common']['No']?></option>
55
						</select>
56
					<?php }else{?>
57
						<input type="text" name="<?php echo $listInfo['set_name']?>" value="<?php echo stripslashes($listInfo['set_val'])?>" style='width:<?php echo $width?>px'>
58
					<?php }?>
59
				<?php }else{?>
60
					<textarea name="<?php echo $listInfo['set_name']?>" style='width:<?php echo $width?>px'><?php echo stripslashes($listInfo['set_val'])?></textarea>
61
				<?php }?>
62
			</td>
63
		</tr>
64
		<?php
65
	}
66
	?>
67
	<tr class="blue_row">
68
		<td class="tab_left_bot_noborder"></td>
69
		<td class="tab_right_bot"></td>
70
	</tr>
71
	<tr class="listBot">
72
		<td class="left" colspan="1"></td>
73
		<td class="right"></td>
74
	</tr>
75
</table>
76
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
77
	<tr>
78
    	<td style="padding-top: 6px;text-align:right;">
79
    		<a onclick="scriptDoLoad('settings.php?sec=reportsettings', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut">
80
         		<?php echo $spText['button']['Cancel']?>
81
         	</a>&nbsp;
82
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('settings.php', 'updateSettings', 'content')"; ?>
83
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
84
         		<?php echo $spText['button']['Proceed']?>
85
         	</a>
86
    	</td>
87
	</tr>
88
</table>
89
</form>