Exemplo n.º 1
0
 /**
  * @desc Displays the mini calendar. You must call the display method in the same order as the calendars are displayed, because it requires a javascript code loading.
  * @return string The code to write in the HTML page.
  */
 public function display()
 {
     //On crée le code selon le template
     $template = new FileTemplate('framework/util/mini_calendar.tpl');
     $template->put_all(array('DEFAULT_DATE' => !empty($this->date) ? $this->date->format(Date::FORMAT_ISO_DAY_MONTH_YEAR) : '', 'CALENDAR_ID' => $this->html_id, 'CALENDAR_NUMBER' => (string) $this->num_instance, 'DAY' => !empty($this->date) ? $this->date->get_day() : '', 'MONTH' => !empty($this->date) ? $this->date->get_month() : '', 'YEAR' => !empty($this->date) ? $this->date->get_year() : '', 'CALENDAR_STYLE' => $this->style, 'C_INCLUDE_JS' => !self::$js_inclusion_already_done));
     self::$js_inclusion_already_done = true;
     return $template->render();
 }
Exemplo n.º 2
0
        $creation_calendar = new MiniCalendar('creation');
        $creation_calendar->set_date($news_creation_date);
        $release_calendar = new MiniCalendar('release_date');
        $release_calendar->set_date($news_release_date);
        if ($news_visibility < 0 || $news_visibility > 2) {
            $news_visibility = 0;
        }
        $Template->assign_vars(array('C_DISPLAY_NEWS' => true, 'C_IMG' => !empty($news_image), 'C_EDIT_AUTH' => false, 'MODULE_DATA_PATH' => $Template->get_module_data_path('news'), 'NAME' => stripslashes($news_title), 'CONTENTS' => second_parse(stripslashes(strparse($news_contents))), 'CREATION_DATE' => $news_creation_date->format(DATE_FORMAT_SHORT), 'RELEASE_DATE' => $news_release_date->get_timestamp() > 0 ? $news_release_date->format(DATE_FORMAT_SHORT) : $NEWS_LANG['unknown_date'], 'SIZE' => $size_tpl, 'COUNT' => $news_hits, 'THEME' => get_utheme(), 'HITS' => sprintf($NEWS_LANG['n_times'], (int) $news_hits), 'NUM_NOTES' => sprintf($NEWS_LANG['num_notes'], 0), 'U_IMG' => $news_image, 'IMAGE_ALT' => str_replace('"', '\\"', $news_title), 'LANG' => get_ulang(), 'L_DATE' => $LANG['date'], 'L_SIZE' => $LANG['size'], 'L_NEWS' => $NEWS_LANG['news'], 'L_NEWS_FILE' => $NEWS_LANG['news_news'], 'L_FILE_INFOS' => $NEWS_LANG['news_infos'], 'L_INSERTION_DATE' => $NEWS_LANG['insertion_date'], 'L_RELEASE_DATE' => $NEWS_LANG['release_date'], 'L_NEWSED' => $NEWS_LANG['newsed'], 'L_NOTE' => $LANG['note'], 'U_NEWS_FILE' => url('count.php?id=' . $edit_news_id, 'news-' . $edit_news_id . '+' . url_encode_rewrite($news_title) . '.php')));
        $Template->assign_vars(array('TITLE' => stripslashes($news_title), 'COUNT' => $news_hits, 'DESCRIPTION' => $news_contents, 'SHORT_DESCRIPTION' => $news_short_contents, 'FILE_IMAGE' => $news_image, 'URL' => $news_url, 'SIZE_FORM' => $news_size, 'DATE' => $news_creation_date->format(DATE_FORMAT_SHORT, TIMEZONE_AUTO), 'CATEGORIES_TREE' => $news_categories->build_select_form($news_cat_id, 'idcat', 'idcat', 0, WRITE_CAT_NEWS, $CONFIG_NEWS['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH), 'SHORT_DESCRIPTION_PREVIEW' => second_parse(stripslashes(strparse($news_short_contents))), 'VISIBLE_WAITING' => $news_visibility == 2 ? ' checked="checked"' : '', 'VISIBLE_ENABLED' => $news_visibility == 1 ? ' checked="checked"' : '', 'VISIBLE_UNAPROVED' => $news_visibility == 0 ? ' checked="checked"' : '', 'DATE_CALENDAR_CREATION' => $creation_calendar->display(), 'DATE_CALENDAR_RELEASE' => $release_calendar->display(), 'BOOL_IGNORE_RELEASE_DATE' => $ignore_release_date ? 'true' : 'false', 'STYLE_FIELD_RELEASE_DATE' => $ignore_release_date ? 'none' : 'block', 'IGNORE_RELEASE_DATE_CHECKED' => $ignore_release_date ? ' checked="checked"' : '', 'BEGINING_CALENDAR' => $begining_calendar->display(), 'END_CALENDAR' => $end_calendar->display()));
    } else {
        $news_creation_date = new Date(DATE_NOW, TIMEZONE_AUTO);
        $news_release_date = new Date(DATE_NOW, TIMEZONE_AUTO);
        $creation_calendar = new MiniCalendar('creation');
        $creation_calendar->set_date($news_creation_date);
        $release_calendar = new MiniCalendar('release_date');
        $ignore_release_date = false;
        if (!$ignore_release_date) {
            $release_calendar->set_date($news_release_date);
        }
        $begining_calendar = new MiniCalendar('begining_date');
        $end_calendar = new MiniCalendar('end_date');
        $end_calendar->set_style('margin-left:150px;');
        $begining_calendar->set_date(new Date(DATE_NOW, TIMEZONE_AUTO));
        $end_calendar->set_date(new Date(DATE_NOW, TIMEZONE_AUTO));
        $news_visibility = 0;
        $Template->assign_vars(array('TITLE' => '', 'COUNT' => 0, 'DESCRIPTION' => '', 'SHORT_DESCRIPTION' => '', 'FILE_IMAGE' => '', 'URL' => '', 'SIZE_FORM' => '', 'DATE' => $news_creation_date->format(DATE_FORMAT_SHORT, TIMEZONE_AUTO), 'CATEGORIES_TREE' => $news_categories->build_select_form($selected_cat, 'idcat', 'idcat', 0, WRITE_CAT_NEWS, $CONFIG_NEWS['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH), 'DATE_CALENDAR_CREATION' => $creation_calendar->display(), 'DATE_CALENDAR_RELEASE' => $release_calendar->display(), 'BOOL_IGNORE_RELEASE_DATE' => $ignore_release_date ? 'true' : 'false', 'STYLE_FIELD_RELEASE_DATE' => $ignore_release_date ? 'none' : 'block', 'IGNORE_RELEASE_DATE_CHECKED' => $ignore_release_date ? ' checked="checked"' : '', 'BEGINING_CALENDAR' => $begining_calendar->display(), 'END_CALENDAR' => $end_calendar->display(), 'VISIBLE_WAITING' => '', 'VISIBLE_ENABLED' => ' checked="checked"', 'VISIBLE_UNAPROVED' => '', 'U_TARGET' => url('management.php?new=1&amp;token=' . $Session->get_token())));
    }
}
$Template->assign_vars(array('KERNEL_EDITOR' => display_editor(), 'KERNEL_EDITOR_SHORT' => display_editor('short_contents'), 'C_PREVIEW' => $preview, 'L_PAGE_TITLE' => TITLE, 'L_EDIT_FILE' => $NEWS_LANG['edit_news'], 'L_YES' => $LANG['yes'], 'L_NO' => $LANG['no'], 'L_NEWS_DATE' => $NEWS_LANG['news_date'], 'L_IGNORE_RELEASE_DATE' => $NEWS_LANG['ignore_release_date'], 'L_RELEASE_DATE' => $NEWS_LANG['release_date'], 'L_FILE_VISIBILITY' => $NEWS_LANG['news_visibility'], 'L_NOW' => $LANG['now'], 'L_UNAPPROVED' => $LANG['unapproved'], 'L_TO_DATE' => $LANG['to_date'], 'L_FROM_DATE' => $LANG['from_date'], 'L_DESC' => $LANG['description'], 'L_NEWS' => $NEWS_LANG['news'], 'L_SIZE' => $LANG['size'], 'L_URL' => $LANG['url'], 'L_FILE_IMAGE' => $NEWS_LANG['news_image'], 'L_TITLE' => $LANG['title'], 'L_CATEGORY' => $LANG['category'], 'L_REQUIRE' => $LANG['require'], 'L_NEWS_ADD' => $NEWS_LANG['news_add'], 'L_NEWS_MANAGEMENT' => $NEWS_LANG['news_management'], 'L_NEWS_CONFIG' => $NEWS_LANG['news_config'], 'L_UPDATE' => $LANG['update'], 'L_RESET' => $LANG['reset'], 'L_PREVIEW' => $LANG['preview'], 'L_UNIT_SIZE' => $LANG['unit_megabytes'], 'L_CONTENTS' => $NEWS_LANG['complete_contents'], 'L_SHORT_CONTENTS' => $NEWS_LANG['short_contents'], 'L_SUBMIT' => $edit_news_id > 0 ? $NEWS_LANG['update_news'] : $NEWS_LANG['add_news'], 'L_WARNING_PREVIEWING' => $NEWS_LANG['warning_previewing'], 'L_REQUIRE_DESCRIPTION' => $NEWS_LANG['require_description'], 'L_REQUIRE_URL' => $NEWS_LANG['require_url'], 'L_REQUIRE_CREATION_DATE' => $NEWS_LANG['require_creation_date'], 'L_REQUIRE_RELEASE_DATE' => $NEWS_LANG['require_release_date'], 'L_REQUIRE_TITLE' => $LANG['require_title']));
$Template->pparse('news_management');
require_once '../kernel/footer.php';
Exemplo n.º 3
0
        PersistenceContext::get_querier()->update(PREFIX . "poll", array('question' => $question, 'answers' => substr($answers, 0, strlen($answers) - 1), 'votes' => $votes, 'type' => $type, 'archive' => $archive, 'visible' => $visible, 'start' => $start_timestamp, 'end' => $start_timestamp, 'timestamp' => $timestamp), 'WHERE id = :id', array('id' => $id_post));
        AppContext::get_response()->redirect(HOST . REWRITED_SCRIPT);
    } else {
        AppContext::get_response()->redirect('/poll/admin_poll.php?id= ' . $id_post . '&error=incomplete#message_helper');
    }
} elseif (!empty($id)) {
    $tpl = new FileTemplate('poll/admin_poll_management2.tpl');
    try {
        $row = PersistenceContext::get_querier()->select_single_row(PREFIX . 'poll', array('*'), 'WHERE id=:id', array('id' => $id));
    } catch (RowNotFoundException $e) {
        $error_controller = PHPBoostErrors::unexisting_page();
        DispatchManager::redirect($error_controller);
    }
    $calendar_start = new MiniCalendar('start', !empty($row['start']) ? new Date($row['start'], Timezone::SERVER_TIMEZONE) : null);
    $calendar_end = new MiniCalendar('end', !empty($row['end']) ? new Date($row['end'], Timezone::SERVER_TIMEZONE) : null);
    $calendar_current_date = new MiniCalendar('current_date', !empty($row['timestamp']) ? new Date($row['timestamp'], Timezone::SERVER_TIMEZONE) : new Date());
    $tpl->put_all(array('IDPOLL' => $row['id'], 'QUESTIONS' => stripslashes($row['question']), 'TYPE_UNIQUE' => $row['type'] == '1' ? 'checked="checked"' : '', 'TYPE_MULTIPLE' => $row['type'] == '0' ? 'checked="checked"' : '', 'ARCHIVES_ENABLED' => $row['archive'] == '1' ? 'checked="checked"' : '', 'ARCHIVES_DISABLED' => $row['archive'] == '0' ? 'checked="checked"' : '', 'VISIBLE_WAITING' => $row['visible'] == 2 || !empty($row['end']) ? 'checked="checked"' : '', 'VISIBLE_ENABLED' => $row['visible'] == 1 && empty($row['end']) ? 'checked="checked"' : '', 'VISIBLE_UNAPROB' => $row['visible'] == 0 ? 'checked="checked"' : '', 'CALENDAR_START' => $calendar_start->display(), 'CALENDAR_END' => $calendar_end->display(), 'CALENDAR_CURRENT_DATE' => $calendar_current_date->display(), 'HOUR' => Date::to_format($row['timestamp'], 'H'), 'MIN' => Date::to_format($row['timestamp'], 'i'), 'DATE' => Date::to_format($row['timestamp'], Date::FORMAT_DAY_MONTH_YEAR), 'L_REQUIRE_QUESTION' => $LANG['require_question'], 'L_REQUIRE_ANSWER' => $LANG['require_answer'], 'L_REQUIRE_ANSWER_TYPE' => $LANG['require_answer_type'], 'L_POLL_MANAGEMENT' => $LANG['poll_management'], 'L_POLL_ADD' => $LANG['poll_add'], 'L_POLL_CONFIG' => $LANG['poll_config'], 'L_REQUIRE' => LangLoader::get_message('form.explain_required_fields', 'status-messages-common'), 'L_QUESTION' => $LANG['question'], 'L_ANSWER_TYPE' => $LANG['answer_type'], 'L_ANSWERS' => $LANG['answers'], 'L_SINGLE' => $LANG['single'], 'L_MULTIPLE' => $LANG['multiple'], 'L_YES' => LangLoader::get_message('yes', 'common'), 'L_NO' => LangLoader::get_message('no', 'common'), 'L_NUMBER_VOTE' => $LANG['number_vote'], 'L_DATE' => LangLoader::get_message('date', 'date-common'), 'L_POLL_DATE' => $LANG['poll_date'], 'L_RELEASE_DATE' => $LANG['release_date'], 'L_IMMEDIATE' => $LANG['immediate'], 'L_UNAPROB' => $LANG['unaprob'], 'L_UNTIL' => $LANG['until'], 'L_UPDATE' => $LANG['update'], 'L_RESET' => $LANG['reset'], 'L_DELETE' => LangLoader::get_message('delete', 'common')));
    //Gestion erreur.
    $get_error = retrieve(GET, 'error', '');
    if ($get_error == 'incomplete') {
        $tpl->put('message_helper', MessageHelper::display($LANG['incomplete'], MessageHelper::NOTICE));
    }
    $array_answer = explode('|', $row['answers']);
    $array_vote = explode('|', $row['votes']);
    $sum_vote = array_sum($array_vote);
    $sum_vote = $sum_vote == 0 ? 1 : $sum_vote;
    //Empêche la division par 0.
    //Liste des choix des sondages => 20 maxi
    $i = 0;
    $array_poll = array_combine($array_answer, $array_vote);
    foreach ($array_poll as $answer => $nbrvote) {
Exemplo n.º 4
0
        }
        $poll_type = NumberHelper::numeric($poll_type);
        $answers = '';
        $votes = '';
        for ($i = 0; $i < 20; $i++) {
            if ($request->has_postparameter('a' . $i)) {
                if (!empty(retrieve(POST, 'a' . $i, ''))) {
                    $answers .= str_replace('|', '', retrieve(POST, 'a' . $i, '')) . '|';
                    $votes .= str_replace('|', '', retrieve(POST, 'v' . $i, 0)) . '|';
                }
            }
        }
        PersistenceContext::get_querier()->insert(PREFIX . "poll", array('question' => $question, 'answers' => substr($answers, 0, strlen($answers) - 1), 'votes' => substr($votes, 0, strlen($votes) - 1), 'type' => $type, 'archive' => $archive, 'timestamp' => $timestamp, 'visible' => $visible, 'start' => $start_timestamp, 'end' => $start_timestamp, 'user_id' => AppContext::get_current_user()->get_id()));
        AppContext::get_response()->redirect('/poll/admin_poll.php');
    } else {
        AppContext::get_response()->redirect('/poll/admin_poll_add.php?error=incomplete#message_helper');
    }
} else {
    $tpl = new FileTemplate('poll/admin_poll_add.tpl');
    $calendar_start = new MiniCalendar('start');
    $calendar_end = new MiniCalendar('end');
    $calendar_current_date = new MiniCalendar('current_date', new Date());
    $tpl->put_all(array('VISIBLE_ENABLED' => 'checked="checked"', 'CALENDAR_START' => $calendar_start->display(), 'CALENDAR_END' => $calendar_end->display(), 'CALENDAR_CURRENT_DATE' => $calendar_current_date->display(), 'L_REQUIRE_QUESTION' => $LANG['require_question'], 'L_REQUIRE_ANSWER' => $LANG['require_answer'], 'L_POLL_MANAGEMENT' => $LANG['poll_management'], 'L_POLL_ADD' => $LANG['poll_add'], 'L_POLL_CONFIG' => $LANG['poll_config'], 'L_REQUIRE' => LangLoader::get_message('form.explain_required_fields', 'status-messages-common'), 'L_QUESTION' => $LANG['question'], 'L_ANSWERS_TYPE' => $LANG['answer_type'], 'L_YES' => LangLoader::get_message('yes', 'common'), 'L_NO' => LangLoader::get_message('no', 'common'), 'L_SINGLE' => $LANG['single'], 'L_MULTIPLE' => $LANG['multiple'], 'L_ANSWERS' => $LANG['answers'], 'L_NUMBER_VOTE' => $LANG['number_vote'], 'L_DATE' => LangLoader::get_message('date', 'date-common'), 'L_UNTIL' => $LANG['until'], 'L_RELEASE_DATE' => $LANG['release_date'], 'L_IMMEDIATE' => $LANG['immediate'], 'L_UNAPROB' => $LANG['unaprob'], 'L_POLL_DATE' => $LANG['poll_date'], 'L_SUBMIT' => $LANG['submit'], 'L_RESET' => $LANG['reset']));
    //Gestion erreur.
    $get_error = retrieve(GET, 'error', '');
    if ($get_error == 'incomplete') {
        $tpl->put('message_helper', MessageHelper::display($LANG['incomplete'], MessageHelper::NOTICE));
    }
    $tpl->display();
}
require_once '../admin/admin_footer.php';
Exemplo n.º 5
0
 public function retrieve_value()
 {
     $this->set_value(MiniCalendar::retrieve_date($this->get_html_id()));
 }
Exemplo n.º 6
0
        $creation_calendar = new MiniCalendar('creation');
        $creation_calendar->set_date($file_creation_date);
        $release_calendar = new MiniCalendar('release_date');
        $release_calendar->set_date($file_release_date);
        if ($file_visibility < 0 || $file_visibility > 2) {
            $file_visibility = 0;
        }
        $Template->assign_vars(array('C_DISPLAY_DOWNLOAD' => true, 'C_IMG' => !empty($file_image), 'C_EDIT_AUTH' => false, 'MODULE_DATA_PATH' => $Template->get_module_data_path('download'), 'NAME' => stripslashes($file_title), 'CONTENTS' => second_parse(stripslashes(strparse($file_contents))), 'CREATION_DATE' => $file_creation_date->format(DATE_FORMAT_SHORT), 'RELEASE_DATE' => $file_release_date->get_timestamp() > 0 ? $file_release_date->format(DATE_FORMAT_SHORT) : $DOWNLOAD_LANG['unknown_date'], 'SIZE' => $size_tpl, 'COUNT' => $file_hits, 'THEME' => get_utheme(), 'HITS' => sprintf($DOWNLOAD_LANG['n_times'], (int) $file_hits), 'NUM_NOTES' => sprintf($DOWNLOAD_LANG['num_notes'], 0), 'U_IMG' => $file_image, 'IMAGE_ALT' => str_replace('"', '\\"', $file_title), 'LANG' => get_ulang(), 'CONTRIBUTION_COUNTERPART' => $contribution_counterpart_source, 'CONTRIBUTION_COUNTERPART_PREVIEW' => second_parse(stripslashes($contribution_counterpart)), 'FORCE_DOWNLOAD_SELECTED' => $file_download_method == 'force_download' ? ' selected="selected"' : '', 'REDIRECTION_SELECTED' => $file_download_method != 'force_download' ? ' selected="selected"' : '', 'L_DATE' => $LANG['date'], 'L_SIZE' => $LANG['size'], 'L_DOWNLOAD' => $DOWNLOAD_LANG['download'], 'L_DOWNLOAD_FILE' => $DOWNLOAD_LANG['download_file'], 'L_FILE_INFOS' => $DOWNLOAD_LANG['file_infos'], 'L_INSERTION_DATE' => $DOWNLOAD_LANG['insertion_date'], 'L_RELEASE_DATE' => $DOWNLOAD_LANG['release_date'], 'L_DOWNLOADED' => $DOWNLOAD_LANG['downloaded'], 'L_NOTE' => $LANG['note'], 'APPROVED' => ' checked="checked"', 'U_DOWNLOAD_FILE' => url('count.php?id=' . $edit_file_id, 'file-' . $edit_file_id . '+' . url_encode_rewrite($file_title) . '.php')));
        $Template->assign_vars(array('C_CONTRIBUTION' => !$auth_write, 'TITLE' => stripslashes($file_title), 'COUNT' => $file_hits, 'DESCRIPTION' => htmlspecialchars(stripslashes($file_contents), ENT_COMPAT, 'ISO-8859-1'), 'SHORT_DESCRIPTION' => htmlspecialchars(stripslashes($file_short_contents), ENT_COMPAT, 'ISO-8859-1'), 'FILE_IMAGE' => $file_image, 'URL' => $file_url, 'SIZE_FORM' => $file_size, 'DATE' => $file_creation_date->format(DATE_FORMAT_SHORT, TIMEZONE_AUTO), 'CATEGORIES_TREE' => $auth_write ? $download_categories->build_select_form($file_cat_id, 'idcat', 'idcat', 0, DOWNLOAD_WRITE_CAT_AUTH_BIT, $CONFIG_DOWNLOAD['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH) : $download_categories->build_select_form($file_cat_id, 'idcat', 'idcat', 0, DOWNLOAD_CONTRIBUTION_CAT_AUTH_BIT, $CONFIG_DOWNLOAD['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH), 'SHORT_DESCRIPTION_PREVIEW' => second_parse(stripslashes(strparse($file_short_contents))), 'VISIBLE_WAITING' => $file_visibility == 2 ? ' checked="checked"' : '', 'VISIBLE_ENABLED' => $file_visibility == 1 ? ' checked="checked"' : '', 'VISIBLE_HIDDEN' => $file_visibility == 0 ? ' checked="checked"' : '', 'APPROVED' => $file_approved ? ' checked="checked"' : '', 'DATE_CALENDAR_CREATION' => $creation_calendar->display(), 'DATE_CALENDAR_RELEASE' => $release_calendar->display(), 'BOOL_IGNORE_RELEASE_DATE' => $ignore_release_date ? 'true' : 'false', 'STYLE_FIELD_RELEASE_DATE' => $ignore_release_date ? 'none' : 'block', 'IGNORE_RELEASE_DATE_CHECKED' => $ignore_release_date ? ' checked="checked"' : '', 'BEGINING_CALENDAR' => $begining_calendar->display(), 'END_CALENDAR' => $end_calendar->display()));
    } else {
        $file_creation_date = new Date(DATE_NOW, TIMEZONE_AUTO);
        $file_release_date = new Date(DATE_NOW, TIMEZONE_AUTO);
        $creation_calendar = new MiniCalendar('creation');
        $creation_calendar->set_date($file_creation_date);
        $release_calendar = new MiniCalendar('release_date');
        $ignore_release_date = false;
        if (!$ignore_release_date) {
            $release_calendar->set_date($file_release_date);
        }
        $begining_calendar = new MiniCalendar('begining_date');
        $end_calendar = new MiniCalendar('end_date');
        $end_calendar->set_style('margin-left:150px;');
        $begining_calendar->set_date(new Date(DATE_NOW, TIMEZONE_AUTO));
        $end_calendar->set_date(new Date(DATE_NOW, TIMEZONE_AUTO));
        $file_visibility = 0;
        $Template->assign_vars(array('C_CONTRIBUTION' => !$auth_write, 'TITLE' => '', 'COUNT' => 0, 'DESCRIPTION' => '', 'SHORT_DESCRIPTION' => '', 'FILE_IMAGE' => '', 'URL' => '', 'SIZE_FORM' => '', 'DATE' => $file_creation_date->format(DATE_FORMAT_SHORT, TIMEZONE_AUTO), 'CATEGORIES_TREE' => $auth_write ? $download_categories->build_select_form($file_cat_id, 'idcat', 'idcat', 0, DOWNLOAD_WRITE_CAT_AUTH_BIT, $CONFIG_DOWNLOAD['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH) : $download_categories->build_select_form($file_cat_id, 'idcat', 'idcat', 0, DOWNLOAD_CONTRIBUTION_CAT_AUTH_BIT, $CONFIG_DOWNLOAD['global_auth'], IGNORE_AND_CONTINUE_BROWSING_IF_A_CATEGORY_DOES_NOT_MATCH), 'DATE_CALENDAR_CREATION' => $creation_calendar->display(), 'DATE_CALENDAR_RELEASE' => $release_calendar->display(), 'BOOL_IGNORE_RELEASE_DATE' => $ignore_release_date ? 'true' : 'false', 'STYLE_FIELD_RELEASE_DATE' => $ignore_release_date ? 'none' : 'block', 'IGNORE_RELEASE_DATE_CHECKED' => $ignore_release_date ? ' checked="checked"' : '', 'BEGINING_CALENDAR' => $begining_calendar->display(), 'END_CALENDAR' => $end_calendar->display(), 'VISIBLE_WAITING' => '', 'VISIBLE_ENABLED' => ' checked="checked"', 'VISIBLE_HIDDEN' => '', 'APPROVED' => $file_approved ? ' checked="checked"' : '', 'FORCE_DOWNLOAD_SELECTED' => ' selected="selected"', 'REDIRECTION_SELECTED' => ' selected="selected"', 'U_TARGET' => url('management.php?new=1&amp;token=' . $Session->get_token())));
    }
    $Template->assign_vars(array('L_NOTICE_CONTRIBUTION' => $DOWNLOAD_LANG['notice_contribution'], 'L_CONTRIBUTION_COUNTERPART' => $DOWNLOAD_LANG['contribution_counterpart'], 'L_CONTRIBUTION_COUNTERPART_EXPLAIN' => $DOWNLOAD_LANG['contribution_counterpart_explain'], 'CONTRIBUTION_COUNTERPART_EDITOR' => display_editor('counterpart')));
}
$Template->pparse('file_management');
require_once '../kernel/footer.php';