Changeset 9788

Show
Ignore:
Timestamp:
03/20/11 14:26:03 (2 years ago)
Author:
mistic100
Message:

[extensions] Contest Results

Location:
extensions/ContestResults
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/admin/manage.php

    r9745 r9788  
    3333 
    3434        $template->append('contests_'.$contest['status'], array( 
    35                 'NAME' =>               trigger_event('render_CR_content', $contest['name']), 
    36                 'VISIBLE' =>    $contest['visible'], 
     35                'NAME' => trigger_event('render_CR_content', $contest['name']), 
     36                'VISIBLE' => $contest['visible'], 
    3737                'DATE_BEGIN' => format_date($contest['date_begin']), 
    38                 'DATE_END' =>   format_date($contest['date_end']), 
    39                 'LOGO' =>               $contest['logo'], 
    40                 'U_RESULTS' =>  CR_ADMIN . '-results&contest_id=' . $contest['id'], 
    41                 'U_EDIT' =>     CR_ADMIN . '-edit&contest_id=' . $contest['id'], 
    42                 'U_DELETE' =>   CR_ADMIN . '-manage&delete_contest=' . $contest['id'], 
    43                 'URL' =>                CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])), 
    44                 'DAYS' =>               $contest['days'], 
     38                'DATE_END' => format_date($contest['date_end']), 
     39                'LOGO' => $contest['logo'], 
     40                'U_RESULTS' => CR_ADMIN . '-results&contest_id=' . $contest['id'], 
     41                'U_EDIT' => CR_ADMIN . '-edit&contest_id=' . $contest['id'], 
     42                'U_DELETE' => CR_ADMIN . '-manage&delete_contest=' . $contest['id'], 
     43                'URL' => CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])), 
     44                'DAYS' => $contest['days'], 
    4545        )); 
    4646} 
  • extensions/ContestResults/admin/template/config.tpl

    r9745 r9788  
    11{combine_css path=$CR_PATH|@cat:'admin/template/style.css'} 
    22 
    3 {footer_script require='jquery'} 
     3{footer_script require="jquery"} 
    44{literal} 
    55        function ToggleConfig(sel, section) { 
  • extensions/ContestResults/admin/template/style.css

    r9745 r9788  
    3030        vertical-align:top; 
    3131} 
    32 div.textareas span.title.cluetip{ 
     32.textareas .title.cluetip{ 
    3333        text-align:center; 
    3434        margin:20px 0 -10px 0; 
    3535        font-size:1.2em; 
    3636} 
    37 input.inputdate { 
     37.inputdate { 
    3838        background-image:url('image/calendar.png'); 
    3939        background-repeat:no-repeat; 
  • extensions/ContestResults/include/compatibility.inc.php

    r9745 r9788  
    11<?php 
    22 
    3 // compatibilit� avec les versions < 1.1 (ajout d'une entr�e de configuration) 
     3// compatibilité avec les versions < 1.1 (ajout d'une entrée de configuration) 
    44if (!isset($conf['ContestResults'])) { 
    55        pwg_query("INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . default_config . "', 'Parametres du plugin ContestResults');"); 
    66} 
    77 
    8 // compatibilit avec les versions < 1.2 (suppression option d'affichage) 
     8// compatibilité avec les versions < 1.2 (suppression option d'affichage) 
    99$field = pwg_query("SHOW COLUMNS FROM `" . $prefixeTable . "contests` LIKE 'presentation_display'"); 
    1010if (pwg_db_num_rows($field)) { 
     
    1717} 
    1818 
    19 // compatibilit avec les versions < 1.3.a (suppression option status, regroupement des champs de description) 
     19// compatibilité avec les versions < 1.3.a (suppression option status, regroupement des champs de description) 
    2020$field = pwg_query("SHOW COLUMNS FROM `" . $prefixeTable . "contests` LIKE 'status'"); 
    2121if (pwg_db_num_rows($field)) { 
     
    2828                if (!empty($contest['presentation'])) { 
    2929                        $new_description[] = array( 
    30                                 'name' => 'Presentation[lang=fr]Pr�sentation[/lang][lang=es]Presentaci�n[/lang][lang=lv]Prezentacija[/lang]', 
     30                                'name' => 'Presentation[lang=fr]Présentation[/lang][lang=es]Presentación[/lang][lang=lv]Prezentacija[/lang]', 
    3131                                'content' => $contest['presentation'], 
    3232                        ); 
     
    3434                if (!empty($contest['rules'])) { 
    3535                        $new_description[] = array( 
    36                                 'name' => 'Rules[lang=fr]Rgles[/lang][lang=es]Restricciones[/lang][lang=lv]Noteikumi[/lang]', 
     36                                'name' => 'Rules[lang=fr]Règles[/lang][lang=es]Restricciones[/lang][lang=lv]Noteikumi[/lang]', 
    3737                                'content' => $contest['rules'], 
    3838                        ); 
     
    4646                if (!empty($contest['final'])) { 
    4747                        $new_description[] = array( 
    48                                 'name' => 'Conclusion[lang=fr]Conclusion[/lang][lang=es]Conclusin[/lang][lang=lv]Beigsana[/lang]', 
     48                                'name' => 'Conclusion[lang=fr]Conclusion[/lang][lang=es]Conclusión[/lang][lang=lv]Beigsana[/lang]', 
    4949                                'content' => $contest['final'], 
    5050                        ); 
     
    6666} 
    6767 
    68 // compatibilit� avec les versions < 1.3.b (ajout d'un param�tre de config) 
     68// compatibilité avec les versions < 1.3.b (ajout d'un paramètre de config) 
    6969$conf['ContestResults'] = unserialize($conf['ContestResults']); 
    7070if (!isset($conf['ContestResults']['truncate_summary'])) { 
  • extensions/ContestResults/include/cr_menubar.php

    r9745 r9788  
    2424function CR_menubar_apply($menu_ref_arr) { 
    2525        global $template, $conf; 
    26         //$config = unserialize($conf['ContestResults']); 
    2726        $menu = &$menu_ref_arr[0]; 
    2827