name : -viewlist.mod.php
<?php

if (!defined('SITE'))
    exit('Access Denied');
$id = $base['get']['catag'];
$result = $conn->nativeQuerySelect("SELECT * FROM `ext_interior_gallery` WHERE slide_catag = ? AND status = 1 ORDER BY slide_order DESC", array($id));
foreach ($result as $row) {
    $projectId[] = $row["slide_id"];
    $data .= '<div style="width:340px;float:left;padding-left:44px;">';
    $data .= '<a href="index.php?mod=viewgallery&nav=' . $base['get']['nav'] . '&project=' . $row["slide_id"] . '&tag=' . getProjectDetail($row['slide_cover_detail']) . '">';
    $data .= getProjectDetail($row['slide_cover_detail']);
    $data .= '</a>';
    $data .= '</div>';
}
//
$base['data']['querystring'] = '&catag=' . $base['get']['catag'] . '&nav=' . $base['get']['nav'] . '&tag=' . $base['get']['nav'];
$base['data']['content'] = $data;
$base['data']['pagenavigatator'] = $base['lang'][$base['get']['nav']];
//
setcookie("projectId", arrayToSplitFormat($projectId));
//
template('viewlist');
?>

© 2024 UnknownSec