'; echo "
* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// if (isset($_POST['id'])) $id = $_POST['id']; if (isset($_GET['id'])) $id = $_GET['id']; if (isset($_POST['com_id'])) $com_id = $_POST['com_id']; if (isset($_GET['com_id'])) $com_id = $_GET['com_id']; if(!isset($_GET['debut'])) $debut=0; else $debut=$_GET['debut']; // From that page, the administrator / manager is able to move a discussion to another // we do that if needed if(isset($_POST['valider'])) { if(isset($_POST['moveto_workshop']) && $_POST['moveto_workshop'] != 0) { $workshop_object= new workshop_com; $r = $workshop_object->MoveCom($com_id, $id, $_POST['moveto_workshop'], $sql_object); $link_confirm="index.php?rub=".$rub."&todo=".$todo."&id=".$_POST['moveto_workshop']."&com_id=".$com_id; if($r) { set_flash_msg(_t('workshop', 'move_success')); header("Location: ".safe_redirect($link_confirm)); exit; // this exit is here necessary ! } else system_error(); } } include_once("../lib/input_helpers.php"); $req_count_com = SQL_getWorkcom_detList($com_id); $result_nb_com=$sql_object->DBSelect($req_count_com); if(is_array($result_nb_com)) $bdd_nb_com=$result_nb_com[0]['nb_rep']; else $bdd_nb_com=0; $bdd_nb_com_display = "
".$bdd_nb_com." "._t('workshop','nb_total_com_mes')."
\n"; $req_det = SQL_getoneCompleteWorkshop($id); $result = $sql_object -> DBSelect($req_det); // Do record exists? if(!isset($result[0]['workshop_denomination'])) redirect_to('@module_default'); $link_det = $rub_link . "&todo=det&id="; $link_sup_com=$rub_link."&todo=sup_com&id=".$id."&com_id="; $link_lock_com=$rub_link."&todo=lock_com&id=".$id."&com_id="; $link_mod_com=$rub_link."&todo=mod_com&id=".$id."&com_id="; $link_add_com=$rub_link."&todo=add_com&id=".$id."&com_id="; $link_list_com=$rub_link."&todo=list_com&id=".$id; $link_det_com=$rub_link."&todo=det_com&id=".$id."&com_id="; $link_det_user="index.php?rub=user&todo=det&id="; $link_self=$link_det_com.$com_id; $workshop_denomination = formatText($result[0]['workshop_denomination'], '2HTML'); $workshop_resume = formatText($result[0]['workshop_resume'], '2HTML'); if (empty($result[0]['workshop_comment'])) $workshop_comment = _t('divers','none'); else $workshop_comment = formatText($result[0]['workshop_comment'], '2HTML'); $workshop_statut = display_statut($result[0]['workshop_statut']); $display_date_crea = $result[0]['workshop_date_crea_display']; $display_last_modify = $result[0]['workshop_last_modify_display']; $link_back=''; $count_request=$bdd_nb_com; $req_com_root = SQL_getOnetopicWorkcom($id, $com_id, $com_id); $result_com_root = $sql_object -> DBSelect($req_com_root); $com_num=-1; // Do record exists? if(!isset($result_com_root[0]['workcom_id'])) redirect_to('@module_default'); $req_list_com = SQL_getOnetopicWorkcom2($id, $com_id, $debut, SELECT_LIMIT, $com_num); $result_com = $sql_object -> DBSelect($req_list_com); $reca_com=''; if ($result_com_root [0]['workcom_statut']=='C') $class='task_out'; else $class='task'; // select-box de workshops $data=$sql_object->DBSelect(SQL_get_all_workshop()); $select_workshop=WorkshopSelectBox($data, "moveto_workshop", $id); $move_to = '".formatText($result_com [$i]['workcom_body'], '2HTML') . "
\n"; $reca_com_list .="'; echo "