<?php

include 'funcoes.php';
$c = new stdClass();
$expansao = new ExpansaoDAO();
$status = $expansao->listarStatus();
$consultor = $expansao->relatorioDiretoria(1, $c);
$dia = date('d/m/Y H:i:s');
$HTML = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Sistecart</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<script type="text/javascript" src="https://www.google.com/jsapi"></script>
</head>
<body>';
$HTML .= '<table cellpadding="1" cellspacing="4" style="font-family:Arial;font-size:10px; border:none;">
	<tr>		
		<td style="border:none;padding-bottom:10px;font-size:13px" colspan="' . (count($consultor) + 2) . '">
			&nbsp;DATA: ' . $dia . '<br />
			&nbsp;TOTAL DE FICHAS DO DIA: ' . $expansao->relatorioDiretoria(4, $c) . '
		</td>
	</tr>
	<tr>
		<td style="border:solid 1px #999;background-color:#CCC;font-weight:bold;width:180px;text-align:center" rowspan="2">ATIVIDADE</td>
		<td style="border:solid 1px #999;background-color:#CCC;text-align:center;font-weight:bold;" colspan="' . (count($status) + 1) . '">STATUS</td>
	</tr>
	<tr>' . "\n";
foreach ($status as $b => $res) {
    $HTML .= "\t\t<td style=\"border:solid 1px #999;background-color:#CCC;font-weight:bold;text-align:center;width:100px;\">";
コード例 #2
0
<?php

include 'funcoes.php';
$c = new stdClass();
$expansao = new ExpansaoDAO();
$status = $expansao->listarStatus();
$consultor = $expansao->relatorioDiretoria(1, $c);
$HTML = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Sistecart</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<table cellpadding="1" cellspacing="4" style="font-family:Arial;font-size:12px; border:none;">
	<tr>		
		<td style="border:solid 1px #999;font-weight:bold" colspan="' . (count($consultor) + 2) . '">
			&nbsp;Data: ' . date('d/m/Y H:i:s') . '<br />
			&nbsp;Total Pedidos Dia: ' . $expansao->relatorioDiretoria(4, $c) . '
		</td>
	</tr>
	<tr>
		<td style="border:solid 1px #999;background-color:#CCC;font-weight:bold;width:180px" rowspan="2">&nbsp;Atividade</td>
		<td style="border:solid 1px #999;background-color:#CCC;text-align:center;font-weight:bold;" colspan="' . (count($consultor) + 1) . '">Consultores</td>
	</tr>
	<tr>' . "\n";
foreach ($consultor as $b1 => $res1) {
    $HTML .= "\t\t<td style=\"border:solid 1px #999;background-color:#CCC;font-weight:bold;text-align:center;width:100px;\">";
    $HTML .= $res1->nome . "</td>\n";
}