/[pliva-si]/sections/zaposleni.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/zaposleni.inc

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

revision 1.3 by dpavlin, Wed Nov 7 12:09:58 2001 UTC revision 1.4 by dpavlin, Wed Nov 7 14:24:02 2001 UTC
# Line 8  Line 8 
8          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
9          $sth->execute();          $sth->execute();
10    
11            $pos=1;
12    
13          while ($row=$sth->fetchrow_hash()) {          while ($row=$sth->fetchrow_hash()) {
14                  $data[]=$row;                  if ($row[pozicija]=="c") {
15                            $data[]=$row;   // duplicate if center
16                            $pos=1;
17                    } else {
18                            if ($pos % 2 == 1) $row[pozicija]="l";
19                            else $row[pozicija]="r";
20                            $data[]=$row;
21                            $pos++;
22                    }
23          }          }
24    
25          $smarty->assign( "data", $data );          $smarty->assign( "data", $data );

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26