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

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