Source for file det.php
Documentation is available at det.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$result= $sql_object->DBSelect($req_det);
if(count($result)> 1) exit();
$link_det= $rub_link. "&todo=det&id=";
$link_sup= $rub_link. "&todo=sup&id=";
$link_mod= $rub_link. "&todo=mod&id=";
$link_det_u= "index.php?rub=user&todo=det&id=";
$link_det_theme= "index.php?rub=theme&todo=det&id=";
$link_det_level= "index.php?rub=level&todo=det&id=";
$link_sup_u= $rub_link. "&todo=sup_u&id=";
$link_add_u= $rub_link. "&todo=add_u&id=";
$link_list_cal= $rub_link. "&todo=list_cal&id=";
$link_list_com= $rub_link. "&todo=list_com&id=";
$link_sup_rep= "index.php?rub=workshoprep&todo=sup&id=";
$link_mod_rep= "index.php?rub=workshoprep&todo=mod&id=";
$link_det_rep= "index.php?rub=workshoprep&todo=det&id=";
$link_add_rep= "index.php?rub=workshoprep&todo=add&work_id=";
$workshop_denomination= formatText($result[0]['workshop_denomination'], '2HTML');
$theme_denomination= formatText($result[0]['theme_name'], '2HTML');
$display_date_crea= $result[0]['workshop_date_crea_display'];
$display_last_modify= $result[0]['workshop_last_modify_display'];
$result_user = $sql_object -> DBSelect($req_user);
//récupération des organisateurs du workshop
for($i= 0; $i< count($result_user); $i++ ) {
if ($result_user[$i]['jwu_user_right']== 'O' || $result_user[$i]['jwu_user_right']== 'A'){
if ($j<> 1) $form_organizer.= ", ";
$form_organizer.= $result_user[$i]['user_login'];
// formattage des données
//prepa affichage des infos générales
$reca_generals= "<dl class=\"dl3\">\n";
$reca_generals.= "<dt class=\"dl_intitule\">". _t('workshop','generals'). " : </dt>\n";
$reca_generals.= "<dd> <br /></dd>\n";
$reca_generals.= "<dt>". _t('workshop','title'). "</dt>\n";
$reca_generals.= "<dd>". $workshop_denomination. "</dd>\n";
$reca_generals.= "<dt>". _t('workshop','resume'). "</dt>\n";
$reca_generals.= "<dd>". $workshop_resume. "</dd>\n";
$reca_generals.= "<dt>". _t('workshop','theme'). " :</dt>\n";
$reca_generals.= "<dd><a href=\"". $link_det_theme. $result[0]['workshop_theme']. "\" title=\"". $theme_denomination. "\">". $theme_denomination. "</a></dd>\n";
else $reca_generals.= "<dd>". $theme_denomination. "</dd>\n";
$reca_generals.= "<dt>". _t('workshop','level'). " :</dt>\n";
$reca_generals.= "<dd><a href=\"". $link_det_level. $result[0]['workshop_level']. "\" title=\"". $level_denomination. "\">". $level_denomination. "</a></dd>\n";
else $reca_generals.= "<dd>". $level_denomination. "</dd>\n";
$reca_generals.= "<dt>". _t('divers','date_crea') . "</dt>\n";
$reca_generals.= "<dd>". $display_date_crea. "</dd>\n";
$reca_generals.= "<dt>". _t('divers','last_modify') . "</dt>\n";
$reca_generals.= "<dd>". $display_last_modify. "</dd>\n";
$reca_generals.= "<dt>". _t('divers','statut'). " :</dt>\n";
$reca_generals.= "<dd>". $workshop_statut. "</dd>\n";
$reca_generals.= "<dt>". _t('workshop','comment'). " :</dt>\n";
$reca_generals.= "<dd>". $workshop_comment. "</dd>\n";
$reca_generals.= "<dt>". _t('workshop','organizer'). " :</dt>\n";
$reca_generals.= "<dd>". $form_organizer. "</dd>\n";
$reca_generals.= "</dl>\n";
// Récuperation des différentes parties
//prepa affichage des utilisateurs du workgroup
if($result_user== false) $contents_user= "<div class=\"info\">". _t('workshop','no_user'). "</div>";
$contents_user= "<table cellspacing=\"0\" cellpadding=\"3\" class=\"table2\">\n";
$contents_user.= "<thead>\n";
$contents_user.= "<tr>\n";
$contents_user.= "<td>". _t('workshop','user'). "</td>\n";
$contents_user.= "<td> <span class=\"semnone\">". _t('divers','actions'). "</span></td>\n";
$contents_user.= "</tr>\n";
$contents_user.= "</thead>\n";
$contents_user.= "<tbody>\n";
for($i= 0; $i< count($result_user); $i++ ) {
$contents_user.= "<tr>\n";
$contents_user.= "<a href=\"". $link_det_u. $result_user[$i]['jwu_user_id']. "\" title=\"". formatText(_t('workshop','user'), '2HTML'). "\">". formatText($result_user[$i]['user_login'], '2HTML'). "</a>\n";
$contents_user.= "<span>". formatText($result_user[$i]['user_login'], '2HTML'). "</span>";
if ($result_user[$i]['jwu_user_right']== 'O' || $result_user[$i]['jwu_user_right']== 'A')
$contents_user.= "<span class=\"text_det_it\">(". display_statut($result_user[$i]['jwu_user_right']). ")</span> ";
$contents_user.= "</td>\n";
$contents_user.= "<td><div class=\"iconetab\">";
if ($result_user[$i]['jwu_user_right']<> 'O')
$contents_user.= "<a href=\"". $link_sup_u. $id. "&u_id=". $result_user[$i]['jwu_user_id']. "\" title=\"". _t('workshop','del_user'). "\" class=\"ico_sup\"></a>\n";
$contents_user.= "<a href=\"". $link_sup_u. $id. "&u_id=". $result_user[$i]['jwu_user_id']. "\" title=\"". _t('workshop','del_user'). "\" class=\"ico_sup\"></a>\n";
$contents_user.= "<a href=\"mailto:". $result_user[$i]['profile_email']. "\" title=\"". $result_user[$i]['profile_email']. "\" class=\"ico_mail\"></a></div></td>";
else $contents_user.= "<td> </td>\n";
$contents_user.= "</tr>\n";
$mailing_list.= $result_user[$i]['profile_email']. MAIL_SEPARATOR. "%20";
$contents_user.= "</tbody>";
$contents_user.= "</table>";
$reca_user = "<br class=\"brendstep\" />\n";
$reca_user.= "<div class=\"workshop_det\">\n";
$reca_user.= "<a name=\"workshopuser\" id=\"workshopuser\" href=\"#workshopuser\" onclick=\"$('#workshop_user').slideToggle();\">". _t('workshop','user'). "</a>\n";
$reca_user.= "<div id=\"workshop_user\" style=\"display:none;\" >\n";
$reca_user.= "<a href=\"". $link_add_u. $id. "\" title=\"". _t('workshop','add_new_user'). "\" class=\"ico_add2\"></a><br class=\"brendstep\" />";
$reca_user.= $contents_user;
$reca_user.= "<div class=\"mailing_list\"><a href=\"mailto:". $mailing_list. "\" title=\"". _t('workshop','mailing_list'). "\"> <img src=\"" . THEME_ADMIN_PATH. "images/ico_mail2.gif\" alt=\"". _t('workshop','mailing_list'). "\" /> ". _t('workshop','mailing_list'). "</a></div>";
$reca_user.= "<br class=\"brendstep\" />\n";
//prepa affichage des rapports d'un workgroup
$result_report= $sql_object->DBSelect($req_workshop_report);
//$workshop_report_object= new workshop_report ;
$link_res_sup= "?rub=resources&todo=sup&id=&parent=". $id. "&type=P&id=";
$link_mod= $rub_link. "&todo=mod&id=";
$contents_report= "<div class=\"info\">". _t('workshop','no_report'). "</div>";
$contents_report= "<table cellspacing=\"0\" cellpadding=\"3\" class=\"table2\">\n";
$contents_report.= "<thead>\n";
$contents_report.= "<tr>\n";
$contents_report.= "<td>". _t('workshop','title_report'). "</td>\n";
$contents_report.= "<td>". _t('divers','statut'). "</td>\n";
$contents_report.= "<td>". _t('divers','date_crea'). "</td>\n";
$contents_report.= "<td> <span class=\"semnone\">". _t('divers','actions'). "</span></td>\n";
$contents_report.= "</tr>\n";
$contents_report.= "</thead>\n";
$contents_report.= "<tbody>\n";
for($i= 0; $i< count($result_report); $i++ ) {
$workshop_report_title= formatText(cutText($result_report[$i]['workrep_title'], 60, 1), '2HTML');
$contents_report.= "<tr>\n";
$contents_report.= "<td width=\"50%\"><a href=\"". $link_det_rep. $result_report[$i]['workrep_id']. "\" title=\"". $workshop_report_title. "\">". $workshop_report_title. "</a></td>\n";
$contents_report.= "<td>". display_statut($result_report[$i]['workrep_statut']). "</td>\n";
$contents_report.= "<td>". $result_report[$i]['workrep_date_crea_display']. "</td>\n";
$contents_report.= "<td><div class=\"iconetab\"><a href=\"". $link_sup_rep. $result_report[$i]['workrep_id']. "\" title=\"". _t('workshop','del_report'). "\" class=\"ico_sup\"></a>\n";
$contents_report.= "<a href=\"". $link_mod_rep. $result_report[$i]['workrep_id']. "\" title=\"". _t('workshop','mod_report'). "\" class=\"ico_mod\"></a></div></td>";
else $contents_report.= "<td> </td>\n";
$contents_report.= "</tr>\n";
$contents_report.= "</tbody>";
$contents_report.= "</table>";
$reca_report.= "<div class=\"workshop_det\">\n";
$reca_report.= "<a name=\"resreport\" id=\"resreport\" href=\"#resreport\" onclick=\"$('#res_report').slideToggle();\">". _t('workshop','report'). "</a>\n";
$reca_report.= "</div>\n";
$reca_report.= "<div id=\"res_report\" style=\"display:none;\" >\n";
$reca_report.= "<a href=\"". $link_add_rep. $id. "\" title=\"". _t('workshop','add_new_report'). "\" class=\"ico_add2\"></a><br class=\"brendstep\" />";
$reca_report.= $contents_report;
$reca_report.= "</div>\n";
$reca_report.= "<br class=\"brendstep\" />\n";
$navtitle= _t('workshop','det'). " : ". $workshop_denomination;
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home'); ?></a>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>"
class="chemin_rub"> <?php echo _t('menu','workshop');?></a></li>
<li><span> <?php echo formatnavTitle($navtitle); ?></span></li>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php
include_once($dir. "/menurub.php");
echo "<a href=\"". $link_sup. $id. "\" title=\"". _t('workshop','sup'). "\" class=\"ico_sup2\"></a>";
echo "<a href=\"". $link_mod. $id. "\" title=\"". _t('workshop','mod'). "\" class=\"ico_mod2\"></a><br class=\"brendstep\" />";
// Ability to drag'n drop items
<?php include_once($dir. "/help.php"); ?></div>
|