From ce06a2c877396ed24971a95a57c93c39ea5b3d4b Mon Sep 17 00:00:00 2001 From: x2000coic Date: Sat, 7 Aug 2004 11:26:43 +0000 Subject: [PATCH] utilisation de popwin et correction des liens dans profil et referent ajout du wite web et de la formation dans la fiche --- htdocs/fiche.php | 4 ++-- htdocs/fiche_referent.php | 5 +++-- htdocs/profil.php | 2 +- htdocs/referent.php | 4 ++-- templates/fiche.tpl | 9 +++++---- templates/profil.tpl | 4 +++- templates/profil/general.tpl | 4 ++-- templates/referent.tpl | 6 +++--- 8 files changed, 21 insertions(+), 17 deletions(-) diff --git a/htdocs/fiche.php b/htdocs/fiche.php index f2afb55..2987485 100644 --- a/htdocs/fiche.php +++ b/htdocs/fiche.php @@ -1,7 +1,7 @@ assign('is_contact', $is_contact); // photo $photo="getphoto.php?x=".$user_id.(SID == '' ? '' : '&'.SID).($new ? '&modif=new' : ''); -if(!isset($size_y) and !isset($size_x)) list($size_x, $size_y) = getimagesize("none.png"); +if(!isset($size_y) and !isset($size_x)) list($size_x, $size_y) = getimagesize("images/none.png"); if(!isset($size_y) or $size_y < 1) $size_y=1; if(!isset($size_x) or $size_x < 1) $size_x=1; if($size_y > 300){ diff --git a/htdocs/fiche_referent.php b/htdocs/fiche_referent.php index 4e4946c..643f881 100644 --- a/htdocs/fiche_referent.php +++ b/htdocs/fiche_referent.php @@ -99,11 +99,12 @@ $result = mysql_query("SELECT gp.pays WHERE uid = $user_id"); $nb_pays = mysql_num_rows($result); $i = 1; -while(list($pays[$i]) = mysql_fetch_row($result)) +while(list($pays[$i]) = mysql_fetch_row($result)){ $i++; +} unset($pays[$i]); mysql_free_result($result); -$page->assign('nb_pays', $nb_secteurs); +$page->assign('nb_pays', $nb_pays); $page->assign_by_ref('pays', $pays); $page->run(); diff --git a/htdocs/profil.php b/htdocs/profil.php index e47bb1a..2aadc82 100644 --- a/htdocs/profil.php +++ b/htdocs/profil.php @@ -1,6 +1,6 @@ "; + //echo "requete : ".htmlentities($sql)."
"; $res = mysql_query($sql); // echo mysql_error()."
"; if(mysql_num_rows($res) == 0){ diff --git a/templates/fiche.tpl b/templates/fiche.tpl index d7afff5..846ffa7 100644 --- a/templates/fiche.tpl +++ b/templates/fiche.tpl @@ -1,9 +1,9 @@ {dynamic}
-
+
{$prenom|htmlentities} {$nom|htmlentities}
- X {$promo|htmlentities}
- Fiche mise à jour le {$date|date_format:"%d/%m/%Y"}
+ X {$promo|htmlentities} - {$applis}
+ (Fiche mise à jour le {$date|date_format:"%d/%m/%Y"})
Afficher la carte de visite  {if !$is_contact} Ajouter parmi mes contacts  @@ -12,8 +12,9 @@ {$username}@polytechnique.org
Section : {$section|htmlentities}
Binet(s) : {$binets|htmlentities}
- Groupe(s) X : {$groupes|htmlentities}
+ Groupe(s) X : {$groupes}
{if $mobile}
Mobile : {$mobile|htmlentities}
{/if} + {if $web}
Site Web :
{$web|htmlentities}
{/if} {if $libre}
Commentaires :
{$libre|htmlentities|nl2br}{/if}
diff --git a/templates/profil.tpl b/templates/profil.tpl index 062aff7..ad241ed 100644 --- a/templates/profil.tpl +++ b/templates/profil.tpl @@ -1,4 +1,4 @@ -{* $Id: profil.tpl,v 1.3 2004-07-24 18:22:43 x2000habouzit Exp $ *} +{* $Id: profil.tpl,v 1.4 2004-08-07 11:26:45 x2000coic Exp $ *} {config_load file="profil.conf"} {literal} @@ -36,6 +36,8 @@
{$profil_error}
+{else} +

Tu peux consulter l'état actuel de ta fiche tel qu'elle apparaîtra pour un camarade.

{/if} {* dessin des onglets *} diff --git a/templates/profil/general.tpl b/templates/profil/general.tpl index 26a4d42..6ce4d22 100644 --- a/templates/profil/general.tpl +++ b/templates/profil/general.tpl @@ -1,4 +1,4 @@ -{* $Id: general.tpl,v 1.3 2004-07-17 12:20:23 x2000habouzit Exp $ *} +{* $Id: general.tpl,v 1.4 2004-08-07 11:26:47 x2000coic Exp $ *} {include file="applis.js.tpl"}
@@ -123,7 +123,7 @@ Voilà la photo qui apparaîtra sur la fiche de ton profil (si tu viens de changer ta photo, la photo affichée peut correspondre à ton ancien profil : c'est le cas si elle n'a pas encore été validée par un administrateur du site ! - nouvelle photo). + nouvelle photo).  [ PHOTO ] diff --git a/templates/referent.tpl b/templates/referent.tpl index b88b120..8f7e8ad 100644 --- a/templates/referent.tpl +++ b/templates/referent.tpl @@ -1,4 +1,4 @@ -{* $Id: referent.tpl,v 1.2 2004-07-17 11:23:09 x2000habouzit Exp $ *} +{* $Id: referent.tpl,v 1.3 2004-08-07 11:26:45 x2000coic Exp $ *} {literal}