File: /storage/v6964/avoxlive/public_html/application/views/backend/exhibitor/jitsi.php
<?php
// session_start();
if( empty( $_SESSION['jisti'] ) )$_SESSION['jisti']=date('Y-m-d H:i:s');
?>
<div class="jitsi-detail">
<div class="row">
<div class="col-sm-12">
<!-- <div class="panel panel-info">
<div class="panel-heading">
<div class="pull-right"><a href="#" data-perform="panel-collapse"><i
class="fa fa-plus"></i> CREATE NEW LIVE CONSULTANCY</a> <a href="#"
data-perform="panel-dismiss"></a> </div>
</div>
<div class="panel-wrapper collapse out" aria-expanded="true">
<div class="panel-body"> -->
<?php echo form_open(base_url() . 'exhibitor/jitsi/add/' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));?>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-md-12"
for="example-text"><?php echo get_phrase('title');?></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="title" required>
</div>
</div>
<!-- <div class="form-group">
<label class="col-md-12"
for="example-text"><?php echo get_phrase('patient');?></label>
<div class="col-sm-12">
<select name="patient_id" class="form-control select2" style="width:100%"
id="patient_id"
onchange="return get_group_sub_groups(this.value)"
>
<option value=""><?php echo get_phrase('select');?></option>
<?php
$patients = $this->crud_model->get_patients(); foreach($patients as $row): ?>
<option value="<?php echo $row['patient_id'];?>"><?php echo $row['name'];?>
</option>
<?php endforeach; ?>
</select>
</div>
</div> -->
<div class="form-group">
<label class="col-md-12"
for="example-text"><?php echo get_phrase('visitor');?></label>
<div class="col-sm-12">
<select name="visitor_id" class="form-control select2" style="width:100%"
id="visitor_id"
onchange="return get_group_sub_groups(this.value)"
>
<option value=""><?php echo get_phrase('select');?></option>
<?php
$visitors = $this->crud_model->get_visitors(); foreach($visitors as $row): ?>
<option value="<?php echo $row['visitor_id'];?>"><?php echo $row['name'];?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-12"
for="example-text"><?php echo get_phrase('description');?></label>
<input type="hidden" name="color" class="form-control"
value="#008000">
<div class="col-sm-12">
<textarea rows="5" name="description" class="form-control"
placeholder="please specify meeting description here"></textarea>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-12"><?php echo get_phrase('date'); ?></label>
<div class="col-sm-12">
<input type="date" class="form-control datepicker" name="meeting-date"
value="<?php echo date('Y-m-d');?>" required>
</div>
</div>
<!-- <div class="form-group">
<label class="control-label col-sm-2">Date
<span class="required"> * </span></label>
<div class="col-sm-12">
<div data-date-format="YYYY-MM-DD "
data-datetime-viewmode="years">
<input type="date" class="form-control m-r-10"
name="meeting_date" id="example-date-input" required>
</div>
</div>
</div> -->
<!-- <div class="form-group">
<label class="control-label col-sm-2">Date</label>
<div class="col-sm-12">
<div data-date-format="yyyy-mm-dd"
data-date-viewmode="years">
<input class="form-control m-r-10" name="meeting_date"
type="date" required>
</div>
</div>
</div> -->
<!-- <div class="form-group">
<label class="control-label col-sm-2">End Date</label>
<div class="col-sm-12">
<div data-date-format="yyyy-mm-dd hh-mm-ss" data-date-viewmode="years">
<input class="form-control m-r-10" name="end_date" type="date" required>
</div>
</div>
</div> -->
<!-- <div class="form-group">
<label class="control-label col-sm-2">End Time</label>
<div class="col-sm-12">
<div data-date-format="hh-mm-ss" data-date-viewmode="years">
<input class="form-control m-r-10" name="end_time"
type="time" required>
</div>
</div>
</div> -->
<!-- .row -->
<div class="row">
<label class="col-md-12"
for="example-text"><?php echo get_phrase('meeting_time');?></label>
<div class="col-lg-6">
<div class="input-group clockpicker " data-placement="bottom" data-align="top"
data-autoclose="true">
<input type="text" name="start_time" class="form-control" value="13:14">
<span class="input-group-addon"> <span
class="glyphicon glyphicon-time"></span>
</div>
<label class="col-md-12"
for="example-text"><?php echo get_phrase('time_start');?></label>
</div>
<div class="col-lg-6">
<div class="input-group clockpicker" data-placement="left" data-align="top"
data-autoclose="true">
<input type="text" name="end_time" class="form-control" value="14:14">
<span class="input-group-addon"> <span class="glyphicon glyphicon-time">
</span>
</div>
<label class="col-md-12"
for="example-text"><?php echo get_phrase('time_end');?></label>
</div>
</div>
<!-- /.row -->
<br>
<div class="form-group">
<label class="col-md-9"
for="example-text"><?php echo get_phrase('status');?></label>
<div class="col-sm-12">
<select name="status" class="form-control">
<option value=""><?php echo get_phrase('select_meeting_status');?></option>
<option value="pending">Pending</option>
<option value="live">Live</option>
<option value="expired">Expired</option>
</select>
</div>
</div>
<!-- <hr class="sep-3">
<div class="form-group">
<div class="col-sm-12">
<input type="checkbox" id="check" value="1" name="send_notification_sms">
<i></i> <?=get_phrase('send_notification_sms')?>
</div>
<p style="color:red" id="initial">Meeting will not be sent to mobile number(s)!</p>
<p style="color:green" id="send_sms">Meetting info will be sent to parent and
students' phone number(s). Note that only parent(s) and student(s) in the class
selected will receive message</p>
</div> -->
</div>
</div>
<input type="submit" class="btn save-button"
value="<?php echo get_phrase('save');?>">
<?php echo form_close();?>
<!-- </div>
</div>
</div> -->
</div>
</div>
</div>
</div>
<script>
$('form').submit(function(e) {
$('#install_progress').show();
$('#modal_1').show();
$('.btn').val('saving, please wait...');
$('form').submit();
e.preventDefault();
});
</script>
<!-- <script type="text/javascript">
function get_class_sections(class_id) {
$.ajax({
url: '<?php echo base_url();?>admin/get_class_section/' + class_id,
success: function(response) {
jQuery('#section_selector_holder').html(response);
}
});
}
$('#check').click(function() {
if ($('#check').is(':checked') == true) {
$("#send_sms").show(500);
$("#initial").hide(500);
} else {
$("#send_sms").hide(500);
$("#initial").show(500);
}
});
$("#send_sms").hide();
</script> -->
<script type="text/javascript">
function get_group_sub_groups(group_id) {
$.ajax({
url: '<?php echo base_url();?>admin/get_group_sub_group/' + group_id,
success: function(response) {
jQuery('#section_selector_holder').html(response);
}
});
}
$('#check').click(function() {
if ($('#check').is(':checked') == true){
$("#send_sms").show(500);
$("#initial").hide(500);
}
else{
$("#send_sms").hide(500);
$("#initial").show(500);
}
});
$("#send_sms").hide();
</script>