Esempio n. 1
0
     }
     break;
 case 'item':
     $itemid or msg();
     $do->itemid = $itemid;
     if (isset($update)) {
         $thumb = '';
         if ($swf_upload) {
             foreach (explode('|', $swf_upload) as $v) {
                 if ($v) {
                     $thumb .= $v;
                     $db->query("INSERT INTO {$table_item} (item,thumb) VALUES ('{$itemid}', '{$v}')");
                 }
             }
         }
         $do->item_update($post);
         if ($MOD['show_html']) {
             tohtml('show', $module);
         }
         dmsg('更新成功', '?moduleid=' . $moduleid . '&action=' . $action . '&itemid=' . $itemid);
     } else {
         $lists = $do->item_list("item={$itemid}");
         $item = $do->get_one();
         if ($items != $item['items']) {
             $db->query("UPDATE {$table} SET items={$items} WHERE itemid={$itemid}");
         }
         $menuid = 1;
         include tpl($action, $module);
     }
     break;
 case 'item_delete':