103 |
- |
1 |
<?php echo showSectionHead($spTextPanel['Themes Manager']); ?>
|
|
|
2 |
<?php
|
|
|
3 |
if(!empty($msg)){
|
|
|
4 |
echo $error ? showErrorMsg($msg, false) : showSuccessMsg($msg, false);
|
|
|
5 |
}
|
|
|
6 |
?>
|
|
|
7 |
<?php echo $pagingDiv?>
|
|
|
8 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
|
|
|
9 |
<tr class="listHead">
|
|
|
10 |
<td class="left"><?php echo $spText['label']['Theme']?></td>
|
|
|
11 |
<td><?php echo $spText['label']['Author']?></td>
|
|
|
12 |
<td><?php echo $spText['common']['Website']?></td>
|
|
|
13 |
<td><?php echo $spText['common']['Status']?></td>
|
|
|
14 |
<td><?php echo $spText['label']['Installation']?></td>
|
|
|
15 |
<td class="right"><?php echo $spText['common']['Action']?></td>
|
|
|
16 |
</tr>
|
|
|
17 |
<?php
|
|
|
18 |
$colCount = 6;
|
|
|
19 |
if(count($list) > 0){
|
|
|
20 |
$catCount = count($list);
|
|
|
21 |
foreach($list as $i => $listInfo){
|
|
|
22 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
23 |
if($catCount == ($i + 1)){
|
|
|
24 |
$leftBotClass = "tab_left_bot";
|
|
|
25 |
$rightBotClass = "tab_right_bot";
|
|
|
26 |
}else{
|
|
|
27 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
28 |
$rightBotClass = "td_br_right";
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
$activateLink = SP_WEBPATH."/admin-panel.php?menu_selected=themes-manager&start_script=themes-manager&sec=activate&theme_id={$listInfo['id']}&pageno=$pageNo";
|
|
|
32 |
if($listInfo['status']){
|
|
|
33 |
$statLabel = "<font class='green'><b>".$spText['label']["Current"]."</b></font>";
|
|
|
34 |
}else{
|
|
|
35 |
$statLabel = '<a href="'.$activateLink.'">'.$spText['common']["Activate"].'</a>';;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
?>
|
|
|
39 |
<tr class="<?php echo $class?>">
|
|
|
40 |
<td class="<?php echo $leftBotClass?>">
|
|
|
41 |
<a href="javascript:void(0);" onclick="scriptDoLoad('themes-manager.php?sec=listinfo&pid=<?php echo $listInfo['id']?>&pageno=<?php echo $pageNo?>', 'content')"><?php echo $listInfo['name']?> <?php echo $listInfo['version']?></a>
|
|
|
42 |
</td>
|
|
|
43 |
<td class="td_br_right left"><?php echo $listInfo['author']?></td>
|
|
|
44 |
<td class="td_br_right left"><a href="<?php echo $listInfo['website']?>" target="_blank"><?php echo $listInfo['website']?></a></td>
|
|
|
45 |
<td class="td_br_right"><?php echo $statLabel; ?></td>
|
|
|
46 |
<td class="td_br_right"><?php echo $listInfo['installed'] ? "<font class='green'>Success</font>" : "<font class='red'>Failed</font>"; ?></td>
|
|
|
47 |
<td class="<?php echo $rightBotClass?>" width="100px">
|
|
|
48 |
<select name="action" id="action<?php echo $listInfo['id']?>" onchange="doAction('themes-manager.php?pageno=<?php echo $pageNo?>', 'content', 'pid=<?php echo $listInfo['id']?>', 'action<?php echo $listInfo['id']?>')">
|
|
|
49 |
<option value="select">-- <?php echo $spText['common']['Select']?> --</option>
|
|
|
50 |
<option value="upgrade"><?php echo $spText['label']['Upgrade']?></option>
|
|
|
51 |
<option value="reinstall"><?php echo $spText['label']['Re-install']?></option>
|
|
|
52 |
</select>
|
|
|
53 |
</td>
|
|
|
54 |
</tr>
|
|
|
55 |
<?php
|
|
|
56 |
}
|
|
|
57 |
}else{
|
|
|
58 |
echo showNoRecordsList($colCount-2);
|
|
|
59 |
}
|
|
|
60 |
?>
|
|
|
61 |
<tr class="listBot">
|
|
|
62 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
63 |
<td class="right"></td>
|
|
|
64 |
</tr>
|
|
|
65 |
</table>
|
|
|
66 |
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
|
|
|
67 |
<tr>
|
|
|
68 |
<td style="padding-top: 6px;text-align:right;">
|
|
|
69 |
<a href="<?php echo SP_THEMESITE?>" class="actionbut" target="_blank"><?php echo $spTextTheme['Download Seo Panel Themes']?> >></a>
|
|
|
70 |
</td>
|
|
|
71 |
</tr>
|
|
|
72 |
</table>
|