Changeset 76 for www/finance/manage.php


Ignore:
Timestamp:
May 27, 2008, 7:08:46 AM (16 years ago)
Author:
george
Message:

Aktualizováno: Otevírací doba Koliby.
Přidáno: Export faktur do PDF souborů.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/finance/manage.php

    r75 r76  
    219219}
    220220
    221 ImportOldData();
     221function ConvertPDFDataToFiles()
     222{
     223  global $Database;
     224  $DbResult = $Database->query('SELECT * FROM finance_bills');
     225  while($Bill = $DbResult->fetch_array())
     226  {
     227    file_put_contents('doklady/Doklad '.$Bill['id'].'.pdf', $Bill['pdf']);
     228    echo($Bill['id'].',');
     229  }
     230
     231}
     232
     233ConvertPDFDataToFiles();
     234
     235//ImportOldData();
    222236
    223237?>
Note: See TracChangeset for help on using the changeset viewer.