Skip to content
Snippets Groups Projects
Select Git revision
  • 638337f28d4e3a5d4a2ba5ceb56dec576cbad515
  • develop default
  • issue-654
  • issue-555
  • issue-719
  • issue-723
  • issue-724
  • issue-720
  • issue-697
  • issue-709
  • issue-707
  • issue-692
  • issue-695
  • issue-698
  • master
  • issue-689
  • issue-684
  • issue-685
  • issue-681
  • issue-672
  • issue-404
  • 7.7.1
  • 7.7
  • 7.6.1
  • 7.6
  • 7.5.1
  • 7.5
  • 7.4
  • 7.3.1
  • 7.3
  • 7.2
  • 7.1
  • 2012-04-18
  • 2012-04-03
  • 2012-04-02
  • 2012-03-01
  • 2012-02-07
  • 20120207
  • 2012-01-13
  • 2012-01-12
  • 2011-12-16
41 results

ajax.inc

Blame
  • Forked from UNL Information Services / UNL-CMS
    Source project has a limited visibility.
    projetdon.class.php 1.45 KiB
    <?php
    /* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 2 of the License, or
     * (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     *
     * $Id$
     * $Source$
     *
     */
    
    
    class ProjetDon {
      var $id;
      var $db;
      var $ref;
      var $title;
      var $socidp;
    
      function ProjetDon($DB) {
        $this->db = $DB;
      }
    
      /*
       *
       *
       *
       */
    	 
    	 function liste_array($id_societe='')
        {
          $projets = array();
    
          $sql = "SELECT rowid, libelle FROM ".MAIN_DB_PREFIX."don_projet";
          
          if ($this->db->query($sql) )
    	{
    	  $nump = $this->db->num_rows();
    
    	  if ($nump)
    	    {
    	      $i = 0;
    	      while ($i < $nump)
    		{
    		  $obj = $this->db->fetch_object();
    	      
    		  $projets[$obj->rowid] = $obj->libelle;
    		  $i++;
    		}
    	    }
    	  return $projets;
    	}
          else
    	{
    	  print $this->db->error();
    	}
          
        }
      
    }
    ?>