Example #1
0
//echo "admin.php start<br>\n";
// includes
require_once 'database.php';
require_once 'menue.php';
require_once 'getorder.php';
$servername = "localhost";
$username = "******";
$password = "******";
$dbname = "hififabrik_intern";
if (CheckDataBaseReady($servername, $username, $password, $dbname)) {
    echo "<br>database ready to use<br>\n";
} else {
    echo "<br>database NOT ready to use<br>\n";
}
echo "admin.php start<br>\n";
GetMKZandUGP($MKZ, $UGP);
echo "admin.php start<br>\n";
$items = LoadMenuItems($servername, $username, $password, $dbname, $MKZ, $UGP);
$buchknz = LoadMenuItems($servername, $username, $password, $dbname, 'BUCHKZ', $UGP);
BuildMenuTable($buchknz, 1050, 1, 3, 6, 50, 350, "center", array("#7fff0", "#f5f5dc", "#6495ed"));
$order = new mag_order();
echo "<br>admin.php end<br>\n";
echo "<br></body><br>\n";
echo "<br></html><br>\n";
echo "vor require<br>\n";
require 'fpdf.php';
echo "vor new pdf<br>\n";
//$orientation='P', $unit='mm', $size='A4'
$pdf = new FPDF('P', 'mm', array(105, 148));
echo "vor add page<br>\n";
$pdf->AddPage();
Example #2
0

</head>
<body style="font-family: Arial; font-size: 12pt; height: 24px">

<?php 
/**
 * Created by PhpStorm.
 * User: Rudi
 * Date: 24.11.2015
 * Time: 16:13
 */
require_once 'database.php';
require_once 'menue.php';
require_once 'getorder.php';
GetMKZandUGP($MKZ, $UGP, $order, $func);
$func = "WARES";
echo "<form action=\"lager.php" . "?MKZ=" . $MKZ . "&UPG=" . $UGP . "&function=" . $func . "\" method=\"POST\">";
$servername = "localhost";
$username = "******";
$password = "******";
$dbname = "hififabrik_intern";
if (CheckDataBaseReady($servername, $username, $password, $dbname)) {
    //    echo "<br>database ready to use<br>\n";
} else {
    echo "<br>database NOT ready to use<br>\n";
}
if ($func == "") {
    $lager = LoadMenuItems($servername, $username, $password, $dbname, 'LAGER', 'admin');
    BuildMenuTable($lager, 300, 1, 1, 3, 50, 350, "center", array("#7fff0", "#f5f5dc", "#6495ed"));
} else {