Commit 28be52f3 by Tobin

dc

parent 0f8dd2d8
......@@ -152,6 +152,7 @@ class Event extends CI_Controller {
if(!empty($files = $_FILES)){
$images = array();
$this->load->library('upload',set_upload_service("assets/uploads/services"));
$media_type = 0;
for ($typ = 0; $typ < count($files); $typ++) {
$_FILES['file']['name'] = $files['event_image']['name'][$typ];
$_FILES['file']['type'] = $files['event_image']['type'][$typ];
......@@ -163,8 +164,9 @@ class Event extends CI_Controller {
$imgData = $this->upload->data();
$evtMediaData[] = array(
'event_id'=>$event_id,
'media_type'=>'1',
'media_type'=>$media_type,
'media_url'=>"assets/uploads/services/".$imgData['file_name']);
$media_type = '1';
}
}
$status = $this->Event_model->createEventMedia($evtMediaData);
......@@ -308,6 +310,7 @@ class Event extends CI_Controller {
$files = $_FILES;
$images = array();
$media_type = '0';
$this->load->library('upload',set_upload_service("assets/uploads/services"));
for ($typ = 0; $typ < count($files['event_image']['name']); $typ++) {
$_FILES['file']['name'] = $files['event_image']['name'][$typ];
......@@ -320,8 +323,9 @@ class Event extends CI_Controller {
$imgData = $this->upload->data();
$evtMediaData[] = array(
'event_id'=>$event_id,
'media_type'=>'1',
'media_type'=>$media_type,
'media_url'=>"assets/uploads/services/".$imgData['file_name']);
$media_type = '1';
}
}
}
......
......@@ -224,7 +224,7 @@
<div class="col-sm-6">
<div class="form-group">
<label>Event Description</label>
<textarea id="rich_editor" type="text" class="ip_reg_form_input form-control reset-form-custom required" placeholder="Venue Description" name="event_discription" required
<textarea id="rich_editor" type="text" class="ip_reg_form_input form-control reset-form-custom" placeholder="Venue Description" name="event_discription"
style="height:108px;" data-parsley-trigger="change" data-parsley-minlength="2"></textarea>
</div>
</div>
......
......@@ -29,7 +29,7 @@
<li>
<p>
<strong>"</strong>
Banking is a very treacherous business because<br> you don't realize it is risky until it is too late.
To achieve great things, two things are needed: a plan and not quite enough time.
<strong>"</strong>
</p>
<h6>Margrim Nicholas</h6>
......@@ -37,7 +37,7 @@
<li>
<p>
<strong>"</strong>
Banking is a very treacherous business because <br>you don't realize it is risky until it is too late.
Productivity is never an accident. It is always the result of a commitment to excellence, intelligent planning, and focused effort.
<strong>"</strong>
</p>
<h6>Marie Lorem</h6>
......@@ -45,7 +45,7 @@
<li>
<p>
<strong>"</strong>
Banking is a very treacherous business because <br>you don't realize it is risky until it is too late.
There are some people who live in a dream world, and there are some who face reality; and then there are those who turn one into the other.
<strong>"</strong>
</p>
<h6>Lewis Adam</h6>
......
......@@ -100,7 +100,7 @@
<input type="text" class="form-control required" data-parsley-trigger="change" name="locality" placeholder="Locality">
</div>
<div id="useExist" class="form-group hide">
<select name="locality_id" class="form-control required" placeholder="Select Locality"></select>
<select name="locality_id" class="form-control" placeholder="Select Locality"></select>
</div>
</div>
<?php } ?>
......@@ -112,6 +112,7 @@
!empty($venue_data) && !empty($venue_data->layout) &&
!empty($venue_data->layout_details) &&
!empty($layoutDetails = json_decode($venue_data->layout_details))){ ?>
<input type="hidden" name="has_layout" value='1'>
<div class="col-md-3">
<div class="form-group">
<label>Layout</label>
......@@ -215,6 +216,7 @@
<!-- Layout Container -->
<div id="layoutCntrHtml" class="hide">
<input type="hidden" name="has_layout" value='1'>
<div class="col-md-3">
<div class="form-group">
<label>Layout</label>
......
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