/[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.8 by dpavlin, Thu Jun 8 10:50:18 2000 UTC revision 1.12 by dpavlin, Tue Jul 4 08:45:32 2000 UTC
# Line 2  Line 2 
2    
3          include("inc/head.inc");          include("inc/head.inc");
4          include("inc/prava.inc");          include("inc/prava.inc");
5            include("inc/checkbox.inc");
6    
7          if (! isset($from)) {          if (! isset($from)) {
8                  $from=0;                  $from=0;
9                    $podesavanje="on"; $umrezavanje="on";
10          }          }
11    
12          if (! isset($kontakt_osoba_id) || ! intval($kontakt_osoba_id)!=0) {          if (! isset($kontakt_osoba_id) || ! intval($kontakt_osoba_id)!=0) {
# Line 38  Line 40 
40                  echo ">$text</option>";                  echo ">$text</option>";
41          }          }
42    
         function checkbox($name,$current) {  
                 echo "<input type=\"checkbox\" name=\"$name\"";  
                 if (isset($current)) {  
                         echo " checked";  
                 }  
                 echo ">";  
         }  
43    
44          if (! isset($sql_upit)) { $sql_upit="novi_na_vrh"; }          if (! isset($sql_upit)) { $sql_upit="novi_na_vrh"; }
45    
# Line 145  Line 140 
140                  <th>organizacijska jedinica</th>                  <th>organizacijska jedinica</th>
141                  <th>status zahtjeva</th>                  <th>status zahtjeva</th>
142                  <th>kontakt osoba</th>                  <th>kontakt osoba</th>
143                    <td><small>",pg_numrows($result),"</small></td>
144                  </tr>                  </tr>
145                  ";                  ";
146    
147          include("inc/print_bool.inc");          include("inc/print_bool2.inc");
148    
149    
150          for ($k = 0; $k < pg_numrows($result); $k++) {          for ($k = 0; $k < pg_numrows($result); $k++) {
151                  $row=pg_fetch_array($result,$k);                  $row=pg_fetch_array($result,$k);
# Line 166  Line 163 
163                  print "</td><td>$row[ime] $row[prezime]</td>                  print "</td><td>$row[ime] $row[prezime]</td>
164                          <td>$row[orgjed]</td><td>";                          <td>$row[orgjed]</td><td>";
165                                                    
166                  $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");
167                  for ($l = 0; $l < pg_numrows($result1); $l++) {                  for ($l = 0; $l < pg_numrows($result1); $l++) {
168                          $row1=pg_fetch_array($result1,$l);                          $row1=pg_fetch_array($result1,$l);
169                          print "<small>$row1[datum]</small> $row1[opis]<br>";                          print "<small>$row1[datum]</small> $row1[opis]<br>";

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.26