123456789101112131415161718192021222324252627282930313233 |
- <?
- header("Content-Type: text/html; charset=utf-8");
- header("Expires: 0");
- session_start();
- $printid = $_SESSION['printer'];
- if ($printid) {
- echo '<!DOCTYPE html>
- <html lang="en" manifest="manifest.appcache">
- <script>
- function printit()
- {
- window.print();
- }
- </script>
- <header></header><body onload="printit()">';
- foreach (array_keys($_REQUEST) as $var)
- {
- ${$var}=$_REQUEST[$var];
- //echo "<b>$var:</b> ${$var} <br>";
- }
- $logged_me_in_successfully234 = true;
- $new = 2;
- $staff_id = $id;
- $print = true;
- $cmdlevel = 10;
- $staff_name = $name;
- require_once "doctrine/bootstrap.php";
- require_once "auth.php";
- require "staff.php";//?staff_id=".$id."&new=2";
- }
- echo '</body></html>';
|