/[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

Annotation of /inc/print.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Tue Oct 16 13:07:03 2001 UTC (17 years, 10 months ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines
Added a favicon for IE. Added a new Smarty modifier (js_popup). Fixed the news editor. Other bugfixes.

1 ravilov 1.1 <?php
2 ravilov 1.2 function GetPrint($vars, $button = true) {
3 ravilov 1.1 $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 ravilov 1.2 $tp->assign("button", $button);
17 ravilov 1.1 return $tp->fetch("print.tpl");
18     }
19     ?>

  ViewVC Help
Powered by ViewVC 1.1.26