Пример #1
0
             $post['status'] = get_status($item['status'], $need_check);
             $post['hits'] = $item['hits'];
             $post['username'] = $_username;
             if ($FD) {
                 fields_check($post_fields);
             }
             if ($CP) {
                 property_check($post_ppt);
             }
             if ($FD) {
                 fields_update($post_fields, $table, $do->itemid);
             }
             if ($CP) {
                 property_update($post_ppt, $moduleid, $post['catid'], $do->itemid);
             }
             $do->edit($post);
             set_cookie('dmsg', $L['success_edit']);
             dalert('', '', 'parent.window.location="' . $forward . '"');
         } else {
             dalert($do->errmsg);
         }
     } else {
         extract($item);
         $totime = $totime ? timetodate($totime, 3) : '';
     }
     break;
 case 'delete':
     $MG['delete'] or message();
     $itemid or message();
     $itemids = is_array($itemid) ? $itemid : array($itemid);
     foreach ($itemids as $itemid) {