Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php if(!empty($msg)){
2
	$msgClass = empty($error) ? "success" : "error";
3
	?>
4
		<p class="dirmsg">
5
			<font class="<?php echo $msgClass?>"><?php echo $msg?></font>
6
		</p>
7
	<?php
8
	}
9
?>
10
<form id="submissionForm" name="submissionForm">
11
<input type="hidden" name="sec" value="submitsite"/>
12
<input type="hidden" name="website_id" value="<?php echo $websiteId?>"/>
13
<input type="hidden" name="dir_id" value="<?php echo $dirInfo['id']?>"/>
14
<input type="hidden" name="add_params" value="<?php echo $addParams?>">
15
 
16
<?php if(!empty($phpsessid)){?>
17
    <input type="hidden" name="phpsessid" value="<?php echo $phpsessid?>">
18
<?php }?>
19
 
20
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
21
	<tr class="listHead">
22
		<td class="left" style="width: 30%"><?php echo $spTextTools['directory-submission']?></td>
23
		<td class="right">&nbsp;</td>
24
	</tr>
25
	<tr class="white_row">
26
		<td class="td_left_col"><?php echo $spText['common']['Directory']?>:</td>
27
		<td class="td_right_col"><a href="<?php echo $dirInfo['submit_url']?>" target="_blank"><?php echo $dirInfo['domain']?></a></td>
28
	</tr>
29
	<tr class="blue_row">
30
		<td class="td_left_col"><?php echo $spText['common']['Pagerank']?>:</td>
31
		<td class="td_right_col"><?php echo $dirInfo['pagerank']?></td>
32
	</tr>
33
	<tr class="white_row">
34
		<td class="td_left_col"><?php echo $spText['common']['Domain Authority']?>:</td>
35
		<td class="td_right_col"><?php echo $dirInfo['domain_authority']?></td>
36
	</tr>
37
	<tr class="blue_row">
38
		<td class="td_left_col"><?php echo $spText['common']['Page Authority']?>:</td>
39
		<td class="td_right_col"><?php echo $dirInfo['page_authority']?></td>
40
	</tr>
41
	<tr class="white_row" id="category_col">
42
		<td class="td_left_col"><?php echo $spText['common']['Category']?>:</td>
43
		<td class="td_right_col"><?php echo $categorySel?></td>
44
	</tr>
45
	<?php if (!empty($reciprocalDir)) { ?>
46
		<tr class="blue_row">
47
			<td class="td_left_col"><?php echo $spTextDir['Reciprocal Link']?>:</td>
48
			<td class="td_right_col">
49
				<input type="text" name="reciprocal_url" value="<?php echo $reciprocalUrl?>" style="width: 300px;">
50
			</td>
51
		</tr>
52
	<?php } ?>
53
	<?php if(!empty($captchaUrl)){ ?>
54
		<tr class="blue_row">
55
			<td class="td_left_col"><?php echo $spTextDir['Enter the code shown']?>:</td>
56
			<td class="td_right_col">
57
				<?php if(!empty($imageHash)){?>
58
					<input type="hidden" name="<?php echo $dirInfo['imagehash_col']?>" value="<?php echo $imageHash?>">
59
				<?php }?>
60
				<?php
61
				$captchaCodeError = "";
62
				if ( stristr($captchaCode, 'Error:')) {
63
				    $captchaCodeError = formatErrorMsg($captchaCode);
64
				    $captchaCode = "";
65
				}
66
				?>
67
				<input type="text" name="<?php echo $dirInfo['cptcha_col']?>" value="<?php echo $captchaCode;?>" id='captcha'>
68
				<p><img src='<?php echo $captchaUrl?>'></p>
69
				<?php echo $captchaCodeError?>
70
			</td>
71
		</tr>
72
	<?php } ?>
73
	<tr class="white_row">
74
		<td class="tab_left_bot_noborder"></td>
75
		<td class="tab_right_bot"></td>
76
	</tr>
77
	<tr class="listBot">
78
		<td class="left" colspan="1"></td>
79
		<td class="right"></td>
80
	</tr>
81
</table>
82
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
83
	<tr>
84
    	<td style="padding-top: 6px;text-align:right;">
85
    		<a onclick="scriptDoLoad('directories.php', 'content')" href="javascript:void(0);" class="actionbut">
86
         		<?php echo $spText['button']['Cancel']?>
87
         	</a>&nbsp;
88
         	<a onclick="scriptDoLoad('directories.php?sec=skip&website_id=<?php echo $websiteId?>&dir_id=<?php echo $dirInfo['id']?>', 'subcontent')" href="javascript:void(0);" class="actionbut">
89
         		<?php echo $spText['button']['Skip']?>
90
         	</a>&nbsp;
91
         	<a onclick="scriptDoLoad('directories.php?sec=reload&website_id=<?php echo $websiteId?>&dir_id=<?php echo $dirInfo['id']?>', 'subcontent')" href="javascript:void(0);" class="actionbut">
92
         		<?php echo $spText['button']['Reload']?>
93
         	</a>&nbsp;
94
         	<a onclick="checkSubmitInfo('directories.php', 'submissionForm', 'subcontent', '<?php echo $dirInfo['category_col']?>')" href="javascript:void(0);" class="actionbut" id="dir_submit_but">
95
         		<?php echo $spText['button']['Submit']?>
96
         	</a>
97
    	</td>
98
	</tr>
99
</table>
100
</form>
101
 
102
<script>
103
jQuery.expr[':'].icontains = function(a, i, m) {
104
  return jQuery(a).text().toUpperCase()
105
      .indexOf(m[3].toUpperCase()) >= 0;
106
};
107
 
108
var catSelectStr = "<?php echo $catSelectStr?>";
109
var catList = catSelectStr.split(",");
110
var found = 0;
111
for (var i = 0; i < catList.length; i++) {
112
	$('#category_col option:icontains(' + catList[i].trim() + ')').each(function() {
113
		$(this).attr('selected', 'selected');
114
		found = 1;
115
		return true;
116
	});
117
 
118
	if (found) {
119
		break;
120
	}
121
 
122
}
123
 
124
<?php if (defined("CB_ENABLE_DIR_AUTO_SUBMISSION") && CB_ENABLE_DIR_AUTO_SUBMISSION) {?>
125
    setTimeout(function() {
126
        $('#dir_submit_but').trigger('click');
127
    }, <?php echo CB_DIR_AUTO_SUBMISSION_INTERVAL * 1000?>);
128
<?php }?>
129
</script>