Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextPanel['Settings']); ?>
2
<?php if(!empty($saved)) showSuccessMsg($spSettingsText['allsettingssaved'], false); ?>
3
<form id="updateSettings">
4
<input type="hidden" value="update" name="sec">
5
<table id="cust_tab">
6
	<tr class="form_head">
7
		<th width='30%'><?php echo $spTextPanel['Settings']?></th>
8
		<th>&nbsp;</th>
9
	</tr>
10
	<?php
11
	foreach( $settingsList as $i => $listInfo){
12
		switch($listInfo['set_type']){
13
 
14
			case "small":
15
				$width = 40;
16
				break;
17
 
18
			case "bool":
19
				if(empty($listInfo['set_val'])){
20
					$selectYes = "";
21
					$selectNo = "selected";
22
				}else{
23
					$selectYes = "selected";
24
					$selectNo = "";
25
				}
26
				break;
27
 
28
			case "medium":
29
				$width = 200;
30
				break;
31
 
32
			case "large":
33
			case "text":
34
				$width = 500;
35
				break;
36
		}
37
 
38
		?>
39
     	<tr class="form_data">
40
			<td><?php echo $pluginText[$listInfo['set_name']]?>:</td>
41
		 	<?php if($listInfo['set_type'] != 'text'){?>
42
				<?php if($listInfo['set_type'] == 'bool'){?>
43
				<td class="td_right_col">
44
					<select  name="<?php echo $listInfo['set_name']?>">
45
						<option value="1" <?php echo $selectYes?>><?php echo $spText['common']['Yes']?></option>
46
						<option value="0" <?php echo $selectNo?>><?php echo $spText['common']['No']?></option>
47
					</select>
48
					<?php } ?>
49
				</td>
50
				<?php } ?>
51
	    </tr>
52
	<?php }?>
53
 
54
</table>
55
<br>
56
<table width="100%" class="actionSec">
57
	<tr>
58
    	<td style="padding-top: 6px;text-align:right;">
59
    		<a onclick="<?php echo pluginGETMethod('action=settings', 'content')?>" href="javascript:void(0);" class="actionbut">
60
         		<?php echo $spText['button']['Cancel']?>
61
         	</a>&nbsp;
62
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : pluginConfirmPOSTMethod('updateSettings', 'content', 'action=updateSettings');?>
63
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
64
         		<?php echo $spText['button']['Proceed']?>
65
         	</a>
66
    	</td>
67
	</tr>
68
</table>
69
</form>