source: extensions/ContestResults/admin/template/new.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: 6.1 KB
Line 
1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
2{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
3
4{include file='include/autosize.inc.tpl'}
5{include file='include/datepicker.inc.tpl'}
6
7{html_head}
8        <link rel="stylesheet" type="text/css" href="{$CR_PATH}admin/template/style.css">
9        <style type="text/css">
10                .cluetip:after {ldelim}
11                        content:url('{$themeconf.admin_icon_dir}/help.png');
12                }
13        </style>
14        <script type="text/javascript">
15                $(function() {ldelim}
16                        $('#DateBegin').datepicker({ldelim}dateFormat:'yy-mm-dd', firstDay:1});
17                        $('#DateEnd').datepicker({ldelim}dateFormat:'yy-mm-dd', firstDay:1});
18                });
19
20                jQuery().ready(function(){ldelim}
21                        jQuery('.cluetip').cluetip({ldelim}
22                                width: 550,
23                                splitTitle: '|'
24                        });
25                });
26        </script>
27{/html_head}
28
29<h2 style="float:right;top:-24px;position:relative;font-style:italic;margin-bottom:-20px;font-size:12px;font-weight:normal;">{$CR_VERSION}</h2>
30
31<div class="titrePage">
32        <h2>{if isset($NAME)}{'CR_edit_tab'|@translate|cat:' : '|cat:$NAME}{else}{'CR_new_tab'|@translate}{/if}</h2>
33</div>
34
35<form method="post" action="" class="properties">
36        <fieldset>
37                <legend>{'Configuration'|@translate}</legend>
38                <table>
39                        <tr>
40                                <td><span class="title cluetip" title="{'CR_title'|@translate}|{'CR_help_title'|@translate}{'CR_help_lang'|@translate}">{'CR_title'|@translate}</span></td>
41                                <td colspan="3"><input type="text" size="65" maxlength="255" name="name" value="{$NAME}"/></td>
42                        </tr>
43                       
44                        <tr><td colspan="4"><br/></td></tr>
45                       
46                        <tr>
47                                <td><span class="title cluetip" title="{'CR_status'|@translate}|{'CR_help_status'|@translate}">
48                                        {'CR_status'|@translate}
49                                </span></td>
50                                <td>
51                                        <label><input type="radio" name="status" value="pending" {if $STATUS == 'pending'}checked="checked"{/if}> {'CR_pending'|@translate}</label>
52                                        <label><input type="radio" name="status" value="finished" {if $STATUS == 'finished'}checked="checked"{/if}> {'CR_finished'|@translate}</label>
53                                </td>
54                                <td><span class="title cluetip" title="{'CR_visible'|@translate}|{'CR_help_visible'|@translate}">
55                                        {'CR_visible'|@translate}
56                                </span></td>
57                                <td>
58                                        <label><input type="radio" name="visible" value="1" {if $VISIBLE == 1}checked="checked"{/if}> {'Yes'|@translate}</label>
59                                        <label><input type="radio" name="visible" value="0" {if $VISIBLE == 0}checked="checked"{/if}> {'No'|@translate}</label>
60                                </td>
61                        </tr>
62                        <tr>
63                                <td><span class="title">{'CR_dateB'|@translate}</span></td>
64                                <td><input type="text" size="11" maxlength="10" value="{$DATE_BEGIN}" id="DateBegin" class="inputdate" name="date_begin"/></td>
65                                <td><span class="title">{'CR_dateE'|@translate}</span></td>
66                                <td><input type="text" size="11" maxlength="10" value="{$DATE_END}" id="DateEnd" class="inputdate" name="date_end"/></td>
67                        </tr>
68
69                        <tr><td colspan="4"><br/></td></tr>
70                       
71                        <tr>
72                                <td><span class="title">{'CR_logo'|@translate}</span></td>
73                                <td colspan="3"><input type="text" size="65" maxlength="255" value="{$LOGO}" name="logo"/></td>
74                        </tr>
75                        <tr>
76                                <td><span class="title">{'CR_banner'|@translate}</span></td>
77                                <td colspan="3"><input type="text" size="65" maxlength="255" value="{$BANNER}" name="banner"/></td>
78                        </tr>
79                       
80                        <tr><td colspan="4"><br/></td></tr>
81                       
82                        <tr>
83                                <td><span class="title cluetip" title="{'CR_summary'|@translate}|{'CR_help_summary'|@translate}{'CR_help_lang'|@translate}">
84                                        {'CR_summary'|@translate}
85                                </span></td>
86                                <td colspan="3"><textarea name="summary" id ="textarea" rows="4" cols="50">{$SUMMARY}</textarea></td>
87                        </tr>
88                </table>
89        </fieldset>
90       
91        <div class="textareas"><span class="title cluetip" title="{'CR_textareas'|@translate}|{'CR_help_textareas'|@translate}{'CR_help_lang'|@translate}">
92                {'CR_textareas'|@translate}
93        </span></div>
94
95        <fieldset>
96                <legend>{'CR_presentation'|@translate}</legend>
97                <div align="center">
98                        <textarea name="presentation" id ="textarea" rows="4" cols="50" style="width:70%;">{$PRESENTATION}</textarea>
99                        <br/>
100                        {'CR_visibility'|@translate} :
101                        <label><input type="checkbox" name="presentation_pending" value="true" {if isset($PRESENTATION_PENDING)}checked="checked"{/if}> {'CR_pending'|@translate}</label>
102                        <label><input type="checkbox" name="presentation_finished" value="true" {if isset($PRESENTATION_FINISHED)}checked="checked"{/if}> {'CR_finished'|@translate}</label>
103                </div>
104        </fieldset>
105
106        <fieldset>
107                <legend>{'CR_rules'|@translate}</legend>
108                <div align="center">
109                        <textarea name="rules" id ="textarea" rows="4" cols="50" style="width:70%;">{$RULES}</textarea>
110                        <br/>
111                        {'CR_visibility'|@translate} :
112                        <label><input type="checkbox" name="rules_pending" value="true" {if isset($RULES_PENDING)}checked="checked"{/if}> {'CR_pending'|@translate}</label>
113                        <label><input type="checkbox" name="rules_finished" value="true" {if isset($RULES_FINISHED)}checked="checked"{/if}> {'CR_finished'|@translate}</label>
114                </div>
115        </fieldset>
116
117        <fieldset>
118                <legend>{'CR_prices'|@translate}</legend>
119                <div align="center">
120                        <textarea name="prices" id ="textarea" rows="4" cols="50" style="width:70%;">{$PRICES}</textarea>
121                        <br/>
122                        {'CR_visibility'|@translate} :
123                        <label><input type="checkbox" name="prices_pending" value="true" {if isset($PRICES_PENDING)}checked="checked"{/if}> {'CR_pending'|@translate}</label>
124                        <label><input type="checkbox" name="prices_finished" value="true" {if isset($PRICES_FINISHED)}checked="checked"{/if}> {'CR_finished'|@translate}</label>
125                </div>
126        </fieldset>
127
128        <fieldset>
129                <legend>{'CR_final'|@translate}</legend>
130                <div align="center">
131                        <textarea name="final" id ="textarea" rows="4" cols="50" style="width:70%;">{$FINAL}</textarea>
132                        <br/>
133                        {'CR_visibility'|@translate} :
134                        <label><input type="checkbox" name="final_pending" value="true" {if isset($FINAL_PENDING)}checked="checked"{/if}> {'CR_pending'|@translate}</label>
135                        <label><input type="checkbox" name="final_finished" value="true" {if isset($FINAL_FINISHED)}checked="checked"{/if}> {'CR_finished'|@translate}</label>
136                </div>
137        </fieldset>
138
139        {if isset($ID)}<input type="hidden" name="contest_id" value="{$ID}"/>{/if}
140        <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="new_submit"/></p>
141</form>
Note: See TracBrowser for help on using the repository browser.