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

Last change on this file since 6768 was 6768, checked in by mistic100, 14 years ago
File size: 2.2 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       
16        {if isset($contests_pending)}
17                <ul class="thumbnailCategories">
18                        {foreach from=$contests_pending item=contest}
19                                <li>
20                                        <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
21                                                <div class="illustration">
22                                                        <a href="{$contest.URL}">
23                                                                {if !empty($contest.LOGO)}
24                                                                        <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;">
25                                                                {/if}
26                                                        </a>
27                                                </div>
28                                                <div class="description">
29                                                        <h3>
30                                                                <a href="{$contest.URL}">{$contest.NAME}</a>
31                                                        </h3>
32                                                        <div class="text">
33                                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
34                                                                {if !empty($contest.SUMMARY)}
35                                                                        <p>{$contest.SUMMARY}</p>
36                                                                {/if}
37                                                        </div>
38                                                </div>
39                                        </div>
40                                </li>
41                        {/foreach}
42                </ul>
43        {/if}
44       
45        {if isset($contests_finished)}
46                <ul class="thumbnailCategories">
47                        {foreach from=$contests_finished item=contest}
48                                <li>
49                                        <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
50                                                <div class="description">
51                                                        <h3>
52                                                                <a href="{$contest.URL}">{$contest.NAME}</a>
53                                                                <span class="finished">({'CR_finished'|@translate})</span>
54                                                        </h3>
55                                                        <div class="text">
56                                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
57                                                                <div class="results">
58                                                                        <a href="{$contest.URL}">
59                                                                                {foreach from=$contest.RESULTS item=result}
60                                                                                        <img src="{$result.TN_SRC}" style="max-height:80px;max-width:120px;"/>
61                                                                                {/foreach}
62                                                                        </a>
63                                                                </div>
64                                                        </div>
65                                                </div>
66                                        </div>
67                                </li>
68                        {/foreach}
69                </ul>
70        {/if}
71</div> <!-- content -->
72
73{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.