From: maxime Date: Mon, 7 Feb 2005 16:12:34 +0000 (+0000) Subject: New Anais1.11 with client adapted X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d18e0514da49efe477a791425c1aee44f1cb921a;p=scalable-opengroupware.org New Anais1.11 with client adapted git-svn-id: http://svn.opengroupware.org/SOGo/trunk@529 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/AnaisWeb/trunk/ALire.txt b/AnaisWeb/trunk/ALire.txt new file mode 100644 index 00000000..1d6dacea --- /dev/null +++ b/AnaisWeb/trunk/ALire.txt @@ -0,0 +1,9 @@ +Installation : + +1 - Decompacter AnaisWeb dans un sous-repertoire du repertoire DOCUMENT_ROOT d Apache. + +2 - Dans le fichier ./../CommunWeb/Commun/Session/creesessionanais.inc + modifier la variable : + $_SESSION['maitre_serv_a'] = "N° IP du serveur LDAP"; + +Les pages Exemple.htm et Simple.htm doivent alors etre operationnelles. \ No newline at end of file diff --git a/AnaisWeb/trunk/Admin/Accueil/Exemple.php b/AnaisWeb/trunk/Admin/Accueil/Exemple.php new file mode 100644 index 00000000..b878dbb7 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Accueil/Exemple.php @@ -0,0 +1,80 @@ + + + +Exemple + + + + + +Page appelante

+Choix destinataires Pour   +Choix destinataires Cc
+Fermer fenetre Pour
+Fermer fenetre Cc

+Quitter

+
+ + + Informations de la boîte sélectionnée dans la fenêtre annuaire : + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
type
cn
dn
mel
uid
sn
givenname
+ + + Destinataires Pour sélectionnés : + + + + + + + + + + + + + +
+ + + Destinataires Cc sélectionnés : + + + + +
+
+ + diff --git a/AnaisWeb/trunk/Admin/Accueil/Simple.php b/AnaisWeb/trunk/Admin/Accueil/Simple.php new file mode 100644 index 00000000..10d01748 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Accueil/Simple.php @@ -0,0 +1,112 @@ + + + +Exemple simple + + + + + +Page appelante

+Choix d'une boîte   +Choix d'une ressource/application   +Quitter

+
+ + + Informations de la boîte sélectionnée dans la fenêtre annuaire : + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
type
cn
dn
mel
uid
sn
givenname
+
+ + diff --git a/AnaisWeb/trunk/Admin/Accueil/quitter_a.php b/AnaisWeb/trunk/Admin/Accueil/quitter_a.php new file mode 100644 index 00000000..aa9a4572 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Accueil/quitter_a.php @@ -0,0 +1,18 @@ + + + + Balade + + + +

+Sortie du programme.
+
+ + + diff --git a/AnaisWeb/trunk/Admin/Autres/aideFonc.php b/AnaisWeb/trunk/Admin/Autres/aideFonc.php new file mode 100644 index 00000000..0983cafa --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/aideFonc.php @@ -0,0 +1,60 @@ + + + +<? echo $noms[0]; ?> + + + + + + + + + + + +
 
+ + +
+ + + + + +
 AnnulerFermer la fenêtre
+ + \ No newline at end of file diff --git a/AnaisWeb/trunk/Admin/Autres/collapsefonc.php b/AnaisWeb/trunk/Admin/Autres/collapsefonc.php new file mode 100644 index 00000000..fa47d1ef --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/collapsefonc.php @@ -0,0 +1,47 @@ + + +?> diff --git a/AnaisWeb/trunk/Admin/Autres/expandfonc.php b/AnaisWeb/trunk/Admin/Autres/expandfonc.php new file mode 100644 index 00000000..74d6135f --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/expandfonc.php @@ -0,0 +1,51 @@ + + diff --git a/AnaisWeb/trunk/Admin/Autres/majArb.php b/AnaisWeb/trunk/Admin/Autres/majArb.php new file mode 100644 index 00000000..9d765ce9 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/majArb.php @@ -0,0 +1,7 @@ + diff --git a/AnaisWeb/trunk/Admin/Autres/majArbAnais.php b/AnaisWeb/trunk/Admin/Autres/majArbAnais.php new file mode 100644 index 00000000..5c52ae56 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/majArbAnais.php @@ -0,0 +1,5 @@ + diff --git a/AnaisWeb/trunk/Admin/Autres/majArbre.php b/AnaisWeb/trunk/Admin/Autres/majArbre.php new file mode 100644 index 00000000..07b3d6ff --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/majArbre.php @@ -0,0 +1,6 @@ + diff --git a/AnaisWeb/trunk/Admin/Autres/majMem.php b/AnaisWeb/trunk/Admin/Autres/majMem.php new file mode 100644 index 00000000..1eb7cdc6 --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/majMem.php @@ -0,0 +1,5 @@ + diff --git a/AnaisWeb/trunk/Admin/Autres/rien_a.php b/AnaisWeb/trunk/Admin/Autres/rien_a.php new file mode 100644 index 00000000..e69de29b diff --git a/AnaisWeb/trunk/Admin/Autres/viderarbo.php b/AnaisWeb/trunk/Admin/Autres/viderarbo.php new file mode 100644 index 00000000..e915600c --- /dev/null +++ b/AnaisWeb/trunk/Admin/Autres/viderarbo.php @@ -0,0 +1,50 @@ + + + +Annuaire + + + + + + + + + + + + + + +
 Annuaire

Pas de sélection en cours
+
+ + + + + + + +
 AnnulerFermer la fenêtre
+ + + diff --git a/AnaisWeb/trunk/Commun/Fonctions/Fonc.inc b/AnaisWeb/trunk/Commun/Fonctions/Fonc.inc new file mode 100644 index 00000000..423ca622 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Fonctions/Fonc.inc @@ -0,0 +1,992 @@ + + + + + + + + + 0) + { + @msgalerte( 0, "L\'entité n est pas vide\\nLa suppression ne peut être effectuée ..." ); + } + return $nb; +} + +function chercheEntitesDN( $vdn ) +{ + $service=""; $niv1=""; $niv2=""; $niv3=""; $niv4=""; $niv5=""; + $adresse=""; $codePostal=""; $ville=""; $telephone=""; $telecopie=""; + + if( strpos($vdn, $_SESSION['base_annu']) > -1 ) + { + $dif=substr( $vdn, 0, strpos($vdn, $_SESSION['base_annu']) ); + if( strpos($dif, "ou=") > 0 ) + { + $dif=substr( $dif, strpos($dif, "ou=") ); + } + + $connect=ldap_connect($_SESSION['maitre_serv_a']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + + $bind=ldap_bind($connect); + if($bind) + { + $ous = spliti("ou=", $dif ); + + $nb = count($ous)-1; + + if($nb>1) + { + $wdn="ou=".$ous[$nb-1]."ou=".$ous[$nb].$_SESSION['base_annu']; + $wnom="Inconnu ?"; + + $search=ldap_read($connect, $wdn, "objectclass=organizationalUnit"); + + if($search) + { + $boites=ldap_get_entries($connect, $search); + + if($boites["count"]==1) + { + $wnom=utf8_decode($boites[0]["description"][0]); + if( isset($boites[0]["street"]) ) $adresse=utf8_decode($boites[0]["street"][0]); + if( isset($boites[0]["postalcode"]) ) $codePostal=utf8_decode($boites[0]["postalcode"][0]); + if( isset($boites[0]["l"]) ) $ville=utf8_decode($boites[0]["l"][0]); + if( isset($boites[0]["telephonenumber"]) ) $telephone=utf8_decode($boites[0]["telephonenumber"][0]); + if( isset($boites[0]["facsimiletelephonenumber"]) ) $telecopie=utf8_decode($boites[0]["facsimiletelephonenumber"][0]); + } + ldap_free_result($search); + } + $service=$wnom; + + for($i = $nb-2; $i > 0; $i--) + { + $wnom="Inconnu ?"; + $wdn="ou=".$ous[$i].$wdn; + + $search=ldap_read($connect, $wdn, "objectclass=organizationalUnit"); + + if($search) + { + $boites=ldap_get_entries($connect, $search); + + if($boites["count"]==1) + { + $wnom=utf8_decode($boites[0]["description"][0]); + if( isset($boites[0]["street"]) ) $adresse=utf8_decode($boites[0]["street"][0]); + if( isset($boites[0]["postalcode"]) ) $codePostal=utf8_decode($boites[0]["postalcode"][0]); + if( isset($boites[0]["l"]) ) $ville=utf8_decode($boites[0]["l"][0]); + if( isset($boites[0]["telephonenumber"]) ) $telephone=utf8_decode($boites[0]["telephonenumber"][0]); + if( isset($boites[0]["facsimiletelephonenumber"]) ) $telecopie=utf8_decode($boites[0]["facsimiletelephonenumber"][0]); + } + ldap_free_result($search); + } + if($i == $nb-2) $niv1=$wnom; + else if($i == $nb-3) $niv2=$wnom; + else if($i == $nb-4) $niv3=$wnom; + else if($i == $nb-5) $niv4=$wnom; + else if($i == $nb-6) $niv5=$wnom; + } + } + } + ldap_close($connect); + } + } + return array( $service, + $niv1, + $niv2, + $niv3, + $niv4, + $niv5, + $adresse, + $codePostal, + $ville, + $telephone, + $telecopie ); +} + +function chercheDomainesSMTP( $vdn ) +{ + + $doms=array(); + + $dif=substr( $vdn, strpos($vdn, "ou=") ); + + $connect=ldap_connect($_SESSION['maitre_serv_a']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + + $bind=ldap_bind($connect); + if($bind) + { + $search=ldap_read($connect, $dif, "objectclass=organizationalUnit"); + + if($search) + { + $boites=ldap_get_entries($connect, $search); + + if($boites["count"]==1) + { + $doms=$boites[0]["mineqdomainessmtp"]; + } + ldap_free_result($search); + } + } + ldap_close($connect); + } + return $doms; +} + +function isGroupOfNames( $vdn ) +{ + + $ret=FALSE; + + $connect=ldap_connect($_SESSION['maitre_serv_a']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + + $bind=ldap_bind($connect); + if($bind) + { + $search=ldap_read($connect, $vdn, "objectclass=groupOfNames"); + + if($search) + { + $boites=ldap_get_entries($connect, $search); + + if($boites["count"]==1) + { + $ret=TRUE; + } + ldap_free_result($search); + } + } + ldap_close($connect); + } + return $ret; +} + +function calculDepartNumber( $service, $niv1, $niv2, $niv3, $niv4, $niv5 ) +{ + $departmtnumber=""; + if(isset($service) && ($service != "")) + { + $departmtnumber=$service; + if(isset($niv1) && ($niv1 != "")) + { + $lg=strpos($niv1, "("); + if($lg > 0) + $departmtnumber=$departmtnumber."/".trim(substr($niv1,0,$lg)); + else + $departmtnumber=$departmtnumber."/".$niv1; + if(isset($niv2) && ($niv2 != "")) + { + $lg=strpos($niv2, "("); + if($lg > 0) + $departmtnumber=$departmtnumber."/".trim(substr($niv2,0,$lg)); + else + $departmtnumber=$departmtnumber."/".$niv2; + if(isset($niv3) && ($niv3 != "")) + { + $lg=strpos($niv3, "("); + if($lg > 0) + $departmtnumber=$departmtnumber."/".trim(substr($niv3,0,$lg)); + else + $departmtnumber=$departmtnumber."/".$niv3; + if(isset($niv4) && ($niv4 != "")) + { + $lg=strpos($niv4, "("); + if($lg > 0) + $departmtnumber=$departmtnumber."/".trim(substr($niv4,0,$lg)); + else + $departmtnumber=$departmtnumber."/".$niv4; + if(isset($niv5) && ($niv5 != "")) + { + $lg=strpos($niv5, "("); + if($lg > 0) + $departmtnumber=$departmtnumber."/".trim(substr($niv5,0,$lg)); + else + $departmtnumber=$departmtnumber."/".$niv5; + } + } + } + } + } + } + return $departmtnumber; +} + +function retourCible( $cod_typ, $n_onglet ) +{ + if( isBali($cod_typ) ) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if( isBalr($cod_typ) ) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if( isBals($cod_typ) ) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if( isBalf($cod_typ) ) + { + if($n_onglet==0) $cible = "../BalF/balfBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../BalF/balfAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../BalF/balfMessagerie.php?vmvt=2"; + } + else if( isBalu($cod_typ) ) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if( isBala($cod_typ) ) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if( isLdis($cod_typ) ) + { + if($n_onglet==0) $cible = "../Listes/listeBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Listes/listeMembres.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Listes/listeMessagerie.php?vmvt=2"; + } + else if( isLdab($cod_typ) ) + { + if($n_onglet==0) $cible = "../Listes/listeBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Listes/listeMembres.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Listes/listeMessagerie.php?vmvt=2"; + } + else if( isNser($cod_typ) ) + { + if($n_onglet==0) $cible = "../Services/entiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Services/entiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Services/entiteMessagerie.php?vmvt=2"; + } + else if( isNuni($cod_typ) ) + { + if($n_onglet==0) $cible = "../Services/entiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Services/entiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Services/entiteMessagerie.php?vmvt=2"; + } + return $cible; +} + +/* +function retourCible( $cod_typ, $n_onglet ) +{ + if($cod_typ==1) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==10) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==11) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==12) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==13) + { + if($n_onglet==0) $cible = "../BalF/balfBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../BalF/balfAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../BalF/balfMessagerie.php?vmvt=2"; + } + else if($cod_typ==14) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==15) + { + if($n_onglet==0) $cible = "../Boites/boiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Boites/boiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Boites/boiteMessagerie.php?vmvt=2"; + } + else if($cod_typ==2) + { + if($n_onglet==0) $cible = "../Listes/listeBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Listes/listeMembres.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Listes/listeMessagerie.php?vmvt=2"; + } + else if($cod_typ==0) + { + if($n_onglet==0) $cible = "../Services/entiteBoite.php?vmvt=2"; + else if($n_onglet==1) $cible = "../Services/entiteAdresse.php?vmvt=2"; + else if($n_onglet==2) $cible = "../Services/entiteMessagerie.php?vmvt=2"; + } + return $cible; +} +*/ +function chercheServGeres() +{ + if( strcasecmp( $_SESSION["dn_auth"], "uid=pamela,ou=ET,ou=DI,ou=CETE Lyon,ou=CETE,ou=melanie,ou=organisation,dc=equipement,dc=gouv,dc=fr") == 0 ) + { + unset($_SESSION['serv_geres']); + unset($_SESSION['dn_geres']); + $_SESSION['serv_geres'][]=$_SESSION['base_annu']; + $_SESSION['dn_geres'][]=$_SESSION['base_annu']; + } + else + { + $connect=@ldap_connect($_SESSION['maitre_serv_a']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + $bind=@ldap_bind($connect); + if($bind) + { + + $champs_b=array("cn"); + $filtre="(&(objectClass=mineqMelListe)(mineqrdn=".utf8_encode("ACL.Opérateurs Mélanie2").")(member=".$_SESSION["dn_auth"]."))"; + + $search_l=ldap_search($connect, + $_SESSION['base_annu'], + $filtre, + $champs_b); + + if( $search_l ) + { + unset($_SESSION['serv_geres']); + unset($_SESSION['dn_geres']); + $liste=ldap_first_entry($connect, $search_l); + while($liste) + { + $cnl=ldap_get_values($connect,$liste,"cn"); + $dn4=utf8_decode(ldap_get_dn($connect,$liste)); + $dns=substr( $dn4, 1+strpos($dn4, ",ou=") ); + $des=ChercheDescription( $dns ); + + $_SESSION['serv_geres'][]=$dns; + $_SESSION['dn_geres'][]=$dns; + + $liste=ldap_next_entry($connect, $liste); + } + ldap_free_result($search_l); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + ldap_close($connect); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + } + + return ; +} + +function valideDN( $uid, $anc_mdp ) +{ +// @session_start(); + + $_SESSION["flag_auth"]="0"; + + $maitre_serv_a = $_SESSION['maitre_serv_a']; + $base_annu = $_SESSION['base_annu']; + $retour = 0; + + $_SESSION["cn_auth"]=""; + + /////////////////////////////////// essai du 13 Octobre 2004 ///////////// + // on retire les anti-slashes des champs anciens et nouveau mots de passe + ////////////////////////////////////////////////////////////////////////// + $anc_mdp = stripslashes($anc_mdp); + + $champs=array("cn", "mineqpassworddoitchanger"); + + $connect=ldap_connect($maitre_serv_a); + + if( !($connect) ) + { + @msgalerte( 0, "Problème lors de la connection (ldap_connect) au serveur ldap" ); + return $retour; + } + + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + $bind=ldap_bind($connect); + if( !($bind) ) + { + ldap_close($connect); + @msgalerte( 0, "Problème lors de la connection (ldap_bind) au serveur ldap" ); + return $retour; + } + $filtre="uid=".$uid; + $boites=ldap_search($connect, $base_annu, $filtre, $champs); + if( !($boites) ) + { + ldap_close($connect); + @msgalerte( 0, "boite non trouvee (ldap_search)" ); + return $retour; + } + if(ldap_count_entries($connect, $boites) == 1) + { + $entrees=ldap_get_entries($connect, $boites); + $cn=$entrees[0]["cn"]; + $vdn=$entrees[0]["dn"]; + $tmp=$cn[0]; + + ldap_close($connect); + + + $connect2=ldap_connect($maitre_serv_a); + + if($connect2) + { + ldap_set_option($connect2, LDAP_OPT_PROTOCOL_VERSION, 3); + + $bind2=@ldap_bind($connect2, $vdn, $anc_mdp); + if($bind2) + { + $msg=""; + $filtre="objectclass=*"; + $champs=array("cn", "mineqpassworddoitchanger"); + $boites2=ldap_read($connect2, $vdn, $filtre, $champs); + if( !($boites2) ) + { + ldap_close($connect2); + @msgalerte( 0, "boite non trouvee (ldap_read)" ); + } + else + { + if(ldap_count_entries($connect2, $boites2) == 1) + { + $entrees=ldap_get_entries($connect2, $boites2); + $msg=utf8_decode($entrees[0]["mineqpassworddoitchanger"][0]); +// $_SESSION["anc_mdp"]=""; + if( strlen($msg) == 0 ) + { + $_SESSION["dn_auth"]=$entrees[0]["dn"]; + $_SESSION["cn_auth"]=$entrees[0]["cn"][0]; +// $_SESSION["flag_auth"]="1"; + $retour=1; +// $tmp="Félicitation, M. ".$_SESSION["cn_auth"]."\\n".$_SESSION["dn_auth"]."\\nauthentification reussie"; +// @msgalerte( 0, $tmp ); + chercheServGeres(); + } + else + { + @msgalerte( 0, $msg ); +// $_SESSION["n_onglet"]=3; + } + } + else + { + @msgalerte( 0, "boite non trouvee (ldap_read)" ); + } + ldap_free_result($boites2); + } + + } + else + { + if( ldap_errno($connect2) == 49 ) + { + @msgalerte( 0, "login ou mot de passe incorrect" ); + } + else + { + $tmp="problème d\'acces à l\'annuaire (ldap_bind 2) code=".ldap_errno($connect2)."."; + @msgalerte( 0, $tmp ); + } + } + + ldap_close($connect2); + } + else + { +// $tmp="problème d acces à l annuaire (ldap_connect 2) ".ldap_error($connect2)."(code=".ldap_errno($connect2).")"; + $tmp="problème d\'acces à l\'annuaire (ldap_connect 2) "; + @msgalerte( 0, $tmp ); + } + + } + else + { + @msgalerte( 0, "boite non trouvee (identifiant inconnu)" ); + } + ldap_free_result($boites); + return $retour; +} + +function changePwd( $serv, $base, $uid, $anc_mdp, $new_mdp, $affic=1 ) +{ +// @session_start(); + + if( $serv == "" ) + $serv = $_SESSION['maitre_serv_a']; + if( $base == "" ) + $base = $_SESSION['base_annu']; + $retour = 0; + + /////////////////////////////////// essai du 13 Octobre 2004 ///////////// + // on retire les anti-slashes des champs anciens et nouveau mots de passe + ////////////////////////////////////////////////////////////////////////// + $anc_mdp = stripslashes($anc_mdp); + $new_mdp = stripslashes($new_mdp); + + $_SESSION["cn_auth"]=""; + + $champs=array("cn"); + + $connect=ldap_connect($serv); + + if( !($connect) ) + { + if( $affic == 1 ) + { + @msgalerte( 0, "Problème lors de la connection (ldap_connect) au serveur ldap" ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=-1; + $GLOBALS["err_msg"]="Problème lors de la connection (ldap_connect) au serveur ldap"; + } + return $retour; + } + + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + $bind=ldap_bind($connect); + if( !($bind) ) + { + //ldap_close($connect); + if( $affic == 1 ) + { + @msgalerte( 0, "Problème lors de la connection (ldap_bind) au serveur ldap" ); + } + + /** anaismoz */ + else{ + $GLOBALS["err_code"]=@ldap_errno($connect); + $GLOBALS["err_msg"]="Problème lors de la connection (ldap_bind) au serveur ldap\n".@ldap_error($connect); + } + ldap_close($connect); + + return $retour; + } + $filtre="uid=".$uid; + $boites=ldap_search($connect, $base, $filtre, $champs); + if( !($boites) ) + { + //ldap_close($connect); + if( $affic == 1 ) + { + @msgalerte( 0, "Problème lors de la connection (ldap_search) au serveur ldap" ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=@ldap_errno($connect); + $GLOBALS["err_msg"]="boite non trouvee (ldap_search)\n".@ldap_error($connect); + } + ldap_close($connect); + + return $retour; + } + if(ldap_count_entries($connect, $boites) == 1) + { + $entrees=ldap_get_entries($connect, $boites); + $cn=$entrees[0]["cn"]; + $vdn=$entrees[0]["dn"]; + $tmp=$cn[0]; + + ldap_close($connect); + + + $connect2=ldap_connect($serv); + + if($connect2) + { + ldap_set_option($connect2, LDAP_OPT_PROTOCOL_VERSION, 3); + + $bind2=@ldap_bind($connect2, $vdn, $anc_mdp); + if($bind2) + { +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + mt_srand((double) microtime()*1000000); + $salt=mhash_keygen_s2k(MHASH_SHA1,$new_mdp,substr(pack("h*",md5(mt_rand())),0,8),4); + $password="{ssha}".base64_encode(mhash(MHASH_SHA1, $new_mdp.$salt).$salt); +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + + $info["userpassword"]=$password; +// mise a jour des champs mineqPasswordDoitChanger et mineqPasswordModifyTimestamp + $info["mineqpasswordmodifytimestamp"]=gmstrftime("%Y%m%d%H%M%SZ"); + $info["mineqpassworddoitchanger"]=array(); // a mettre a vide + if( $r=ldap_modify($connect2, $vdn, $info) ) + { + $_SESSION["dn_auth"]=$entrees[0]["dn"]; + $_SESSION["cn_auth"]=$entrees[0]["cn"]; + if( $affic == 1 ) + { + $tmp2="Mot de passe modifié pour la boite\\n".$tmp; + @msgalerte( 0, $tmp2 ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=0; + $GLOBALS["err_msg"]="Mot de passe modifié pour la boite:\n".$tmp; + } + + $retour=1; + } + else + { //echo "code ldap=<". ldap_errno($connect2)."> message=<".ldap_error($connect2).">"; + if( $affic == 1 ) + { + $tmp2="Problème lors de la modification de la boite\\n".$tmp; + @msgalerte( 0, $tmp2 ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=@ldap_errno($connect2); + $GLOBALS["err_msg"]="Problème lors de la modification de la boite\n".@ldap_error($connect2); + } + + } + + } + else + { + if( ldap_errno($connect2) == 49 ) + { + if( $affic == 1 ) + { + @msgalerte( 0, "identifiant ou mot de passe incorrect" ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=49; + $GLOBALS["err_msg"]="identifiant ou mot de passe incorrect\n".@ldap_error($connect); + } + } + else + { + if( $affic == 1 ) + { + $tmp="problème d\'acces à l\'annuaire (ldap_bind 2) "."(code=".ldap_errno($connect2).")"; + @msgalerte( 0, $tmp ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=@ldap_errno($connect2); + $GLOBALS["err_msg"]="problème d acces à l annuaire (ldap_bind 2) \n".@ldap_error($connect2); + } + } + } + + ldap_close($connect2); + } + else + { + if( $affic == 1 ) + { + $tmp="problème d\'acces à l\'annuaire (ldap_connect 2) "."(code=".ldap_errno($connect2).")"; + @msgalerte( 0, $tmp ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=@ldap_errno($connect2); + $GLOBALS["err_msg"]="problème d acces à l annuaire (ldap_connect 2)"; + } + } + } + else + { + if( $affic == 1 ) + { + @msgalerte( 0, "boite non trouvee (ldap_count_entries # 1)" ); + } + /** anaismoz */ + else{ + $GLOBALS["err_code"]=-1; + $GLOBALS["err_msg"]="boite non trouvee (ldap_count_entries # 1)"; + } + + } + ldap_free_result($boites); + return $retour; +} + +?> \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Fonctions/expand.inc b/AnaisWeb/trunk/Commun/Fonctions/expand.inc new file mode 100644 index 00000000..508afbfd --- /dev/null +++ b/AnaisWeb/trunk/Commun/Fonctions/expand.inc @@ -0,0 +1,177 @@ +".utf8_decode($description[0])."".$sep.$typeb.$sep."litentite.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + + $unites=ldap_next_entry($connect, $unites); + } + ldap_free_result($search_o); + } + + $champs_b=array("mineqTypeEntree", "mineqPortee", "cn", "givenname"); + + $search_b=ldap_list($connect, $dn, "objectClass=organizationalperson", $champs_b); +// $search_b=ldap_list($connect, $dn, "mail=*", $champs_b); +// $search_b=ldap_list($connect, $dn, "objectClass=mineqMelDP", $champs_b); + if( $search_b ) + { + $boite=ldap_first_entry($connect, $search_b); + while($boite) + { + $cnb=ldap_get_values($connect,$boite,"cn"); + $prenomb=@ldap_get_values($connect,$boite,"givenname"); + $entree=ldap_get_values($connect,$boite,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$boite,"mineqPortee"); + $dn4=ldap_get_dn($connect,$boite); + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + if( strcasecmp( $entree[0], "BALI" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litboite.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else if( strcasecmp( $entree[0], "BALS" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litbals.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else if( strcasecmp( $entree[0], "BALU" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litbalu.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else if( strcasecmp( $entree[0], "BALF" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litbalf.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else if( strcasecmp( $entree[0], "BALA" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litbala.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else if( strcasecmp( $entree[0], "BALR" ) == 0 ) + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litbalr.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + else + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnb[0]).$sep.$typeb.$sep."litboite.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + $boite=ldap_next_entry($connect, $boite); + } + ldap_free_result($search_b); + } + + $champs_b=array("mineqTypeEntree", "mineqPortee", "cn"); + + $search_l=ldap_list($connect, + $dn, + "objectClass=mineqmelliste", + $champs_b); + if( $search_l ) + { + $liste=ldap_first_entry($connect, $search_l); + while($liste) + { + $cnl=ldap_get_values($connect,$liste,"cn"); + $entree=ldap_get_values($connect,$liste,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$liste,"mineqPortee"); + $dn4=ldap_get_dn($connect,$liste); + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + $_SESSION['arbre_data'][$dn4]=utf8_decode($cnl[0]).$sep.$typeb.$sep."litliste.php?vmvt=2&vtyp=".$typeb."&vdn=".$sep."BaladePhp"; + $liste=ldap_next_entry($connect, $liste); + } + ldap_free_result($search_l); + } + + usort( $w_arbre, 'compare' ); + $_SESSION['arbre'][$dn] = $w_arbre; +// session_write_close(); + + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + ldap_close($connect); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + + return ; +} + +function compare( $dn1, $dn2 ) +{ + $sep="\t"; + $sep2=","; + + $wdn1 = explode( $sep, $_SESSION['arbre_data'][$dn1] ); + $wdn2 = explode( $sep, $_SESSION['arbre_data'][$dn2] ); + + assert( is_array( $wdn1 ) ); + assert( is_array( $wdn2 ) ); + + if( 0 === strcasecmp( $wdn1[0], $wdn2[0] ) ) + return 0; + + $wtyp1 = explode( $sep2, $wdn1[1] ); + $wtyp2 = explode( $sep2, $wdn2[1] ); + + assert( is_array( $wtyp1 ) ); + assert( is_array( $wtyp2 ) ); + + switch ($wtyp1[0]) { + case "NGRO": $wtmp1="00".$wdn1[0]; break; + case "NSER": $wtmp1="00".$wdn1[0]; break; + case "NUNI": $wtmp1="00".$wdn1[0]; break; + case "BALI": $wtmp1="01".$wdn1[0]; break; + case "BALF": $wtmp1="02".$wdn1[0]; break; + case "BALR": $wtmp1="03".$wdn1[0]; break; + case "BALA": $wtmp1="04".$wdn1[0]; break; + case "BALS": $wtmp1="05".$wdn1[0]; break; + case "BALU": $wtmp1="06".$wdn1[0]; break; + case "LDIS": $wtmp1="07".$wdn1[0]; break; + case "LDAB": $wtmp1="07".$wdn1[0]; break; + default: $wtmp1="10".$wdn1[0]; + } + + switch ($wtyp2[0]) { + case "NGRO": $wtmp2="00".$wdn2[0]; break; + case "NSER": $wtmp2="00".$wdn2[0]; break; + case "NUNI": $wtmp2="00".$wdn2[0]; break; + case "BALI": $wtmp2="01".$wdn2[0]; break; + case "BALF": $wtmp2="02".$wdn2[0]; break; + case "BALR": $wtmp2="03".$wdn2[0]; break; + case "BALA": $wtmp2="04".$wdn2[0]; break; + case "BALS": $wtmp2="05".$wdn2[0]; break; + case "BALU": $wtmp2="06".$wdn2[0]; break; + case "LDIS": $wtmp2="07".$wdn2[0]; break; + case "LDAB": $wtmp2="07".$wdn2[0]; break; + default: $wtmp2="10".$wdn2[0]; + } + + return strcasecmp( $wtmp1, $wtmp2 ); +} +?> \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Fonctions/expandfonc.inc.old b/AnaisWeb/trunk/Commun/Fonctions/expandfonc.inc.old new file mode 100644 index 00000000..d3409314 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Fonctions/expandfonc.inc.old @@ -0,0 +1,192 @@ + 0) + $champs_b[]=$champs[$i]; + } + + if( $nature == "" ) + $filtre = "(&(|(objectClass=mineqmelliste)(objectClass=organizationalperson))(mail=*))"; + else + { + $t_filtre = explode(",", $nature); + $filtre = "(&(mail=*)"; + if( count($t_filtre) > 1 ) + { + $filtre = $filtre . "(|"; + for($i=0; $i < count($t_filtre); $i++) + { + $filtre = $filtre . "(mineqTypeEntree=".$t_filtre[$i].")"; + } + $filtre = $filtre . ")"; + } + else + { + $filtre = $filtre . "(mineqTypeEntree=$nature)"; + } + $filtre = $filtre . ")"; + } + +// filtre positionne provisoirement sans prendre le parametre nature + $filtre = "(&(|(objectClass=mineqmelliste)(objectClass=organizationalperson))(mail=*))"; + + //******************************************************************************************************************// + $connect=ldap_connect($_SESSION['maitre_serv']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + $bind=ldap_bind($connect); + if($bind) + { + if(isset($_SESSION[$arbre][$dn])) + { + unset($_SESSION[$arbre][$dn]); + } + $w_arbre=array(); + + $champs_u=array("mineqTypeEntree", "mineqPortee", "ou", "description"); + + $search_o=ldap_list($connect, $dn, "objectClass=organizationalUnit", $champs_u); + //if(TRACE==1) $nb_r++; + if( $search_o ) + { + $unites=ldap_first_entry($connect, $search_o); + + while($unites) + { + $entree=@ldap_get_values($connect,$unites,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$unites,"mineqPortee"); + $description=ldap_get_values($connect,$unites,"description"); + $dn4=ldap_get_dn($connect,$unites); + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + $_SESSION[$arbre_data][$dn4]="".utf8_decode($description[0])."".$sep.$typeb;/*.$sep."litentite.php?vmvt=2&vtyp=0&vdn=".$sep."PageUn";*/ + + $unites=ldap_next_entry($connect, $unites); + } + ldap_free_result($search_o); + } + +// $champs_b=array("mineqTypeEntree", "mineqPortee", "cn", "mail", "uid"); + + $search_b=ldap_list($connect, $dn, $filtre, $champs_b); +// $search_b=ldap_list($connect, $dn, "(&(|(objectClass=mineqmeldp)(objectClass=mineqmelliste)(objectClass=organizationalperson))(mail=*))", $champs_b); + if( $search_b ) + { + $boite=ldap_first_entry($connect, $search_b); + while($boite) + { + $dn4=ldap_get_dn($connect,$boite); + $t_dn=array( $dn4 ); + + $cnb=ldap_get_values($connect,$boite,"cn"); + $entree=@ldap_get_values($connect,$boite,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$boite,"mineqPortee"); + + for($j=0; $j < count($champs); $j++) + if( strcasecmp($champs[$j], "dn") == 0 ) + $val[$j]=$t_dn; + else + $val[$j]=@ldap_get_values($connect,$boite,"$champs[$j]"); + + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + $tmp=utf8_decode($cnb[0]).$sep.$typeb.$sep.$dn4; + for($j=0; $j < count($champs); $j++) + $tmp=$tmp.$sep.utf8_decode($val[$j][0]); + $_SESSION[$arbre_data][$dn4]=$tmp; + + $boite=ldap_next_entry($connect, $boite); + } + ldap_free_result($search_b); + } + + $_SESSION['w_arbre_data']=$arbre_data; + usort( $w_arbre, 'compareAnais' ); + $_SESSION[$arbre][$dn] = $w_arbre; + session_write_close(); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + ldap_close($connect); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + + return ; +} + +function compareAnais( $dn1, $dn2 ) +{ + $sep="\t"; + $sep2=","; + $arbre_data=$_SESSION['w_arbre_data']; + + $wdn1 = explode( $sep, $_SESSION[$arbre_data][$dn1] ); + $wdn2 = explode( $sep, $_SESSION[$arbre_data][$dn2] ); + + assert( is_array( $wdn1 ) ); + assert( is_array( $wdn2 ) ); + + if( 0 === strcasecmp( $wdn1[0], $wdn2[0] ) ) + return 0; + + $wtyp1 = explode( $sep2, $wdn1[1] ); + $wtyp2 = explode( $sep2, $wdn2[1] ); + + assert( is_array( $wtyp1 ) ); + assert( is_array( $wtyp2 ) ); + + switch ($wtyp1[0]) { + case "NGRO": $wtmp1="00".$wdn1[0]; break; + case "NSER": $wtmp1="00".$wdn1[0]; break; + case "NUNI": $wtmp1="00".$wdn1[0]; break; + case "BALI": $wtmp1="01".$wdn1[0]; break; + case "BALF": $wtmp1="02".$wdn1[0]; break; + case "BALR": $wtmp1="03".$wdn1[0]; break; + case "BALA": $wtmp1="04".$wdn1[0]; break; + case "BALS": $wtmp1="05".$wdn1[0]; break; + case "BALU": $wtmp1="06".$wdn1[0]; break; + case "LDIS": $wtmp1="07".$wdn1[0]; break; + case "LDAB": $wtmp1="07".$wdn1[0]; break; + default: $wtmp1="10".$wdn1[0]; + } + + switch ($wtyp2[0]) { + case "NGRO": $wtmp2="00".$wdn2[0]; break; + case "NSER": $wtmp2="00".$wdn2[0]; break; + case "NUNI": $wtmp2="00".$wdn2[0]; break; + case "BALI": $wtmp2="01".$wdn2[0]; break; + case "BALF": $wtmp2="02".$wdn2[0]; break; + case "BALR": $wtmp2="03".$wdn2[0]; break; + case "BALA": $wtmp2="04".$wdn2[0]; break; + case "BALS": $wtmp2="05".$wdn2[0]; break; + case "BALU": $wtmp2="06".$wdn2[0]; break; + case "LDIS": $wtmp2="07".$wdn2[0]; break; + case "LDAB": $wtmp2="07".$wdn2[0]; break; + default: $wtmp2="10".$wdn2[0]; + } + + return strcasecmp( $wtmp1, $wtmp2 ); +} +?> \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Images/A16.ico b/AnaisWeb/trunk/Commun/Images/A16.ico new file mode 100644 index 00000000..23dd4cd5 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/A16.ico differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_affiner.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_affiner.gif new file mode 100644 index 00000000..45a9bb1d Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_affiner.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_aide.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_aide.gif new file mode 100644 index 00000000..0fdd221c Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_aide.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_annuler.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_annuler.gif new file mode 100644 index 00000000..9d6e7bf4 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_annuler.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_besoin_aide.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_besoin_aide.gif new file mode 100644 index 00000000..5026e994 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_besoin_aide.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_enregistrer.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_enregistrer.gif new file mode 100644 index 00000000..51ae57af Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_enregistrer.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_exporter.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_exporter.gif new file mode 100644 index 00000000..48c91ae0 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_exporter.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_imprimer.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_imprimer.gif new file mode 100644 index 00000000..a237fb04 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_imprimer.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_rechercher.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_rechercher.gif new file mode 100644 index 00000000..ba386513 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_rechercher.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_supprimer.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_supprimer.gif new file mode 100644 index 00000000..fd923b17 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_supprimer.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/Pictos/picto_valider.gif b/AnaisWeb/trunk/Commun/Images/Pictos/picto_valider.gif new file mode 100644 index 00000000..c41ad167 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/Pictos/picto_valider.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/background_piedpage.gif b/AnaisWeb/trunk/Commun/Images/background_piedpage.gif new file mode 100644 index 00000000..808d3a94 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/background_piedpage.gif differ diff --git a/AnaisWeb/trunk/Commun/Images/pixel_bleu_fonce.gif b/AnaisWeb/trunk/Commun/Images/pixel_bleu_fonce.gif new file mode 100644 index 00000000..71905fa9 Binary files /dev/null and b/AnaisWeb/trunk/Commun/Images/pixel_bleu_fonce.gif differ diff --git a/AnaisWeb/trunk/Commun/Include/affarbo.inc b/AnaisWeb/trunk/Commun/Include/affarbo.inc new file mode 100644 index 00000000..28d3ec92 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Include/affarbo.inc @@ -0,0 +1,282 @@ +\n"; + echo ""; + for ($i=0; $i<$maxlevel; $i++) echo ""; + echo "\n"; + echo "\n"; + + arbre_html( $dn, $level=0, $m_fonc, $affiche, $m_data, $m_nom, $m_type, $m_champ, $m_nature, $m_agenda ); + + ob_end_flush(); + +// $time2=time(); +// printf("construction arbre en %4d secondes
", $time2-$time1); + +//************************************************************************************************************************************************ +function arbre_html( $dn, $level=0, $m_fonc, $affiche, $m_data, $m_nom, $m_type, $m_champ, $m_nature, $m_agenda ) +{ + require( "../../Commun/Include/ico.inc"); + + $sep="\t"; + $sep2=","; + $arbre_data="arbre_data".$m_data; + $arbre="arbre".$m_data; + $etiq="dn_etiq".$m_data; + + if( $_SESSION['affiche'] == "POSI" ) + $chemin=$_GET['chemin']; + else + $chemin=""; + + $data=""; $type=""; $edit=""; $cible=""; $mail=""; $uid=""; + +// 08-01-2005 debut //////////////////////////////////////////////////////////////////////////////////////////////////////////////// +if($level==0) +{ + if( $_SESSION['affiche'] == "FONC" ) + { + $m_fonc=$_GET['m_fonc']; + $m_nom=$_GET['m_nom']; + $m_data=$_GET['m_data']; + $m_type=$_GET['m_type']; + $m_champ=$_GET['m_champ']; + $m_nature=$_GET['m_nature']; + if( isset($_GET['m_agenda']) ) $m_agenda=$_GET['m_agenda']; + else $m_agenda=""; + $arbre="arbre".$m_data; + } + else + { + $m_fonc=""; + $m_nom=""; + $m_data=""; + $m_type=""; + $m_champ=""; + $m_nature=""; + $m_agenda=""; + $arbre="arbre"; + } + + $type="NSER,50"; + $libe="".utf8_decode($_SESSION['lib_serv']).""; + if($_SESSION['affiche'] == "POSI") $edit=$chemin."?vdn=".$dn; else $edit=""; +} +else +{ +// 08-01-2005 fin //////////////////////////////////////////////////////////////////////////////////////////////////////////////// + if($_SESSION['affiche']=="FONC") + { // on eclate les parametres suivant le type d affichage, ici fonction retour + if( isset($_SESSION[$arbre_data][$dn]) ) + { + $data = explode( $sep, $_SESSION[$arbre_data][$dn] ); + if( isset( $data[0] ) ) $libe = $data[0]; // libelle + if( isset( $data[1] ) ) $type = $data[1]; // type de boite + if( isset( $data[2] ) ) $zdn = $data[2]; // dn + } + else + { + $libe="inconnu"; $type=""; $mail=""; $uid=""; $cible="PageUn"; + } + } + else + { // on eclate les parametres suivant le type d affichage, ici affichage de l objet ou positionnement dans l arbre + if( isset($_SESSION[$arbre_data][$dn]) ) + { + $data = explode( $sep, $_SESSION[$arbre_data][$dn] ); + if( isset( $data[0] ) ) $libe = $data[0]; // libelle + if( isset( $data[1] ) ) $type = $data[1]; // type de boite + if( isset( $data[2] ) ) { $edit = $data[2]; if($_SESSION['affiche'] == "POSI") $edit=$chemin."?vdn=".$dn; else $edit=$edit.$dn; } // lien + if( isset( $data[3] ) ) $cible=$data[3]; // cible + } + else + { + $libe="inconnu"; $type=""; $edit=""; $cible="BaladePhp"; + } + } + +// 08-01-2005 debut //////////////////////////////////////////////////////////////////////////////////////////////////////////////// +} +// 08-01-2005 fin //////////////////////////////////////////////////////////////////////////////////////////////////////////////// + $wtype = explode( $sep2, $type ); + + assert( is_array( $wtype ) ); + + if( $_SESSION['affiche'] == "FONC" ) + { + $t_nature = explode(",", $m_nature); + } + + if( ($affiche == "TOUT") || // arborescence complete + ( ($affiche == "ENTI") && isArbo($wtype[0]) ) || // entites + ( ($affiche == "BOIT") && !isList($wtype[0]) ) || // boites + ( ($affiche == "LIST") && !isBoit($wtype[0]) ) || // listes + ( ($affiche == "FONC") && + ( isArbo($wtype[0]) || + in_array($wtype[0], $t_nature) || + $m_nature=="" || + $m_nature=="MEL1" || + $m_nature=="MEL2") ) || // aideFonc + ( ($affiche == "POSI") && isArbo($wtype[0]) ) ) // aidePosi + { // on affiche l objet a traiter suivant le type d affichage souhaite + if(intval($wtype[1]) < 40) + $ext_portee = "_l.gif"; + else + $ext_portee = ".gif"; + + echo ''; + + for( $i=0; $i<=$level; $i++ ) { + echo '' . "\n"; + } + + if(isArbo($wtype[0])) + { // on traite une entite ou un noeud + $niv=1+$level; + if( $_SESSION['affiche'] == "FONC" ) + { // on prepare le lien en fonction du traitement desire, ici passage de la fonction retour + if( isset( $_SESSION[$arbre][$dn] ) ) { + $expand_href = "collapsefonc.php?" . "affiche=". $_SESSION['affiche'] ."&niv=" . $niv . "&dn=" . $dn . + "&m_fonc=" . $m_fonc . "&m_data=" . $m_data . "&m_nom=" . $m_nom . "&m_type=" . $m_type . + "&m_champ=" . $m_champ ."&m_nature=" . $m_nature . "&m_agenda=" . $m_agenda; + $expand_img = $img_collapse; + } else { + $expand_href = "expandfonc.php?" . "affiche=". $_SESSION['affiche'] ."&niv=" . $niv . "&dn=" . $dn . + "&m_fonc=" . $m_fonc . "&m_data=" . $m_data . "&m_nom=" . $m_nom . "&m_type=" . $m_type . + "&m_champ=" . $m_champ ."&m_nature=" . $m_nature . "&m_agenda=" . $m_agenda; + $expand_img = $img_expand; + } + } + else + { // on prepare le lien en fonction du traitement desire + if( isset( $_SESSION[$arbre][$dn] ) ) { + $expand_href = "collapse.php?" . "affiche=". $_SESSION['affiche'] ."&niv=" . $niv . "&dn=" . $dn; + if($_SESSION['affiche'] == "POSI") $expand_href=$expand_href."&chemin=".$chemin; + $expand_img = $img_collapse; + } else { + $expand_href = "expand.php?" . "affiche=". $_SESSION['affiche'] ."&niv=" . $niv . "&dn=" . $dn; + if($_SESSION['affiche'] == "POSI") $expand_href=$expand_href."&chemin=".$chemin; + $expand_img = $img_expand; + } + } + + // on affiche le signe + ou - (deplie / plie) ainsi que l icone dossier + echo ""; // signe plus ou moins + echo "\n"; // icone dossier + } + // on traite un type de boite ou liste : on affiche l icone qui va bien + elseif(isBali($wtype[0])) + echo "\n"; + elseif(isBals($wtype[0])) + echo "\n"; + elseif(isBalu($wtype[0])) + echo "\n"; + elseif(isBalf($wtype[0])) + echo "\n"; + elseif(isBala($wtype[0])) + echo "\n"; + elseif(isBalr($wtype[0])) + echo "\n"; + elseif(isList($wtype[0])) + echo "\n"; + else + echo "\n"; + + echo ""; + + $aref=TRUE; + + if ( ($_SESSION['affiche'] == "TOUT") || // arborescence avec liens complets sur tous les objets + ($_SESSION['affiche'] == "ENTI") ) // entites + { + $aref=FALSE; + if( lienACreer( $dn ) && $edit!="" ) + { // on cree le lien sur l entite si c est un service ou une unite + $aref=TRUE; + echo ""; + } + } + else if ( ( ($_SESSION['affiche'] == "BOIT") && ( !isArbo($wtype[0]) ) ) || // boites -> affichage entites + ( ($_SESSION['affiche'] == "LIST") && ( !isArbo($wtype[0]) ) ) || // listes -> affichage + ($_SESSION['affiche'] == "POSI") ) // aidePosi + { // on cree le lien en fonction su type d objet + if( $edit!="" ) echo ""; + } + else if ( ($_SESSION['affiche'] == "FONC") && ( !isArbo($wtype[0]) ) ) + { // on cree le lien avec la fonction retour + $tmp=addslashes($libe); + echo ""; + } + + if($aref) + echo " ".$libe."\n"; + else + echo " ".$libe."\n"; + + echo "\n"; + + // on appelle recursivement la fonction d affichage pour chaque sous-dossier + if( isset( $_SESSION[$arbre][$dn] ) && is_array( $_SESSION[$arbre][$dn] ) ) + foreach( $_SESSION[$arbre][$dn] as $dn ) { + arbre_html( $dn, $level+1, $m_fonc, $affiche, $m_data, $m_nom, $m_type, $m_champ, $m_nature, $m_agenda ); + } + + echo ''; + } + else + { + if($_SESSION['grise']==1) + { + echo ''; + + for( $i=0; $i<=$level; $i++ ) { + echo '' . "\n"; + } + if(isBali($wtype[0])) + echo "\n"; + elseif(isBals($wtype[0])) + echo "\n"; + elseif(isBalu($wtype[0])) + echo "\n"; + elseif(isBalf($wtype[0])) + echo "\n"; + elseif(isBala($wtype[0])) + echo "\n"; + elseif(isBalr($wtype[0])) + echo "\n"; + elseif(isList($wtype[0])) + echo "\n"; + else + echo "\n"; + + echo ""; + + echo " ".$libe."\n"; + echo "\n"; + } + } + +} +?> \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Include/ico.inc b/AnaisWeb/trunk/Commun/Include/ico.inc new file mode 100644 index 00000000..8aa857d7 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Include/ico.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Js/amedeeIE.css b/AnaisWeb/trunk/Commun/Js/amedeeIE.css new file mode 100644 index 00000000..ccc19f23 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Js/amedeeIE.css @@ -0,0 +1,276 @@ +/* amedeeIE.css 16/02/2003 +*/ + +a:link { + color: #0000cc; + text-decoration: none; +} +a:visited { +/* color: #990000;*/ + color: #0000cc; + text-decoration: none; +} +a:hover { + color: red; + text-decoration: underline; +} + +body { + background-color: white; +} +form { + border-spacing: 30pt; + margin: 10 0 10 0; +} + +h1,.titrePage,.titre1,.Titre { + FONT-WEIGHT: normal; + FONT-SIZE: medium; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; +} +.titreBoite { + FONT-WEIGHT: normal; + FONT-SIZE: medium; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; + border-width:0; +} +h2,.titreGauche,.titre2,.Titre2 { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #999999; +} +td,p,.textecourant { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: black; + empty-cells: show; +} +/* pas pour IE +hr { + color: white; + border-style: solid; + background-color: #999999; + border-width: 2; + border-collapse: collapse; +} +*/ + +i { + color:#909090; +} + + +.tableBleue { + border-collapse: collapse; + border-color: #003399; + border-style: solid; + border-width: 2; +} +.nomintranet { + FONT-WEIGHT: bold; + FONT-SIZE: 18pt; + MARGIN-LEFT: 0px; + WIDTH: 100px; + COLOR: #003399; + FONT-FAMILY: Arial; + TEXT-ALIGN: right; +} +.signature { + font-family: Arial; + font-size: x-small; + font-weight: normal; + color: black; +} +.onglet { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #999999; +} +.onglet:selected { + color:white; + text-decoration: none; +} +.ongletSelecte,.tdOngletSelecte { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #003399; +} +.ongletRenvoi { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #cccccc; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; +} +.voirAussi { + text-align: right; + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: #000000; + text-decoration: none; + text-align: right; +} +.MenuGaucheSelect { + FONT-SIZE: 8pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: right; + font-style: normal; + font-weight: normal +} +.margeGauche{ + width: 105pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + font-style: normal; + font-weight: normal; +} +.menuGauche{ + width: 100pt; +} +.boutonpicto { + font-family: Arial; + font-size: x-small; //12px; + font-style: normal; + font-weight: bold; + color: #000000; + text-decoration: none; +} +.boutonpicto a:link,.boutonpicto a:visited { text-decoration: none; color : #0000cc; } +.boutonpicto a:hover { text-decoration: none; color : red; } +.ligne0 { + background-color: #ffffff; +} +.ligne1 { + background-color: #eeeeee; +} +.modificationchamp { + font-family: Arial; + font-size: 8pt; + font-style: normal; + font-weight: bold; + color: #FF0000; + text-decoration: none; +} +th,.entetetableau { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none; +} +.Lien { + color:black; + text-decoration:none; + font-size: x-small; + FONT-FAMILY: Arial; + font-style: normal; + font-weight: normal; +} +//.Lien:hover { +// color:red; +// text-decoration:underline; +//} +.Lien:visited { + color:#660066; + text-decoration:none; //underline; +} +.TDBleu0 +{ + background-color: #ffff00; + background-repeat:repeat-x; +} +.TDBleu { + background-IMAGE: url("../../CommunWeb/Images/background_piedpage.gif"); + background-repeat:repeat-x; +} +.TDBleu1 +{ + background-IMAGE: url("../../CommunWeb/Images/pixel_bleu_fonce.gif"); + background-repeat:repeat-x; +} +.Libelle +{ + font-family : Arial; + font-size : 10pt; + color: #003399; + background-color : #FFFFFF; +} +.Saisie +{ + font-family : Verdana,Arial; + font-size : 8pt; + background-color : #E4E4E4; + font-weight: bold +} +.Tableau { + FONT-SIZE: x-small; //8pt; + COLOR: #FFFFFF; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold +} +.TableauActif { + FONT-SIZE: x-small; //8pt; + COLOR: #FFFF00; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold; +} +.textegrasbleu { + font-family: Arial; + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none +} +.textegrasgris { + font-family: Arial; + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #999999; + text-decoration: none +} +.Libellebouton { + FONT-SIZE: 8pt; + COLOR: #000000; + FONT-FAMILY: Verdana; + font-style: normal; + font-weight: bold; + text-decoration: none +} +.Visible { +} +.Invisible { + display: none; +} \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Js/amedeeNS.css b/AnaisWeb/trunk/Commun/Js/amedeeNS.css new file mode 100644 index 00000000..26515331 --- /dev/null +++ b/AnaisWeb/trunk/Commun/Js/amedeeNS.css @@ -0,0 +1,257 @@ +/* amedeeNS.css 10/02/2003 +*/ + +a:link { + color: #0000cc; + text-decoration: none; +} +a:visited { + color: #0000cc; + text-decoration: none; +} +a:hover { + color: red; + text-decoration: underline; +} + +body { + background-color: white; +} +form { + border-spacing: 30pt; + margin: 10 0 10 0; +} + +h1,.titrePage,.titre1,.Titre { + FONT-WEIGHT: normal; + FONT-SIZE: large; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; +} +.titreBoite { + FONT-WEIGHT: normal; + FONT-SIZE: large; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; + border-width: 0; +} +h2,.titreGauche,.titre2,.Titre2 { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #999999; +} +td,p,.textecourant { + font-family: Arial; + font-size: small; + font-weight: normal; + color: black; + empty-cells: show; +} +hr { + color: #AFAFAF; + border-style: solid; + background-color: #999999; + border-width: 1; + border-collapse: collapse; +} + +i { + color:#909090; +} + + +.tableBleue { + border-collapse: collapse; + border-color: #003399; + border-style: solid; + border-width: 2; +} +.nomintranet { + FONT-WEIGHT: bold; + FONT-SIZE: 18pt; + MARGIN-LEFT: 0px; + WIDTH: 100px; + COLOR: #003399; + FONT-FAMILY: Arial; + TEXT-ALIGN: right +} +.signature { + font-family: Arial; + font-size: small; + font-weight: normal; + color: black; +} +.onglet { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #999999; +} +.onglet:selected { + color:white; + text-decoration: none; +} +.ongletSelecte,.tdOngletSelecte { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #003399; +} +.ongletRenvoi { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #cccccc; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; +} +.voirAussi { + text-align: right; + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: #000000; + text-decoration: none; + text-align: right; +} +.MenuGaucheSelect { + FONT-SIZE: 8pt; + FONT-FAMILY: Arial;TEXT-ALIGN: right; + font-style: normal; + font-weight: normal +} +.margeGauche{ + width: 105pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + font-style: normal; + font-weight: normal; +} +.menuGauche{ + width: 100pt; +} +.boutonpicto { + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #000000; + text-decoration: none +} +.boutonpicto a:link,.boutonpicto a:visited { text-decoration: none; color : #0000cc; } +.boutonpicto a:hover { text-decoration: none; color : red; } +.ligne0 { + background-color: #ffffff; +} +.ligne1 { + background-color: #eeeeee; +} +.modificationchamp { + font-family: Arial; + font-size: 8pt; + font-style: normal; + font-weight: bold; + color: #FF0000; + text-decoration: none +} +th,.entetetableau { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none +} +.Lien { + color:blue; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; + font-style: normal; + font-weight: normal; +} +.Lien:hover { + color:red; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; +} +.Lien:visited { + color:660066; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none +} +.TDBleu0 +{ + background-color: #ffff00; + background-repeat:repeat-x; +} +.TDBleu { + background-IMAGE: url("../../CommunWeb/Images/background_piedpage.gif"); + background-repeat:repeat-x; +} +.TDBleu1 +{ + background-IMAGE: url("../../CommunWeb/Images/pixel_bleu_fonce.gif"); + background-repeat:repeat-x; +} +.Libelle +{ + font-family : Arial; + font-size : 10pt; + color: #003399; + background-color : #FFFFFF; +} +.Saisie +{ + font-family : Verdana,Arial; + font-size : 8pt; + background-color : #E4E4E4; + font-weight: bold +} +.Tableau { + FONT-SIZE: small; //8pt; + COLOR: #FFFFFF; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold +} +.TableauActif { + FONT-SIZE: small; //8pt; + COLOR: #FFFF00; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold; +} +.lienonglet { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #FFFFFF; text-decoration: none } +.textegrasbleu { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #003399; text-decoration: none } +.textegrasgris { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #AFAFAF; text-decoration: none } +.Libellebouton { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana; font-style: normal; font-weight: bold; text-decoration: none} \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Js/local.js b/AnaisWeb/trunk/Commun/Js/local.js new file mode 100644 index 00000000..19809d5f --- /dev/null +++ b/AnaisWeb/trunk/Commun/Js/local.js @@ -0,0 +1,113 @@ +// nom attribue aux donnees a obtenir +// 'pour' et 'cc' et tableaux associes + +// champs Ldap demandés + var m_champs='cn,dn,mail,uid,sn,givenname'; + +// nature des boites a afficher + var t_data=new Array; + t_data['pour']='pour'; + t_data['cc']='cc'; + +// nature des boites a afficher + var t_nature=new Array; + t_nature['pour']='BALI,BALR'; + t_nature['cc']='BALI'; + +// parametre 'agenda' pour OGo + var t_agenda=new Array; + t_agenda['pour']=''; + t_agenda['cc']=''; + +// nom des fenetres + var t_fen=new Array; + t_fen['pour']='ArboPour'; + t_fen['cc']='ArboCc'; + +// nom des fenetres + var t_nom=new Array; + t_nom['pour']='Titre,Bandeau'; + t_nom['cc']='Titre,Bandeau'; + +// tableau des identifiants des fenetres utilisees + var t_idfen=new Array; + + function AppelAnais(m_type, FoncRetour) + { + lien = '../../Admin/Autres/aideFonc.php?m_fonc=' + FoncRetour + '&m_data=' + m_type + '&m_nom=' + t_nom[m_type] + '&m_type=' + m_type + '&m_champ=' + m_champs + '&m_nature=' + t_nature[m_type] + '&m_agenda=' + t_agenda[m_type] + '#mon_etiquette'; + t_idfen[m_type] = window.open(lien, + t_fen[m_type], + 'width=350, height=600, left=10 ,top=10 ,toolbar=no, dependent=yes, menubar=no, location=no, resizable=yes, scrollbars=yes, directories=no, status=no'); + if(t_idfen[m_type]) t_idfen[m_type].focus(); + } + function RetourAnais() + { + var typ = arguments[0]; + var v_champs=new Array; + for(i=0;i 0) { + for (var i=0; i"); +} + diff --git a/AnaisWeb/trunk/Commun/Js/localIE.css b/AnaisWeb/trunk/Commun/Js/localIE.css new file mode 100644 index 00000000..03fdc22a --- /dev/null +++ b/AnaisWeb/trunk/Commun/Js/localIE.css @@ -0,0 +1,275 @@ +/* amedeeIE.css 16/02/2003 +*/ + +a:link { + color: #0000cc; + text-decoration: none; +} +a:visited { +/* color: #990000;*/ + color: #0000cc; + text-decoration: none; +} +a:hover { + color: red; + text-decoration: underline; +} + +body { + background-color: white; +} +form { + border-spacing: 30pt; + margin: 10 0 10 0; +} + +h1,.titrePage,.titre1,.Titre { + FONT-WEIGHT: normal; + FONT-SIZE: medium; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; +} +.titreBoite { + FONT-WEIGHT: normal; + FONT-SIZE: medium; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; + border-width:0; +} +h2,.titreGauche,.titre2,.Titre2 { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #999999; +} +td,p,.textecourant { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: black; + empty-cells: show; +} +/* pas pour IE +hr { + color: white; + border-style: solid; + background-color: #999999; + border-width: 2; + border-collapse: collapse; +} +*/ + +i { + color:#909090; +} + +.tableBleue { + border-collapse: collapse; + border-color: #003399; + border-style: solid; + border-width: 2; +} +.nomintranet { + FONT-WEIGHT: bold; + FONT-SIZE: 18pt; + MARGIN-LEFT: 0px; + WIDTH: 100px; + COLOR: #003399; + FONT-FAMILY: Arial; + TEXT-ALIGN: right; +} +.signature { + font-family: Arial; + font-size: x-small; + font-weight: normal; + color: black; +} +.onglet { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #999999; +} +.onglet:selected { + color:white; + text-decoration: none; +} +.ongletSelecte,.tdOngletSelecte { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #003399; +} +.ongletRenvoi { + FONT-WEIGHT: bold; + FONT-SIZE: x-small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #cccccc; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; +} +.voirAussi { + text-align: right; + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: #000000; + text-decoration: none; + text-align: right; +} +.MenuGaucheSelect { + FONT-SIZE: 8pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: right; + font-style: normal; + font-weight: normal +} +.margeGauche{ + width: 105pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + font-style: normal; + font-weight: normal; +} +.menuGauche{ + width: 100pt; +} +.boutonpicto { + font-family: Arial; + font-size: x-small; //12px; + font-style: normal; + font-weight: bold; + color: #000000; + text-decoration: none; +} +.boutonpicto a:link,.boutonpicto a:visited { text-decoration: none; color : #0000cc; } +.boutonpicto a:hover { text-decoration: none; color : red; } +.ligne0 { + background-color: #ffffff; +} +.ligne1 { + background-color: #eeeeee; +} +.modificationchamp { + font-family: Arial; + font-size: 8pt; + font-style: normal; + font-weight: bold; + color: #FF0000; + text-decoration: none; +} +th,.entetetableau { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none; +} +.Lien { + color:black; + text-decoration:none; + font-size: x-small; + FONT-FAMILY: Arial; + font-style: normal; + font-weight: normal; +} +//.Lien:hover { +// color:red; +// text-decoration:underline; +//} +.Lien:visited { + color:#660066; + text-decoration:none; //underline; +} +.TDBleu0 +{ + background-color: #ffff00; + background-repeat:repeat-x; +} +.TDBleu { + background-IMAGE: url("./CommunWeb/Images/background_piedpage.gif"); + background-repeat:repeat-x; +} +.TDBleu1 +{ + background-IMAGE: url("./CommunWeb/Images/pixel_bleu_fonce.gif"); + background-repeat:repeat-x; +} +.Libelle +{ + font-family : Arial; + font-size : 10pt; + color: #003399; + background-color : #FFFFFF; +} +.Saisie +{ + font-family : Verdana,Arial; + font-size : 8pt; + background-color : #E4E4E4; + font-weight: bold +} +.Tableau { + FONT-SIZE: x-small; //8pt; + COLOR: #FFFFFF; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold +} +.TableauActif { + FONT-SIZE: x-small; //8pt; + COLOR: #FFFF00; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold; +} +.textegrasbleu { + font-family: Arial; + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none +} +.textegrasgris { + font-family: Arial; + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #999999; + text-decoration: none +} +.Libellebouton { + FONT-SIZE: 8pt; + COLOR: #000000; + FONT-FAMILY: Verdana; + font-style: normal; + font-weight: bold; + text-decoration: none +} +.Visible { +} +.Invisible { + display: none; +} \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Js/localNS.css b/AnaisWeb/trunk/Commun/Js/localNS.css new file mode 100644 index 00000000..bf543cef --- /dev/null +++ b/AnaisWeb/trunk/Commun/Js/localNS.css @@ -0,0 +1,256 @@ +/* amedeeNS.css 10/02/2003 +*/ + +a:link { + color: #0000cc; + text-decoration: none; +} +a:visited { + color: #0000cc; + text-decoration: none; +} +a:hover { + color: red; + text-decoration: underline; +} + +body { + background-color: white; +} +form { + border-spacing: 30pt; + margin: 10 0 10 0; +} + +h1,.titrePage,.titre1,.Titre { + FONT-WEIGHT: normal; + FONT-SIZE: large; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; +} +.titreBoite { + FONT-WEIGHT: normal; + FONT-SIZE: large; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #003399; + border-width: 0; +} +h2,.titreGauche,.titre2,.Titre2 { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + BACKGROUND-COLOR: #999999; +} +td,p,.textecourant { + font-family: Arial; + font-size: small; + font-weight: normal; + color: black; + empty-cells: show; +} +hr { + color: white; + border-style: solid; + background-color: #999999; + border-width: 2; + border-collapse: collapse; +} + +i { + color:#909090; +} + +.tableBleue { + border-collapse: collapse; + border-color: #003399; + border-style: solid; + border-width: 2; +} +.nomintranet { + FONT-WEIGHT: bold; + FONT-SIZE: 18pt; + MARGIN-LEFT: 0px; + WIDTH: 100px; + COLOR: #003399; + FONT-FAMILY: Arial; + TEXT-ALIGN: right +} +.signature { + font-family: Arial; + font-size: small; + font-weight: normal; + color: black; +} +.onglet { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: #ffffff; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #999999; +} +.onglet:selected { + color:white; + text-decoration: none; +} +.ongletSelecte,.tdOngletSelecte { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #003399; +} +.ongletRenvoi { + FONT-WEIGHT: bold; + FONT-SIZE: small; + COLOR: white; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; + background-color: #cccccc; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none; +} +.voirAussi { + text-align: right; + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: normal; + color: #000000; + text-decoration: none; + text-align: right; +} +.MenuGaucheSelect { + FONT-SIZE: 8pt; + FONT-FAMILY: Arial;TEXT-ALIGN: right; + font-style: normal; + font-weight: normal +} +.margeGauche{ + width: 105pt; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + font-style: normal; + font-weight: normal; +} +.menuGauche{ + width: 100pt; +} +.boutonpicto { + font-size: 12px; + font-style: normal; + font-weight: bold; + color: #000000; + text-decoration: none +} +.boutonpicto a:link,.boutonpicto a:visited { text-decoration: none; color : #0000cc; } +.boutonpicto a:hover { text-decoration: none; color : red; } +.ligne0 { + background-color: #ffffff; +} +.ligne1 { + background-color: #eeeeee; +} +.modificationchamp { + font-family: Arial; + font-size: 8pt; + font-style: normal; + font-weight: bold; + color: #FF0000; + text-decoration: none +} +th,.entetetableau { + font-family: Arial; + font-size: x-small; + font-style: normal; + font-weight: bold; + color: #003399; + text-decoration: none +} +.Lien { + color:blue; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; + font-style: normal; + font-weight: normal; +} +.Lien:hover { + color:red; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; +} +.Lien:visited { + color:660066; + text-decoration:underline; + font-size:8pt; + FONT-FAMILY: Arial; +} +.lienonglet { + FONT-WEIGHT: bold; + FONT-SIZE: 10pt; + COLOR: #FFFFFF; + FONT-FAMILY: Arial; + TEXT-ALIGN: left; + TEXT-DECORATION: none +} +.TDBleu0 +{ + background-color: #ffff00; + background-repeat:repeat-x; +} +.TDBleu { + background-IMAGE: url("./CommunWeb/Images/background_piedpage.gif"); + background-repeat:repeat-x; +} +.TDBleu1 +{ + background-IMAGE: url("./CommunWeb/Images/pixel_bleu_fonce.gif"); + background-repeat:repeat-x; +} +.Libelle +{ + font-family : Arial; + font-size : 10pt; + color: #003399; + background-color : #FFFFFF; +} +.Saisie +{ + font-family : Verdana,Arial; + font-size : 8pt; + background-color : #E4E4E4; + font-weight: bold +} +.Tableau { + FONT-SIZE: small; //8pt; + COLOR: #FFFFFF; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold +} +.TableauActif { + FONT-SIZE: small; //8pt; + COLOR: #FFFF00; + FONT-FAMILY: Verdana; + background-color: #003399; + font-weight: bold; +} +.lienonglet { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #FFFFFF; text-decoration: none } +.textegrasbleu { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #003399; text-decoration: none } +.textegrasgris { font-family: Arial; font-size: 12px; font-style: normal; font-weight: bold; color: #AFAFAF; text-decoration: none } +.Libellebouton { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana; font-style: normal; font-weight: bold; text-decoration: none} \ No newline at end of file diff --git a/AnaisWeb/trunk/Commun/Session/creesessionanais.inc b/AnaisWeb/trunk/Commun/Session/creesessionanais.inc new file mode 100644 index 00000000..030bdc5d --- /dev/null +++ b/AnaisWeb/trunk/Commun/Session/creesessionanais.inc @@ -0,0 +1,75 @@ + + + diff --git a/AnaisWeb/trunk/CommunWeb/Images/A16.ico b/AnaisWeb/trunk/CommunWeb/Images/A16.ico new file mode 100644 index 00000000..23dd4cd5 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/A16.ico differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala.gif new file mode 100644 index 00000000..181cf251 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala_l.gif new file mode 100644 index 00000000..6d598ec2 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bala_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf.gif new file mode 100644 index 00000000..8e1de1de Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf_l.gif new file mode 100644 index 00000000..e494824c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balf_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali.gif new file mode 100644 index 00000000..cdfef7f9 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali_l.gif new file mode 100644 index 00000000..e678269e Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bali_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr.gif new file mode 100644 index 00000000..8d83004c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr_l.gif new file mode 100644 index 00000000..7b732b3f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balr_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals.gif new file mode 100644 index 00000000..fb31b45a Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals_l.gif new file mode 100644 index 00000000..fb31b45a Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/bals_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu.gif new file mode 100644 index 00000000..2197bab1 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu_l.gif new file mode 100644 index 00000000..91a814fd Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/balu_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/boite.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/boite.gif new file mode 100644 index 00000000..d089c0df Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/boite.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/dossier.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/dossier.gif new file mode 100644 index 00000000..ae844c14 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/dossier.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/ext.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/ext.gif new file mode 100644 index 00000000..2e6a688d Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/ext.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/gfa.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/gfa.gif new file mode 100644 index 00000000..5b7ccad2 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/gfa.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste.gif new file mode 100644 index 00000000..92af80a1 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste_l.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste_l.gif new file mode 100644 index 00000000..aa3e3215 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/liste_l.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_collapse.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_collapse.gif new file mode 100644 index 00000000..cec7c4de Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_collapse.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_expand.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_expand.gif new file mode 100644 index 00000000..7671e197 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/new_tree_expand.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/refx.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/refx.gif new file mode 100644 index 00000000..67c41f8a Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/refx.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.gif new file mode 100644 index 00000000..1f05065f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.ouvert.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.ouvert.gif new file mode 100644 index 00000000..cec7c4de Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_collapse.ouvert.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_dossier.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_dossier.gif new file mode 100644 index 00000000..7671e197 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_dossier.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_end.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_end.gif new file mode 100644 index 00000000..1eead993 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_end.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.ferme.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.ferme.gif new file mode 100644 index 00000000..7671e197 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.ferme.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.gif new file mode 100644 index 00000000..b25febaf Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_expand.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_horiline.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_horiline.gif new file mode 100644 index 00000000..c654fb6c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_horiline.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_leaf.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_leaf.gif new file mode 100644 index 00000000..c9189380 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_leaf.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_space.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_space.gif new file mode 100644 index 00000000..33c60e58 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_space.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_split.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_split.gif new file mode 100644 index 00000000..e89ce804 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_split.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_start.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_start.gif new file mode 100644 index 00000000..d01713d2 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_start.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_vertline.gif b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_vertline.gif new file mode 100644 index 00000000..54209362 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Arbo/tree_vertline.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_affiner.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_affiner.gif new file mode 100644 index 00000000..45a9bb1d Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_affiner.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_aide.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_aide.gif new file mode 100644 index 00000000..0fdd221c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_aide.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_annuler.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_annuler.gif new file mode 100644 index 00000000..9d6e7bf4 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_annuler.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_besoin_aide.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_besoin_aide.gif new file mode 100644 index 00000000..5026e994 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_besoin_aide.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_enregistrer.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_enregistrer.gif new file mode 100644 index 00000000..51ae57af Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_enregistrer.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_exporter.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_exporter.gif new file mode 100644 index 00000000..48c91ae0 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_exporter.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_imprimer.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_imprimer.gif new file mode 100644 index 00000000..a237fb04 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_imprimer.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_rechercher.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_rechercher.gif new file mode 100644 index 00000000..ba386513 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_rechercher.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_supprimer.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_supprimer.gif new file mode 100644 index 00000000..fd923b17 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_supprimer.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_valider.gif b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_valider.gif new file mode 100644 index 00000000..c41ad167 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/Pictos/picto_valider.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/absence0.png b/AnaisWeb/trunk/CommunWeb/Images/absence0.png new file mode 100644 index 00000000..f9a0cd9f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/absence0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/absence1.png b/AnaisWeb/trunk/CommunWeb/Images/absence1.png new file mode 100644 index 00000000..03ac51f7 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/absence1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/accueil0.png b/AnaisWeb/trunk/CommunWeb/Images/accueil0.png new file mode 100644 index 00000000..0c5156fa Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/accueil0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/accueil1.png b/AnaisWeb/trunk/CommunWeb/Images/accueil1.png new file mode 100644 index 00000000..e74191aa Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/accueil1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/adresstel0.png b/AnaisWeb/trunk/CommunWeb/Images/adresstel0.png new file mode 100644 index 00000000..632b515b Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/adresstel0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/adresstel1.png b/AnaisWeb/trunk/CommunWeb/Images/adresstel1.png new file mode 100644 index 00000000..fa2d6b4d Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/adresstel1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/annuler2.png b/AnaisWeb/trunk/CommunWeb/Images/annuler2.png new file mode 100644 index 00000000..6fb8b770 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/annuler2.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/annuler3.png b/AnaisWeb/trunk/CommunWeb/Images/annuler3.png new file mode 100644 index 00000000..37a7a9fd Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/annuler3.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/auth0.png b/AnaisWeb/trunk/CommunWeb/Images/auth0.png new file mode 100644 index 00000000..5ab07f2f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/auth0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/auth1.png b/AnaisWeb/trunk/CommunWeb/Images/auth1.png new file mode 100644 index 00000000..f7e40d9d Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/auth1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/background_piedpage.gif b/AnaisWeb/trunk/CommunWeb/Images/background_piedpage.gif new file mode 100644 index 00000000..808d3a94 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/background_piedpage.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/boite0.png b/AnaisWeb/trunk/CommunWeb/Images/boite0.png new file mode 100644 index 00000000..df2c9b3f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/boite0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/boite1.png b/AnaisWeb/trunk/CommunWeb/Images/boite1.png new file mode 100644 index 00000000..991314b5 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/boite1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/bord_titre_bleu.gif b/AnaisWeb/trunk/CommunWeb/Images/bord_titre_bleu.gif new file mode 100644 index 00000000..3f81c882 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/bord_titre_bleu.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/bord_titre_gris.gif b/AnaisWeb/trunk/CommunWeb/Images/bord_titre_gris.gif new file mode 100644 index 00000000..6f6d7a5f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/bord_titre_gris.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide0.png b/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide0.png new file mode 100644 index 00000000..3025e659 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide1.png b/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide1.png new file mode 100644 index 00000000..c02b1ebc Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/boutonHautVide1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/bt_lat1.gif b/AnaisWeb/trunk/CommunWeb/Images/bt_lat1.gif new file mode 100644 index 00000000..0158a531 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/bt_lat1.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/bt_lat2.gif b/AnaisWeb/trunk/CommunWeb/Images/bt_lat2.gif new file mode 100644 index 00000000..639cd23f Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/bt_lat2.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/creer2.png b/AnaisWeb/trunk/CommunWeb/Images/creer2.png new file mode 100644 index 00000000..b04e187c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/creer2.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/creer3.png b/AnaisWeb/trunk/CommunWeb/Images/creer3.png new file mode 100644 index 00000000..3fbb33ce Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/creer3.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/enregistrer2.png b/AnaisWeb/trunk/CommunWeb/Images/enregistrer2.png new file mode 100644 index 00000000..30e9f505 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/enregistrer2.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/enregistrer3.png b/AnaisWeb/trunk/CommunWeb/Images/enregistrer3.png new file mode 100644 index 00000000..7e1b9ef7 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/enregistrer3.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/general0.png b/AnaisWeb/trunk/CommunWeb/Images/general0.png new file mode 100644 index 00000000..9a8d0bb0 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/general0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/general1.png b/AnaisWeb/trunk/CommunWeb/Images/general1.png new file mode 100644 index 00000000..f641a930 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/general1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/haut_de_page.gif b/AnaisWeb/trunk/CommunWeb/Images/haut_de_page.gif new file mode 100644 index 00000000..1506f786 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/haut_de_page.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/liste0.png b/AnaisWeb/trunk/CommunWeb/Images/liste0.png new file mode 100644 index 00000000..f1c5f836 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/liste0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/liste1.png b/AnaisWeb/trunk/CommunWeb/Images/liste1.png new file mode 100644 index 00000000..e5aec3f6 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/liste1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/listes0.png b/AnaisWeb/trunk/CommunWeb/Images/listes0.png new file mode 100644 index 00000000..51345708 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/listes0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/listes1.png b/AnaisWeb/trunk/CommunWeb/Images/listes1.png new file mode 100644 index 00000000..2cc3ef63 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/listes1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/logo.gif b/AnaisWeb/trunk/CommunWeb/Images/logo.gif new file mode 100644 index 00000000..9bd36195 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/logo.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/mail_piedpage.gif b/AnaisWeb/trunk/CommunWeb/Images/mail_piedpage.gif new file mode 100644 index 00000000..e0e3352c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/mail_piedpage.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/messagerie0.png b/AnaisWeb/trunk/CommunWeb/Images/messagerie0.png new file mode 100644 index 00000000..e0a5666c Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/messagerie0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/messagerie1.png b/AnaisWeb/trunk/CommunWeb/Images/messagerie1.png new file mode 100644 index 00000000..c023fa53 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/messagerie1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/mon_image.png b/AnaisWeb/trunk/CommunWeb/Images/mon_image.png new file mode 100644 index 00000000..2059406a Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/mon_image.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/nomAppliBalade.gif b/AnaisWeb/trunk/CommunWeb/Images/nomAppliBalade.gif new file mode 100644 index 00000000..070873f0 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/nomAppliBalade.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/orgmembre0.png b/AnaisWeb/trunk/CommunWeb/Images/orgmembre0.png new file mode 100644 index 00000000..08a86a50 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/orgmembre0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/orgmembre1.png b/AnaisWeb/trunk/CommunWeb/Images/orgmembre1.png new file mode 100644 index 00000000..0f4445f8 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/orgmembre1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/partage0.png b/AnaisWeb/trunk/CommunWeb/Images/partage0.png new file mode 100644 index 00000000..c3a10e12 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/partage0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/partage1.png b/AnaisWeb/trunk/CommunWeb/Images/partage1.png new file mode 100644 index 00000000..835be248 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/partage1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/passe0.png b/AnaisWeb/trunk/CommunWeb/Images/passe0.png new file mode 100644 index 00000000..669938b4 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/passe0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/passe1.png b/AnaisWeb/trunk/CommunWeb/Images/passe1.png new file mode 100644 index 00000000..b2757bd6 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/passe1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/pixel_bleu_fonce.gif b/AnaisWeb/trunk/CommunWeb/Images/pixel_bleu_fonce.gif new file mode 100644 index 00000000..71905fa9 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/pixel_bleu_fonce.gif differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/selection0.png b/AnaisWeb/trunk/CommunWeb/Images/selection0.png new file mode 100644 index 00000000..87240d25 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/selection0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/selection1.png b/AnaisWeb/trunk/CommunWeb/Images/selection1.png new file mode 100644 index 00000000..1e721398 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/selection1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/service0.png b/AnaisWeb/trunk/CommunWeb/Images/service0.png new file mode 100644 index 00000000..5e75f7fe Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/service0.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/service1.png b/AnaisWeb/trunk/CommunWeb/Images/service1.png new file mode 100644 index 00000000..37359e88 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/service1.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/supprimer2.png b/AnaisWeb/trunk/CommunWeb/Images/supprimer2.png new file mode 100644 index 00000000..4df255ca Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/supprimer2.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/supprimer3.png b/AnaisWeb/trunk/CommunWeb/Images/supprimer3.png new file mode 100644 index 00000000..fb1d6c40 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/supprimer3.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/valider2.png b/AnaisWeb/trunk/CommunWeb/Images/valider2.png new file mode 100644 index 00000000..01bc7a31 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/valider2.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Images/valider3.png b/AnaisWeb/trunk/CommunWeb/Images/valider3.png new file mode 100644 index 00000000..a942ea53 Binary files /dev/null and b/AnaisWeb/trunk/CommunWeb/Images/valider3.png differ diff --git a/AnaisWeb/trunk/CommunWeb/Include/FoncType.inc b/AnaisWeb/trunk/CommunWeb/Include/FoncType.inc new file mode 100644 index 00000000..bdbc9aa2 --- /dev/null +++ b/AnaisWeb/trunk/CommunWeb/Include/FoncType.inc @@ -0,0 +1,218 @@ + \ No newline at end of file diff --git a/AnaisWeb/trunk/CommunWeb/Include/expandfonc.inc b/AnaisWeb/trunk/CommunWeb/Include/expandfonc.inc new file mode 100644 index 00000000..6800688d --- /dev/null +++ b/AnaisWeb/trunk/CommunWeb/Include/expandfonc.inc @@ -0,0 +1,206 @@ + 0) + $champs_b[]=$champs[$i]; + } + + $mel1=0; $mel2=0; $nbf=0; + if( $nature != "" ) + { + $t_filtre = explode(",", $nature); + if( count($t_filtre) > 0 ) + { + for($i=0; $i < count($t_filtre); $i++) + { + if( strcasecmp($t_filtre[$i], "MEL1") == 0 ) $mel1=1; + else if( strcasecmp($t_filtre[$i], "MEL2") == 0 ) $mel2=1; + else $nbf++; + } + } + } + if($mel1==1) + $filtre = "(&(objectClass=mineqmeldp)(mail=*)"; + else if($mel2==1) + $filtre = "(&(|(objectClass=mineqmelliste)(objectClass=mineqmelboite))(mail=*)"; + else + $filtre = "(&(|(objectClass=mineqmelliste)(objectClass=mineqmelboite)(objectClass=mineqmeldp))(mail=*)"; + +/* + if( $nature != "" ) + { + $t_filtre = explode(",", $nature); + if( $nbf > 0 ) + { + if( $nbf > 1 ) $filtre = $filtre . "(|"; + for($i=0; $i < count($t_filtre); $i++) + { + if( ( strcasecmp($t_filtre[$i], "MEL1") != 0 ) && ( strcasecmp($t_filtre[$i], "MEL2") != 0 ) ) + $filtre = $filtre . "(mineqTypeEntree=".$t_filtre[$i].")"; + } + if( $nbf > 1 ) $filtre = $filtre . ")"; + } + } +*/ + $filtre = $filtre . ")"; + + //******************************************************************************************************************// + $connect=ldap_connect($_SESSION['maitre_serv']); + + if($connect) + { + ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3); + $bind=ldap_bind($connect); + if($bind) + { + if(isset($_SESSION[$arbre][$dn])) + { + unset($_SESSION[$arbre][$dn]); + } + $w_arbre=array(); + + $champs_u=array("mineqTypeEntree", "mineqPortee", "ou", "description"); + + $search_o=ldap_list($connect, $dn, "objectClass=organizationalUnit", $champs_u); + //if(TRACE==1) $nb_r++; + if( $search_o ) + { + $unites=ldap_first_entry($connect, $search_o); + + while($unites) + { + $entree=@ldap_get_values($connect,$unites,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$unites,"mineqPortee"); + $description=ldap_get_values($connect,$unites,"description"); + $dn4=ldap_get_dn($connect,$unites); + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + $_SESSION[$arbre_data][$dn4]="".utf8_decode($description[0])."".$sep.$typeb;/*.$sep."litentite.php?vmvt=2&vtyp=0&vdn=".$sep."PageUn";*/ + + $unites=ldap_next_entry($connect, $unites); + } + ldap_free_result($search_o); + } + +// $champs_b=array("mineqTypeEntree", "mineqPortee", "cn", "mail", "uid"); + + $search_b=ldap_list($connect, $dn, $filtre, $champs_b); +// $search_b=ldap_list($connect, $dn, "(&(|(objectClass=mineqmeldp)(objectClass=mineqmelliste)(objectClass=organizationalperson))(mail=*))", $champs_b); + if( $search_b ) + { + $boite=ldap_first_entry($connect, $search_b); + while($boite) + { + $dn4=ldap_get_dn($connect,$boite); + $t_dn=array( $dn4 ); + + $cnb=ldap_get_values($connect,$boite,"cn"); + $entree=@ldap_get_values($connect,$boite,"mineqTypeEntree"); + $portee=@ldap_get_values($connect,$boite,"mineqPortee"); + + for($j=0; $j < count($champs); $j++) + if( strcasecmp($champs[$j], "dn") == 0 ) + $val[$j]=$t_dn; + else + $val[$j]=@ldap_get_values($connect,$boite,"$champs[$j]"); + + $w_arbre[]=$dn4; + $typeb=$entree[0].",".$portee[0]; + $tmp=utf8_decode($cnb[0]).$sep.$typeb.$sep.$dn4; + for($j=0; $j < count($champs); $j++) + $tmp=$tmp.$sep.utf8_decode($val[$j][0]); + $_SESSION[$arbre_data][$dn4]=$tmp; + + $boite=ldap_next_entry($connect, $boite); + } + ldap_free_result($search_b); + } + + $_SESSION['w_arbre_data']=$arbre_data; + usort( $w_arbre, 'compareAnais' ); + $_SESSION[$arbre][$dn] = $w_arbre; + session_write_close(); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + ldap_close($connect); + } + else + { + @msgalerte( 0, "Problème lors de la connection au serveur ldap" ); + } + + return ; +} + +function compareAnais( $dn1, $dn2 ) +{ + $sep="\t"; + $sep2=","; + $arbre_data=$_SESSION['w_arbre_data']; + + $wdn1 = explode( $sep, $_SESSION[$arbre_data][$dn1] ); + $wdn2 = explode( $sep, $_SESSION[$arbre_data][$dn2] ); + + assert( is_array( $wdn1 ) ); + assert( is_array( $wdn2 ) ); + + if( 0 === strcasecmp( $wdn1[0], $wdn2[0] ) ) + return 0; + + $wtyp1 = explode( $sep2, $wdn1[1] ); + $wtyp2 = explode( $sep2, $wdn2[1] ); + + assert( is_array( $wtyp1 ) ); + assert( is_array( $wtyp2 ) ); + + switch ($wtyp1[0]) { + case "NGRO": $wtmp1="00".$wdn1[0]; break; + case "NSER": $wtmp1="00".$wdn1[0]; break; + case "NUNI": $wtmp1="00".$wdn1[0]; break; + case "BALI": $wtmp1="01".$wdn1[0]; break; + case "BALF": $wtmp1="02".$wdn1[0]; break; + case "BALR": $wtmp1="03".$wdn1[0]; break; + case "BALA": $wtmp1="04".$wdn1[0]; break; + case "BALS": $wtmp1="05".$wdn1[0]; break; + case "BALU": $wtmp1="06".$wdn1[0]; break; + case "LDIS": $wtmp1="07".$wdn1[0]; break; + case "LDAB": $wtmp1="07".$wdn1[0]; break; + default: $wtmp1="10".$wdn1[0]; + } + + switch ($wtyp2[0]) { + case "NGRO": $wtmp2="00".$wdn2[0]; break; + case "NSER": $wtmp2="00".$wdn2[0]; break; + case "NUNI": $wtmp2="00".$wdn2[0]; break; + case "BALI": $wtmp2="01".$wdn2[0]; break; + case "BALF": $wtmp2="02".$wdn2[0]; break; + case "BALR": $wtmp2="03".$wdn2[0]; break; + case "BALA": $wtmp2="04".$wdn2[0]; break; + case "BALS": $wtmp2="05".$wdn2[0]; break; + case "BALU": $wtmp2="06".$wdn2[0]; break; + case "LDIS": $wtmp2="07".$wdn2[0]; break; + case "LDAB": $wtmp2="07".$wdn2[0]; break; + default: $wtmp2="10".$wdn2[0]; + } + + return strcasecmp( $wtmp1, $wtmp2 ); +} +?> \ No newline at end of file diff --git a/AnaisWeb/trunk/Exemple.htm b/AnaisWeb/trunk/Exemple.htm new file mode 100644 index 00000000..46e4cef3 --- /dev/null +++ b/AnaisWeb/trunk/Exemple.htm @@ -0,0 +1,10 @@ + + +Exemple Anais + + + + + diff --git a/AnaisWeb/trunk/Simple.htm b/AnaisWeb/trunk/Simple.htm new file mode 100644 index 00000000..5fcebb88 --- /dev/null +++ b/AnaisWeb/trunk/Simple.htm @@ -0,0 +1,10 @@ + + +Exemple simple Anais + + + + + diff --git a/SOGo/UI/Anais/AnaisAttendeeSelector.m b/SOGo/UI/Anais/AnaisAttendeeSelector.m index 728c2f13..a1a3694a 100644 --- a/SOGo/UI/Anais/AnaisAttendeeSelector.m +++ b/SOGo/UI/Anais/AnaisAttendeeSelector.m @@ -337,9 +337,19 @@ static BOOL debugOn = NO; } s = - @"function %@(type, cn, dn, email, uid, sn) {\n" + // @"function %@(type, cn, dn, email, uid, sn) {\n" + // @" addToTable('%@', type, cn, dn, email, uid, sn);\n" + // @"}\n"; + @"function %@() {\n" + @" var type=arguments[0];\n" + @" var email=arguments[1];\n" + @" var uid=arguments[2];\n" + @" var sn=arguments[3];\n" + @" var cn=arguments[4];\n" + @" var dn=arguments[5];\n" @" addToTable('%@', type, cn, dn, email, uid, sn);\n" @"}\n"; + [ms appendFormat:s, [self callbackName], [self tableId]]; return ms; } diff --git a/SOGo/UI/Anais/AnaisAttendeeSelector.wox b/SOGo/UI/Anais/AnaisAttendeeSelector.wox index 410f74d9..49f8811e 100644 --- a/SOGo/UI/Anais/AnaisAttendeeSelector.wox +++ b/SOGo/UI/Anais/AnaisAttendeeSelector.wox @@ -14,7 +14,8 @@ label:title="Search in Anais" var:windowId="windowId" var:division="division" - var:callback="callbackName" /> + var:callback="callbackName" + const:extraAttributes="cn,dn"/>