Hi
könnte mir das bitte jemand so umändern das es in einer pdf ausgegben wird und nicht als tabelle Waäre euch echt dankbar
könnte mir das bitte jemand so umändern das es in einer pdf ausgegben wird und nicht als tabelle Waäre euch echt dankbar
PHP:
elseif($mode=="ls") #show logfile (sent)
{
$file = "/var/spool/fax/doneq/q".$jid;
if(is_file($file))
{
$logfile = fopen($file,"r");
if($logfile)
{
echo("<font color=ff0000><b>showing $file</b></font><br>\n");
echo("<table width=\"60%\">\n");
echo("<tr>\n <td bgcolor=#cccccc>\n <b>var</b>\n </td>\n <td bgcolor=#cccccc>\n <b>value</b>\n </td>\n</tr>\n");
while(!feof($logfile) and $logfile)
{
$log_line = fgets($logfile,4096);
$log_data = explode(":",$log_line,2);
if($log_data[0] == "" and $log_data[1] == "") continue;
echo("<tr>\n <td bgcolor=#cccccc>\n ".$log_data[0]."\n </td>\n <td bgcolor=#cccccc>\n ".$log_data[1]." </td>\n</tr>\n");
}
echo("</table>");
}
else $error .= "logfile $logfile could not be opened/read<br>\n";
}
else $error .= "logfile $logfile could not be opened/read<br>\n";
}