train_tpl('addshow'); } function save_action(){ $UploadM = $this -> MODEL("upload"); if (!empty($_FILES)){ $data=array( 'uid' => $this->uid, 'title' => $this->stringfilter($_FILES['file']['name']), 'status'=> $this ->pxInfo['r_status']==0?1:$this->config['px_show_status'], 'ctime' => time(), 'file' => $_FILES['file'] ); $trainM = $this -> MODEL('train'); $id = $trainM -> addPxshowInfo($data, array( 'member' => 'train', 'uid' => $this->uid, 'usertype' => $this->usertype ) ); $arr = array( 'jsonrpc' => '2.0', 'id' => $id ); echo json_encode($arr);die; } } } ?>