linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file mod.php

Documentation is available at mod.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage user
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!function_exists('AuthenthificationProcess')) {
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!IsSuperAdmin()) ReloadIndex('admin');
  20. ////////////
  21. include_once('../lib/input_helpers.php');
  22.  
  23. $user_objectnew user;
  24.  
  25. // USER
  26. if (isset($_GET['id']))    $id=$_GET['id'];
  27. if (isset($_POST['id'])) $id=$_POST['id'];
  28.  
  29. $mask_dashboard_1='';
  30. $mask_dashboard_2='';
  31. $mask_publication_1='';
  32. $mask_publication_2='';
  33. $mask_news_1='';
  34. $mask_news_2='';
  35. $mask_workshop_1='';
  36. $mask_workshop_2='';
  37. $mask_display_mail_1='';
  38. $mask_display_mail_2='';
  39.  
  40.  
  41. if(isset($_POST['switch_type'])) {
  42.   $switch_type=$_POST['switch_type'];
  43.  
  44.   $user_objectnew user;
  45.   if($switch_type=='2SIMPLE_USER'$table_right=$user_object->InitUserRight('SIMPLE_USER');
  46.   if($switch_type=='2ADMIN_USER'$table_right=$user_object->InitUserRight('ADMIN_USER');
  47.  
  48.   $result=$user_object->ModifyRight($id$table_right$sql_object);
  49.   $link_confirm="confirm.php?rub=".$rub."&todo=".$todo."_t&id=".$id;
  50.   if($resultheader("Location: ".$link_confirm);
  51.   else  system_error();
  52. }
  53.  
  54. // préparation des listes Workgroups
  55. $workgroups=$sql_object->DBSelect($q);
  56. $r=$user_object->GetUserWorkshops($id$sql_object);
  57. $default_wgarray();
  58. foreach($r as $value{
  59.   if($value['jwu_user_right']=='U')
  60.   array_push($default_wg$value['jwu_workshop_id']);
  61. }
  62.  
  63. $requete=SQL_getAllUserInfo($id);
  64. $data=$sql_object->DBSelect($requete'OBJECT');
  65. if(count($data)>1exit();
  66. $current_title =$data[0]->user_login;
  67. $user_login =$data[0]->user_login;
  68. $user_category $data[0]->user_category;
  69. if($user_category==1{
  70.   $switch_type='2SIMPLE_USER';
  71.   $switch_link=_t('user','2SIMPLE_USER');
  72. else {
  73.   $switch_type='2ADMIN_USER';
  74.   $switch_link=_t('user','2ADMIN_USER');
  75. }
  76.  
  77. $switch_form=    "<form id=\"switchform\" name=\"switchform\" action=\"".$_SERVER['SCRIPT_NAME']."\" method=\"post\" >\n";
  78. $switch_form.=    "<div>\n";
  79. $switch_form.=    "<input type=\"hidden\" name=\"switch_type\" id=\"switch_type\" value=\"".$switch_type."\" />\n";
  80. $switch_form.=    "<input name=\"id\" type=\"hidden\" value=\"".$id."\" id=\"id\" />\n";
  81. $switch_form.=    "<input name=\"rub\" type=\"hidden\" value=\"".$rub."\" id=\"rub\" />\n";
  82. $switch_form.=    "<input name=\"todo\" type=\"hidden\" value=\"".$todo."\" id=\"todo\" />\n";
  83. $switch_form.=    "</div>\n";
  84. $switch_form.=    "</form>\n";
  85.  
  86. // droits utilisateur
  87. $rights_id=$data[0]->rights_id;
  88. $form_rights_dashboard=$data[0]->rights_dashboard;
  89. $form_rights_publication=$data[0]->rights_publication;
  90. $form_rights_news=$data[0]->rights_news;
  91. $form_rights_workshop=$data[0]->rights_workshop;
  92.  
  93.  
  94. // profil utilisateur
  95. $profile_id=$data[0]->profile_id;
  96. $form_profile_email $current_email $data[0]->profile_email;
  97. $form_profile_email_display=$data[0]->profile_email_display;
  98. $form_profile_city=formatText($data[0]->profile_city'2FIELD');
  99. $form_profile_birthdateisNullDate($data[0]->profile_birthdate'--' formatDate($data[0]->profile_birthdatetrue);
  100. list($form_date_y$form_date_m$form_date_d)=explode('-'$form_profile_birthdate);
  101. $form_profile_leisures=formatText($data[0]->profile_leisures'2FIELD');
  102. $form_profile_job=formatText($data[0]->profile_job'2FIELD');
  103. $form_profile_avatar=$data[0]->profile_avatar;
  104. $form_profile_quotation=formatText($data[0]->profile_quotation'2FIELD');
  105. $form_profile_signature=formatText($data[0]->profile_signature'2FIELD');
  106. $form_profile_last_modify_display=$data[0]->profile_last_modify_display;
  107.  
  108. if(isset($_POST['valider'])) {
  109.   $table_user[0]=$user_login;
  110.   $integrity=1;
  111.   $form_profile_email $table_profile[0$table_user[1=$_POST['email'];
  112.   $form_profile_email_display $table_profile[1$_POST['email_display'];
  113.   $form_profile_city $table_profile[2=  $_POST['city'];
  114.   $form_date_d $_POST['date_d'];
  115.   $form_date_m $_POST['date_m'];
  116.   $form_date_y $_POST['date_y'];
  117.   $form_birthdate=$form_date_d '-' $form_date_m '-' $form_date_y;
  118.  
  119.   if(!empty($form_date_d&& !empty($form_date_m&& !empty($form_date_y)) {
  120.     $date_integrity=checkdate_validity($form_birthdate);
  121.   else {
  122.     $date_integrity=true;
  123.   }
  124.   if(is_string($date_integrity)) $integrity $date_integrity;
  125.   else {
  126.     $table_profile[3]$form_date_y.'-'.$form_date_m.'-'.$form_date_d;
  127.     $form_profile_birthdate=$table_profile[3];
  128.     $form_profile_birthdate=formatDate($form_profile_birthdate);
  129.   }
  130.   $table_profile[4$_POST['leisures'];
  131.   $table_profile[5$_POST['job'];
  132.   $table_profile[6$_POST['quotation'];
  133.   $table_profile[7$_POST['signature'];
  134.   $table_right['dashboard']=$_POST['dashboard'];
  135.   $table_right['publication']=$_POST['publication'];
  136.   $table_right['news']=$_POST['news'];
  137.   $table_right['workshop']=$_POST['workshop'];
  138.  
  139.   if(is_string($integrity)) $format_text='2FIELD'else $format_text='2HTML';
  140.   $form_profile_leisures formatText($_POST['leisures']$format_text);
  141.   $form_profile_job formatText($_POST['job']$format_text);
  142.   $form_profile_quotation formatText($_POST['quotation']$format_text);
  143.   $form_profile_signature formatText($_POST['signature']$format_text);
  144.   $form_rights_dashboard $_POST['dashboard'];
  145.   $form_rights_publication $_POST['publication'];
  146.   $form_rights_news $_POST['news'];
  147.   $form_rights_workshop $_POST['workshop'];
  148.  
  149.   $table_right=urlencode(serialize($table_right));
  150.   $current_email=$_POST['current_email'];
  151.  
  152.   $data_user_integrity=$user_object->CheckDataIntegrity($table_user);
  153.  
  154.   if(is_string($data_user_integrity)) $integrity=$data_user_integrity;
  155.  
  156.   if(!is_string($integrity)) {
  157.     if(isset($_FILES['avatar']&& $_FILES['avatar']['name']!=''{
  158.       include_once('../class/system/class.upload.php');
  159.       $upload_objectnew upload;
  160.       $upload=$_FILES['avatar'];
  161.       $size_integrity=$upload_object->CheckMaxFile($upload['size']$user_object->UPLOAD_MAX_MO);
  162.       if(is_string($size_integrity)) $integrity=$size_integrity;
  163.       $format_integrity=$upload_object->CheckExtImage($upload['name']);
  164.       if(is_string($format_integrity)) $integrity=$format_integrity;
  165.       if(!is_string($integrity)) {
  166.         $final_name=$id.".".$upload_object->GetExtension($upload ['name']);
  167.         $temp_name="temp_".$final_name;
  168.         $destination="../".$user_object->URI_INPUT;
  169.         $table_profile[8]=$user_object->URI_INPUT.$final_name;
  170.  
  171.         $form_profile_avatar=$user_object->URI_INPUT.$temp_name;
  172.         $result_upload=$upload_object->UploadFile($upload$temp_name$destination);
  173.       }
  174.     else  {
  175.       $table_profile[8]=$form_profile_avatar;
  176.       $archive_it=0;
  177.     }
  178.   }
  179.   $table_profile=urlencode(serialize($table_profile));
  180.  
  181.   if(isset($_POST['workgroups'])) {
  182.     $table_workgroups=$_POST['workgroups'];
  183.     $default_wg=$table_workgroups;
  184.   }
  185.   else $table_workgroups=array();
  186.   $table_workgroups=urlencode(serialize($table_workgroups));
  187. }
  188.  
  189. if(isset($_POST['enregistrer'])) {
  190.   $current_email=$_POST['current_email'];
  191.   include_once('../class/system/class.upload.php');
  192.   $table_right=unserialize(urldecode($_POST['table_right']));
  193.   $table_profile=unserialize(urldecode($_POST['table_profile']));
  194.   $table_workgroups=unserialize(urldecode($_POST['table_workgroups']));
  195.   $new_email=$table_profile[0];
  196.  
  197.   $result1=$user_object->ModifyRight($id$table_right$sql_object);
  198.   $result2=$user_object->ModifyProfile($id$table_profile$sql_object);
  199.   $result3=$user_object->ModifiyWorkshops($id$table_workgroups'U' $sql_object);
  200.  
  201.   if($new_email!=$current_email{
  202.     $new_pass=$user_object->GetNewPassword();
  203.     $user_object->UpdateUserPassword($id$new_pass$sql_object);
  204.  
  205.     /** include envoi de mail */
  206.     $todo_mail='change_mail';
  207.     include_once(themePath('../user/mail_actions.php'));
  208.     include_once('../mail/template.php');
  209.   }
  210.   $upload_objectnew upload;
  211.   $visual_uri="../".$table_profile[8];
  212.   $result_rename=$upload_object->Archivefile($visual_uri);
  213.  
  214.   $link_confirm="confirm.php?rub=".$rub."&todo=".$todo;
  215.   if($result1 && $result2 && $result3header("Location: ".$link_confirm);
  216.   else  system_error();
  217. }
  218.  
  219. // préparation des données
  220. if($form_rights_dashboard=='U'$mask_dashboard_1="checked=\"checked\"";
  221. if($form_rights_dashboard=='O'$mask_dashboard_2="checked=\"checked\"";
  222. if($form_rights_publication=='U'$mask_publication_1="checked=\"checked\"";
  223. if($form_rights_publication=='O'$mask_publication_2="checked=\"checked\"";
  224. if($form_rights_news=='U'$mask_news_1="checked=\"checked\"";
  225. if($form_rights_news=='O'$mask_news_2="checked=\"checked\"";
  226. if($form_rights_workshop=='U'$mask_workshop_1="checked=\"checked\"";
  227. if($form_rights_workshop=='O'$mask_workshop_2="checked=\"checked\"";
  228. if($form_profile_email_display=='Y'$mask_display_mail_1="checked=\"checked\"";
  229. if($form_profile_email_display=='N'$mask_display_mail_2="checked=\"checked\"";
  230. if(!empty($form_profile_avatar)) {
  231.   $complete_uri='../'.$form_profile_avatar;
  232.   $user_profile_avatar='<img src="'.$complete_uri.'" alt="'._t('user','avatar').' '.$user_login.'" />';
  233. else $user_profile_avatar=_t('divers','none');
  234.  
  235.  
  236. // preparation affichage detaillé
  237. $rights_display='';
  238. if(defined('MOD_SDI'&& $user_category!=1{
  239.   $rights_display.= "<label for=\"dashboard_1\" class=\"rights\">>> "._t('menu','dashboard')." : </label><br />\n";
  240.   $rights_display.= "<div class=\"radiomargin\">\n";
  241.   $rights_display.= "<input type=\"radio\" id=\"dashboard_1\" class=\"radio\" name=\"dashboard\" value=\"U\" ".$mask_dashboard_1." /><span class=\"radio\">"_t('user','norights')."</span>\n";
  242.   $rights_display.= "<input type=\"radio\" id=\"dashboard_2\" class=\"radio\" name=\"dashboard\" value=\"O\" ".$mask_dashboard_2."/><span class=\"radio\">"_t('user','managerrights')."</span>\n";
  243.   $rights_display.= "</div>\n";
  244. else $rights_display.="<input type=\"hidden\" id=\"dashboard\" name=\"dashboard\" value=\"".$form_rights_dashboard."\" />\n";
  245. if(defined('MOD_PUBLICATION'&& $user_category!=1{
  246.   $rights_display.= "<label for=\"publication_1\" class=\"rights\">>> "._t('menu','publication')." : </label><br />\n";
  247.   $rights_display.= "<div class=\"radiomargin\">\n";
  248.   $rights_display.= "<input type=\"radio\" id=\"publication_1\" class=\"radio\" name=\"publication\" value=\"U\" ".$mask_publication_1." /><span class=\"radio\">"_t('user','norights')."</span>\n";
  249.   $rights_display.= "<input type=\"radio\" id=\"publication_2\" class=\"radio\" name=\"publication\" value=\"O\" ".$mask_publication_2." /><span class=\"radio\">"_t('user','redactorrights')."</span>\n";
  250.   $rights_display.= "</div>\n";
  251. else $rights_display.="<input type=\"hidden\" id=\"publication\" name=\"publication\" value=\"".$form_rights_publication."\" />\n";
  252. if(defined('MOD_NEWS'&& $user_category!=1{
  253.   $rights_display.= "<label for=\"news_1\" class=\"rights\">>> "._t('menu','news')." : </label><br />\n";
  254.   $rights_display.= "<div class=\"radiomargin\">\n";
  255.   $rights_display.= "<input type=\"radio\" id=\"news_1\" class=\"radio\" name=\"news\" value=\"U\" ".$mask_news_1." /><span class=\"radio\">"_t('user','norights')."</span>\n";
  256.   $rights_display.= "<input type=\"radio\" id=\"news_2\" class=\"radio\" name=\"news\" value=\"O\" ".$mask_news_2."/><span class=\"radio\">"_t('user','redactorrights')."</span>\n";
  257.   $rights_display.= "</div>\n";
  258. else $rights_display.="<input type=\"hidden\" id=\"news\" name=\"news\" value=\"".$form_rights_news."\" />\n";
  259. if(defined('MOD_WORKSHOP'&& $user_category!=1{
  260.   $rights_display.= "<label for=\"workshop_1\" class=\"rights\">>> "._t('menu','workshop')." : </label><br />\n";
  261.   $rights_display.= "<div class=\"radiomargin\">\n";
  262.   $rights_display.= "<input type=\"radio\" id=\"workshop_1\" class=\"radio\" name=\"workshop\" value=\"U\" ".$mask_workshop_1." /><span class=\"radio\">"_t('user','norights')."</span>\n";
  263.   $rights_display.= "<input type=\"radio\" id=\"workshop_2\" class=\"radio\" name=\"workshop\" value=\"O\" ".$mask_workshop_2." /><span class=\"radio\">"_t('user','animatorrights')."</span>\n";
  264.   $rights_display.= "</div>\n";
  265. else $rights_display.="<input type=\"hidden\" id=\"wokshop\" name=\"workshop\" value=\"".$form_rights_workshop."\" />\n";
  266. if($user_category==1{
  267.   $rights_display.="<p class=\"info\">\n";
  268.   $rights_display.=_t('user','admin_type_info');
  269.   $rights_display.="\n</p>\n";
  270. }
  271. ?>
  272. <div id="chemin">
  273. <ul>
  274.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a>
  275.     </li>
  276.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  277.         class="chemin_rub"><?php echo _t('menu','user')?></a></li>
  278.     <li><span><?php echo formatNavTitle(_t('user','mod').' : '.$current_title)?></span>
  279.     </li>
  280. </ul>
  281. </div>
  282. <!--end barre haute -->
  283. <?php
  284. include_once(THEME_ADMIN_PATH."quickicons.php");
  285. ?>
  286.  
  287. <?php
  288. if(!isset($integrity|| is_string($integrity)) {
  289.   ?>
  290. <div class="contentcontainer"><?php
  291. include_once($dir."/menurub.php");
  292. ?>
  293. <div id="content"><?php
  294. if(isset($integrity&& is_string($integrity)) display_errors($integrity);
  295. ?>
  296. <h2><?php echo formatTitleh2($current_title)?></h2>
  297. <div class="mod_link"><a
  298.     href="<?php echo $rub_link."&amp;todo=mod_p&amp;id=".$id?>"><?php echo _t('user','new_password')?></a>
  299. <?php echo "<a href=\"#\" onclick=\"document.getElementById('switchform').submit()\">".$switch_link."</a>"?>
  300. <br />
  301.  
  302. </div>
  303. <form id="moduser" action="<?php echo $_SERVER['SCRIPT_NAME']?>"
  304.     method="post" enctype="multipart/form-data">
  305. <p>
  306. <h3><?php echo _t('user','update_rights')?> : <br />
  307. </h3>
  308. <?php echo $rights_display?></p>
  309. <hr />
  310. <p>
  311. <h3><?php echo _t('user','profile')?> :</h3>
  312. </p>
  313. <p><label for="email"><?php echo _t('user','email')?> : *</label> <input
  314.     name="email" type="text" class="textfield" id="email" maxlength="200"
  315.     value="<?php echo $form_profile_email?>" /></p>
  316. <p><label for="email_display_Y"><?php echo _t('user','email_display')?>
  317. : </label>
  318. <div class="radiomargin"><input type="radio" id="email_display_Y"
  319.     class="radio" name="email_display" value="Y"
  320.     <?php echo $mask_display_mail_1?> /><span class="radio"><?php echo _t('divers','yes')?></span>
  321. <input type="radio" id="email_display_N" class="radio"
  322.     name="email_display" value="N" <?php echo $mask_display_mail_2?> /><span
  323.     class="radio"><?php echo _t('divers','no')?></span></div>
  324. </p>
  325. <div class="label"><?php echo ucfirst(_t('user','workgroups'))?> :</div>
  326. <div class="rightpanel"><?php echo workgroupsCheckbox($workgroups'workgroups[]'$default_wg)?>
  327. </div>
  328. <p>
  329. <dl class="dl_mod">
  330.     <dt><?php echo _t('user','avatar')?></dt>
  331.     <dd><?php echo $user_profile_avatar?></dd>
  332. </dl>
  333. </p>
  334. <p><label for="avatar"><?php echo _t('user','avatar')?> : </label> <input
  335.     name="avatar" type="file" id="avatar" size="47" class="file" /></p>
  336. <p><label for="birthdate_d"><?php echo _t('user','birthdate')?> :</label>
  337.     <?php echo input_date($form_date_y$form_date_m$form_date_d)?></p>
  338. <p><label for="city"><?php echo _t('user','city')?> :</label> <input
  339.     name="city" type="text" class="textfield" id="city" maxlength="100"
  340.     value="<?php echo $form_profile_city?>" /></p>
  341. <p><label for="leisures"><?php echo _t('user','leisures')?> :</label>
  342. <input name="leisures" type="text" class="textfield" id="leisures"
  343.     maxlength="150" value="<?php echo $form_profile_leisures?>" /></p>
  344. <p><label for="job"><?php echo _t('user','job')?> :</label> <input
  345.     name="job" type="text" class="textfield" id="job" maxlength="150"
  346.     value="<?php echo $form_profile_job?>" /></p>
  347. <p><label for="quotation"><?php echo _t('user','quotation')?> :</label>
  348. <input name="quotation" type="text" class="textfield" id="quotation"
  349.     maxlength="150" value="<?php echo $form_profile_quotation?>" /></p>
  350. <p><label for="signature"><?php echo _t('user','signature'?> :</label>
  351. <input name="signature" type="text" class="textfield" id="signature"
  352.     maxlength="200" value="<?php echo $form_profile_signature?>" /></p>
  353. <div><input name="current_email" type="hidden"
  354.     value="<?php echo $current_email?>" id="current_email" /> <input
  355.     name="id" type="hidden" value="<?php echo $id?>" id="id" /> <input
  356.     name="rub" type="hidden" value="<?php echo $rub?>" id="rub" /> <input
  357.     name="todo" type="hidden" value="<?php echo $todo?>" id="todo" /> <?php echo cancel_button('javascript:history.go(-1);')?>
  358. <input name="valider" type="submit"
  359.     value="<?php echo _t('btn','valid'?>" class="button" id="valider" />
  360. </div>
  361. </form>
  362.     <?php echo $switch_form?></div>
  363.     <?php include_once($dir."/help.php")?></div>
  364.     <?php
  365.     // Récapitulatif
  366. else    {
  367.  
  368.   $wg_display '';
  369.   if(isset($_POST['workgroups'])) {
  370.     $q=SQL_Get_WorkshopsDenomination($_POST['workgroups']);
  371.     $workgroups=$sql_object->DBSelect($q);
  372.     foreach($workgroups as $wg{
  373.       $wg_display .= '- '.$wg['workshop_denomination'].'<br />'.END_LINE;
  374.     }
  375.   else $wg_display .= _t('divers''none');
  376.  
  377.   //prepa affichage de droits
  378.   $reca_droits='';
  379.   $reca_droits.="<dl class=\"dl3\">\n";
  380.   $reca_droits.="<dt class=\"dl_intitule\">"._t('user','rights')." : </dt>\n";
  381.   $reca_droits.="<dd>&nbsp;<br /></dd>\n";
  382.   if(defined('MOD_SDI'))  {
  383.     $reca_droits.="<dt> . "._t('menu','sdi')."</dt>\n";
  384.     $reca_droits.="<dd>".GetDisplayUserRight($form_rights_dashboard'dashboard')."<br /></dd>\n";
  385.   }
  386.   if(defined('MOD_PUBLICATION'))  {
  387.     $reca_droits.="<dt>  . "._t('menu','publication')."</dt>\n";
  388.     $reca_droits.="<dd>".GetDisplayUserRight($form_rights_publication)."<br /></dd>\n";
  389.   }
  390.   if(defined('MOD_WORKSHOP'))  {
  391.     $reca_droits.="<dt>  . "._t('menu','workshop')."</dt>\n";
  392.     $reca_droits.="<dd>".GetDisplayUserRight($form_rights_workshop'workshop')."<br /></dd>\n";
  393.   }
  394.   if(defined('MOD_NEWS'))  {
  395.     $reca_droits.="<dt>  . "._t('menu','news')."</dt>\n";
  396.     $reca_droits.="<dd>".GetDisplayUserRight($form_rights_news)."<br /></dd>\n";
  397.   }
  398.   $reca_droits.="</dl>\n";
  399.  
  400.  
  401.   if($form_profile_email_display=='Y'$form_profile_email_string=_t('divers','yes');
  402.   if($form_profile_email_display=='N'$form_profile_email_string=_t('divers','no');
  403.   $form_profile_email='<a href="mailto:'.$form_profile_email.'">'.$form_profile_email.'</a>';
  404.   $form_profile_city=empty_nc($form_profile_city);
  405.   $form_profile_birthdate ($form_profile_birthdate=='--''' $form_profile_birthdate;
  406.   $form_profile_birthdate=empty_nc($form_profile_birthdate);
  407.   $form_profile_leisures=empty_nc($form_profile_leisures);
  408.   $form_profile_job=empty_nc($form_profile_job);
  409.   $user_profile_avatar=empty_none($user_profile_avatar);
  410.   $form_profile_signature=empty_nc($form_profile_signature);
  411.   $form_profile_quotation=empty_nc($form_profile_quotation);
  412.   ?>
  413. <div class="contentcontainer"><?php
  414. include_once($dir."/menurub.php");
  415. ?>
  416. <div id="content"><?php
  417. echo "<h2>".formatTitleh2(_t('recap','title'))."</h2>";
  418. echo $reca_droits;
  419. echo "<dl class=\"dl3\">\n";
  420. echo "<dt class=\"dl_intitule\">"._t('user','profile')." :</dt>\n";
  421. echo "<dd>&nbsp;</dd>\n";
  422. echo "<dt>"_t('user','email')"</dt>\n";
  423. echo "<dd>".$form_profile_email."</dd>\n";
  424. echo "<dt>"._t('user','email_display')."</dt>\n";
  425. echo "<dd>"$form_profile_email_string."</dd>\n";
  426. echo "<dt>".ucfirst(_t('user','workgroups'))."</dt>\n";
  427. echo "<dd>"stripslashes($wg_display)."</dd>\n";
  428. echo "<dt>"._t('user','birthdate')."</dt>\n";
  429. echo "<dd>"stripslashes($form_profile_birthdate)."</dd>\n";
  430. echo "<dt>"._t('user','city')."</dt>\n";
  431. echo "<dd>"stripslashes($form_profile_city)."</dd>\n";
  432. echo "<dt>"._t('user','leisures')."</dt>\n";
  433. echo "<dd>"stripslashes($form_profile_leisures)."</dd>\n";
  434. echo "<dt>"._t('user','job')."</dt>\n";
  435. echo "<dd>"stripslashes($form_profile_job)."</dd>\n";
  436. echo "<dt>"._t('user','avatar')."</dt>\n";
  437. echo "<dd>"stripslashes($user_profile_avatar)."</dd>\n";
  438. echo "<dt>"._t('user','quotation')."</dt>\n";
  439. echo "<dd>"stripslashes($form_profile_quotation)."</dd>\n";
  440. echo "<dt>"._t('user','signature')."</dt>\n";
  441. echo "<dd>"stripslashes($form_profile_signature)."</dd>\n";
  442. echo "</dl>\n";
  443. ?>
  444. <form id="moduser" action="<?php echo $_SERVER['SCRIPT_NAME']?>"
  445.     method="post">
  446. <div><input name="id" type="hidden" value="<?php echo $id?>" id="id" />
  447. <input name="rub" type="hidden" value="<?php echo $rub?>" id="rub" />
  448. <input name="todo" type="hidden" value="<?php echo $todo?>" id="todo" />
  449. <input name="current_email" type="hidden"
  450.     value="<?php echo $current_email?>" id="current_email" /> <input
  451.     name="table_right" type="hidden" value="<?php echo $table_right?>"
  452.     id="table_right" /> <input name="table_profile" type="hidden"
  453.     value="<?php echo $table_profile?>" id="table_profile" /> <input
  454.     name="table_workgroups" type="hidden"
  455.     value="<?php echo $table_workgroups?>" id="table_workgroups" /> <?php echo cancel_button('?rub=user&todo=list')?>
  456. <input name="retour" type="button"
  457.     value="<?php echo _t('btn','preview'?>" class="button" id="retour"
  458.     onclick="history.go(-1);" /> <input name="enregistrer" type="submit"
  459.     value="<?php echo _t('btn','save'?>" class="button" id="valider" /></div>
  460. </form>
  461. </div>
  462. <?php include_once($dir."/help.php")?></div>
  463. <?php
  464. }
  465. ?>

Documentation generated on Fri, 01 Apr 2011 09:33:08 +0200 by phpDocumentor 1.4.1