Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: php v7, viskas vienoje eilutėje. PAGALBOS

Parašė sc0rpas· 2013 Gru. 13 13:12:50
#5


opentable("Pratyb&#371 atsakym&#371 puslapiai:");
               if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
            $result = dbquery(
               "SELECT tp.photo_id, tp.photo_title, tp.photo_thumb1, tp.photo_views, tp.photo_datestamp, tp.photo_allow_comments, tp.photo_allow_ratings,
               tu.user_id
               FROM ".DB_PHOTOS." tp
               LEFT JOIN ".DB_USERS." tu ON tp.photo_user=tu.user_id
               LEFT JOIN ".DB_RATINGS." tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
               WHERE album_id='".$_GET['album_id']."' GROUP BY photo_id ORDER BY photo_order LIMIT ".$_GET['rowstart'].",".$settings['thumbs_per_page']
            );
            $counter = 0;
            echo "<div style='margin-top:0px; padding: 2px;'>\n".makepagenav($_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF."?album_id=".$_GET['album_id']."&amp;")."\n</div>\n"; }
            echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
 
            while ($data = dbarray($result)) {
            if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) { echo "</tr>\n<tr>\n"; }
 
               echo "<td valign='top' class='tbl'>\n";
               echo "<div class='pratybu-linija-m' style='padding:4px;'><a href='".FUSION_SELF."?photo_id=".$data['photo_id']."' class='photogallery_album_photo_link'><img src='images/atsakymai.png' width='16' align='right'>".$data['photo_title']."</div>\n<div style='padding-top:1px;'></div>\n</a>\n</p>\n";
               $counter++;
               echo "</td>\n";
            }
            echo "</tr>\n</table>\n";
            closetable();
 


va kodas pilnas

Redagavo sc0rpas· 2013 Gru. 13 13:12:17