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