Source for file det.php
Documentation is available at det.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
//////////// Check Droits utilisateur ////////////
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
$result= $sql_object->DBSelect($req_det);
if(count($result)> 1) exit();
$r= $user_object->GetUserWorkshops($id, $sql_object);
array_push($default_wg, $value['jwu_workshop_id']);
if(!empty($default_wg)) {
$workgroups= $sql_object->DBSelect($q);
foreach($workgroups as $wg) {
$wg_display .= '- '. $wg['workshop_denomination']. '<br />'. END_LINE;
} else $wg_display .= _t('divers', 'none');
$link_det= $rub_link. "&todo=det&id=";
$link_det_theme= "index.php?rub=theme&todo=det&id=";
$link_sup= $rub_link. "&todo=sup&id=";
$link_mod= $rub_link. "&todo=mod&id=";
// formattage des données
$current_title= formatText($result[0]['user_login'], '2HTML');
$user_login= formatText($result[0]['user_login'], '2HTML');
$user_email= $result[0]['profile_email'];
$user_email= formatText('<a href="mailto:'. $user_email. '">'. $user_email. '</a>', '2HTML');
$user_groupe= formatText($result[0]['catus_name'], '2HTML');
$rights_dashboard= $result[0]['rights_dashboard'];
$rights_publication= $result[0]['rights_publication'];
$rights_news= $result[0]['rights_news'];
$rights_workshop= $result[0]['rights_workshop'];
$user_public_email= $result[0]['profile_email_display'];
if($user_public_email== 'Y') $user_public_email= _t('divers','yes');
else $user_public_email= _t('divers','no');
if(!empty($result[0]['profile_avatar'])) {
$complete_uri= '../'. $result[0]['profile_avatar'];
$user_profile_avatar= '<img src="'. $complete_uri. '" alt="'. _t('user','avatar'). ' '. $user_login. '" />';
} else $user_profile_avatar= _t('divers','none');
$profile_last_modify_display= $result[0]['profile_last_modify_display'];
$profile_date_crea_display= $result[0]['profile_date_crea_display'];
$link_det= $rub_link. "&todo=det&id=";
$link_sup= $rub_link. "&todo=sup&id=";
$link_mod= $rub_link. "&todo=mod&id=";
//prepa affichage de droits
$reca_droits.= '<h3 class="part">'. _t('user','rights'). '</h3>';
$reca_droits.= "<dl class=\"dl3\">\n";
$reca_droits.= "<dt>". _t('user','groupe'). "</dt>\n";
$reca_droits.= "<dd>". $user_groupe. "</dd>\n";
$reca_droits.= "<dt> . ". _t('menu','dashboard'). "</dt>\n";
$reca_droits.= "<dt> . ". _t('menu','publication'). "</dt>\n";
$reca_droits.= "<dt> . ". _t('menu','workshop'). "</dt>\n";
$reca_droits.= "<dt> . ". _t('menu','news'). "</dt>\n";
<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','user');?></a></li>
<li><span> <?php echo formatnavTitle(_t('user','det'). " : " . $current_title); ?></span>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php
include_once($dir. "/menurub.php");
echo "\t<a href=\"". $link_sup. $id. "\" title=\"". _t('user','sup'). "\" class=\"ico_sup2\"></a>\n";
echo "\t<a href=\"". $link_mod. $id. "\" title=\"". _t('user','mod'). "\" class=\"ico_mod2\"></a>\n";
echo '<h3 class="part">'. _t('user','profile'). '</h3>';
echo "<dl class=\"dl3\">\n";
echo "<dt>". _t('user','first_name'). "</dt>\n";
echo "<dd>". $user_profile_firstname. "</dd>\n";
echo "<dt>". _t('user','last_name'). "</dt>\n";
echo "<dd>". $user_profile_lastname. "</dd>\n";
echo "<dt>". _t('user','email'). "</dt>\n";
echo "<dd>". $user_email. "</dd>\n";
echo "<dt>". _t('user','email_display'). "</dt>\n";
echo "<dd>". $user_public_email. "</dd>\n";
echo "<dt>". ucfirst(_t('user','workgroups')). "</dt>\n";
echo "<dt>". _t('user','birthdate'). "</dt>\n";
echo "<dd>". $user_profile_birthdate. "</dd>\n";
echo "<dt>". _t('user','city'). "</dt>\n";
echo "<dd>". $user_profile_city. "</dd>\n";
echo "<dt>". _t('user','leisures'). "</dt>\n";
echo "<dd>". $user_profile_leisures. "</dd>\n";
echo "<dt>". _t('user','job'). "</dt>\n";
echo "<dd>". $user_profile_job. "</dd>\n";
echo "<dt>". _t('user','avatar'). "</dt>\n";
echo "<dd>". $user_profile_avatar. "</dd>\n";
echo "<dt>". _t('user','quotation'). "</dt>\n";
echo "<dd>". $user_profile_quotation. "</dd>\n";
echo "<dt>". _t('user','signature'). "</dt>\n";
echo "<dd>". $user_profile_signature. "</dd>\n";
echo "<dt>". _t('divers','last_modify'). "</dt>\n";
echo "<dd>". $profile_last_modify_display. "</dd>\n";
echo "<dt>". _t('divers','date_crea'). "</dt>\n";
echo "<dd>". $profile_date_crea_display. "</dd>\n";
echo "<dt>". _t('divers','statut') . "</dt>\n";
echo "<dd>". $user_validity. "</dd>\n";
<?php include_once($dir. "/help.php"); ?></div>
|