Erreur de lien pour traiter une contribution [Réglé]
MickaelFR Membre non connecté
Booster Fusée
- Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Lorsque je souhaite cliquer sur : "traiter la contribution", le site me renvoi une erreur. Ce qui est normal, car je n'ai pas le répertoire du site qui est indiqué
Exemple :
xxx.fr/news/28 actuellement, au lieu de xxx.fr/site/news/28
Cela était fonctionnel avant, même avec les modifs PHP effectuées par "Myster". Peut-être la MAJ de la 5.0.5? Je ne saurai le dire.
Voici mon fichier php (personnalisé) :
Code PHP :
<?php /*################################################## * contribution_panel.php * ------------------- * begin : July 21, 2008 * copyright : (C) 2008 Benoît Sautel * email : ben.popeye@phpboost.com * * ################################################### * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ require_once('../kernel/begin.php'); if (!AppContext::get_current_user()->check_level(User::MEMBER_LEVEL)) //Si il n'est pas member (les invités n'ont rien à faire ici) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } $contribution_id = retrieve(GET, 'id', 0); $id_to_delete = retrieve(GET, 'del', 0); $id_to_update = retrieve(POST, 'idedit', 0); $id_update = retrieve(GET, 'edit', 0); $date = new Date(); if ($contribution_id > 0) { $contribution = new Contribution(); //Loading the contribution into an object from the database and checking if the user is authorizes to read it if (($contribution = ContributionService::find_by_id($contribution_id)) == null || (!AppContext::get_current_user()->check_auth($contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT) && $contribution->get_poster_id() != AppContext::get_current_user()->get_id())) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } $Bread_crumb->add($LANG['user'], UserUrlBuilder::home()->rel()); $Bread_crumb->add($LANG['contribution_panel'], url('contribution_panel.php')); $Bread_crumb->add($contribution->get_entitled(), url('contribution_panel.php?id=' . $contribution->get_id())); define('TITLE', $LANG['contribution_panel'] . ' - ' . $contribution->get_entitled()); } //Modification d'une contribution elseif ($id_update > 0) { $contribution = new Contribution(); //Loading the contribution into an object from the database and checking if the user is authorizes to read it if (($contribution = ContributionService::find_by_id($id_update)) == null || !AppContext::get_current_user()->check_auth($contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT)) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } $Bread_crumb->add($LANG['user'], UserUrlBuilder::home()->rel()); $Bread_crumb->add($LANG['contribution_panel'], url('contribution_panel.php')); $Bread_crumb->add($contribution->get_entitled(), url('contribution_panel.php?id=' . $contribution->get_id())); $Bread_crumb->add($LANG['contribution_edition'], url('contribution_panel.php?edit=' . $id_update)); define('TITLE', $LANG['contribution_panel'] . ' - ' . $LANG['contribution_edition']); } //Enregistrement de la modification d'une contribution elseif ($id_to_update > 0) { $contribution = new Contribution(); if (($contribution = ContributionService::find_by_id($id_to_update)) == null || !AppContext::get_current_user()->check_auth($contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT)) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } //Récupération des éléments de la contribution $entitled = retrieve(POST, 'entitled', '', TSTRING_UNCHANGE); $description = stripslashes(retrieve(POST, 'contents', '', TSTRING_PARSE)); $status = retrieve(POST, 'status', Event::EVENT_STATUS_UNREAD); //Si le titre n'est pas vide if (!empty($entitled)) { //Mise à jour de l'objet contribution $contribution->set_entitled($entitled); $contribution->set_description($description); //Changement de statut ? On regarde si la contribution a été réglée if ($status == Event::EVENT_STATUS_PROCESSED && $contribution->get_status() != Event::EVENT_STATUS_PROCESSED) { $contribution->set_fixer_id(AppContext::get_current_user()->get_id()); $contribution->set_fixing_date(new Date()); } $contribution->set_status($status); //Enregistrement en base de données ContributionService::save_contribution($contribution); if($status == Event::EVENT_STATUS_PROCESSED) { PersistenceContext::get_querier()->inject("UPDATE " . DB_TABLE_MEMBER . " SET points = points + 15 WHERE user_id = '" . $contribution->get_poster_id(). "'"); PersistenceContext::get_querier()->insert('phpboost_historique', array( 'user_id' => '' . $contribution->get_poster_id(). '', 'points' => '+15', 'date' => ''. $date->format(Date::FORMAT_DAY_MONTH_YEAR_HOUR_MINUTE_TEXT) .'', 'description' => 'Contribution au site' )); } AppContext::get_response()->redirect(UserUrlBuilder::contribution_panel($contribution->get_id())); } //Erreur else AppContext::get_response()->redirect(UserUrlBuilder::contribution_panel()); } //Suppression d'une contribution elseif ($id_to_delete > 0) { //Vérification de la validité du jeton AppContext::get_session()->csrf_get_protect(); $contribution = new Contribution(); //Loading the contribution into an object from the database and checking if the user is authorizes to read it if (($contribution = ContributionService::find_by_id($id_to_delete)) == null || (!AppContext::get_current_user()->check_auth($contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT))) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } ContributionService::delete_contribution($contribution); PersistenceContext::get_querier()->inject("UPDATE " . DB_TABLE_MEMBER . " SET points = points - 15 WHERE user_id = '" . $contribution->get_poster_id(). "'"); PersistenceContext::get_querier()->insert('phpboost_historique', array( 'user_id' => '' . $contribution->get_poster_id(). '', 'points' => '-15', 'date' => ''. $date->format(Date::FORMAT_DAY_MONTH_YEAR_HOUR_MINUTE_TEXT) .'', 'description' => 'Supression de la contribution' )); AppContext::get_response()->redirect(UserUrlBuilder::contribution_panel()); } else { $Bread_crumb->add($LANG['user'], UserUrlBuilder::home()->rel()); $Bread_crumb->add($LANG['contribution_panel'], url('contribution_panel.php')); define('TITLE', $LANG['contribution_panel']); } require_once('../kernel/header.php'); $template = new FileTemplate('user/contribution_panel.tpl'); if ($contribution_id > 0) { $template->put_all(array( 'C_CONSULT_CONTRIBUTION' => true )); $comments_topic = new UserEventsCommentsTopic(); $comments_topic->set_id_in_module($contribution_id); $comments_topic->set_url(new Url('/user/contribution_panel.php?id='. $contribution_id)); //For PHP 4 :( $contribution_creation_date = $contribution->get_creation_date(); $contribution_fixing_date = $contribution->get_fixing_date(); $contributor = PersistenceContext::get_querier()->select('SELECT * FROM ' . DB_TABLE_MEMBER . ' member WHERE user_id = :user_id', array('user_id' => $contribution->get_poster_id()))->fetch(); $contributor_group_color = User::get_group_color($contributor['groups'], $contributor['level']); $template->put_all(array( 'C_WRITE_AUTH' => AppContext::get_current_user()->check_auth($contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT), 'C_UNPROCESSED_CONTRIBUTION' => $contribution->get_status() != Event::EVENT_STATUS_PROCESSED, 'C_CONTRIBUTOR_GROUP_COLOR' => !empty($contributor_group_color), 'ENTITLED' => $contribution->get_entitled(), 'DESCRIPTION' => FormatingHelper::second_parse($contribution->get_description()), 'STATUS' => $contribution->get_status_name(), 'CONTRIBUTOR' => $contributor['display_name'], 'CONTRIBUTOR_LEVEL_CLASS' => UserService::get_level_class($contributor['level']), 'CONTRIBUTOR_GROUP_COLOR' => $contributor_group_color, 'COMMENTS' => CommentsService::display($comments_topic)->render(), 'CREATION_DATE' => $contribution_creation_date->format(Date::FORMAT_DAY_MONTH_YEAR), 'MODULE' => $contribution->get_module_name(), 'U_CONTRIBUTOR_PROFILE' => UserUrlBuilder::profile($contribution->get_poster_id())->rel(), 'FIXING_URL' => Url::to_relative($contribution->get_fixing_url()) )); //Si la contribution a été traitée if ($contribution->get_status() == Event::EVENT_STATUS_PROCESSED) { $fixer = PersistenceContext::get_querier()->select('SELECT * FROM ' . DB_TABLE_MEMBER . ' member WHERE user_id = :user_id', array('user_id' => $contribution->get_fixer_id()))->fetch(); $fixer_group_color = User::get_group_color($fixer['groups'], $fixer['level']); $template->put_all(array( 'C_CONTRIBUTION_FIXED' => true, 'C_FIXER_GROUP_COLOR' => !empty($fixer_group_color), 'FIXER' => $fixer['display_name'], 'FIXER_LEVEL_CLASS' => UserService::get_level_class($fixer['level']), 'FIXER_GROUP_COLOR' => $fixer_group_color, 'FIXING_DATE' => $contribution_fixing_date->format(Date::FORMAT_DAY_MONTH_YEAR), 'U_FIXER_PROFILE' => UserUrlBuilder::profile($contribution->get_fixer_id())->rel() )); } $template->put_all(array( 'L_CONTRIBUTION' => $LANG['contribution'], 'L_ENTITLED' => $LANG['contribution_entitled'], 'L_DESCRIPTION' => $LANG['contribution_description'], 'L_STATUS' => $LANG['contribution_status'], 'L_CONTRIBUTOR' => $LANG['contributor'], 'L_CREATION_DATE' => $LANG['contribution_creation_date'], 'L_FIXER' => $LANG['contribution_fixer'], 'L_FIXING_DATE' => $LANG['contribution_fixing_date'], 'L_MODULE' => $LANG['contribution_module'], 'L_PROCESS_CONTRIBUTION' => $LANG['process_contribution'], 'L_CONFIRM_DELETE_CONTRIBUTION' => $LANG['confirm_delete_contribution'], 'L_DELETE' => LangLoader::get_message('delete', 'common'), 'L_UPDATE' => $LANG['update'], 'U_UPDATE' => url('contribution_panel.php?edit=' . $contribution_id), 'U_DELETE' => url('contribution_panel.php?del=' . $contribution_id . '&token=' . AppContext::get_session()->get_token()) )); } //Modification d'une contribution elseif ($id_update > 0) { $editor = AppContext::get_content_formatting_service()->get_default_editor(); $editor->set_identifier('contents'); $template->put_all(array( 'C_EDIT_CONTRIBUTION' => true, 'EDITOR' => $editor->display(), 'ENTITLED' => $contribution->get_entitled(), 'DESCRIPTION' => FormatingHelper::unparse($contribution->get_description()), 'CONTRIBUTION_ID' => $contribution->get_id(), 'EVENT_STATUS_UNREAD_SELECTED' => $contribution->get_status() == Event::EVENT_STATUS_UNREAD ? ' selected="selected"' : '', 'EVENT_STATUS_BEING_PROCESSED_SELECTED' => $contribution->get_status() == Event::EVENT_STATUS_BEING_PROCESSED ? ' selected="selected"' : '', 'EVENT_STATUS_PROCESSED_SELECTED' => $contribution->get_status() == Event::EVENT_STATUS_PROCESSED ? ' selected="selected"' : '', 'L_CONTRIBUTION_STATUS_UNREAD' => $LANG['contribution_status_unread'], 'L_CONTRIBUTION_STATUS_BEING_PROCESSED' => $LANG['contribution_status_being_processed'], 'L_CONTRIBUTION_STATUS_PROCESSED' => $LANG['contribution_status_processed'], 'L_CONTRIBUTION' => $LANG['contribution'], 'L_DESCRIPTION' => $LANG['contribution_description'], 'L_STATUS' => $LANG['contribution_status'], 'L_ENTITLED' => $LANG['contribution_entitled'], 'L_SUBMIT' => $LANG['submit'], 'L_PREVIEW' => $LANG['preview'], 'L_RESET' => $LANG['reset'] )); } else { $template->put_all(array( 'C_CONTRIBUTION_LIST' => true )); //Nombre de contributions $num_contributions = 1; define('CONTRIBUTIONS_PER_PAGE', 20); $page = AppContext::get_request()->get_getint('p', 1); //Gestion des critères de tri $criteria = retrieve(GET, 'criteria', 'current_status'); $order = retrieve(GET, 'order', 'asc'); if (!in_array($criteria, array('entitled', 'module', 'status', 'creation_date', 'fixing_date', 'poster_id', 'fixer_id'))) $criteria = 'current_status'; $order = $order == 'desc' ? 'desc' : 'asc'; //On liste les contributions foreach (ContributionService::get_all_contributions($criteria, $order) as $this_contribution) { //Obligé de faire une variable temp à cause de php4. $creation_date = $this_contribution->get_creation_date(); $fixing_date = $this_contribution->get_fixing_date(); //Affichage des contributions du membre if (AppContext::get_current_user()->check_auth($this_contribution->get_auth(), Contribution::CONTRIBUTION_AUTH_BIT) || AppContext::get_current_user()->get_id() == $this_contribution->get_poster_id()) { //On affiche seulement si on est dans le bon cadre d'affichage if ($num_contributions > CONTRIBUTIONS_PER_PAGE * ($page - 1) && $num_contributions <= CONTRIBUTIONS_PER_PAGE * $page) { $poster_group_color = User::get_group_color($this_contribution->get_poster_groups(), $this_contribution->get_poster_level()); $fixer_group_color = User::get_group_color($this_contribution->get_fixer_groups(), $this_contribution->get_fixer_level()); $template->assign_block_vars('contributions', array( 'C_POSTER_GROUP_COLOR' => !empty($poster_group_color), 'C_FIXER_GROUP_COLOR' => !empty($fixer_group_color), 'ENTITLED' => $this_contribution->get_entitled(), 'MODULE' => $this_contribution->get_module_name(), 'STATUS' => $this_contribution->get_status_name(), 'CREATION_DATE' => $creation_date->format(Date::FORMAT_DAY_MONTH_YEAR), 'FIXING_DATE' => $fixing_date->format(Date::FORMAT_DAY_MONTH_YEAR), 'POSTER' => $this_contribution->get_poster_login(), 'POSTER_LEVEL_CLASS' => UserService::get_level_class($this_contribution->get_poster_level()), 'POSTER_GROUP_COLOR' => $poster_group_color, 'FIXER' => $this_contribution->get_fixer_login(), 'FIXER_LEVEL_CLASS' => UserService::get_level_class($this_contribution->get_fixer_level()), 'FIXER_GROUP_COLOR' => $fixer_group_color, 'ACTIONS' => '', 'U_FIXER_PROFILE' => UserUrlBuilder::profile($this_contribution->get_fixer_id())->rel(), 'U_POSTER_PROFILE' => UserUrlBuilder::profile($this_contribution->get_poster_id())->rel(), 'U_CONSULT' => PATH_TO_ROOT . '/user/' . url('contribution_panel.php?id=' . $this_contribution->get_id()), 'C_FIXED' => $this_contribution->get_status() == Event::EVENT_STATUS_PROCESSED, 'C_PROCESSING' => $this_contribution->get_status() == Event::EVENT_STATUS_BEING_PROCESSED )); } $num_contributions++; } } $pagination = new ModulePagination($page, $num_contributions, CONTRIBUTIONS_PER_PAGE); $pagination->set_url(new Url('/user/contribution_panel.php?p=%d&criteria=' . $criteria . '&order=' . $order)); if ($pagination->current_page_is_empty() && $page > 1) { $error_controller = PHPBoostErrors::unexisting_page(); DispatchManager::redirect($error_controller); } if ($num_contributions > 1) $template->put_all(array( 'C_PAGINATION' => $pagination->has_several_pages(), 'PAGINATION' => $pagination->display() )); else $template->put_all(array( 'C_NO_CONTRIBUTION' => true, 'L_NO_CONTRIBUTION_TO_DISPLAY' => LangLoader::get_message('no_item_now', 'common') )); //Liste des modules proposant de contribuer define('NUMBER_OF_MODULES_PER_LINE', 4); $i_module = 0; $modules = ModulesManager::get_activated_modules_map_sorted_by_localized_name(); foreach ($modules as $name => $module) { $contribution_interface = $module->get_configuration()->get_contribution_interface(); $authorized = true; $authorizations_class = ucfirst($module->get_id()) . 'AuthorizationsService'; if (class_exists($authorizations_class) && method_exists($authorizations_class, 'check_authorizations') && method_exists($authorizations_class, 'contribution') && !$authorizations_class::check_authorizations()->contribution()) $authorized = false; if (!empty($contribution_interface) && $authorized) { if ($i_module % NUMBER_OF_MODULES_PER_LINE == 0) { $template->assign_block_vars('row', array()); } $template->assign_block_vars('row.module', array( 'WIDTH' => (int)(100. / (NUMBER_OF_MODULES_PER_LINE)), 'U_MODULE_LINK' => PATH_TO_ROOT . '/' . $module->get_id() . '/' . url($contribution_interface), 'MODULE_ID' => $module->get_id(), 'MODULE_NAME' => $module->get_configuration()->get_name(), 'LINK_TITLE' => sprintf($LANG['contribute_in_module_name'], $module->get_configuration()->get_name()) )); $i_module++; } } $template->put_all(array( 'L_ENTITLED' => $LANG['contribution_entitled'], 'L_STATUS' => $LANG['contribution_status'], 'L_POSTER' => $LANG['contributor'], 'L_CREATION_DATE' => $LANG['contribution_creation_date'], 'L_FIXER' => $LANG['contribution_fixer'], 'L_FIXING_DATE' => $LANG['contribution_fixing_date'], 'L_MODULE' => $LANG['contribution_module'], 'L_CONTRIBUTION_PANEL' => $LANG['contribution_panel'], 'L_CONTRIBUTION_LIST' => $LANG['contribution_list'], 'L_CONTRIBUTE' => $LANG['contribute'], 'L_CONTRIBUTE_EXPLAIN' => $LANG['contribute_in_modules_explain'], 'L_NO_MODULE_IN_WHICH_CONTRIBUTE' => $LANG['no_module_to_contribute'], 'C_NO_MODULE_IN_WHICH_CONTRIBUTE' => $i_module == 0 )); //Gestion du tri $template->put_all(array( 'C_ORDER_ENTITLED_ASC' => $criteria == 'entitled' && $order == 'asc', 'U_ORDER_ENTITLED_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=entitled&order=asc'), 'C_ORDER_ENTITLED_DESC' => $criteria == 'entitled' && $order == 'desc', 'U_ORDER_ENTITLED_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=entitled&order=desc'), 'C_ORDER_MODULE_ASC' => $criteria == 'module' && $order == 'asc', 'U_ORDER_MODULE_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=module&order=asc'), 'C_ORDER_MODULE_DESC' => $criteria == 'module' && $order == 'desc', 'U_ORDER_MODULE_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=module&order=desc'), 'C_ORDER_STATUS_ASC' => $criteria == 'current_status' && $order == 'asc', 'U_ORDER_STATUS_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=current_status&order=asc'), 'C_ORDER_STATUS_DESC' => $criteria == 'current_status' && $order == 'desc', 'U_ORDER_STATUS_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=current_status&order=desc'), 'C_ORDER_CREATION_DATE_ASC' => $criteria == 'creation_date' && $order == 'asc', 'U_ORDER_CREATION_DATE_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=creation_date&order=asc'), 'C_ORDER_CREATION_DATE_DESC' => $criteria == 'creation_date' && $order == 'desc', 'U_ORDER_CREATION_DATE_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=creation_date&order=desc'), 'C_ORDER_FIXING_DATE_ASC' => $criteria == 'fixing_date' && $order == 'asc', 'U_ORDER_FIXING_DATE_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=fixing_date&order=asc'), 'C_ORDER_FIXING_DATE_DESC' => $criteria == 'fixing_date' && $order == 'desc', 'U_ORDER_FIXING_DATE_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=fixing_date&order=desc'), 'C_ORDER_POSTER_ASC' => $criteria == 'poster_id' && $order == 'asc', 'U_ORDER_POSTER_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=poster_id&order=asc'), 'C_ORDER_POSTER_DESC' => $criteria == 'poster_id' && $order == 'desc', 'U_ORDER_POSTER_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=poster_id&order=desc'), 'C_ORDER_FIXER_ASC' => $criteria == 'fixer_id' && $order == 'asc', 'U_ORDER_FIXER_ASC' => url('contribution_panel.php?p=' . $page . '&criteria=fixer_id&order=asc'), 'C_ORDER_FIXER_DESC' => $criteria == 'fixer_id' && $order == 'desc', 'U_ORDER_FIXER_DESC' => url('contribution_panel.php?p=' . $page . '&criteria=fixer_id&order=desc') )); } $template->display(); require_once('../kernel/footer.php'); ?>
Voici mon fichier tpl :
Code HTML :
# IF C_CONTRIBUTION_LIST # <section id="module-user-contribution-list"> <header> <h1>{L_CONTRIBUTION_PANEL}</h1> </header> <div class="content"> <h1>{L_CONTRIBUTION_LIST}</h1> <br /> # IF C_NO_CONTRIBUTION # <div class="success">{L_NO_CONTRIBUTION_TO_DISPLAY}</div> # ELSE # <table id="table"> <thead> <tr> <th> # IF NOT C_ORDER_ENTITLED_ASC # <a href="{U_ORDER_ENTITLED_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_ENTITLED} # IF NOT C_ORDER_ENTITLED_DESC # <a href="{U_ORDER_ENTITLED_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_MODULE_ASC # <a href="{U_ORDER_MODULE_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_MODULE} # IF NOT C_ORDER_MODULE_DESC # <a href="{U_ORDER_MODULE_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_STATUS_ASC # <a href="{U_ORDER_STATUS_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_STATUS} # IF NOT C_ORDER_STATUS_DESC # <a href="{U_ORDER_STATUS_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_CREATION_DATE_ASC # <a href="{U_ORDER_CREATION_DATE_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_CREATION_DATE} # IF NOT C_ORDER_CREATION_DATE_DESC # <a href="{U_ORDER_CREATION_DATE_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_FIXING_DATE_ASC # <a href="{U_ORDER_FIXING_DATE_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_FIXING_DATE} # IF NOT C_ORDER_FIXING_DATE_DESC # <a href="{U_ORDER_FIXING_DATE_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_POSTER_ASC # <a href="{U_ORDER_POSTER_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_POSTER} # IF NOT C_ORDER_POSTER_DESC # <a href="{U_ORDER_POSTER_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> <th> # IF NOT C_ORDER_FIXER_ASC # <a href="{U_ORDER_FIXER_ASC}" class="fa fa-table-sort-up"></a> # ENDIF # {L_FIXER} # IF NOT C_ORDER_FIXER_DESC # <a href="{U_ORDER_FIXER_DESC}" class="fa fa-table-sort-down"></a> # ENDIF # </th> </tr> </thead> # IF C_PAGINATION # <tfoot> <tr> <th colspan="7"> # INCLUDE PAGINATION # </td> </tr> </tfoot> # ENDIF # <tbody> # START contributions # <tr> <td> <a href="{contributions.U_CONSULT}">{contributions.ENTITLED}</a> </td> <td > {contributions.MODULE} </td> # IF contributions.C_FIXED # <td class="bkgd-color-fixed"> {contributions.STATUS} </td> # ELSE # # IF contributions.C_PROCESSING # <td class="bkgd-color-processing"> {contributions.STATUS} </td> # ELSE # <td class="bkgd-color-unknown"> {contributions.STATUS} </td> # ENDIF # # ENDIF # <td > {contributions.CREATION_DATE} </td> <td > # IF contributions.C_FIXED # {contributions.FIXING_DATE} # ELSE # - # ENDIF # </td> <td > <a href="{contributions.U_POSTER_PROFILE}" class="{contributions.POSTER_LEVEL_CLASS}" # IF contributions.C_POSTER_GROUP_COLOR # style="color:{contributions.POSTER_GROUP_COLOR}" # ENDIF #>{contributions.POSTER}</a> </td> <td > # IF contributions.C_FIXED # <a href="{contributions.U_FIXER_PROFILE}" class="{contributions.FIXER_LEVEL_CLASS}" # IF contributions.C_FIXER_GROUP_COLOR # style="color:{contributions.FIXER_GROUP_COLOR}" # ENDIF #>{contributions.FIXER}</a> # ELSE # - # ENDIF # </td> </tr> # END contributions # </tbody> </table> # ENDIF # <hr> <h1>{L_CONTRIBUTE}</h1> <br /> # IF NOT C_NO_MODULE_IN_WHICH_CONTRIBUTE # <p>{L_CONTRIBUTE_EXPLAIN}</p> # START row # # START row.module # <div class="contribution-module-container" style="width:{row.module.WIDTH}%;"> <a href="{row.module.U_MODULE_LINK}" title="{row.module.LINK_TITLE}"><img src="{PATH_TO_ROOT}/{row.module.MODULE_ID}/{row.module.MODULE_ID}.png" alt="{row.module.LINK_TITLE}" /></a> <br /> <a href="{row.module.U_MODULE_LINK}" title="{row.module.LINK_TITLE}">{row.module.MODULE_NAME}</a> </div> # END row.module # <div class="spacer"></div> # END row # # ELSE # <div class="warning">{L_NO_MODULE_IN_WHICH_CONTRIBUTE}</div> # ENDIF # </div> <footer></footer> </section> # ENDIF # # IF C_CONSULT_CONTRIBUTION # <section id="module-user-consult-contribution"> <header> <h1> {ENTITLED} # IF C_WRITE_AUTH # <span class="actions"> <a href="{U_UPDATE}" title="{L_UPDATE}" class="fa fa-edit"></a> <a href="{U_DELETE}" title="{L_DELETE}" class="fa fa-delete" data-confirmation="delete-element"></a> </span> # ENDIF # </h1> </header> <div class="content"> # IF C_WRITE_AUTH # # IF C_UNPROCESSED_CONTRIBUTION # <div class="unprocessed-contribution"> <div> <a href="{FIXING_URL}" title="{L_PROCESS_CONTRIBUTION}"> <i class="fa fa-wrench fa-2x"></i> </a> <br /> <a href="{FIXING_URL}" title="{L_PROCESS_CONTRIBUTION}">{L_PROCESS_CONTRIBUTION}</a> </div> <div> <a href="{U_UPDATE}" title="{L_UPDATE} {L_STATUS}"><i class="fa fa-check fa-2x"></i></a> <br /> <a href="{U_UPDATE}" title="{L_UPDATE} {L_STATUS}">{L_UPDATE} {L_STATUS}</a> </div> <div class="spacer"></div> </div> # ENDIF # # ENDIF # <fieldset> <legend>{L_CONTRIBUTION}</legend> <div class="form-element"> <label>{L_ENTITLED}</label> <div class="form-field"> {ENTITLED} </div> </div> <div class="form-element"> <label>{L_DESCRIPTION}</label> <div class="form-field">{DESCRIPTION}</div> </div> <div class="form-element"> <label>{L_STATUS}</label> <div class="form-field">{STATUS}</div> </div> <div class="form-element"> <label>{L_CONTRIBUTOR}</label> <div class="form-field"><a href="{U_CONTRIBUTOR_PROFILE}" class="{CONTRIBUTOR_LEVEL_CLASS}" # IF C_CONTRIBUTOR_GROUP_COLOR # style="color:{CONTRIBUTOR_GROUP_COLOR}" # ENDIF #>{CONTRIBUTOR}</a></div> </div> <div class="form-element"> <label>{L_CREATION_DATE}</label> <div class="form-field">{CREATION_DATE}</div> </div> # IF C_CONTRIBUTION_FIXED # <div class="form-element"> <label>{L_FIXER}</label> <div class="form-field"><a href="{U_FIXER_PROFILE}" class="{FIXER_LEVEL_CLASS}" # IF C_FIXER_GROUP_COLOR # style="color:{FIXER_GROUP_COLOR}" # ENDIF #>{FIXER}</a></div> </div> <div class="form-element"> <label>{L_FIXING_DATE}</label> <div class="form-field">{FIXING_DATE}</div> </div> # ENDIF # <div class="form-element"> <label>{L_MODULE}</label> <div class="form-field">{MODULE}</div> </div> </fieldset> {COMMENTS} </div> <footer></footer> </section> # ENDIF # # IF C_EDIT_CONTRIBUTION # <section id="module-user-edit-contribution"> <header> <h1>{ENTITLED}</h1> </header> <div class="content"> <form action="contribution_panel.php" method="post"> <fieldset> <legend>{L_CONTRIBUTION}</legend> <div class="form-element"> <label for="entitled">{L_ENTITLED}</label> <div class="form-field"> <input type="text" name="entitled" id="entitled" value="{ENTITLED}"> </div> </div> <div class="form-element-textarea"> <label for="contents">{L_DESCRIPTION}</label> {EDITOR} <div class="form-field-textarea"> <textarea rows="15" id="contents" name="contents">{DESCRIPTION}</textarea> </div> </div> <div class="form-element"> <label for="status">{L_STATUS}</label> <div class="form-field"><select name="status" id="status"> <option value="0"{EVENT_STATUS_UNREAD_SELECTED}>{L_CONTRIBUTION_STATUS_UNREAD}</option> <option value="1"{EVENT_STATUS_BEING_PROCESSED_SELECTED}>{L_CONTRIBUTION_STATUS_BEING_PROCESSED}</option> <option value="2"{EVENT_STATUS_PROCESSED_SELECTED}>{L_CONTRIBUTION_STATUS_PROCESSED}</option> </select> </div> </div> </fieldset> <fieldset class="fieldset-submit"> <input type="hidden" name="idedit" value="{CONTRIBUTION_ID}"> <input type="hidden" name="token" value="{TOKEN}"> <button type="submit" value="true" class="submit">{L_SUBMIT}</button> <button type="button" name="preview" onclick="XMLHttpRequest_preview();">{L_PREVIEW}</button> <button type="reset">{L_RESET}</button> </fieldset> </form> </div> <footer></footer> </section> # ENDIF #
En espérant que vous puissiez m'aider svp .. Merci par avance.
Édité par Mipel Le 20/07/2016 à 19h29
janus57 Membre non connecté
- Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
- Equipe Assistance
je t'invite à remonter le problème dans le bugtracker.
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
- Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Je ne sais pas si c'est un problème .. Si j'ai la confirmation, je le ferai. ça marchait bien avant ..
janus57 Membre non connecté
- Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
- Equipe Assistance
j'ai oublié de le préciser mais de mon côté je reproduit sur une V5.0.5 c'est pour ça que j'ai dit de le remonter dans le bugtracker.
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
- Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie