コード例 #1
0
$user = $g_display["user"];
$invoice = $g_display["invoice"];
$quotation = $g_display["quotation"];
?>
<p>
	Chèr(e) <?php 
echo $user->get_name();
?>
,<br/>
	Vous avez fait une autorisation de paiement pour le devis suivant.<br/>
	<br/>
	<?php 
echo $quotation->label;
?>
	<br/>
	<br/>
	L'évènement a été confirmé. Votre autorisation de paiement sera prélevée.<br/>
	Voici une facture pour ce paiement.<br/>
	<br/>
<?php 
print_bill($invoice);
?>
	<br/>
	Vous pouvez accèder à cette facture via ce lien permanent : <a href="<?php 
echo $invoice->url();
?>
"><?php 
echo $invoice->url();
?>
</a>
</p>
コード例 #2
0
ファイル: bill_retrieve.php プロジェクト: centaurustech/truc
<?php

$bill = $g_display["bill"];
?>
<div style="position: absolute; top: 30px; left: 50px;">
	<a href="<?php 
echo $bill->url_pdf();
?>
">Version PDF</a>
</div>
<?php 
print_bill($bill);
コード例 #3
0
<?php

require_once BASE_DIR . "/include/constants.inc";
require_once BASE_DIR . "/include/globals.inc";
require_once BASE_DIR . "/include/misc.inc";
require_once BASE_DIR . "/include/print.inc";
require_once BASE_DIR . "/include/format.inc";
$bill = Bill::get_from_id(100077);
?>

<?php 
print_bill($bill, PRINT_BILL_CONTEXT_DEFAULT, PRINT_BILL_FORMAT_PDF);
        }
        echo "</table>" . "\n" . "<br/>";
        echo "<table border=\"2\" style=\"text-align:center;\" align=\"center\" width=\"200\">" . "\n";
        echo "</tr><td>Total Amount</td><td>{$total_amount}</td></tr>\n";
        echo "</table>" . "\n" . "<br/>";
        $items = "\"" . $fname . "\",\"" . $lname . "\",\"" . $cust_id . "\",\"" . $total_amount . "\"";
        $query = "insert into `BILL`(`Customer_Fname`,`Customer_Lname`,`Customer_Id`,`Total_Amount`)values (" . $items . ");";
        $result = mysql_query($query);
        $query = "SELECT * FROM BILL;";
        $res = mysql_query($query);
        $order_id = mysql_num_rows($res);
        for ($i = 0; $i < $num_items; $i++) {
            $query = "SELECT Name,Price FROM MENU WHERE Menu_Id={$menu_id[$i]};";
            $menu = mysql_query($query);
            $q = $quantity[$i];
            $p = mysql_result($menu, 0, 1);
            $name = mysql_result($menu, 0, 0);
            $items = "\"" . $order_id . "\",\"" . $name . "\",\"" . $q . "\",\"" . $p . "\"";
            $query = "insert into `MENU_BILL`(`Order_Id`,`Name`,`Quantity`,`Price`)values (" . $items . ");";
            $result = mysql_query($query);
        }
        $items = "\"" . $address . "\",\"" . $contact . "\",\"" . $cust_id . "\",\"" . $order_id . "\"";
        $query = "insert into `HOME_DELIVERY`(`Address`,`Contact`,`Cust_Id`,`Order_Id`)values (" . $items . ");";
        $result = mysql_query($query);
    }
}
print_bill($_POST["menu"], $_POST["Customer_Id"], $_POST["Fname"], $_POST["Lname"], $_POST["Contact"], $_POST["Email_Id"], $_POST["quantity"], $_POST["address"]);
?>
</body>
</html>
コード例 #5
0
<?php

global $g_display;
$bill = $g_display["bill"];
$event = $bill->get_event();
?>
<div class="evt_title inline"><p>{{Order tickets}} - {{Confirmation}}</p></div>
<?php 
print_bill($bill, PRINT_BILL_CONTEXT_CONFIRMATION);
?>
<br/>
<?php 
if ($bill->total_ttc > 0) {
    ?>
<table class="evt_payment">
	<tr>
		<td class="evt_pay" width="500"><?php 
    payment_button();
    ?>
</td>
		<td width="200">&nbsp;</td>
		<td align="right" class="evt_pay"><?php 
    bitcoin_button();
    ?>
</td>
	</tr>
</table>
<?php 
} else {
    ?>
<table class="evt_payment">