name : -viewgraphic.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", array($id));

//$row = $result[0];
//$arr = splitformatToarrayData($row['slide_gallery'], true);
foreach ($result as $row) {
    $data .= '<div class = "panel">';
    $data .= '<img src = "' . $row['slide_cover'] . '" title = "' . getGalleryDetail($row['slide_cover_detail']) . '"/>';
    $data .= '</div>';
}
//
if ($base['cookie']['projectId'] != "") {
    $allId = splitformatToarrayData($base['cookie']['projectId']);
    $key = array_search($id, $allId);
    if (($key + 1) < count($allId)) {
        $nextProjectId = $allId[$key + 1];
    } else {
        $nextProjectId = $allId[0];
    }
} else {
    $nextProjectId = 0;
}
$base['data']['nextProjectId'] = $nextProjectId;
//
$base['data']['content'] = $data;
$base['data']['pagenavigatator'] = $base['lang'][$base['get']['nav']];
$base['data']['projectname'] = getProjectName($row['slide_cover_detail']);
//
template('viewgraphic');
?>

© 2024 UnknownSec