[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?PHP 2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: update-contrat-statut.php,v 1.1 2005/06/08 14:01:21 rodolphe Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/script/update-contrat-statut.php,v $ 20 * 21 * Mise à jours des statuts des contrats 22 * Script de migration de la nouvelle structure de la base 23 * 24 */ 25 26 require ("../../master.inc.php"); 27 require(DOL_DOCUMENT_ROOT."/telephonie/telephonie.contrat.class.php"); 28 29 $contrats = array(); 30 31 $sql = "SELECT rowid FROM llx_telephonie_contrat;"; 32 33 if ($db->query($sql)) 34 { 35 $i = 0; 36 $num = $db->num_rows(); 37 38 while ($i < $num) 39 { 40 $row = $db->fetch_row(); 41 $contrats[$i] = $row[0]; 42 $i++; 43 } 44 45 $db->free(); 46 } 47 else 48 { 49 die ("Error $sql"); 50 } 51 52 dolibarr_syslog("Update contrats ".sizeof($contrats)); 53 54 for ($i = 0 ; $i < sizeof($contrats) ; $i++) 55 { 56 $numc = 0; 57 58 $contrat = new TelephonieContrat($db); 59 $contrat->id = $contrats[$i]; 60 $contrat->update_statut(); 61 62 } 63 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |