/[corp_html]/search.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 /search.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Fri Feb 23 15:21:46 2001 UTC (23 years, 2 months ago) by dpavlin
Branch: MAIN
Changes since 1.1: +3 -1 lines
initial work on search

1 dpavlin 1.1 <?php
2     require("Smarty.class.php");
3     require("conn.inc");
4    
5     $smarty = new Smarty;
6    
7     $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9     $section="search";
10    
11     $title="";
12     $lpic="search"; $lext=".jpg";
13     $mpic="search.gif";
14    
15     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
16    
17     if ($HTTP_REFERER) {
18     $back_url=$HTTP_REFERER;
19     } else {
20     $back_url="index.php";
21     }
22    
23     $main=$smarty->fetch("search.tpl");
24    
25     include("common.inc");
26 dpavlin 1.2 $smarty->assign( array(back_url=>"$section.php", MAIN=>$main) );
27    
28     global $q;
29 dpavlin 1.1
30     $smarty->display("index.tpl");
31     ?>

  ViewVC Help
Powered by ViewVC 1.1.26