Changeset 133 for www/finance/manage.php
- Timestamp:
- Jan 10, 2009, 4:29:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/manage.php
r76 r133 225 225 while($Bill = $DbResult->fetch_array()) 226 226 { 227 file_put_contents('doklady/ Doklad'.$Bill['id'].'.pdf', $Bill['pdf']);227 file_put_contents('doklady/doklad-'.$Bill['id'].'.pdf', $Bill['pdf']); 228 228 echo($Bill['id'].','); 229 229 } … … 231 231 } 232 232 233 ConvertPDFDataToFiles(); 234 235 //ImportOldData(); 233 function CheckPDFFiles() 234 { 235 global $Database, $InvoiceGenerator; 236 237 $DbResult = $Database->query('SELECT * FROM finance_bills'); 238 while($Bill = $DbResult->fetch_array()) 239 { 240 file_put_contents('doklady2/doklad-'.$Bill['id'].'.pdf', file_get_contents('doklady/doklad-'.$Bill['id'].'.pdf')); 241 //echo($InvoiceGenerator->HasPDFFile($Bill['id']).','); 242 } 243 244 } 245 246 //ConvertPDFDataToFiles(); 247 248 //CheckPDFFiles(); 249 ImportOldData(); 236 250 237 251 ?>
Note:
See TracChangeset
for help on using the changeset viewer.