Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
echo showSectionHead($spTextPanel['Import Websites']);
3
 
4
if (!empty($msg)) {
5
	?>
6
	<p class="dirmsg">
7
		<font class="success"><?php echo $msg?></font>
8
	</p>
9
	<?php
10
}
11
 
12
$scriptUrl = SP_WEBPATH . "/websites.php";
13
 
14
if(!empty($validationMsg)){
15
		?>
16
		<p class="dirmsg">
17
			<font class="error"><?php echo $validationMsg?></font>
18
		</p>
19
		<?php
20
		}
21
 
22
?>
23
<div id='import_website_div'>
24
<form id="projectform" name="projectform" target="website_import_frame" action="<?php echo $scriptUrl; ?>" method="post" enctype="multipart/form-data">
25
<input type="hidden" name="sec" value="import"/>
26
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
27
	<tr class="listHead">
28
		<td class="left" width='30%'><?php echo $spTextPanel['Import Websites']; ?></td>
29
		<td class="right">&nbsp;</td>
30
	</tr>
31
	<?php if(!empty($isAdmin)){ ?>
32
		<tr class="blue_row">
33
			<td class="td_left_col"><?php echo $spText['common']['User']?>:</td>
34
			<td class="td_right_col">
35
				<select name="userid" style="width:150px;">
36
					<?php foreach($userList as $userInfo){?>
37
						<?php if($userInfo['id'] == $userSelected){?>
38
							<option value="<?php echo $userInfo['id']?>" selected><?php echo $userInfo['username']?></option>
39
						<?php }else{?>
40
							<option value="<?php echo $userInfo['id']?>"><?php echo $userInfo['username']?></option>
41
						<?php }?>
42
					<?php }?>
43
				</select>
44
			</td>
45
		</tr>
46
	<?php }?>
47
	<tr class="white_row">
48
		<td class="td_left_col"><?php echo $spTextWeb['Website CSV File']?>:</td>
49
		<td class="td_right_col">
50
			<input type="file" name="website_csv_file" style="height: 22px;">
51
			<br>
52
			<br>
53
			<b>&nbsp;CSV format:</b>
54
			<br>
55
			&nbsp;name, url, meta title, meta description, meta keywords, status, analytics view id
56
			<br>
57
			<br>
58
			<a href="<?php echo SP_WEBPATH ?>/data/website_import_sample.csv" target="_blank">
59
				<?php echo $spText['common']['Sample CSV File']?>
60
			</a>
61
		</td>
62
	</tr>
63
	<tr class="blue_row">
64
		<td class="td_left_col">Delimiter:</td>
65
		<td class="td_right_col">
66
			<input type="text" name="delimiter" value="<?php echo $delimiter; ?>" size="1" maxlength="1">
67
		</td>
68
	</tr>
69
	<tr class="white_row">
70
		<td class="td_left_col">Enclosure:</td>
71
		<td class="td_right_col">
72
			<input type="text" name="enclosure" value='<?php echo $enclosure; ?>' size="1" maxlength="1">
73
		</td>
74
	</tr>
75
	<tr class="blue_row">
76
		<td class="td_left_col">Escape:</td>
77
		<td class="td_right_col">
78
			<input type="text" name="escape" value='<?php echo $escape; ?>' size="1" maxlength="1">
79
		</td>
80
	</tr>
81
	<tr class="white_row">
82
		<td class="tab_left_bot_noborder"></td>
83
		<td class="tab_right_bot"></td>
84
	</tr>
85
	<tr class="listBot">
86
		<td class="left" colspan="1"></td>
87
		<td class="right"></td>
88
	</tr>
89
</table>
90
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
91
	<tr>
92
    	<td style="padding-top: 6px;text-align:right;">
93
    		<a onclick="scriptDoLoad('websites.php', 'content')" href="javascript:void(0);" class="actionbut">
94
         		<?php echo $spText['button']['Cancel']?>
95
         	</a>&nbsp;
96
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : 'projectform.submit();'; ?>
97
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
98
         		<?php echo $spText['button']['Proceed']?>
99
         	</a>
100
    	</td>
101
	</tr>
102
</table>
103
</form>
104
</div>
105
<div><iframe style="border:none;" name="website_import_frame" id="website_import_frame"></iframe></div>