/[informatika.old]/html/lista.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 /html/lista.php

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

revision 1.7 by dpavlin, Fri Jun 2 06:14:56 2000 UTC revision 1.9 by dpavlin, Tue Jun 27 11:41:31 2000 UTC
# Line 61  Line 61 
61                  option("novi_na_vrh","noviji na početak popisa",$sql_upit);                  option("novi_na_vrh","noviji na početak popisa",$sql_upit);
62                  option("order_ime","sortirano po imenu",$sql_upit);                  option("order_ime","sortirano po imenu",$sql_upit);
63                  option("order_prezime","sortirano po prezimenu",$sql_upit);                  option("order_prezime","sortirano po prezimenu",$sql_upit);
64                    option("umrezavanje","potrebno umrežavanje",$sql_upit);
65    
66          echo '  </select>          echo '  </select>
67                  <small><i>za opcije označenje zvjezdicom (*) prvo morate                  <small><i>za opcije označenje zvjezdicom (*) prvo morate
# Line 111  Line 112 
112                          case "novi_na_vrh":                          case "novi_na_vrh":
113                                  $sql_order="order by id desc";                                  $sql_order="order by id desc";
114                                  break;                                  break;
115                            case "umrezavanje":
116                                    $sql_where.=" and umrezavanje is true";
117                                    break;
118                  }                  }
119          }          }
120    
# Line 141  Line 145 
145                  <th>organizacijska jedinica</th>                  <th>organizacijska jedinica</th>
146                  <th>status zahtjeva</th>                  <th>status zahtjeva</th>
147                  <th>kontakt osoba</th>                  <th>kontakt osoba</th>
148                    <td><small>",pg_numrows($result),"</small></td>
149                  </tr>                  </tr>
150                  ";                  ";
151    
152          include("inc/print_bool.inc");          include("inc/print_bool.inc");
153    
154    
155          for ($k = 0; $k < pg_numrows($result); $k++) {          for ($k = 0; $k < pg_numrows($result); $k++) {
156                  $row=pg_fetch_array($result,$k);                  $row=pg_fetch_array($result,$k);
157                  if ($k % 2 != 0) {                  if ($k % 2 != 0) {
# Line 162  Line 168 
168                  print "</td><td>$row[ime] $row[prezime]</td>                  print "</td><td>$row[ime] $row[prezime]</td>
169                          <td>$row[orgjed]</td><td>";                          <td>$row[orgjed]</td><td>";
170                                                    
171                  $result1 = pg_Exec ($conn, "select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id]");                  $result1 = pg_Exec ($conn, "select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id] order by datum");
172                  for ($l = 0; $l < pg_numrows($result1); $l++) {                  for ($l = 0; $l < pg_numrows($result1); $l++) {
173                          $row1=pg_fetch_array($result1,$l);                          $row1=pg_fetch_array($result1,$l);
174                          print "<small>$row1[datum]</small> $row1[opis]<br>";                          print "<small>$row1[datum]</small> $row1[opis]<br>";

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26