/[pliva-si]/sections/vade.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sections/vade.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dpavlin, Tue Nov 20 16:10:58 2001 UTC revision 1.6 by dpavlin, Wed Nov 21 09:16:47 2001 UTC
# Line 4  include_once("find_html_file.inc"); Line 4  include_once("find_html_file.inc");
4    
5  $title.=" : VADEMECUM";  $title.=" : VADEMECUM";
6    
7    $all_local = "vse";
8    
9  function fix_title($t) {  function fix_title($t) {
10          $t=trim($t);          $t=trim($t);
11          if ($sp=strpos($t," ")) {          if ($sp=strpos($t," ")) {
# Line 40  if (isset($smpc) && $smpc >= 1000 && $sm Line 42  if (isset($smpc) && $smpc >= 1000 && $sm
42    
43          $sql_where=array();          $sql_where=array();
44    
45          if (isset($search) && $search!="" && $search!="all" && $search!="vsi") {          if (isset($search) && $search!="" && $search!="all" && $search!=$all_local) {
46                  $sql_where[]="upper(title) like upper('%$search%')";                  $sql_where[]="upper(title) like upper('%$search%')";
47          }          }
48    
# Line 71  if (isset($smpc) && $smpc >= 1000 && $sm Line 73  if (isset($smpc) && $smpc >= 1000 && $sm
73                  $smarty->assign("search",$search);                  $smarty->assign("search",$search);
74    
75          } else {          } else {
76                  $smarty->assign("search","vsi");                  $smarty->assign("search",$all_local);
77          }          }
78    
79          $types = array ('', 'H', 'V');          $types = array ('', 'H', 'V');
80          $types_desc = array ('vsi', 'Zdravila', 'Veterina');          $types_desc = array ('kjerkoli', 'zdravila', 'veterina');
81    
82          $smarty->assign( array(          $smarty->assign( array(
83                          type=>$type,                          type=>$type,

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26