/[health_html]/inc/print.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /inc/print.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Fri Sep 7 15:07:17 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Modularized some pages. Some pages are now printable. Added a JavaScript date-checking module. Minor bugfixes.

1 <?php
2 function GetPrint($vars) {
3 $tp = new Smarty();
4 if (!is_array($vars)) $vars = array($vars);
5 $vars2 = array();
6 for ($i = 0; $i < count($vars); $i++) {
7 $var = $vars[$i];
8 global $$var;
9 array_push($vars2, array("name" => $var,
10 "value" => $$var));
11 }
12 $tp->assign("vars", $vars2);
13 global $section, $section_menu;
14 $tp->assign("section", $section);
15 $tp->assign("section_menu", $section_menu);
16 return $tp->fetch("print.tpl");
17 }
18 ?>

  ViewVC Help
Powered by ViewVC 1.1.26