"; //echo "{$cat_lin}"; open_table($cat_lin); $licz = 1; $row = 6; $lini = 1; $lim = $row*$lini; $query = "SELECT * FROM sgal_pics WHERE pic_admin='1' AND pic_show='1' AND pic_cat='$cat_id' ORDER BY pic_time DESC LIMIT {$lim}"; $pic_rez = mysql_query($query); if($pic_rez) { echo ""; if($lini > 1 ) { $go = false; } else { $go = true; } $szer = $_CFG["thb_w_img"]; $wys = $_CFG["thb_h_img"]; $cm = explode(",", $_CFG["cat_movie"] ) ; while( $pic_dat = mysql_fetch_array($pic_rez) ) { $pic_id = $pic_dat["pic_id"]; $pic_time= $pic_dat["pic_time"]; $pic_cat = $pic_dat["pic_cat"]; $pic_ide = $pic_id; while(strlen($pic_ide)<10) { $pic_ide = "0".$pic_ide; } if( in_array($pic_cat, $cm) ) { $movadd = "&movie=1"; $typadd = "filmów"; } else { $movadd = ""; $typadd = "fotek"; } echo ""; /* if($go == true) { echo ""; } else { echo ""; } */ if($licz == $row ) { echo ""; $licz = 0; $go = true; } $licz++; } ?>
Zobacz więcej w kategorii '' »
"; close_table(); } } ?>