$xtpl->assign('WEIGHT', $info); $xtpl->parse('main.weight_unit'); } } if ($pro_config['active_gift']) { $xtpl->parse('main.gift'); } if ($rowcontent['id'] > 0 and !$is_copy) { $op = 'items'; } if (empty($rowcontent['alias'])) { $xtpl->parse('main.getalias'); } if (!$pro_config['active_warehouse']) { if ($rowcontent['id'] > 0) { $xtpl->parse('main.warehouse.edit'); } else { $xtpl->parse('main.warehouse.add'); } $xtpl->parse('main.warehouse'); } // Custom fiels if ($pro_config['template_active'] and $rowcontent['listcatid'] and !empty($global_array_shops_cat[$rowcontent['listcatid']]['form'])) { $datacustom_form = nv_show_custom_form($rowcontent['id'], $global_array_shops_cat[$rowcontent['listcatid']]['form'], $custom); $xtpl->assign('DATACUSTOM_FORM', $datacustom_form); } $xtpl->parse('main'); $contents = $xtpl->text('main'); include NV_ROOTDIR . '/includes/header.php'; echo nv_admin_theme($contents); include NV_ROOTDIR . '/includes/footer.php';
} if ($pro_config['active_gift']) { $xtpl->parse('main.gift'); } if ($rowcontent['id'] > 0 and !$is_copy) { $op = 'items'; } if (empty($rowcontent['alias'])) { $xtpl->parse('main.getalias'); } if (!$pro_config['active_warehouse']) { if ($rowcontent['id'] > 0) { $xtpl->parse('main.warehouse.edit'); } else { $xtpl->parse('main.warehouse.add'); } $xtpl->parse('main.warehouse'); } // Custom fiels if ($pro_config['template_active'] and $rowcontent['listcatid'] and !empty($global_array_shops_cat[$rowcontent['listcatid']]['form'])) { $form = $global_array_shops_cat[$rowcontent['listcatid']]['form']; if (nv_is_file(NV_BASE_SITEURL . NV_ASSETS_DIR . '/' . $module_name . '/files_tpl/cat_form_' . $form . '.tpl', NV_ASSETS_DIR . '/' . $module_name)) { $datacustom_form = nv_show_custom_form($rowcontent['id'], $form, $custom); $xtpl->assign('DATACUSTOM_FORM', $datacustom_form); } } $xtpl->parse('main'); $contents = $xtpl->text('main'); include NV_ROOTDIR . '/includes/header.php'; echo nv_admin_theme($contents); include NV_ROOTDIR . '/includes/footer.php';
<?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 Sun, 04 May 2014 12:41:32 GMT */ if (!defined('NV_IS_FILE_ADMIN')) { die('Stop!!!'); } $datacustom_form = ''; $cid = $nv_Request->get_int('cid', 'get', 0); $cat_form = $global_array_shops_cat[$cid]['form']; if ($cid and !empty($cat_form)) { $id = $nv_Request->get_int('id', 'get', 0); $idtemplate = $db->query('SELECT id FROM ' . $db_config['prefix'] . '_' . $module_data . '_template where alias = "' . preg_replace("/[\\_]/", "-", $cat_form) . '"')->fetchColumn(); if ($idtemplate) { $table_insert = $db_config['prefix'] . "_" . $module_data . "_info_" . $idtemplate; $custom = $db->query("SELECT * FROM " . $table_insert . " where shopid=" . $id)->fetch(); } $datacustom_form = nv_show_custom_form($id, $cat_form, $custom); } include NV_ROOTDIR . '/includes/header.php'; echo $datacustom_form; include NV_ROOTDIR . '/includes/footer.php';