From 54b030c0263ea8fa22b6890696726a1d385e126f Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 30 Aug 2004 11:35:36 +0000 Subject: [PATCH] profil : xhtml we will have to rework the pages to be more tpl compliant --- htdocs/profil.php | 2 +- include/fonction.emploi.inc.php | 6 +-- include/geoloc.inc.php | 4 +- include/profil/profil_skill.inc.php | 14 +++--- include/secteur.emploi.inc.php | 8 +-- include/tabs.inc.php | 2 +- templates/profil.head.tpl | 28 +++++++++++ templates/profil.tpl | 43 ++++------------ templates/profil/adresses.tpl | 99 +++++++++++++++++++------------------ templates/profil/general.tpl | 14 +++--- templates/profil/mentor.tpl | 67 ++++++++++++------------- templates/profil/poly.tpl | 38 +++++++------- templates/profil/skill.tpl | 57 +++++++++++---------- 13 files changed, 192 insertions(+), 190 deletions(-) create mode 100644 templates/profil.head.tpl diff --git a/htdocs/profil.php b/htdocs/profil.php index 2aadc82..8e56f05 100644 --- a/htdocs/profil.php +++ b/htdocs/profil.php @@ -1,6 +1,6 @@  \n"; + echo "\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 "\n"; + echo "\n"; else - echo "\n"; + echo "\n"; } mysql_free_result($res); } diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index e76ae28..f6b6ce7 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -9,7 +9,7 @@ function geoloc_pays($current) { $result = mysql_query($sql); while (list($my_id,$my_pays) = mysql_fetch_row($result)) - printf("\n",$my_id,($current==$my_id?"selected":""),$my_pays); + printf("\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 ""; while (list($regid,$regname) = mysql_fetch_row($result)) - printf("\n",$regid,($current==$regid?"selected":""),$regname); + printf("\n",$regid,($current==$regid?"selected='selected'":""),$regname); } function _geoloc_region_smarty($params){ if(!isset($params['pays'])) diff --git a/include/profil/profil_skill.inc.php b/include/profil/profil_skill.inc.php index 8d8e236..c9ec154 100644 --- a/include/profil/profil_skill.inc.php +++ b/include/profil/profil_skill.inc.php @@ -3,14 +3,14 @@ function select_comppros_name($cproname){ global $comppros_def, $comppros_title; reset($comppros_def); - echo ""; + echo ""; foreach( $comppros_def as $cid => $cname){ if($comppros_title[$cid] == 1){ //c'est un titre de categorie - echo ""; + echo ""; } else{ - echo ""; + echo ""; } } } @@ -22,9 +22,9 @@ $page->register_function('select_competence', '_select_comppros_name'); function select_langue_name($lgname){ global $langues_def; reset($langues_def); - echo ""; + echo ""; foreach( $langues_def as $lid => $lname){ - echo ""; + echo ""; } } 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 ""; + echo ""; foreach( $langues_levels as $level => $levelname){ - echo ""; + echo ""; } } function _select_langue_level($params){ diff --git a/include/secteur.emploi.inc.php b/include/secteur.emploi.inc.php index 102c2a6..81ea453 100644 --- a/include/secteur.emploi.inc.php +++ b/include/secteur.emploi.inc.php @@ -2,10 +2,10 @@ function select_secteur($secteur){ if($secteur == '') $secteur = -1; - echo "\n"; + echo "\n"; $res = mysql_query("SELECT id, label FROM emploi_secteur"); while(list($tmp_id, $tmp_label) = mysql_fetch_row($res)){ - echo "\n"; + echo "\n"; } mysql_free_result($res); } @@ -15,12 +15,12 @@ function select_ss_secteur($secteur,$ss_secteur){ echo "\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 "\n"; + echo "\n"; } mysql_free_result($res); } else{ - echo "\n"; + echo "\n"; } } diff --git a/include/tabs.inc.php b/include/tabs.inc.php index b6dc173..8499938 100644 --- a/include/tabs.inc.php +++ b/include/tabs.inc.php @@ -68,7 +68,7 @@ function draw_tab($tab_name, $is_opened){
  • "> - +
  • + + +{/literal} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/profil.tpl b/templates/profil.tpl index 7475318..6b0d780 100644 --- a/templates/profil.tpl +++ b/templates/profil.tpl @@ -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} - -{/literal} - {dynamic} {if $etat_naissance} {include file="profil/naissance.tpl"} @@ -41,17 +16,17 @@ {/if} {* dessin des onglets *} -
    - - - - - - + @@ -59,7 +34,7 @@
    {draw_onglets} + + + + + +
    - diff --git a/templates/profil/adresses.tpl b/templates/profil/adresses.tpl index c8c641d..111d936 100644 --- a/templates/profil/adresses.tpl +++ b/templates/profil/adresses.tpl @@ -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 $ *}
    + {include file=$onglet_tpl}
    @@ -138,52 +138,53 @@ une résidence secondaire - - - - - - - - - - - - - {/section} - -
    -   - - on peut m'y envoyer du courrier par la poste -
    - - - - - - - - -
    - - - site public - - - - transmis à l'AX - - Quelle couleur ?? -
    -
    - Téléphone associé - - -   - Fax - -
     
     
    - + + + +   + + + on peut m'y envoyer du courrier par la poste + + + + + + + + + + + + +
    + + + site public + + + + transmis à l'AX + + Quelle couleur ?? +
    + + + + + Téléphone associé + + + +   + Fax + + + +   + {/section} +   + + - {* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/profil/general.tpl b/templates/profil/general.tpl index 7dea240..88d976d 100644 --- a/templates/profil/general.tpl +++ b/templates/profil/general.tpl @@ -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"}
    @@ -68,8 +68,8 @@ @@ -88,8 +88,8 @@ @@ -116,7 +116,7 @@ - +
    @@ -126,7 +126,7 @@ nouvelle photo). -  [ PHOTO ] +  [ PHOTO ]
    diff --git a/templates/profil/mentor.tpl b/templates/profil/mentor.tpl index 78becb5..4c5d1e4 100644 --- a/templates/profil/mentor.tpl +++ b/templates/profil/mentor.tpl @@ -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} - {/literal}

    Si tu acceptes que ceux de nos camarades qui, +

    • encore jeunes, sont en train de bâtir leur projet professionnel,
    • ou bien, plus âgés, souhaitent réorienter leur carrière,
    +

    te contactent afin de te demander conseil, dans les domaines que tu connais bien, et pour lesquels tu pourrais les aider, remplis cette rubrique.
    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 Pays dont tu connais bien la culture professionnelle + + + - - - @@ -137,13 +138,13 @@ notamment internationales sur la base desquels tu seras identifiable depuis - - - - -
    Secteurs d'activité dans lesquels tu as beaucoup exercé + + + + +
    @@ -194,7 +195,7 @@ notamment internationales sur la base desquels tu seras identifiable depuis {/if} diff --git a/templates/profil/poly.tpl b/templates/profil/poly.tpl index 4ba000a..e0939a1 100644 --- a/templates/profil/poly.tpl +++ b/templates/profil/poly.tpl @@ -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} - {/literal}
    @@ -76,7 +74,7 @@
    - {select_secteur secteur=$mentor_secteur_id_new}
    - - -
    - + ne peut être ni public ni transmis à l'AX diff --git a/templates/profil/skill.tpl b/templates/profil/skill.tpl index a9eedbc..1709a93 100644 --- a/templates/profil/skill.tpl +++ b/templates/profil/skill.tpl @@ -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} - {/literal} @@ -47,11 +46,11 @@
    Compétences professionnelles + + +
    @@ -126,11 +125,11 @@ - - -
    Compétences linguistiques + + +
    -- 2.1.4