/[dolibarr]/dolibarr/htdocs/admin/facture.php
ViewVC logotype

Diff of /dolibarr/htdocs/admin/facture.php

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

revision 1.49 by eldy, Sat Sep 17 00:53:49 2005 UTC revision 1.50 by eldy, Wed Dec 7 01:06:53 2005 UTC
# Line 184  $handle=opendir($dir); Line 184  $handle=opendir($dir);
184  $var=True;  $var=True;
185  while (($file = readdir($handle))!==false)  while (($file = readdir($handle))!==false)
186  {  {
187    if (substr($file, strlen($file) -12) == '.modules.php' && substr($file,0,4) == 'pdf_')      if (eregi('\.modules\.php$',$file) && substr($file,0,4) == 'pdf_')
188      {      {
189            $var = !$var;          $var = !$var;
190        $name = substr($file, 4, strlen($file) -16);          $name = substr($file, 4, strlen($file) -16);
191        $classname = substr($file, 0, strlen($file) -12);          $classname = substr($file, 0, strlen($file) -12);
192        
193        print '<tr '.$bc[$var].'><td width="100">';          print '<tr '.$bc[$var].'><td width="100">';
194        echo "$name";          echo "$name";
195        print "</td><td>\n";          print "</td><td>\n";
196        require_once($dir.$file);          require_once($dir.$file);
197        $obj = new $classname($db);          $obj = new $classname($db);
198              
199        print $obj->description;          print $obj->description;
200        
201        print '</td><td align="center">';          print '</td><td align="center">';
202        
203        if ($facture_addon_var_pdf == "$name")          if ($facture_addon_var_pdf == "$name")
204          {          {
205        print '&nbsp;';              print '&nbsp;';
206        print '</td><td align="center">';              print '</td><td align="center">';
207            print img_tick();              print img_tick();
208          }          }
209        else          else
210          {          {
211            print '&nbsp;';              print '&nbsp;';
212        print '</td><td align="center">';              print '</td><td align="center">';
213        print '<a href="facture.php?action=setpdf&amp;value='.$name.'">'.$langs->trans("Default").'</a>';              print '<a href="facture.php?action=setpdf&amp;value='.$name.'">'.$langs->trans("Default").'</a>';
214          }          }
215          print "</td></tr>\n";          print "</td></tr>\n";
216        
217      }      }
218  }  }
219  closedir($handle);  closedir($handle);

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

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