Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextKeyword['Edit Keyword']); ?>
2
<?php
3
if(!empty($validationMsg)){
4
	?>
5
	<p class="dirmsg">
6
		<font class="error"><?php echo $validationMsg?></font>
7
	</p>
8
	<?php
9
}
10
?>
11
<form id="editKeyword">
12
<input type="hidden" name="sec" value="update"/>
13
<input type="hidden" name="oldName" value="<?php echo $post['oldName']?>"/>
14
<input type="hidden" name="id" value="<?php echo $post['id']?>"/>
15
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
16
	<tr class="listHead">
17
		<td class="left" width='30%'><?php echo $spTextKeyword['Edit Keyword']?></td>
18
		<td class="right">&nbsp;</td>
19
	</tr>
20
	<tr class="white_row">
21
		<td class="td_left_col"><?php echo $spText['common']['Name']?>:</td>
22
		<td class="td_right_col"><input type="text" name="name" value="<?php echo $post['name']?>" class="long"><?php echo $errMsg['name']?></td>
23
	</tr>
24
	<tr class="blue_row">
25
		<td class="td_left_col"><?php echo $spText['common']['Website']?>:</td>
26
		<td class="td_right_col">
27
			<select name="website_id">
28
				<?php foreach($websiteList as $websiteInfo){?>
29
					<?php if($websiteInfo['id'] == $post['website_id']){?>
30
						<option value="<?php echo $websiteInfo['id']?>" selected><?php echo $websiteInfo['name']?></option>
31
					<?php }else{?>
32
						<option value="<?php echo $websiteInfo['id']?>"><?php echo $websiteInfo['name']?></option>
33
					<?php }?>
34
				<?php }?>
35
			</select>
36
			<?php echo $errMsg['website_id']?>
37
		</td>
38
	</tr>
39
	<tr class="white_row">
40
		<td class="td_left_col"><?php echo $spText['common']['lang']?>:</td>
41
		<td class="td_right_col">
42
			<?php echo $this->render('language/languageselectbox', 'ajax'); ?>
43
		</td>
44
	</tr>
45
	<tr class="blue_row">
46
		<td class="td_left_col"><?php echo $spText['common']['Country']?>:</td>
47
		<td class="td_right_col">
48
			<?php echo $this->render('country/countryselectbox', 'ajax'); ?>
49
		</td>
50
	</tr>
51
	<?php $post['searchengines'] = is_array($post['searchengines']) ? $post['searchengines'] : array(); ?>
52
	<tr class="white_row">
53
		<td class="td_left_col"><?php echo $spText['common']['Search Engine']?>:</td>
54
		<td class="td_right_col">
55
			<select name="searchengines[]" class="multi" multiple="multiple" id="searchengines">
56
				<?php foreach($seList as $seInfo){?>
57
					<?php $selected = in_array($seInfo['id'], $post['searchengines']) ? "selected" : ""?>
58
					<option value="<?php echo $seInfo['id']?>" <?php echo $selected?>><?php echo $seInfo['domain']?></option>
59
				<?php }?>
60
			</select>
61
			<?php echo $errMsg['searchengines']?>
62
			<br>
63
			<input type="checkbox" id="select_all" onclick="selectAllOptions('searchengines', true); $('clear_all').checked=false;"> <?php echo $spText['label']['Select All']?>
64
			&nbsp;&nbsp;
65
			<input type="checkbox" id="clear_all" onclick="selectAllOptions('searchengines', false); $('select_all').checked=false;"> <?php echo $spText['label']['Clear All']?>
66
		</td>
67
	</tr>
68
	<tr class="blue_row">
69
		<td class="tab_left_bot_noborder"></td>
70
		<td class="tab_right_bot"></td>
71
	</tr>
72
	<tr class="listBot">
73
		<td class="left" colspan="1"></td>
74
		<td class="right"></td>
75
	</tr>
76
</table>
77
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
78
	<tr>
79
    	<td style="padding-top: 6px;text-align:right;">
80
    		<a onclick="scriptDoLoad('keywords.php', 'content')" href="javascript:void(0);" class="actionbut">
81
         		<?php echo $spText['button']['Cancel']?>
82
         	</a>&nbsp;
83
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('keywords.php', 'editKeyword', 'content')"; ?>
84
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
85
         		<?php echo $spText['button']['Proceed']?>
86
         	</a>
87
    	</td>
88
	</tr>
89
</table>
90
</form>