} $data['cat_number_point'] = !empty($data['cat_number_point']) ? $data['cat_number_point'] : ''; $data['cat_number_product'] = !empty($data['cat_number_product']) ? $data['cat_number_product'] : ''; } if ($data['parentid']) { $lang_module['setting_group_price_space_note_cat'] = sprintf($lang_module['setting_group_price_space_note_cat_1'], $data['parent_title']); } else { $URL_SETTING_GR_PRICE = NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=setting#setting_group_price'; $lang_module['setting_group_price_space_note_cat'] = sprintf($lang_module['setting_group_price_space_note_cat_0'], $URL_SETTING_GR_PRICE); } $xtpl = new XTemplate('cat_add.tpl', NV_ROOTDIR . '/themes/' . $global_config['module_theme'] . '/modules/' . $module_file); $xtpl->assign('LANG', $lang_module); $xtpl->assign('GLANG', $lang_global); $xtpl->assign('CAPTION', $data['catid'] > 0 ? $lang_module['edit_cat'] : $lang_module['add_cat']); $xtpl->assign('DATA', $data); $xtpl->assign('CAT_LIST', shops_show_cat_list($data['parentid'])); $xtpl->assign('UPLOAD_CURRENT', $currentpath); $xtpl->assign('FORM_ACTION', NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&catid=' . $data['catid'] . '&parentid=' . $data['parentid']); if ($error != '') { $xtpl->assign('error', $error); $xtpl->parse('main.error'); } if (empty($data['alias'])) { $xtpl->parse('main.getalias'); } foreach ($array_cat_list as $rows_i) { $sl = $rows_i[0] == $data['parentid'] ? " selected=\"selected\"" : ""; $xtpl->assign('pcatid_i', $rows_i[0]); $xtpl->assign('ptitle_i', $rows_i[1]); $xtpl->assign('pselect', $sl); $xtpl->parse('main.parent_loop');
<?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'); } $parentid = $nv_Request->get_int('parentid', 'get', 0); $contents = shops_show_cat_list($parentid); include NV_ROOTDIR . '/includes/header.php'; echo $contents; include NV_ROOTDIR . '/includes/footer.php';