Exemplo n.º 1
0
<?php

/**
 * @Project NUKEVIET 3.0
 * @Author VINADES.,JSC (contact@vinades.vn)
 * @Copyright (C) 2010 VINADES.,JSC. All rights reserved
 * @Createdate 7-17-2010 14:43
 */
if (!defined('NV_SYSTEM')) {
    die('Stop!!!');
}
define('NV_IS_MOD_ALBUMS', true);
require_once NV_ROOTDIR . "/modules/" . $module_name . '/albumdb.php';
$adb = new albumdb();
$result = $adb->getAllNonMapAlbum();
$albums = array();
$aID = isset($array_op[1]) ? intval($array_op[1]) : 0;
while ($rs = $db->sql_fetchrow($result)) {
    $listimg = array();
    $albums[] = array('albumid' => $rs['albumid'], 'name' => $rs['name'], 'description' => $rs['description'], 'createddate' => $rs['createddate'], 'num_photo' => $rs['num_photo'], 'path_img' => $rs['path_img'], 'num_view' => $rs['num_view'], 'alias' => $rs['alias'], 'listimg' => $listimg);
    $act = $rs['albumid'] == $aID ? 1 : 0;
    $url_link = NV_BASE_SITEURL . "?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . '&amp;' . NV_OP_VARIABLE . "=view/" . $rs['albumid'] . "/" . $rs['alias'];
    $nv_vertical_menu[] = array($rs['name'], $url_link, $act, 'submenu' => array());
}
function nv_news_page($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = true)
{
    global $lang_global;
    $total_pages = ceil($num_items / $per_page);
    if ($total_pages == 1) {
        return '';
    }