Commit 4e4aef7b by Tobin

dc

parent 547cf964
......@@ -1670,15 +1670,17 @@ class Organizer_model extends CI_Model {
try{
if(isset($data['has_layout']) && $data['has_layout'] == 1){
$config = set_upload_service("assets/uploads/services");
$this->load->library('upload');
$config['file_name'] = time()."_".$_FILES['layout_image']['name'];
$this->upload->initialize($config);
if($this->upload->do_upload('layout_image')){
$upload_data = $this->upload->data();
$data['layout'] = $config['upload_path']."/".$upload_data['file_name'];
}
if(isset($_FILES) && isset($_FILES['layout_image']) && !empty($_FILES['layout_image'])){
$config = set_upload_service("assets/uploads/services");
$this->load->library('upload');
$config['file_name'] = time()."_".$_FILES['layout_image']['name'];
$this->upload->initialize($config);
if($this->upload->do_upload('layout_image')){
$upload_data = $this->upload->data();
$data['layout'] = $config['upload_path']."/".$upload_data['file_name'];
}
}
$seatLayoutDetails = array();
foreach(json_decode($data['seat_color']) AS $index => $value){
$seatLayoutDetails[] = array('color'=>$value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment