Subversion Repositories Applications.papyrus

Rev

Rev 783 | Rev 914 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 783 Rev 790
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: adsi_site.fonct.php,v 1.28 2006-03-15 23:44:19 ddelon Exp $
22
// CVS : $Id: adsi_site.fonct.php,v 1.29 2006-03-23 20:24:58 ddelon Exp $
23
/**
23
/**
24
* Bibliothèque de fonctions d'admininistration des projets
24
* Bibliothèque de fonctions d'admininistration des projets
25
*
25
*
26
* Contient un ensemble de fonctions permettant à l'application Administrateur de Papyrus, de modifier des informations
26
* Contient un ensemble de fonctions permettant à l'application Administrateur de Papyrus, de modifier des informations
27
* sur les projets (=sites gérés par Papyrus).
27
* sur les projets (=sites gérés par Papyrus).
Line 32... Line 32...
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
35
*@author        Laurent COUDOUNEAU <lc@gsite.org>
35
*@author        Laurent COUDOUNEAU <lc@gsite.org>
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.28 $ $Date: 2006-03-15 23:44:19 $
37
*@version       $Revision: 1.29 $ $Date: 2006-03-23 20:24:58 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
Line 40... Line 40...
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
Line 560... Line 560...
560
                'FROM gen_site_relation, gen_site '.
560
                'FROM gen_site_relation, gen_site '.
561
                'WHERE gsr_id_site_01 = ' .$site_ligne['gs_id_site'] .' '.
561
                'WHERE gsr_id_site_01 = ' .$site_ligne['gs_id_site'] .' '.
562
                'AND gs_id_site = gsr_id_site_02  '.
562
                'AND gs_id_site = gsr_id_site_02  '.
563
                'AND gsr_id_valeur =1  '; // 1 = "avoir traduction"
563
                'AND gsr_id_valeur =1  '; // 1 = "avoir traduction"
Line -... Line 564...
-
 
564
                
564
                
565
                
565
			    $resultat = $db->query($requete) ;
566
			    $resultat = $db->query($requete) ;
566
			    if (DB::isError($resultat)) {
567
			    if (DB::isError($resultat)) {
567
			        die( BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete) );
568
			        die( BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete) );
568
			    }
569
			    }
569
			    $not_in_langue='';
570
			    $not_in_langue='';
570
			    if ( $resultat->numRows() == 0 ) {
571
			    if ( $resultat->numRows() == 0 ) {
571
					$not_in_langue="gi_id_i18n not in('".$site_ligne['gs_ce_i18n']."')";    
572
					$not_in_langue="gi_id_i18n not in('".$site_ligne['gs_ce_i18n']."')";
572
			    }
573
			    }
573
			    else {
574
			    else {
574
			    	    while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
575
			    	    while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
575
    	 					$not_in_langue="'".$ligne->gs_ce_i18n."'".",".$not_in_langue;
576
    	 					$not_in_langue="'".$ligne->gs_ce_i18n."'".",".$not_in_langue;
576
    	 					$end="'".$ligne->gs_ce_i18n."'";
577
    	 					$end="'".$ligne->gs_ce_i18n."'";
-
 
578
    					}
-
 
579
    					if ($not_in_langue) {
577
    					}
580
			    			$not_in_langue="'".$site_ligne['gs_ce_i18n']."'".",".$not_in_langue;
-
 
581
			    			$not_in_langue=' gi_id_i18n not in('.$not_in_langue.$end.')';
-
 
582
			    		}
-
 
583
			    		else {
-
 
584
			    			$not_in_langue="gi_id_i18n not in('".$site_ligne['gs_ce_i18n']."')";
578
			    		$not_in_langue=' gi_id_i18n not in('.$not_in_langue.$end.')';
585
			    		}
579
			    }
586
			    }
Line 580... Line 587...
580
				$resultat->free();		    
587
				$resultat->free();		    
581
    		
588
    		
Line 1780... Line 1787...
1780
}
1787
}
Line 1781... Line 1788...
1781
    
1788
    
1782
// +- Fin du code source  --------------------------------------------------------------------------------+
1789
// +- Fin du code source  --------------------------------------------------------------------------------+
1783
/*
1790
/*
-
 
1791
* $Log: not supported by cvs2svn $
-
 
1792
* Revision 1.28  2006/03/15 23:44:19  ddelon
-
 
1793
* Gestion site
1784
* $Log: not supported by cvs2svn $
1794
*
1785
* Revision 1.27  2006/03/15 23:35:25  ddelon
1795
* Revision 1.27  2006/03/15 23:35:25  ddelon
1786
* Gestion site
1796
* Gestion site
1787
*
1797
*
1788
* Revision 1.26  2006/03/02 10:49:49  ddelon
1798
* Revision 1.26  2006/03/02 10:49:49  ddelon