getGoodsVideoList(array(), '*', 'goodsvideo_id desc', 0, 16); foreach ($video_list as $key => $val) { $video_list[$key]['goodsvideo_url'] = goods_video($val['goodsvideo_name']); } View::assign('video_list', $video_list); View::assign('show_page', $goods_model->page_info->render()); $this->setAdminCurItem('index'); return View::fetch(); } /** * 删除视频 * */ public function del_video() { $goodsvideo_id = input('param.goodsvideo_id'); $goodsvideo_id_array = ds_delete_param($goodsvideo_id); if ($goodsvideo_id_array === FALSE) { ds_json_encode('10001', lang('param_error')); } $condition = array(); $condition[] = array('goodsvideo_id', 'in', $goodsvideo_id_array); $goods_model = model('goods'); //批量删除视频 $goods_model->delGoodsVideo($condition); $this->log(lang('ds_del') . lang('goodsvideo') . '[ID:' . $goodsvideo_id . ']', 1); ds_json_encode('10000', lang('ds_common_op_succ')); } protected function getAdminItemList() { $menu_array = array( array( 'name' => 'index', 'text' => lang('ds_list'), 'url' => (string)url('Goodsvideo/index') ) ); return $menu_array; } }