| [ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: fiche.php,v 1.80 2005/12/02 21:11:49 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/compta/fiche.php,v $ 21 */ 22 23 /** 24 \file htdocs/compta/fiche.php 25 \ingroup compta 26 \brief Page de fiche compta 27 \version $Revision: 1.80 $ 28 */ 29 30 require ("./pre.inc.php"); 31 require_once (DOL_DOCUMENT_ROOT."/contact.class.php"); 32 require_once (DOL_DOCUMENT_ROOT."/actioncomm.class.php"); 33 require_once (DOL_DOCUMENT_ROOT."/facture.class.php"); 34 35 $langs->load("companies"); 36 if ($conf->facture->enabled) $langs->load("bills"); 37 if ($conf->projet->enabled) $langs->load("projects"); 38 39 // Sécurité accés client 40 $socid = $_GET["socid"]; 41 if ($user->societe_id > 0) 42 { 43 $action = ''; 44 $socid = $user->societe_id; 45 } 46 47 $user->getrights('facture'); 48 49 50 51 if ($action == 'recontact') 52 { 53 $dr = mktime(0, 0, 0, $remonth, $reday, $reyear); 54 $sql = "INSERT INTO ".MAIN_DB_PREFIX."soc_recontact (fk_soc, datere, author) VALUES ($socid, $dr,'". $user->login ."')"; 55 $result = $db->query($sql); 56 } 57 58 /* TODO RODO 59 if ($action == 'stcomm') 60 { 61 if ($stcommid <> 'null' && $stcommid <> $oldstcomm) 62 { 63 $sql = "INSERT INTO socstatutlog (datel, fk_soc, fk_statut, author) "; 64 $sql .= " VALUES ('$dateaction',$socid,$stcommid,'" . $user->login . "')"; 65 $result = @$db->query($sql); 66 67 if ($result) 68 { 69 $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=$stcommid WHERE idp=$socid"; 70 $result = $db->query($sql); 71 } 72 else 73 { 74 $errmesg = "ERREUR DE DATE !"; 75 } 76 } 77 78 if ($actioncommid) 79 { 80 $sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm (datea, fk_action, fk_soc, fk_user_author) VALUES ('$dateaction',$actioncommid,$socid,'" . $user->id . "')"; 81 $result = @$db->query($sql); 82 83 if (!$result) 84 { 85 $errmesg = "ERREUR DE DATE !"; 86 } 87 } 88 } 89 */ 90 91 /* 92 * Recherche 93 * 94 */ 95 if ($mode == 'search') 96 { 97 if ($mode-search == 'soc') 98 { 99 $sql = "SELECT s.idp FROM ".MAIN_DB_PREFIX."societe as s "; 100 $sql .= " WHERE lower(s.nom) like '%".strtolower($socname)."%'"; 101 } 102 103 if ( $db->query($sql) ) 104 { 105 if ( $db->num_rows() == 1) 106 { 107 $obj = $db->fetch_object(); 108 $socid = $obj->idp; 109 } 110 $db->free(); 111 } 112 113 if ($user->societe_id > 0) 114 { 115 $socid = $user->societe_id; 116 } 117 118 } 119 120 121 llxHeader(); 122 123 /* 124 * Mode fiche 125 */ 126 if ($socid > 0) 127 { 128 $societe = new Societe($db); 129 $societe->fetch($socid, $to); // si $to='next' ajouter " AND s.idp > $socid ORDER BY idp ASC LIMIT 1"; 130 131 /* 132 * Affichage onglets 133 */ 134 $h = 0; 135 136 $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; 137 $head[$h][1] = $langs->trans("Company"); 138 $h++; 139 140 if ($societe->client==1) 141 { 142 $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; 143 $head[$h][1] = $langs->trans("Customer"); 144 $h++; 145 } 146 if ($societe->client==2) 147 { 148 $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; 149 $head[$h][1] = $langs->trans("Prospect"); 150 $h++; 151 } 152 if ($societe->fournisseur) 153 { 154 $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; 155 $head[$h][1] = $langs->trans("Supplier"); 156 $h++; 157 } 158 159 if ($conf->compta->enabled) { 160 $langs->load("compta"); 161 $hselected=$h; 162 $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; 163 $head[$h][1] = $langs->trans("Accountancy"); 164 $h++; 165 } 166 167 $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; 168 $head[$h][1] = $langs->trans("Note"); 169 $h++; 170 171 if ($user->societe_id == 0) 172 { 173 $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; 174 $head[$h][1] = $langs->trans("Documents"); 175 $h++; 176 } 177 178 $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; 179 $head[$h][1] = $langs->trans("Notifications"); 180 $h++; 181 182 $head[$h][0] = DOL_URL_ROOT.'/societe/info.php?socid='.$societe->id; 183 $head[$h][1] = $langs->trans("Info"); 184 $h++; 185 186 if ($user->societe_id == 0) 187 { 188 $head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark"; 189 $head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark'); 190 $head[$h][2] = 'image'; 191 } 192 193 dolibarr_fiche_head($head, $hselected, $societe->nom); 194 195 /* 196 * 197 */ 198 print "<table width=\"100%\">\n"; 199 print '<tr><td valign="top" width="50%">'; 200 201 print '<table class="border" width="100%">'; 202 203 print '<tr><td>'.$langs->trans("Name").'</td><td colspan="3">'.$societe->nom.'</td></tr>'; 204 205 print '<td>'.$langs->trans("Prefix").'</td><td colspan="3">'; 206 print ($societe->prefix_comm?$societe->prefix_comm:' '); 207 print '</td>'; 208 209 if ($societe->client) 210 { 211 print '<tr>'; 212 print '<td nowrap width="100">'.$langs->trans("CustomerCode"). '</td><td colspan="3">'. $societe->code_client . '</td>'; 213 print '</tr>'; 214 print '<tr>'; 215 print '<td nowrap>'.$langs->trans("CustomerAccountancyCode").'</td><td colspan="3">'.$societe->code_compta.'</td>'; 216 print '</tr>'; 217 } 218 219 if ($societe->fournisseur) 220 { 221 print '<tr>'; 222 print '<td nowrap>'.$langs->trans("SupplierCode"). '</td><td colspan="3">'. $societe->code_fournisseur . '</td>'; 223 print '</tr>'; 224 print '<tr>'; 225 print '<td nowrap>'.$langs->trans("SupplierAccountancyCode").'</td><td colspan="3">'.$societe->code_compta_fournisseur.'</td>'; 226 print '</tr>'; 227 } 228 229 print '<tr><td valign="top">'.$langs->trans("Address").'</td><td colspan="3">'.nl2br($societe->adresse)."</td></tr>"; 230 231 print '<tr><td>'.$langs->trans('Zip').'</td><td>'.$societe->cp.'</td>'; 232 print '<td>'.$langs->trans('Town').'</td><td>'.$societe->ville.'</td></tr>'; 233 234 print '<tr><td>'.$langs->trans('Country').'</td><td colspan="3">'.$societe->pays.'</td></tr>'; 235 236 print '<tr><td>'.$langs->trans("Phone").'</td><td>'.dolibarr_print_phone($societe->tel,$societe->pays_code).' </td><td>'.$langs->trans("Fax").'</td><td>'.dolibarr_print_phone($societe->fax,$societe->pays_code).' </td></tr>'; 237 print '<tr><td>'.$langs->trans("Web")."</td><td colspan=\"3\"><a href=\"http://$societe->url\" target=\"_blank\">$societe->url</a> </td></tr>"; 238 239 // TVA 240 print '<tr><td nowrap>'.$langs->trans('VATIntraVeryShort').'</td><td colspan="3">'; 241 print $societe->tva_intra; 242 print '</td></tr>'; 243 244 print '<tr><td>'.$langs->trans('Capital').'</td><td colspan="3">'.$societe->capital.' '.$langs->trans("Currency".$conf->monnaie).'</td></tr>'; 245 246 // Type + Staff 247 $arr = $societe->typent_array($societe->typent_id); 248 $societe->typent= $arr[$societe->typent_id]; 249 print '<tr><td>'.$langs->trans("Type").'</td><td>'.$societe->typent.'</td><td>'.$langs->trans("Staff").'</td><td>'.$societe->effectif.'</td></tr>'; 250 251 if ($societe->client == 1) 252 { 253 // Remise permanente 254 print '<tr><td nowrap>'; 255 print '<table width="100%" class="nobordernopadding"><tr><td nowrap>'; 256 print $langs->trans("CustomerRelativeDiscount"); 257 print '<td><td align="right">'; 258 print '<a href="'.DOL_URL_ROOT.'/comm/remise.php?id='.$societe->id.'">'.img_edit($langs->trans("Modify")).'</a>'; 259 print '</td></tr></table>'; 260 print '</td><td colspan="3">'.$societe->remise_client." %</td>"; 261 print '</tr>'; 262 263 // Remise avoirs 264 print '<tr><td nowrap>'; 265 print '<table width="100%" class="nobordernopadding">'; 266 print '<tr><td nowrap>'; 267 print $langs->trans("CustomerAbsoluteDiscount"); 268 print '<td><td align="right">'; 269 print '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$societe->id.'">'.img_edit($langs->trans("Modify")).'</a>'; 270 print '</td></tr></table>'; 271 print '</td>'; 272 print '<td colspan="3">'; 273 $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc"; 274 $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc"; 275 $sql .= " WHERE rc.fk_soc =". $societe->id; 276 $sql .= " AND rc.fk_user = ".$user->id." AND fk_facture IS NULL"; 277 $resql=$db->query($sql); 278 if ($resql) 279 { 280 $obj = $db->fetch_object($resql); 281 if ($obj->amount_ht) print $obj->amount_ht.' '.$langs->trans("Currency".$conf->monnaie); 282 else print $langs->trans("None"); 283 } 284 print '</td>'; 285 print '</tr>'; 286 } 287 288 print "</table>"; 289 290 print "</td>\n"; 291 292 293 print '<td valign="top" width="50%">'; 294 295 // Nbre max d'éléments des petites listes 296 $MAXLIST=5; 297 $tableaushown=0; 298 299 /** 300 * Dernieres factures 301 */ 302 if ($conf->facture->enabled && $user->rights->facture->lire) 303 { 304 print '<table class="noborder" width="100%">'; 305 306 $sql = "SELECT s.nom, s.idp, f.facnumber, f.amount, f.total, f.total_ttc, ".$db->pdate("f.datef")." as df, f.paye as paye, f.fk_statut as statut, f.rowid as facid "; 307 $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f"; 308 $sql .= " WHERE f.fk_soc = s.idp AND s.idp = ".$societe->id; 309 $sql .= " ORDER BY f.datef DESC"; 310 311 $resql=$db->query($sql); 312 if ($resql) 313 { 314 $var=true; 315 $num = $db->num_rows($resql); 316 $i = 0; 317 if ($num > 0) 318 { 319 $tableaushown=1; 320 print '<tr class="liste_titre">'; 321 print '<td colspan="4"><table width="100%" class="noborder"><tr><td>'.$langs->trans("LastBills",($num<=$MAXLIST?"":$MAXLIST)).'</td><td align="right"><a href="'.DOL_URL_ROOT.'/compta/facture.php?socidp='.$societe->id.'">'.$langs->trans("AllBills").' ('.$num.')</td></tr></table></td>'; 322 print '</tr>'; 323 } 324 325 while ($i < $num && $i < $MAXLIST) 326 { 327 $objp = $db->fetch_object($resql); 328 $var=!$var; 329 print "<tr $bc[$var]>"; 330 print "<td><a href=\"../compta/facture.php?facid=$objp->facid\">".img_object($langs->trans("ShowBill"),"bill")." ".$objp->facnumber."</a></td>\n"; 331 if ($objp->df > 0 ) 332 { 333 print "<td align=\"right\">".dolibarr_print_date($objp->df)."</td>\n"; 334 } 335 else 336 { 337 print "<td align=\"right\"><b>!!!</b></td>\n"; 338 } 339 print "<td align=\"right\">".price($objp->total_ttc)."</td>\n"; 340 341 $fac = new Facture($db); 342 print "<td align=\"center\">".($fac->LibStatut($objp->paye,$objp->statut,1))."</td>\n"; 343 print "</tr>\n"; 344 $i++; 345 } 346 $db->free($resql); 347 } 348 else 349 { 350 dolibarr_print_error($db); 351 } 352 print "</table>"; 353 } 354 355 /* 356 * Derniers projets associés 357 */ 358 if ($conf->projet->enabled) 359 { 360 print '<table class="noborder" width="100%">'; 361 362 $sql = "SELECT p.rowid,p.title,p.ref,".$db->pdate("p.dateo")." as do"; 363 $sql .= " FROM ".MAIN_DB_PREFIX."projet as p"; 364 $sql .= " WHERE p.fk_soc = $societe->id"; 365 $sql .= " ORDER by p.dateo"; 366 367 if ( $db->query($sql) ) 368 { 369 $var=true; 370 $i = 0 ; 371 $num = $db->num_rows(); 372 if ($num > 0) 373 { 374 $tableaushown=1; 375 print '<tr class="liste_titre">'; 376 print '<td colspan="2"><table width="100%" class="noborder"><tr><td>'.$langs->trans("LastProjects",($num<=$MAXLIST?"":$MAXLIST)).'</td><td align="right"><a href="'.DOL_URL_ROOT.'/projet/index.php?socidp='.$societe->id.'">'.$langs->trans("AllProjects").' ('.$num.')</td></tr></table></td>'; 377 print '</tr>'; 378 } 379 while ($i < $num && $i < $MAXLIST) 380 { 381 $obj = $db->fetch_object(); 382 $var = !$var; 383 print "<tr $bc[$var]>"; 384 print '<td><a href="../projet/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowProject"),"project")." ".$obj->title.'</a></td>'; 385 386 print "<td align=\"right\">".strftime("%d %b %Y", $obj->do) ."</td></tr>"; 387 $i++; 388 } 389 $db->free(); 390 } 391 else 392 { 393 dolibarr_print_error($db); 394 } 395 print "</table>"; 396 } 397 398 // Lien recap 399 if ($tableaushown) print '<br>'; 400 print '<table class="noborder" width="100%">'; 401 print '<tr class="liste_titre">'; 402 print '<td colspan="4"><table width="100%" class="noborder"><tr><td>'.$langs->trans("Summary").'</td><td align="right"><a href="'.DOL_URL_ROOT.'/compta/recap-client.php?socid='.$societe->id.'">'.$langs->trans("ShowLog").'</td></tr></table></td>'; 403 print '</tr>'; 404 print '</table>'; 405 406 print "</td></tr>"; 407 print "</table></div>\n"; 408 409 410 /* 411 * Barre d'actions 412 * 413 */ 414 print '<div class="tabsAction">'; 415 416 if ($user->societe_id == 0) 417 { 418 // Si société cliente ou prospect, on affiche bouton "Créer facture client" 419 if ($societe->client != 0 && $conf->facture->enabled && $user->rights->facture->creer) { 420 $langs->load("bills"); 421 print "<a class=\"tabAction\" href=\"facture.php?action=create&socidp=$societe->id\">".$langs->trans("AddBill")."</a>"; 422 } 423 424 if ($conf->deplacement->enabled) { 425 $langs->load("trips"); 426 print "<a class=\"tabAction\" href=\"deplacement/fiche.php?socid=$societe->id&action=create\">".$langs->trans("AddTrip")."</a>"; 427 } 428 } 429 430 if ($user->rights->societe->contact->creer) 431 { 432 print "<a class=\"tabAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&action=create\">".$langs->trans("AddContact")."</a>"; 433 } 434 435 print '</div>'; 436 print "<br>\n"; 437 438 /* 439 * 440 * 441 */ 442 if ($action == 'changevalue') 443 { 444 445 print "<hr noshade>"; 446 print "<form action=\"index.php?socid=$societe->id\" method=\"post\">"; 447 print "<input type=\"hidden\" name=\"action\" value=\"cabrecrut\">"; 448 print "Cette société est un cabinet de recrutement : "; 449 print "<select name=\"selectvalue\">"; 450 print "<option value=\"\">"; 451 print "<option value=\"t\">Oui"; 452 print "<option value=\"f\">Non"; 453 print "</select>"; 454 print "<input type=\"submit\" class=\"button\" value=\"".$langs->trans("Update")."\">"; 455 print "</form>\n"; 456 457 } 458 else 459 { 460 /* 461 * 462 * Liste des contacts 463 * 464 */ 465 print '<table class="noborder" width="100%">'; 466 467 print '<tr class="liste_titre"><td>'.$langs->trans("Firstname").' '.$langs->trans("Lastname").'</td>'; 468 print '<td>'.$langs->trans("Poste").'</td><td>'.$langs->trans("Tel").'</td>'; 469 print '<td>'.$langs->trans("Fax").'</td><td>'.$langs->trans("EMail").'</td>'; 470 print "<td align=\"center\"> </td>"; 471 print '<td> </td>'; 472 print "</tr>"; 473 474 $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note"; 475 $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p"; 476 $sql.= " WHERE p.fk_soc = ".$societe->id; 477 $sql.= " ORDER by p.datec"; 478 479 $result = $db->query($sql); 480 $i = 0 ; $num = $db->num_rows($result); 481 $var=1; 482 while ($i < $num) 483 { 484 $obj = $db->fetch_object($result); 485 $var = !$var; 486 487 print "<tr $bc[$var]>"; 488 489 print '<td>'; 490 print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->idp.'">'.img_object($langs->trans("ShowContact"),"contact").' '.$obj->firstname.' '. $obj->name.'</a> '; 491 492 if (trim($obj->note)) 493 { 494 print '<br>'.nl2br(trim($obj->note)); 495 } 496 print '</td>'; 497 print '<td>'.$obj->poste.' </td>'; 498 print '<td><a href="../comm/action/fiche.php?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->phone.'</a> </td>'; 499 print '<td><a href="../comm/action/fiche.php?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->fax.'</a> </td>'; 500 print '<td><a href="../comm/action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->email.'</a> </td>'; 501 502 print '<td align="center">'; 503 504 if ($user->rights->societe->contact->creer) 505 { 506 print "<a href=\"../contact/fiche.php?action=edit&id=$obj->idp\">"; 507 print img_edit(); 508 print '</a>'; 509 } 510 else print ' '; 511 512 print '</td>'; 513 514 print '<td align="center"><a href="../comm/action/fiche.php?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$societe->id.'">'; 515 print img_object($langs->trans("Rendez-Vous"),"action"); 516 print '</a></td>'; 517 518 print "</tr>\n"; 519 $i++; 520 $tag = !$tag; 521 } 522 print "</table><br>"; 523 524 /* 525 * Listes des actions effectuées 526 */ 527 print '<table width="100%" class="noborder">'; 528 print '<tr class="liste_titre"><td colspan="8"><a href="action/index.php?socid='.$societe->id.'">'.$langs->trans("ActionsDone").'</a></td></tr>'; 529 530 $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.code as acode, c.libelle, a.propalrowid, a.fk_user_author, fk_contact, u.code, u.rowid "; 531 $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u "; 532 $sql .= " WHERE a.fk_soc = $societe->id "; 533 $sql .= " AND u.rowid = a.fk_user_author"; 534 $sql .= " AND c.id=a.fk_action "; 535 $sql .= " ORDER BY a.datea DESC, a.id DESC"; 536 537 $result=$db->query($sql); 538 if ($result) 539 { 540 $i = 0 ; 541 $num = $db->num_rows($result); 542 $var=true; 543 544 while ($i < $num) 545 { 546 $var = !$var; 547 548 $obj = $db->fetch_object($result); 549 print "<tr $bc[$var]>"; 550 551 if ($oldyear == strftime("%Y",$obj->da) ) { 552 print '<td width="30" align="center">|</td>'; 553 } else { 554 print '<td width="30" align="center">'.strftime("%Y",$obj->da)."</td>\n"; 555 $oldyear = strftime("%Y",$obj->da); 556 } 557 558 if ($oldmonth == strftime("%Y%b",$obj->da) ) { 559 print '<td width="30" align="center">|</td>'; 560 } else { 561 print '<td width="30" align="center">'.strftime("%b",$obj->da)."</td>\n"; 562 $oldmonth = strftime("%Y%b",$obj->da); 563 } 564 565 print '<td width="20">'.strftime("%d",$obj->da)."</td>\n"; 566 print '<td width="30">'.strftime("%H:%M",$obj->da)."</td>\n"; 567 568 print '<td> </td>'; 569 570 print '<td>'; 571 if ($obj->propalrowid) 572 { 573 print '<a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.$obj->propalrowid.'">'.img_object($langs->trans("ShowTask"),"task"); 574 $transcode=$langs->trans("Action".$obj->acode); 575 $libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle); 576 print $libelle; 577 print '</a></td>'; 578 } 579 else 580 { 581 print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?id='.$obj->id.'">'.img_object($langs->trans("ShowTask"),"task"); 582 $transcode=$langs->trans("Action".$obj->acode); 583 $libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle); 584 print $libelle; 585 print '</a></td>'; 586 } 587 588 // Contact pour cette action 589 if ($obj->fk_contact) { 590 $contact = new Contact($db); 591 $contact->fetch($obj->fk_contact); 592 print '<td><a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$contact->id.'">'.img_object($langs->trans("ShowContact"),"contact").' '.$contact->fullname.'</a></td>'; 593 } else { 594 print '<td> </td>'; 595 } 596 597 print '<td><a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$obj->rowid.'">'.$obj->code.'</a></td>'; 598 print "</tr>\n"; 599 $i++; 600 } 601 602 $db->free(); 603 } else { 604 dolibarr_print_error($db); 605 } 606 print "</table>"; 607 608 } 609 610 } else { 611 print "Erreur"; 612 } 613 $db->close(); 614 615 616 llxFooter('$Date: 2005/12/02 21:11:49 $ - $Revision: 1.80 $'); 617 618 ?>
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 |
|