Parent Directory | Revision Log | 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 ); |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |