Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
echo showSectionHead($spTextWeb['Edit Website']);
3
 
4
if(!empty($validationMsg)){
5
	?>
6
	<p class="dirmsg">
7
		<font class="error"><?php echo $validationMsg?></font>
8
	</p>
9
	<?php
10
}
11
?>
12
<form id="editWebsite">
13
<input type="hidden" name="sec" value="update"/>
14
<input type="hidden" name="oldName" value="<?php echo $post['oldName']?>"/>
15
<input type="hidden" name="id" value="<?php echo $post['id']?>"/>
16
<table width="100%" class="list">
17
	<tr class="listHead">
18
		<td class="left" width='30%'><?php echo $spTextWeb['Edit Website']?></td>
19
		<td class="right">&nbsp;</td>
20
	</tr>
21
	<?php if(!empty($isAdmin)){ ?>
22
		<tr class="blue_row">
23
			<td class="td_left_col"><?php echo $spText['common']['User']?>:</td>
24
			<td class="td_right_col">
25
				<select name="user_id" style="width:150px;">
26
					<?php foreach($userList as $userInfo){?>
27
						<?php if($userInfo['id'] == $post['user_id']){?>
28
							<option value="<?php echo $userInfo['id']?>" selected><?php echo $userInfo['username']?></option>
29
						<?php }else{?>
30
							<option value="<?php echo $userInfo['id']?>"><?php echo $userInfo['username']?></option>
31
						<?php }?>
32
					<?php }?>
33
				</select>
34
			</td>
35
		</tr>
36
	<?php }?>
37
	<tr class="white_row">
38
		<td class="td_left_col"><?php echo $spText['common']['Name']?>:</td>
39
		<td class="td_right_col"><input type="text" name="name" value="<?php echo $post['name']?>"><?php echo $errMsg['name']?></td>
40
	</tr>
41
	<tr class="blue_row">
42
		<td class="td_left_col"><?php echo $spText['common']['Url']?>:</td>
43
		<td class="td_right_col">
44
			<input type="text" id='weburl' name="url" value="<?php echo $post['url']?>" style="width:300px;">
45
			<a style="text-decoration: none;" href="javascript:void(0);" onclick="crawlMetaData('websites.php?sec=crawlmeta', 'crawlstats')">&#171&#171 <?php echo $spText['common']['Crawl Meta Data']?></a>
46
			<div id="crawlstats" style="float: right;padding-right:40px;"></div>
47
			<br><?php echo $errMsg['url']?>
48
		</td>
49
	</tr>
50
	<tr class="white_row">
51
		<td class="td_left_col"><?php echo $spText['label']['Title']?>:</td>
52
		<td class="td_right_col"><input type="text" name="title" id="webtitle" value="<?php echo $post['title']?>" style="width:400px;"></td>
53
	</tr>
54
	<tr class="blue_row">
55
		<td class="td_left_col"><?php echo $spText['label']['Description']?>:</td>
56
		<td class="td_right_col"><textarea name="description" id="webdescription"><?php echo $post['description']?></textarea><?php echo $errMsg['description']?></td>
57
	</tr>
58
	<tr class="white_row">
59
		<td class="td_left_col"><?php echo $spText['label']['Keywords']?>:</td>
60
		<td class="td_right_col"><textarea name="keywords" id="webkeywords"><?php echo $post['keywords']?></textarea><?php echo $errMsg['keywords']?></td>
61
	</tr>
62
	<tr class="white_row">
63
		<td class="td_left_col"><?php echo $spTextWeb['Google Analytics View Id']?>:</td>
64
		<td class="td_right_col">
65
    		<input type="text" name="analytics_view_id" value="<?php echo $post['analytics_view_id']?>">
66
			<div style="padding: 10px 6px;">
67
    			<a target="_blank" href="<?php echo SP_MAIN_SITE?>/blog/2019/12/how-do-i-find-the-google-analytics-view-id/">
68
    				<?php echo $spTextWeb['Click here to get Google Analytics View Id']; ?> &gt;&gt;
69
    			</a>
70
    		</div>
71
		</td>
72
	</tr>
73
</table>
74
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
75
	<tr>
76
    	<td style="padding-top: 6px;text-align:right;">
77
    		<a onclick="scriptDoLoad('websites.php', 'content')" href="javascript:void(0);" class="actionbut">
78
         		<?php echo $spText['button']['Cancel']?>
79
         	</a> &nbsp;
80
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('websites.php', 'editWebsite', 'content')"; ?>
81
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
82
         		<?php echo $spText['button']['Proceed']?>
83
         	</a>
84
    	</td>
85
	</tr>
86
</table>
87
</form>