/* [Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com This is NOT a freeware, use is subject to license.txt */ defined('DT_ADMIN') or exit('Access Denied'); $CAT or msg('请指定分类ID'); $menus = array(array('添加属性', '?file=' . $file . '&catid=' . $catid . '&action=add'), array('属性参数', '?file=' . $file . '&catid=' . $catid), array('复制属性', '?file=' . $file . '&catid=' . $catid . '&action=copy')); $TYPE = array('单行文本(text)', '多行文本(textarea)', '列表选择(select)', '复选框(checkbox)'); $do = new property(); $do->catid = $catid; switch ($action) { case 'add': if ($submit) { if ($do->pass($post)) { $do->add($post); dmsg('添加成功', '?file=' . $file . '&catid=' . $catid); } else { msg($do->errmsg); } } else { $type = 2; $required = $search = 0; $name = $value = $extend = ''; include tpl('property_edit'); } break; case 'edit': $oid or msg(); $do->oid = $oid; if ($submit) {