Beispiel #1
0
         } 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) {
         if ($do->pass($post)) {
             $do->edit($post);
             dmsg('修改成功', $forward);
         } else {
             msg($do->errmsg);
         }
     } else {
         extract($do->get_one($oid));
         include tpl('property_edit');
     }
     break;
 case 'copy':
     if ($submit) {
         if ($type) {
             $fromid = intval($fromid);
             $fromid or msg('请选择来源分类');
             $fromid != $catid or msg('来源分类不能与当前分类相同');