source: extensions/ContestResults/template/cr_main.tpl @ 6782

Last change on this file since 6782 was 6782, checked in by mistic100, 14 years ago

Fixs some errors. Add results previews. Code revision.

File size: 2.3 KB
Line 
1{html_head}
2<link rel="stylesheet" type="text/css" href="{$CR_PATH}template/style.css">
3{/html_head}
4
5{$MENUBAR}
6
7{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
8<div id="content" class="content">
9        <div class="titrePage">
10                <ul class="categoryActions">
11                        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
12                </ul>
13                <h2>{'Contests'|@translate}</h2>
14        </div> <!-- titrePage -->
15        {if !isset($contests_pending) AND !isset($contests_finished)}
16                <div class="nopublic" style="margin-bottom:200px;">
17                        {'CR_no_contest'|@translate}
18                </div>
19        {/if}
20        {if isset($contests_pending)}
21                <ul class="thumbnailCategories">
22                        {foreach from=$contests_pending item=contest}
23                                <li>
24                                        <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
25                                                <div class="illustration">
26                                                        <a href="{$contest.URL}">
27                                                                {if !empty($contest.LOGO)}
28                                                                        <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;">
29                                                                {/if}
30                                                        </a>
31                                                </div>
32                                                <div class="description">
33                                                        <h3>
34                                                                <a href="{$contest.URL}">{$contest.NAME}</a>
35                                                        </h3>
36                                                        <div class="text">
37                                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
38                                                                {if !empty($contest.SUMMARY)}
39                                                                        <p>{$contest.SUMMARY}</p>
40                                                                {/if}
41                                                        </div>
42                                                </div>
43                                        </div>
44                                </li>
45                        {/foreach}
46                </ul>
47        {/if}
48       
49        {if isset($contests_finished)}
50                <ul class="thumbnailCategories">
51                        {foreach from=$contests_finished item=contest}
52                                <li>
53                                        <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
54                                                <div class="description">
55                                                        <h3>
56                                                                <a href="{$contest.URL}">{$contest.NAME}</a>
57                                                                <span class="finished">({'CR_finished'|@translate})</span>
58                                                        </h3>
59                                                        <div class="text">
60                                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
61                                                                <div class="results">
62                                                                        <a href="{$contest.URL}">
63                                                                                {foreach from=$contest.RESULTS item=result}
64                                                                                        <img src="{$result.TN_SRC}" style="max-height:80px;max-width:120px;"/>
65                                                                                {/foreach}
66                                                                        </a>
67                                                                </div>
68                                                        </div>
69                                                </div>
70                                        </div>
71                                </li>
72                        {/foreach}
73                </ul>
74        {/if}
75</div> <!-- content -->
76
77{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.