1 | {html_head} |
---|
2 | <link rel="stylesheet" type="text/css" href="{$CR_PATH}admin/template/style.css"> |
---|
3 | {/html_head} |
---|
4 | |
---|
5 | <h2 style="float:right;top:-24px;position:relative;font-style:italic;margin-bottom:-20px;font-size:12px;font-weight:normal;">{$CR_VERSION}</h2> |
---|
6 | |
---|
7 | <div class="titrePage"> |
---|
8 | <h2>{'CR_manage_tab'|@translate}</h2> |
---|
9 | </div> |
---|
10 | |
---|
11 | {if !isset($contests_pending) and !isset($contests_finished)} |
---|
12 | {'CR_no_contest'|@translate}<br> |
---|
13 | <a href="admin.php?page=plugin§ion=ContestResults/admin/admin.php&tab=new">{'CR_new_tab'|@translate}</a> |
---|
14 | {/if} |
---|
15 | |
---|
16 | {if isset($contests_pending)} |
---|
17 | <fieldset> |
---|
18 | <legend>{'CR_pending_title'|@translate}</legend> |
---|
19 | <form id="categoryOrdering"> |
---|
20 | <ul class="categoryUl"> |
---|
21 | {foreach from=$contests_pending item=contest name=pending_loop} |
---|
22 | <li class="categoryLi {if $smarty.foreach.pending_loop.index is odd}virtual_cat{/if} {if $contest.VISIBLE == 0}novisible{/if}"> |
---|
23 | <ul class="categoryActions"> |
---|
24 | <li> |
---|
25 | <a href="{$contest.U_EDIT}" title="{'CR_edit_tab'|@translate}"> |
---|
26 | <img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'CR_edit_tab'|@translate}"/> |
---|
27 | </a> |
---|
28 | </li> |
---|
29 | <li> |
---|
30 | <a href="{$contest.U_RESULTS}" title="{'CR_results_tab'|@translate}"> |
---|
31 | <img src="{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'CR_results_tab'|@translate}"/> |
---|
32 | </a> |
---|
33 | </li> |
---|
34 | <li> |
---|
35 | <a href="{$contest.U_DELETE}" title="{'CR_delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');"> |
---|
36 | <img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'CR_delete'|@translate}" /> |
---|
37 | </a> |
---|
38 | </li> |
---|
39 | </ul> |
---|
40 | <p> |
---|
41 | {if !empty($contest.LOGO)}<img src="{$contest.LOGO}" width="13px" class="button"/>{/if} |
---|
42 | <strong><a href="{$contest.URL}" title="{'CR_go'|@translate}">{$contest.NAME}</a></strong> - {$contest.DATE_BEGIN} | {$contest.DATE_END} |
---|
43 | </p> |
---|
44 | </li> |
---|
45 | {/foreach} |
---|
46 | </ul> |
---|
47 | </form> |
---|
48 | </fieldset> |
---|
49 | {/if} |
---|
50 | |
---|
51 | {if isset($contests_finished)} |
---|
52 | <fieldset> |
---|
53 | <legend>{'CR_finished_title'|@translate}</legend> |
---|
54 | <form id="categoryOrdering"> |
---|
55 | <ul class="categoryUl"> |
---|
56 | {foreach from=$contests_finished item=contest name=finished_loop} |
---|
57 | <li class="categoryLi {if $smarty.foreach.finished_loop.index is odd}virtual_cat{/if} {if $contest.VISIBLE == 0}novisible{/if}"> |
---|
58 | <ul class="categoryActions"> |
---|
59 | <li> |
---|
60 | <a href="{$contest.U_EDIT}" title="{'CR_edit_tab'|@translate}"> |
---|
61 | <img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'CR_edit_tab'|@translate}"/> |
---|
62 | </a> |
---|
63 | </li> |
---|
64 | <li> |
---|
65 | <a href="{$contest.U_RESULTS}" title="{'CR_results_tab'|@translate}"> |
---|
66 | <img src="{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'CR_results_tab'|@translate}"/> |
---|
67 | </a> |
---|
68 | </li> |
---|
69 | <li> |
---|
70 | <a href="{$contest.U_DELETE}" title="{'CR_delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');"> |
---|
71 | <img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'CR_delete'|@translate}" /> |
---|
72 | </a> |
---|
73 | </li> |
---|
74 | </ul> |
---|
75 | <p> |
---|
76 | {if !empty($contest.LOGO)}<img src="{$contest.LOGO}" width="13px" class="button"/>{/if} |
---|
77 | <strong><a href="{$contest.URL}" title="{'CR_go'|@translate}">{$contest.NAME}</a></strong> - {$contest.DATE_BEGIN} | {$contest.DATE_END} |
---|
78 | </p> |
---|
79 | </li> |
---|
80 | {/foreach} |
---|
81 | </ul> |
---|
82 | </form> |
---|
83 | </fieldset> |
---|
84 | {/if} |
---|