|
|
|
@ -12,6 +12,7 @@ class Index extends CI_Controller
|
|
|
|
|
$this->permission->is_admin();
|
|
|
|
|
$this->load->model('InfoStructures_model');
|
|
|
|
|
$this->load->model('advertise_model');
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//广告列表
|
|
|
|
@ -39,7 +40,8 @@ class Index extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//广告管理编辑页面
|
|
|
|
|
public function detail($ad_is_id=''){
|
|
|
|
|
public function detail($ad_is_id = '')
|
|
|
|
|
{
|
|
|
|
|
$data = array();
|
|
|
|
|
$data['sub_nav'] = '';
|
|
|
|
|
$data['structure_list'] = $this->advertise_model->get_structure_list();
|
|
|
|
@ -129,10 +131,8 @@ class Index extends CI_Controller
|
|
|
|
|
$parent_id = $this->input->post('pid');
|
|
|
|
|
$idsStr = $this->input->post('ids');
|
|
|
|
|
$idsArray = explode(',', $idsStr);
|
|
|
|
|
foreach ($idsArray as $key => $value)
|
|
|
|
|
{
|
|
|
|
|
if ($value)
|
|
|
|
|
{
|
|
|
|
|
foreach ($idsArray as $key => $value) {
|
|
|
|
|
if ($value) {
|
|
|
|
|
//设置排序
|
|
|
|
|
$this->InfoStructures_model->set_sort($value, $key);
|
|
|
|
|
//设置path
|
|
|
|
@ -167,5 +167,4 @@ class Index extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
echo $result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|