} else { $error = $lang_module['errorsave']; } } } } } $xtpl = new XTemplate('blockcat.tpl', NV_ROOTDIR . '/themes/' . $global_config['module_theme'] . '/modules/' . $module_file); $xtpl->assign('LANG', $lang_module); $xtpl->assign('GLANG', $lang_global); $xtpl->assign('NV_BASE_ADMINURL', NV_BASE_ADMINURL); $xtpl->assign('NV_NAME_VARIABLE', NV_NAME_VARIABLE); $xtpl->assign('NV_OP_VARIABLE', NV_OP_VARIABLE); $xtpl->assign('MODULE_NAME', $module_name); $xtpl->assign('OP', $op); $xtpl->assign('BLOCK_CAT_LIST', nv_show_block_cat_list()); $data['bid'] = $nv_Request->get_int('bid', 'get', 0); if ($data['bid'] > 0) { list($data['bid'], $data['title'], $data['alias'], $data['description'], $data['keywords']) = $db->query('SELECT bid, ' . NV_LANG_DATA . '_title, ' . NV_LANG_DATA . '_alias, ' . NV_LANG_DATA . '_description, ' . NV_LANG_DATA . '_keywords FROM ' . $db_config['prefix'] . '_' . $module_data . '_block_cat where bid=' . $data['bid'])->fetch(3); $lang_module['add_block_cat'] = $lang_module['edit_block_cat']; } $xtpl->assign('DATA', $data); if ($error != '') { $xtpl->assign('ERROR', $error); $xtpl->parse('main.error'); } if ($data['alias'] != '') { $xtpl->parse('main.alias'); } $xtpl->parse('main'); $contents = $xtpl->text('main');
<?php /** * @Project NUKEVIET 4.x * @Author VINADES.,JSC (contact@vinades.vn) * @Copyright (C) 2014 VINADES.,JSC. All rights reserved * @License GNU/GPL version 2 or any later version * @Createdate 2-10-2010 18:49 */ if (!defined('NV_IS_FILE_ADMIN')) { die('Stop!!!'); } if (!defined('NV_IS_AJAX')) { die('Wrong URL'); } $contents = nv_show_block_cat_list(); include NV_ROOTDIR . '/includes/header.php'; echo $contents; include NV_ROOTDIR . '/includes/footer.php';