break; default: $out .= "<tr><td>$statusText {$Payment['PaymentType']} <a target='_blank' href='http://{$_SERVER['HTTP_HOST']}$dir/#/Pages/Project/{$Payment['ProjectId']}'>Projekt {$Payment['ProjectId']} $name</a> ".number_format($Payment['InKr'],2,',','.')."kr admin:".number_format($Payment['AdminCharge'],2,',','.')."kr</td></tr>"; } $i++; } $out .= "</table></td><td>{$progress['Status']}</td> </tr>"; /*print "<tr><td colspan='15'>"; var_dump($progress); print "</td></tr>";*/ $report .= $out; print $out; ob_flush();flush(); } $f->processOCRImport(null,'result'); $report .="</table>"; print "</table>"; $db->Query("END TRANSACTION"); file_put_contents($target.".htm",$report); } else { ?><form enctype="multipart/form-data" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="OCRFile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> <? } function HandleError($message) {