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

Documentation generated on Fri, 16 Oct 2009 09:36:52 +0200 by phpDocumentor 1.4.1