/[informatika.old]/html/inc/org_jed.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 /html/inc/org_jed.inc

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

revision 1.1.1.1 by dpavlin, Fri Mar 10 12:00:44 2000 UTC revision 1.2 by dpavlin, Tue Apr 24 13:57:23 2001 UTC
# Line 6  var pod_arr = [ <? Line 6  var pod_arr = [ <?
6          $pod_option=""; // HTML pod <option>          $pod_option=""; // HTML pod <option>
7          $nad_option=""; // HTML nad <option>          $nad_option=""; // HTML nad <option>
8    
9          $result = pg_Exec ($conn, "select id,naziv from org_jed where aktivna=true");          $result = pg_Exec ($conn, "select id,naziv from org_jed where aktivna=true order by id");
10          for ($k = 0; $k < pg_numrows($result); $k++) {          for ($k = 0; $k < pg_numrows($result); $k++) {
11                  $row=pg_fetch_array($result,$k);                  $row=pg_fetch_array($result,$k);
12                  $nad_option.="<option value=\"$row[id]\"";                  $nad_option.="<option value=\"$row[id]\"";
# Line 14  var pod_arr = [ <? Line 14  var pod_arr = [ <?
14                  $nad_option.=">$row[naziv]</option>\n";                  $nad_option.=">$row[naziv]</option>\n";
15          }          }
16    
17          $result = pg_Exec ($conn, "select pod_id,nad_id,pod_naziv from org_pod_jed where pod_aktivna=true"); $delim = "";          $result = pg_Exec ($conn, "select pod_id,nad_id,pod_naziv from org_pod_jed where pod_aktivna=true order by nad_id,pod_id"); $delim = "";
18          for ($k = 0; $k < pg_numrows($result); $k++) {          for ($k = 0; $k < pg_numrows($result); $k++) {
19                  $row=pg_fetch_array($result,$k);                  $row=pg_fetch_array($result,$k);
20                  echo "$delim \"$row[nad_id],$row[pod_id],$row[pod_naziv]\" ";                  echo "$delim \"$row[nad_id],$row[pod_id],$row[pod_naziv]\" ";

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

  ViewVC Help
Powered by ViewVC 1.1.26