Exemplo n.º 1
0
function beginDocument($title, $user, $javascript = "")
{
    beginDocument_noHead($title, $user, $javascript);
    echoDocumentHead();
}
Exemplo n.º 2
0
function beginDocument($title, $user, $javascript = "")
{
    global $PRINTFLAG;
    beginDocument_noHead($title, $user, $javascript);
    if (!$PRINTFLAG) {
        echoDocumentHead();
    }
}
Exemplo n.º 3
0
<?php

# print_money_receipt displays a money receipt, which could get printed out via the Browsers Print-button
session_start();
require "accrp.php";
require "security/secure.php";
beginDocument_noHead("Enter Salary Element", $sess_user);
if ($vr_no) {
    $db = getDBConnection();
    $result = mysql_query("SELECT * FROM TRANS WHERE VR_NO={$vr_no} AND DR_CR='D'", $db);
    checkMySQLError();
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
    if (mysql_fetch_array($result, MYSQL_ASSOC)) {
        die("more than one Voucher found! Database-integrity is in Danger! Call your System-maintainer!");
    }
    if ($row["VR_TP"] != "CR") {
        die("The given Voucher-No is not a CreditVoucher !");
    }
    for ($i = 0; $i < 2; $i++) {
        ?>
	<div align="center">
	<h1>Centre For The Rehabilitation Of The Paralysed (CRP)</h1>
	crp-Chapain, Savar, Dhaka-1343<br>
	Tel:7710464-5, Fax:7710069<br>
	Email: info@crp-bangladesh.org<br>
	<h2>MONEY RECEIPT</h2>
	</div>
	<div align="right">Date: <?php 
        echo get_today_hrd_string();
        ?>
 </div>