/[dolibarr]/dolibarr/htdocs/telephonie/client/liste.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/client/liste.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by eldy, Sun Jan 30 01:32:28 2005 UTC revision 1.3 by rodolphe, Tue Sep 6 14:58:25 2005 UTC
# Line 1  Line 1 
1  <?PHP  <?PHP
2  /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>  /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3   *   *
4   * This program is free software; you can redistribute it and/or modify   * 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   * it under the terms of the GNU General Public License as published by
# Line 65  $pagenext = $page + 1; Line 65  $pagenext = $page + 1;
65    
66    
67  $sql = "SELECT s.idp as socidp, s.nom, count(l.ligne) as ligne, cs.ca";  $sql = "SELECT s.idp as socidp, s.nom, count(l.ligne) as ligne, cs.ca";
68  $sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."telephonie_societe_ligne as l";  $sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
69    $sql .= ",".MAIN_DB_PREFIX."telephonie_societe_ligne as l";
70    $sql .= ",".MAIN_DB_PREFIX."societe_perms as sp";
71    
72  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."telephonie_client_stats as cs ON s.idp=cs.fk_client_comm";  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."telephonie_client_stats as cs ON s.idp=cs.fk_client_comm";
73    
74  $sql .= " WHERE l.fk_client_comm = s.idp ";  $sql .= " WHERE l.fk_client_comm = s.idp ";
75    
76    $sql .= " AND s.idp = sp.fk_soc";
77    $sql .= " AND sp.fk_user = ".$user->id." AND sp.pread = 1";
78    
79  if ($_GET["search_client"])  if ($_GET["search_client"])
80  {  {
81    $sel = urldecode($_GET["search_client"]);    $sel = urldecode($_GET["search_client"]);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26