/[health_html]/inc/pgKnjiznica2-vjesnik.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

Diff of /inc/pgKnjiznica2-vjesnik.php

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

revision 1.1 by ravilov, Fri Sep 28 23:34:37 2001 UTC revision 1.2 by ravilov, Wed Oct 10 12:40:58 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
         if (!$index) $index = 1;  
2          include("inc/conn.php");          include("inc/conn.php");
3          include_once("inc/search.php");          include_once("inc/search.php");
4            function MyCmp1($a, $b) { return MyCompare($a["naslov"], $b["naslov"]); }
5            function MyCmp2($a, $b) { return MyCompare($a["l"], $b["l"]); }
6          $fields = array(          $fields = array(
7                  "broj" => array("dbname" => "broj", "caption" => "Broj asopisa"),                  "broj" => array("dbname" => "broj", "caption" => "Broj asopisa"),
8                  "godina" => array("dbname" => "godina", "caption" => "Godina izdanja"),                  "godina" => array("dbname" => "godina", "caption" => "Godina izdanja"),
# Line 15  Line 16 
16                  "rijeci" => array("dbname" => "keywords", "caption" => "Kljune rijei")                  "rijeci" => array("dbname" => "keywords", "caption" => "Kljune rijei")
17          );          );
18          if (!$id) {          if (!$id) {
19                  list($srch, $qry_1, $qry_2) = Search($fields, array("broj", "godina", "naslov", "rijeci", "vrsta", "autor", "adresa", "sazetak", "tekst"), array(), "naslov");                  list($srch, $qry_1, $qry_2) = Search($fields, array("broj", "godina", "naslov", "rijeci", "vrsta", "autor", "adresa", "sazetak", "tekst", "ref"), array(), "naslov");
20                  # Win1250 -> ISO8859-2                  # Win1250 -> ISO8859-2
21                  if ($qry_1) $qry_1 = strtr($qry_1, "Ǝ", "Ʈ");                  if ($qry_1) $qry_1 = strtr($qry_1, "Ǝ", "Ʈ");
22                  if ($qry_2) $qry_2 = strtr($qry_2, "Ǝ", "Ʈ");                  if ($qry_2) $qry_2 = strtr($qry_2, "Ǝ", "Ʈ");
# Line 23  Line 24 
24                  $tpl->assign("srch", ($qry_1 || $qry_2) ? true : false);                  $tpl->assign("srch", ($qry_1 || $qry_2) ? true : false);
25                  $tpl->assign("SEARCH", $srch);                  $tpl->assign("SEARCH", $srch);
26          }          }
27            if (!$index && !$srch) $index = 1;
28          $letters = Slova();          $letters = Slova();
29          if (!$id && ($index || ($qry_1 || $qry_2))) {          if (!$id && ($index || ($qry_1 || $qry_2))) {
30                  $prvo_slovo = "UPPER(SUBSTRING(autor || ': ' || naslov FROM 1 FOR 1))";                  $prvo_slovo = "UPPER(SUBSTRING(autor || ': ' || naslov FROM 1 FOR 1))";

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26