Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextPanel['Seo Tools Manager']); ?>
2
 
3
<script type="text/javascript">
4
$(document).ready(function() {
5
    $("table").tablesorter({
6
		sortList: [[2,0]]
7
    });
8
});
9
</script>
10
 
11
<table id="cust_tab" class="tablesorter">
12
	<thead>
13
		<tr class="listHead">
14
			<th><?php echo $spText['common']['Id']?></th>
15
			<th><?php echo $spText['common']['Name']?></th>
16
			<th><?php echo $spText['common']['Priority']?></th>
17
			<th><?php echo $spTextTools['User Access']?></th>
18
			<th><?php echo $spText['common']['Reports']?></th>
19
			<th><?php echo $spText['label']['Cron']?></th>
20
			<th><?php echo $spText['common']['Status']?></th>
21
			<th><?php echo $spText['common']['Action']?></th>
22
		</tr>
23
	</thead>
24
	<tbody>
25
		<?php
26
		foreach($list as $i => $listInfo){
27
 
28
			if($listInfo['status']){
29
				$statLabel = $spText['common']["Active"];
30
			}else{
31
				$statLabel = $spText['common']["Inactive"];
32
			}
33
            $activateLink = SP_DEMO ? scriptAJAXLinkHref('demo', '', "", $statLabel) : scriptAJAXLinkHref('seo-tools-manager.php', 'content', "sec=changestatus&seotool_id={$listInfo['id']}&status={$listInfo['status']}", $statLabel);
34
 
35
            $statLabel = ($listInfo['reportgen']) ? $spText['common']["Active"] : $spText['common']["Inactive"];
36
            $reportgenLink = SP_DEMO ? scriptAJAXLinkHref('demo', '', "", $statLabel) : scriptAJAXLinkHref('seo-tools-manager.php', 'content', "sec=changereportgen&seotool_id={$listInfo['id']}&status={$listInfo['reportgen']}", $statLabel);
37
 
38
            $statLabel = ($listInfo['cron']) ? $spText['common']["Active"] : $spText['common']["Inactive"];
39
            $cronLink = SP_DEMO ? scriptAJAXLinkHref('demo', '', "", $statLabel) : scriptAJAXLinkHref('seo-tools-manager.php', 'content', "sec=changecron&seotool_id={$listInfo['id']}&status={$listInfo['cron']}", $statLabel);
40
 
41
            $accessLabel = ($listInfo['user_access']) ? $spText['common']["Yes"] : $spText['common']["No"];
42
            $accessLink = SP_DEMO ? scriptAJAXLinkHref('demo', '', "", $accessLabel) : scriptAJAXLinkHref('seo-tools-manager.php', 'content', "sec=changeaccess&seotool_id={$listInfo['id']}&user_access={$listInfo['user_access']}", $accessLabel);
43
 
44
			?>
45
			<tr>
46
				<td><?php echo $listInfo['id'];?></td>
47
				<td><?php echo $listInfo['name'];?></td>
48
				<td><?php echo $listInfo['priority'];?></td>
49
				<td><?php echo $accessLink;?></td>
50
				<td><?php echo $reportgenLink;?></td>
51
				<td><?php echo $cronLink;?></td>
52
				<td><?php echo $activateLink;?></td>
53
				<td>
54
					<select name="action" id="action<?php echo $listInfo['id']?>" onchange="doAction('seo-tools-manager.php', 'content', 'pid=<?php echo $listInfo['id']?>', 'action<?php echo $listInfo['id']?>')">
55
						<option value="select">-- <?php echo $spText['common']['Select']?> --</option>
56
						<option value="edit"><?php echo $spText['common']['Edit']?></option>
57
					</select>
58
				</td>
59
			</tr>
60
			<?php
61
		}
62
		?>
63
	</tbody>
64
</table>