/[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

Contents of /sections/zaposleni.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Fri Nov 16 11:31:16 2001 UTC (22 years, 4 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
poštuje redosljed

1 <?
2
3 $sql="select titula,ime,note,tel,email,pozicija
4 from zaposleni where $visible_is_true
5 order by grupa,num,id
6 ";
7 # print "$sql";
8 $sth = $dbh->prepare("$sql");
9 $sth->execute();
10
11 $pos=1;
12
13 while ($row=$sth->fetchrow_hash()) {
14 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 );
26 $main=$smarty->fetch("zaposleni.tpl");
27
28 ?>

  ViewVC Help
Powered by ViewVC 1.1.26