profil : xhtml
authorx2000habouzit <x2000habouzit>
Mon, 30 Aug 2004 11:35:36 +0000 (11:35 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 30 Aug 2004 11:35:36 +0000 (11:35 +0000)
we will have to rework the pages to be more tpl compliant

13 files changed:
htdocs/profil.php
include/fonction.emploi.inc.php
include/geoloc.inc.php
include/profil/profil_skill.inc.php
include/secteur.emploi.inc.php
include/tabs.inc.php
templates/profil.head.tpl [new file with mode: 0644]
templates/profil.tpl
templates/profil/adresses.tpl
templates/profil/general.tpl
templates/profil/mentor.tpl
templates/profil/poly.tpl
templates/profil/skill.tpl

index 2aadc82..8e56f05 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 require("auto.prepend.inc.php");
-new_skinned_page('profil.tpl',AUTH_COOKIE, true);
+new_skinned_page('profil.tpl',AUTH_COOKIE, true, 'profil.head.tpl');
 
 if ($no_update_bd) {
     $_REQUEST = array();
index ca66b46..c3393fc 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
 function select_fonction($fonction){
-       echo "<option value=\"\" ". (($fonction == '0')?"selected":"") .">&nbsp;</option>\n";
+       echo "<option value=\"\" ". (($fonction == '0')?"selected='selected'":"") .">&nbsp;</option>\n";
         $res = mysql_query("SELECT id, fonction_fr, FIND_IN_SET('titre', flags) from fonctions_def ORDER BY id");
        while(list($fid, $flabel, $ftitre) = mysql_fetch_row($res)){
                if($ftitre)
-                       echo "<option value=\"$fid\" " . (($fonction == $fid)?"selected":"") . ">$flabel</option>\n";
+                       echo "<option value=\"$fid\" " . (($fonction == $fid)?"selected='selected'":"") . ">$flabel</option>\n";
                else
-                       echo "<option value=\"$fid\" " . (($fonction == $fid)?"selected":"") . ">* $flabel</option>\n";
+                       echo "<option value=\"$fid\" " . (($fonction == $fid)?"selected='selected'":"") . ">* $flabel</option>\n";
        }
        mysql_free_result($res);
 }
index e76ae28..f6b6ce7 100644 (file)
@@ -9,7 +9,7 @@ function geoloc_pays($current) {
 
   $result = mysql_query($sql);
   while (list($my_id,$my_pays) = mysql_fetch_row($result))
-    printf("<option value=\"%s\" %s>%s</option>\n",$my_id,($current==$my_id?"selected":""),$my_pays);
+    printf("<option value=\"%s\" %s>%s</option>\n",$my_id,($current==$my_id?"selected='selected'":""),$my_pays);
 }
 function _geoloc_pays_smarty($params){
   if(!isset($params['pays']))
@@ -29,7 +29,7 @@ function geoloc_region($pays,$current) {
   
   echo "<option value=\"\"></option>";
   while (list($regid,$regname) = mysql_fetch_row($result))
-    printf("<option value=\"%s\" %s>%s</option>\n",$regid,($current==$regid?"selected":""),$regname);
+    printf("<option value=\"%s\" %s>%s</option>\n",$regid,($current==$regid?"selected='selected'":""),$regname);
 }
 function _geoloc_region_smarty($params){
   if(!isset($params['pays']))
index 8d8e236..c9ec154 100644 (file)
@@ -3,14 +3,14 @@
 function select_comppros_name($cproname){
        global $comppros_def, $comppros_title;
        reset($comppros_def);
-       echo "<option value=\"\"".(($cproname == "")?" selected":"")."></option>";
+       echo "<option value=\"\"".(($cproname == "")?" selected='selected'":"")."></option>";
        foreach( $comppros_def as $cid => $cname){
                if($comppros_title[$cid] == 1){
                        //c'est un titre de categorie
-                       echo "<option value=\"$cid\"".(($cname == $cproname)?" selected":"").">$cname</option>";
+                       echo "<option value=\"$cid\"".(($cname == $cproname)?" selected='selected'":"").">$cname</option>";
                }
                else{
-                       echo "<option value=\"$cid\"".(($cname == $cproname)?" selected":"").">-&nbsp;$cname</option>";
+                       echo "<option value=\"$cid\"".(($cname == $cproname)?" selected='selected'":"").">-&nbsp;$cname</option>";
                }
        }
 }
@@ -22,9 +22,9 @@ $page->register_function('select_competence', '_select_comppros_name');
 function select_langue_name($lgname){
        global $langues_def;
        reset($langues_def);
-       echo "<option value=\"\"".(($lgname == "")?" selected":"")."></option>";
+       echo "<option value=\"\"".(($lgname == "")?" selected='selected'":"")."></option>";
        foreach( $langues_def as $lid => $lname){
-               echo "<option value=\"$lid\"".(($lname == $lgname)?" selected":"").">$lname</option>";
+               echo "<option value=\"$lid\"".(($lname == $lgname)?" selected='selected'":"").">$lname</option>";
        }
 }
 function _select_langue_name($params){
@@ -35,9 +35,9 @@ $page->register_function('select_langue', '_select_langue_name');
 function select_langue_level($llevel){
         global $langues_levels;
         reset($langues_levels);
-        echo "<option value=\"\"".(($lgname == "")?" selected":"")."></option>";
+        echo "<option value=\"\"".(($lgname == "")?" selected='selected'":"")."></option>";
         foreach( $langues_levels as $level => $levelname){
-                echo "<option value=\"$level\"".(($llevel == $level)?" selected":"").">&nbsp;$levelname&nbsp;</option>";
+                echo "<option value=\"$level\"".(($llevel == $level)?" selected='selected'":"").">&nbsp;$levelname&nbsp;</option>";
         }
 }
 function _select_langue_level($params){
index 102c2a6..81ea453 100644 (file)
@@ -2,10 +2,10 @@
 
 function select_secteur($secteur){
        if($secteur == '') $secteur = -1;
-       echo "<option value=\"\" ". (($secteur == '')?"selected":"") .">&nbsp;</option>\n";
+       echo "<option value=\"\" ". (($secteur == '')?"selected='selected'":"") .">&nbsp;</option>\n";
        $res = mysql_query("SELECT id, label FROM emploi_secteur");
        while(list($tmp_id, $tmp_label) = mysql_fetch_row($res)){
-               echo "<option value=\"$tmp_id\" " . (($secteur == $tmp_id)?"selected":"") . ">$tmp_label</option>\n";
+               echo "<option value=\"$tmp_id\" " . (($secteur == $tmp_id)?"selected='selected'":"") . ">$tmp_label</option>\n";
        }
        mysql_free_result($res);
 }
@@ -15,12 +15,12 @@ function select_ss_secteur($secteur,$ss_secteur){
                echo "<option value=\"\">&nbsp;</option>\n";
                $res = mysql_query("SELECT id, label FROM emploi_ss_secteur WHERE secteur = '$secteur'");
                while(list($tmp_id, $tmp_label) = mysql_fetch_row($res)){
-                       echo "<option value=\"$tmp_id\" ". (($ss_secteur == $tmp_id)?"selected":"") .">$tmp_label</option>\n";
+                       echo "<option value=\"$tmp_id\" ". (($ss_secteur == $tmp_id)?"selected='selected'":"") .">$tmp_label</option>\n";
                }
                mysql_free_result($res);
        }
        else{
-         echo "<option value=\"\" selected>&nbsp;</option>\n";
+         echo "<option value=\"\" selected='selected'>&nbsp;</option>\n";
        }
 }
 
index b6dc173..8499938 100644 (file)
@@ -68,7 +68,7 @@ function draw_tab($tab_name, $is_opened){
            <li>
              <a href="<?php echo "{$_SERVER['PHP_SELF']}?old_tab=$tab_name";?>">
                  <?php echo $tabname_array["$tab_name"];?>
-              </A>
+              </a>
            </li>
   <?php }
 }
diff --git a/templates/profil.head.tpl b/templates/profil.head.tpl
new file mode 100644 (file)
index 0000000..d27ae7c
--- /dev/null
@@ -0,0 +1,28 @@
+{* $Id: profil.head.tpl,v 1.1 2004-08-30 11:35:37 x2000habouzit Exp $ *}
+
+{literal}
+<style type="text/css">
+  <!--
+  div.blocunite {margin: 1em 0em 2em 0em;}
+  div.blocunite_tab {margin: 0em 0em 2em 0em;}
+  div.bloc {margin: 0em 0.5em 0.5em 0.5em;}
+  div.erreur {background-color: #FF3300; padding-left=0.5em; margin: 2px;}
+  table.bicol td.cold,td.col {padding-right: 0.5em;}
+  table.bicol td.colm {}
+  table.bicol td.colg,td.col {padding-left: 0.5em;}
+  table.bicol td.dcolm, td.dcolg, td.dcold {padding-bottom: 0.5em;}
+  table.bicol td.dcolg {padding-left: 0.5em;}
+  table.bicol td.dcold {padding-right: 0.5em;}
+  table.bicol td.pflags {}
+  table.bicol td.flags {padding-top: 0.5em;}
+  table.bicol tr.top {vertical-align: top;}
+  table.bicol span.titre {font-weight: bold;}
+  table.bicol span.comm {font-size: smaller;}
+  table.bicol span.nom {}
+  table.bicol span.valeur {font-weight: bold;}
+  table.bicol span.lien {font-size: smaller;}
+  -->
+</style>
+{/literal}
+
+{* vim:set et sw=2 sts=2 sws=2: *}
index 7475318..6b0d780 100644 (file)
@@ -1,31 +1,6 @@
-{* $Id: profil.tpl,v 1.5 2004-08-24 23:06:05 x2000habouzit Exp $ *}
+{* $Id: profil.tpl,v 1.6 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 {config_load file="profil.conf"}
-{literal}
-<style>
-  <!--
-  div.blocunite {margin: 1em 0em 2em 0em;}
-  div.blocunite_tab {margin: 0em 0em 2em 0em;}
-  div.bloc {margin: 0em 0.5em 0.5em 0.5em;}
-  div.erreur {background-color: #FF3300; padding-left=0.5em; margin: 2px;}
-  table.bicol td.cold,td.col {padding-right: 0.5em;}
-  table.bicol td.colm {}
-  table.bicol td.colg,td.col {padding-left: 0.5em;}
-  table.bicol td.dcolm, td.dcolg, td.dcold {padding-bottom: 0.5em;}
-  table.bicol td.dcolg {padding-left: 0.5em;}
-  table.bicol td.dcold {padding-right: 0.5em;}
-  table.bicol td.pflags {}
-  table.bicol td.flags {padding-top: 0.5em;}
-  table.bicol tr.top {vertical-align: top;}
-  table.bicol span.titre {font-weight: bold;}
-  table.bicol span.comm {font-size: smaller;}
-  table.bicol span.nom {}
-  table.bicol span.valeur {font-weight: bold;}
-  table.bicol span.lien {font-size: smaller;}
-  -->
-</style>
-{/literal}
-
 {dynamic}
 {if $etat_naissance}
 {include file="profil/naissance.tpl"}
 {/if}
 {* dessin des onglets *}
 
-<form action="{$smarty.server.PHP_SELF}" method="post" name="prof_annu">
-  <input type="hidden" value="" name="binet_op" />
-  <input type="hidden" value="" name="binet_id" />
-  <input type="hidden" value="" name="groupex_op" />
-  <input type="hidden" value="" name="groupex_id" />
-  <input type="hidden" value="{$onglet}" name="old_tab" />
-  <input type="hidden" value="" name="adresse_flag" />
+<form action="{$smarty.server.PHP_SELF}" method="post" id="prof_annu">
   <table class="cadre_a_onglet" cellpadding="0" cellspacing="0">
     <tr>
       <td>
         {draw_onglets}
+        <input type="hidden" value="" name="binet_op" />
+        <input type="hidden" value="" name="binet_id" />
+        <input type="hidden" value="" name="groupex_op" />
+        <input type="hidden" value="" name="groupex_id" />
+        <input type="hidden" value="{$onglet}" name="old_tab" />
+        <input type="hidden" value="" name="adresse_flag" />
       </td>
     </tr>
     <tr>
@@ -59,7 +34,7 @@
         <div class="conteneur_tab">
           <table style="width:100%">
             <tr>
-              <td colspan=2>
+              <td colspan="2">
                 {include file=$onglet_tpl}
               </td>
             </tr>
index c8c641d..111d936 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: adresses.tpl,v 1.4 2004-08-24 23:06:06 x2000habouzit Exp $ *}
+{* $Id: adresses.tpl,v 1.5 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 <div class="blocunite_tab">
   <table class="bicol" cellspacing="0" cellpadding="0" summary="Profil: Adresses personnelles">
         <input type="radio" name="secondaire[{$adrid}]" value="1" {if $adr.secondaire}checked="checked"{/if} />
         une résidence secondaire
       </td>
-      <tr>
-        <td class="colg">
-          &nbsp;
-        </td>
-        <td class="cold">
-          <input type="checkbox" name="courrier[{$adrid}]" value="1" {if $adr.courrier}checked="checked"{/if} /> on peut m'y envoyer du courrier par la poste
-        </td>
-      </tr>
-      <tr>
-        <td colspan="2" class="flags">
-          <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
-            <tr>
-              <td class="vert">
-                <input type="checkbox" name="tel_public[{$adrid}]" value="1" {if $adr.tel_public}checked="checked"{/if} />
-              </td>
-              <td class="texte">
-                site public
-              </td>
-              <td class="orange">
-                <input type="checkbox" name="tel_ax[{$adrid}]" value="1" {if $adr.tel_ax}checked="checked"{/if} />
-              </td>
-              <td class="texte">
-                transmis à l'AX
-              </td>
-              <td class="texte">
-                <a href="javascript:x()" onclick="popWin('aide.php#flags','remplissage','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=500')">Quelle couleur ??</a>
-              </td>
-            </tr>
-          </table>
-        </td>
-      </tr>
-      <tr>
-        <td class="colg">
-          <span class="titre">Téléphone associé</span>
-        </td>
-        <td>
-          <input type="text" size="19" maxlength="28" name="tel[{$adrid}]" value="{$adr.tel}" />
-          &nbsp;
-          <span class="titre">Fax</span>
-          <input type="text" size="19" maxlength="28" name="fax[{$adrid}]" value="{$adr.fax}" />
-        </td>
-      </tr>
-      <tr><td colspan="5">&nbsp;</td></tr>
-      {/section}
-      <tr><td colspan="5">&nbsp;</td></tr>
-    </table>
-  </div>
+    </tr>
+    <tr>
+      <td class="colg">
+        &nbsp;
+      </td>
+      <td class="cold">
+        <input type="checkbox" name="courrier[{$adrid}]" value="1" {if $adr.courrier}checked="checked"{/if} /> on peut m'y envoyer du courrier par la poste
+      </td>
+    </tr>
+    <tr>
+      <td colspan="2" class="flags">
+        <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
+          <tr>
+            <td class="vert">
+              <input type="checkbox" name="tel_public[{$adrid}]" value="1" {if $adr.tel_public}checked="checked"{/if} />
+            </td>
+            <td class="texte">
+              site public
+            </td>
+            <td class="orange">
+              <input type="checkbox" name="tel_ax[{$adrid}]" value="1" {if $adr.tel_ax}checked="checked"{/if} />
+            </td>
+            <td class="texte">
+              transmis à l'AX
+            </td>
+            <td class="texte">
+              <a href="javascript:x()" onclick="popWin('aide.php#flags','remplissage','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=500')">Quelle couleur ??</a>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+    <tr>
+      <td class="colg">
+        <span class="titre">Téléphone associé</span>
+      </td>
+      <td>
+        <input type="text" size="19" maxlength="28" name="tel[{$adrid}]" value="{$adr.tel}" />
+        &nbsp;
+        <span class="titre">Fax</span>
+        <input type="text" size="19" maxlength="28" name="fax[{$adrid}]" value="{$adr.fax}" />
+      </td>
+    </tr>
+    <tr><td colspan="5">&nbsp;</td></tr>
+    {/section}
+    <tr><td colspan="5">&nbsp;</td></tr>
+  </table>
+</div>
 
-  {* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2: *}
index 7dea240..88d976d 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: general.tpl,v 1.6 2004-08-24 23:06:06 x2000habouzit Exp $ *}
+{* $Id: general.tpl,v 1.7 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 {include file="applis.js.tpl"}
 <div class="blocunite_tab">
@@ -68,8 +68,8 @@
         </select>
         <script type="text/javascript">
           <!--
-          fillType(document.prof_annu.appli_type1, document.prof_annu.appli_id1.selectedIndex-1);
-          selectType(document.prof_annu.appli_type1, '{dyn x=$appli_type1}');
+          fillType(document.forms.prof_annu.appli_type1, document.forms.prof_annu.appli_id1.selectedIndex-1);
+          selectType(document.forms.prof_annu.appli_type1, '{dyn x=$appli_type1}');
           //-->
         </script>
       </td>
@@ -88,8 +88,8 @@
         </select>
         <script type="text/javascript">
           <!--
-          fillType(document.prof_annu.appli_type2, document.prof_annu.appli_id2.selectedIndex-1);
-          selectType(document.prof_annu.appli_type2, '{dyn x=$appli_type2}');
+          fillType(document.forms.prof_annu.appli_type2, document.forms.prof_annu.appli_id2.selectedIndex-1);
+          selectType(document.forms.prof_annu.appli_type2, '{dyn x=$appli_type2}');
           //-->
         </script>
       </td>
       </td>
     </tr>
     <tr>
-      <td class="col" colspan=3>
+      <td class="col" colspan="3">
         <table cellspacing="0" cellpadding="0" summary="Trombinoscope">
           <tr>
             <td class="dcold">
               <a href="javascript:x()" onclick="popWin('fiche.php?user={$smarty.session.username}&amp;modif=new','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=620,height=370')">nouvelle photo</a>).
             </td>
             <td class="dcolg">
-              <img src="getphoto.php?x={$smarty.session.uid}{*{if $smarty.cookies|@count == 0}&amp;{php}echo SID;{/php}{/if}*}" alt=" [ PHOTO ] ">
+              <img src="getphoto.php?x={$smarty.session.uid}{*{if $smarty.cookies|@count == 0}&amp;{php}echo SID;{/php}{/if}*}" alt=" [ PHOTO ] " />
             </td>
           </tr>
         </table>
index 78becb5..4c5d1e4 100644 (file)
@@ -1,54 +1,55 @@
-{* $Id: mentor.tpl,v 1.5 2004-08-26 14:44:45 x2000habouzit Exp $ *}
+{* $Id: mentor.tpl,v 1.6 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 {literal}
-<script language="JavaScript" type="text/javascript">
-  <!--
-
+<script type="text/javascript">
+  <![CDATA[
   function mentor_pays_add()
   {
-    var selid = document.prof_annu.mentor_pays_id_new.selectedIndex;
-    document.prof_annu.mentor_pays_id.value = document.prof_annu.mentor_pays_id_new.options[selid].value;
-    document.prof_annu.mentor_pays_name.value = document.prof_annu.mentor_pays_id_new.options[selid].text;
-    document.prof_annu.mentor_pays_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selid = document.forms.prof_annu.mentor_pays_id_new.selectedIndex;
+    document.forms.prof_annu.mentor_pays_id.value = document.forms.prof_annu.mentor_pays_id_new.options[selid].value;
+    document.forms.prof_annu.mentor_pays_name.value = document.forms.prof_annu.mentor_pays_id_new.options[selid].text;
+    document.forms.prof_annu.mentor_pays_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // function mentor_pays_add()
 
   function mentor_pays_del( pid )
   {
-    document.prof_annu.mentor_pays_id.value = pid;
-    document.prof_annu.mentor_pays_op.value = "retirer";
-    document.prof_annu.submit();
+    document.forms.prof_annu.mentor_pays_id.value = pid;
+    document.forms.prof_annu.mentor_pays_op.value = "retirer";
+    document.forms.prof_annu.submit();
   } // function mentor_pays_del( pid )
 
   function mentor_secteur_add()
   {
-    var selid_secteur = document.prof_annu.mentor_secteur_id_new.selectedIndex;
-    document.prof_annu.mentor_secteur_id.value = document.prof_annu.mentor_secteur_id_new.options[selid_secteur].value;
-    document.prof_annu.mentor_secteur_name.value = document.prof_annu.mentor_secteur_id_new.options[selid_secteur].text;
-    var selid_ss_secteur = document.prof_annu.mentor_ss_secteur_id_new.selectedIndex;
-    document.prof_annu.mentor_ss_secteur_id.value = document.prof_annu.mentor_ss_secteur_id_new.options[selid_ss_secteur].value;
-    document.prof_annu.mentor_ss_secteur_name.value = document.prof_annu.mentor_ss_secteur_id_new.options[selid_ss_secteur].text;
-    document.prof_annu.mentor_secteur_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selid_secteur = document.forms.prof_annu.mentor_secteur_id_new.selectedIndex;
+    document.forms.prof_annu.mentor_secteur_id.value = document.forms.prof_annu.mentor_secteur_id_new.options[selid_secteur].value;
+    document.forms.prof_annu.mentor_secteur_name.value = document.forms.prof_annu.mentor_secteur_id_new.options[selid_secteur].text;
+    var selid_ss_secteur = document.forms.prof_annu.mentor_ss_secteur_id_new.selectedIndex;
+    document.forms.prof_annu.mentor_ss_secteur_id.value = document.forms.prof_annu.mentor_ss_secteur_id_new.options[selid_ss_secteur].value;
+    document.forms.prof_annu.mentor_ss_secteur_name.value = document.forms.prof_annu.mentor_ss_secteur_id_new.options[selid_ss_secteur].text;
+    document.forms.prof_annu.mentor_secteur_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // function mentor_secteur_add()
 
   function mentor_secteur_del( sid )
   {
-    document.prof_annu.mentor_secteur_id.value = sid;
-    document.prof_annu.mentor_secteur_op.value = "retirer";
-    document.prof_annu.submit();
+    document.forms.prof_annu.mentor_secteur_id.value = sid;
+    document.forms.prof_annu.mentor_secteur_op.value = "retirer";
+    document.forms.prof_annu.submit();
   } // function mentor_secteur_del( sid )
 
-  //-->
+  //]]>
 </script>
 {/literal}
 
 <p>
 Si tu acceptes que ceux de nos camarades qui,
+</p>
 <ul>
   <li>encore jeunes, sont en train de bâtir leur projet professionnel,</li>
   <li>ou bien, plus âgés, souhaitent réorienter leur carrière,</li>
 </ul>
+<p>
 te contactent afin de te demander conseil, dans les domaines que tu connais
 bien, et pour lesquels tu pourrais les aider, remplis cette rubrique.<br />
 Tu peux mentionner ici les domaines de compétences, les expériences 
@@ -62,11 +63,11 @@ notamment internationales sur la base desquels tu seras identifiable depuis
     <tr>
       <th colspan="3">
         Pays dont tu connais bien la culture professionnelle
+        <input type="hidden" value="" name="mentor_pays_op" />
+        <input type="hidden" value="00" name="mentor_pays_id" />
+        <input type="hidden" value="" name="mentor_pays_name" />
       </th>
     </tr>
-    <input type="hidden" value="" name="mentor_pays_op" />
-    <input type="hidden" value="00" name="mentor_pays_id" />
-    <input type="hidden" value="" name="mentor_pays_name" />
     <tr>
       <td colspan="3" class="pflags">
         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
@@ -137,13 +138,13 @@ notamment internationales sur la base desquels tu seras identifiable depuis
         <tr>
           <th colspan="3">
             Secteurs d'activité dans lesquels tu as beaucoup exercé
+            <input type="hidden" value="" name="mentor_secteur_op" />
+            <input type="hidden" value="" name="mentor_secteur_id" />
+            <input type="hidden" value="" name="mentor_secteur_name" />
+            <input type="hidden" value="" name="mentor_ss_secteur_id" />
+            <input type="hidden" value="" name="mentor_ss_secteur_name" />
           </th>
         </tr>
-        <input type="hidden" value="" name="mentor_secteur_op" />
-        <input type="hidden" value="" name="mentor_secteur_id" />
-        <input type="hidden" value="" name="mentor_secteur_name" />
-        <input type="hidden" value="" name="mentor_ss_secteur_id" />
-        <input type="hidden" value="" name="mentor_ss_secteur_name" />
         <tr>
           <td colspan="3" class="pflags">
             <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
@@ -194,7 +195,7 @@ notamment internationales sur la base desquels tu seras identifiable depuis
             <tr class="impair">
               {/if}
               <td class="colg">
-                <select name="mentor_secteur_id_new" OnChange="javascript:submit()">
+                <select name="mentor_secteur_id_new" onchange="javascript:submit()">
                   {select_secteur secteur=$mentor_secteur_id_new}
                 </select>
               </td>
index 4ba000a..e0939a1 100644 (file)
@@ -1,9 +1,7 @@
-{* $Id: poly.tpl,v 1.2 2004-07-17 12:07:32 x2000habouzit Exp $ *}
+{* $Id: poly.tpl,v 1.3 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 {literal}
-<script language="JavaScript" type="text/javascript">
-  <!--
-
+<script type="text/javascript">//<![CDATA[
   /** defgroup user_profile Gestion du profil utilisateur */
 
   /** ajout d'un binet au profil de l'utilisateur en base de données
   */
   function binet_add()
   {
-    var selid = document.prof_annu.binet_sel.selectedIndex;
-    document.prof_annu.binet_id.value = document.prof_annu.binet_sel.options[selid].value;
-    document.prof_annu.binet_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selid = document.forms.prof_annu.binet_sel.selectedIndex;
+    document.forms.prof_annu.binet_id.value = document.forms.prof_annu.binet_sel.options[selid].value;
+    document.forms.prof_annu.binet_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // function binet_add()
 
 
@@ -28,9 +26,9 @@
   */
   function binet_del( id )
   {
-    document.prof_annu.binet_id.value = id;
-    document.prof_annu.binet_op.value = "retirer";
-    document.prof_annu.submit();
+    document.forms.prof_annu.binet_id.value = id;
+    document.forms.prof_annu.binet_op.value = "retirer";
+    document.forms.prof_annu.submit();
   } // END function binet_del( id )
 
 
   */
   function groupex_add()
   {
-    var selid = document.prof_annu.groupex_sel.selectedIndex;
-    document.prof_annu.groupex_id.value = document.prof_annu.groupex_sel.options[selid].value;
-    document.prof_annu.groupex_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selid = document.forms.prof_annu.groupex_sel.selectedIndex;
+    document.forms.prof_annu.groupex_id.value = document.forms.prof_annu.groupex_sel.options[selid].value;
+    document.forms.prof_annu.groupex_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // END function groupex_add()
 
   /** suppression d'un groupeX du profil de l'utilisateur en base de données
   */
   function groupex_del( id )
   {
-    document.prof_annu.groupex_id.value = id;
-    document.prof_annu.groupex_op.value = 'retirer';
-    document.prof_annu.submit();
+    document.forms.prof_annu.groupex_id.value = id;
+    document.forms.prof_annu.groupex_op.value = 'retirer';
+    document.forms.prof_annu.submit();
   } // END function groupex_del( id )
 
-  //-->
+  //]]>
 </script>
 {/literal}
 <div class="blocunite_tab">
@@ -76,7 +74,7 @@
         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
           <tr>
             <td class="rouge">
-              <input type="checkbox" name="accesX" checked"checked" disabled="disabled" />
+              <input type="checkbox" name="accesX" checked="checked" disabled="disabled" />
             </td>
             <td class="texte">
               ne peut être ni public ni transmis à l'AX
index a9eedbc..1709a93 100644 (file)
@@ -1,43 +1,42 @@
-{* $Id: skill.tpl,v 1.3 2004-07-17 12:06:31 x2000habouzit Exp $ *}
+{* $Id: skill.tpl,v 1.4 2004-08-30 11:35:37 x2000habouzit Exp $ *}
 
 {literal}
-<script language="JavaScript" type="text/javascript">
-  <!--
-
+<script type="text/javascript">
+  //<![CDATA[
   function langue_add()
   {
-    var selectid = document.prof_annu.langue_sel_add.selectedIndex;
-    document.prof_annu.langue_id.value = document.prof_annu.langue_sel_add.options[selectid].value;
-    var selectid_level = document.prof_annu.langue_level_sel_add.selectedIndex;
-    document.prof_annu.langue_level.value = document.prof_annu.langue_level_sel_add.options[selectid_level].value;
-    document.prof_annu.langue_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selectid = document.forms.prof_annu.langue_sel_add.selectedIndex;
+    document.forms.prof_annu.langue_id.value = document.forms.prof_annu.langue_sel_add.options[selectid].value;
+    var selectid_level = document.forms.prof_annu.langue_level_sel_add.selectedIndex;
+    document.forms.prof_annu.langue_level.value = document.forms.prof_annu.langue_level_sel_add.options[selectid_level].value;
+    document.forms.prof_annu.langue_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // function langue_add()
 
   function langue_del( lid )
   {
-    document.prof_annu.langue_id.value = lid;
-    document.prof_annu.langue_op.value = "retirer";
-    document.prof_annu.submit();
+    document.forms.prof_annu.langue_id.value = lid;
+    document.forms.prof_annu.langue_op.value = "retirer";
+    document.forms.prof_annu.submit();
   } // function langue_del( id )
 
   function comppros_add()
   {
-    var selectid = document.prof_annu.comppros_sel_add.selectedIndex;
-    document.prof_annu.comppros_id.value = document.prof_annu.comppros_sel_add.options[selectid].value;
-    var selectid_level = document.prof_annu.comppros_level_sel_add.selectedIndex;
-    document.prof_annu.comppros_level.value = document.prof_annu.comppros_level_sel_add.options[selectid_level].value;
-    document.prof_annu.comppros_op.value = "ajouter";
-    document.prof_annu.submit();
+    var selectid = document.forms.prof_annu.comppros_sel_add.selectedIndex;
+    document.forms.prof_annu.comppros_id.value = document.forms.prof_annu.comppros_sel_add.options[selectid].value;
+    var selectid_level = document.forms.prof_annu.comppros_level_sel_add.selectedIndex;
+    document.forms.prof_annu.comppros_level.value = document.forms.prof_annu.comppros_level_sel_add.options[selectid_level].value;
+    document.forms.prof_annu.comppros_op.value = "ajouter";
+    document.forms.prof_annu.submit();
   } // function langue_add()
 
   function comppros_del( cid )
   {
-    document.prof_annu.comppros_id.value = cid;
-    document.prof_annu.comppros_op.value = "retirer";
-    document.prof_annu.submit();
+    document.forms.prof_annu.comppros_id.value = cid;
+    document.forms.prof_annu.comppros_op.value = "retirer";
+    document.forms.prof_annu.submit();
   } // function comppros_del( id )
-  //-->
+  //]]>
 </script>
 {/literal}
 
     <tr>
       <th colspan="3">
         Compétences professionnelles
+        <input type="hidden" value="" name="comppros_op" />
+        <input type="hidden" value="" name="comppros_id" />
+        <input type="hidden" value="" name="comppros_level" />
       </th>
     </tr>
-    <input type="hidden" value="" name="comppros_op" />
-    <input type="hidden" value="" name="comppros_id" />
-    <input type="hidden" value="" name="comppros_level" />
     <tr>
       <td colspan="3" class="pflags">
         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
         <tr>
           <th colspan="3">
             Compétences linguistiques
+            <input type="hidden" value="" name="langue_op" />
+            <input type="hidden" value="" name="langue_id" />
+            <input type="hidden" value="" name="langue_level" />
           </th>
         </tr>
-        <input type="hidden" value="" name="langue_op" />
-        <input type="hidden" value="" name="langue_id" />
-        <input type="hidden" value="" name="langue_level" />
         <tr>
           <td colspan="3" class="pflags">
             <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">