示例#1
0
$smarty->display('main.tpl');

?>
<table class="invoice_table" >
	<tr class="form_invoice_head">
	    <td width="75%"><font color="#FFFFFF"><?php echo gettext("INVOICE: "); ?></font><font color="#FFFFFF"><b><?php echo $invoice->getTitle();  ?></b></font></td>
	    <td width="25%"><font color="#FFFFFF"><?php echo gettext("REF: "); ?> </font><font color="#EE6564"> <?php echo $invoice->getReference(); ?></font></td>
	</tr>
	<tr>
		<td>
		&nbsp;
		</td>
	</tr>
	<tr>
		<td >
		 <font style="font-weight:bold; " ><?php echo gettext("FOR : "); ?></font>  <?php echo $invoice->getUsernames();  ?>

		</td>
		<td>
		<font style="font-weight:bold; " ><?php echo gettext("DATE : "); ?></font>  <?php echo $invoice->getDate();  ?>
		</td>
	</tr>
	<tr>
		<td>
		 <?php if($invoice->getStatusDisplay()==0) $color="color:#5FA631;";
		 	   else $color="color:#EE6564;"    ?>
		 <font style="font-weight:bold;" ><?php echo gettext("STATUS : "); ?></font> <font style="<?php echo $color; ?>" >  <?php echo $invoice->getStatusDisplay($invoice->getStatus());  ?> </font>
		 </td>
	</tr>
	<tr>
		<td colspan="2">
示例#2
0
echo $invoice->getReference();
?>
</font></td>
    </tr>
    <tr>
        <td>
        &nbsp;
        </td>
    </tr>
    <tr>
        <td >
         <font style="font-weight:bold; " ><?php 
echo gettext("FOR : ");
?>
</font>  <?php 
echo $invoice->getUsernames();
?>

        </td>
        <td>
        <font style="font-weight:bold; " ><?php 
echo gettext("DATE : ");
?>
</font>  <?php 
echo $invoice->getDate();
?>
        </td>
    </tr>
    <tr>
        <td>
         <?php