You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
278 lines
18 KiB
278 lines
18 KiB
<style>.toolbar {float:left;} tr.row_selected td{background-color: #d9edf7 !important;}</style>
|
|
|
|
<?php
|
|
$utype_active = 'none';
|
|
if (isset($logged_in) && !empty($logged_in)) {
|
|
switch ($logged_in["role_id"]) {
|
|
case 1:
|
|
$utype_active = 'superadmin';
|
|
break;
|
|
case 2:
|
|
$utype_active = 'lemonde-user';
|
|
break;
|
|
case 4:
|
|
$utype_active = 'adminrc';
|
|
break;
|
|
|
|
default:
|
|
// code...
|
|
break;
|
|
}
|
|
}
|
|
?>
|
|
|
|
<div style="display:none;">
|
|
<form role="form" data-toggle="validator" novalidate="novalidate" action="javascript:;" id="event_schedule_form">
|
|
<!-- Edit event schedule -->
|
|
<div class="panel">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group add-different-address-fields">
|
|
<label for="city_location" class="control-label"><?=$this->lang->line("event_city_location")?><span class="font-required"> *</span></label>
|
|
<!-- <select class="form-control" id="city_location" name="city_location">
|
|
<option disabled selected value="">- <?=$this->lang->line("event_city_location")?> -</option>
|
|
<?php
|
|
foreach ($city_location as $clkey => $clvalue) {
|
|
echo '<option value="' . $clvalue->city_location_id . '">' . $clvalue->city . '</option>';
|
|
}
|
|
?>
|
|
</select> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row add-different-address-fields">
|
|
<!-- <div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="location" class="control-label"><?=$this->lang->line("name_of_place")?><span class="font-required"> *</span></label>
|
|
<input type="text" class="form-control" id="location" name="location" placeholder="<?=$this->lang->line("name_of_place")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="address" class="control-label"><?=$this->lang->line("address")?><span class="font-required"> *</span></label>
|
|
<input type="text" class="form-control" id="address" name="address" placeholder="<?=$this->lang->line("address")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
<div class="row add-different-address-fields">
|
|
<!-- <div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="code_postal" class="control-label"><?=$this->lang->line("code_postal")?></label>
|
|
<input type="text" class="form-control" id="code_postal" name="code_postal" placeholder="<?=$this->lang->line("code_postal")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="city_name" class="control-label"><?=$this->lang->line("city_location")?><span class="font-required"> *</span></label>
|
|
<input type="text" class="form-control" id="city_name" name="city_name" placeholder="<?=$this->lang->line("location")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
<div class="row" id="event_total_seats_available">
|
|
<!-- <div class="col-md-12">
|
|
<div class="form-group">
|
|
<label for="total_available_seat" class="control-label"><?=$this->lang->line("avl_seats")?><span class="font-required"> *</span></label>
|
|
<input type="number" min="0" data-bind="value:total_available_seat" min="0" step="0" data-number-to-fixed="2" data-number-stepfactor="" class="form-control" id="total_available_seat" name="total_available_seat" placeholder="<?=$this->lang->line("avl_seats")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
<div class="row" id="event_total_session_seats_available">
|
|
<!-- <div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="total_available_seat" class="control-label"><?=$this->lang->line("avl_session_seats")?><span class="font-required"> *</span></label>
|
|
<input type="number" min="0" data-bind="value:total_available_seat" min="0" step="0" data-number-to-fixed="2" data-number-stepfactor="" class="form-control" id="total_available_seat" name="total_available_seat" placeholder="<?=$this->lang->line("avl_session_seats")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
<div class="col-md-6">
|
|
<!-- <div class="form-group">
|
|
<label for="total_available_seat" class="control-label"><?=$this->lang->line("hours_per_session_seats")?><span class="font-required"> *</span></label>
|
|
<input type="number" min="0" data-bind="value:total_available_seat" min="0" step="0" data-number-to-fixed="2" data-number-stepfactor="" class="form-control" id="total_available_seat" name="total_available_seat" placeholder="<?=$this->lang->line("hours_per_session_seats")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" id="current_avl_seats" style="display: none;">
|
|
<!-- <div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="seats_per_subscriber" class="control-label"><?=$this->lang->line("current_avl_seats")?><font color="red"> *</font></label>
|
|
<input type="number" class="form-control" id="seats_per_subscriber" name="seats_per_subscriber" min="0" step="0" data-number-to-fixed="2" data-number-stepfactor="" placeholder="<?=$this->lang->line("current_avl_seats")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
<div class="row" id="event_sched_item_code" style="display: none;">
|
|
<!-- <div class="col-md-12">
|
|
<div class="form-group">
|
|
<label for="item_code" class="control-label"><?=$this->lang->line("item_code")?><span class="font-required"> *</span></label>
|
|
<input type="text" class="form-control" id="item_code" name="item_code" placeholder="<?=$this->lang->line("item_code")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
<div class="row" id="event_sched_url" style="display: none;">
|
|
<!-- <div class="col-md-12">
|
|
<div class="form-group">
|
|
<label for="event_url" class="control-label"><?=$this->lang->line("event_url")?><span class="font-required"> *</span></label>
|
|
<input type="url" class="form-control" id="event_url" name="event_url" placeholder="<?=$this->lang->line("event_url")?>"/>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
|
|
|
|
<div class="row" id="event_reservation_date">
|
|
<div class="col-md-6">
|
|
<div class="form-group lm-date">
|
|
<label for="reservation_start_date" class="control-label"><?=$this->lang->line("workshop_start_date")?><span class="font-required"> *</span></label>
|
|
<!-- <div class='input-group date' id='event_opening_date_icon'>
|
|
<input type='text' class="form-control datetimepicker invalid_date" id="reservation_start_date" name="reservation_start_date" placeholder="<?=$this->lang->line("workshop_start_date")?>" value=""/>
|
|
<span class="input-group-addon">
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
</span>
|
|
</div> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group lm-date">
|
|
<label for="reservation_end_date" class="control-label"><?=$this->lang->line("workshop_end_date")?><span class="font-required"> *</span></label>
|
|
<!-- <div class='input-group date' id='event_opening_date_icon'>
|
|
<input type='text' class="form-control datetimepicker invalid_date" id="reservation_end_date" name="reservation_end_date" placeholder="<?=$this->lang->line("workshop_end_date")?>" value=""/>
|
|
<span class="input-group-addon">
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
</span>
|
|
</div> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--reservation date-->
|
|
<div class="row" id="event_reservation_date">
|
|
<div class="col-md-6">
|
|
<div class="form-group lm-date">
|
|
<label for="reservation_start_date" class="control-label"><?=$this->lang->line("reservation_start_date")?><span class="font-required"> *</span></label>
|
|
<!-- <div class='input-group date' id='event_opening_date_icon'>
|
|
<input type='text' class="form-control datetimepicker invalid_date" id="reservation_start_date" name="reservation_start_date" placeholder="<?=$this->lang->line("reservation_start_date")?>" value=""/>
|
|
<span class="input-group-addon">
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
</span>
|
|
</div> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group lm-date">
|
|
<label for="reservation_end_date" class="control-label"><?=$this->lang->line("reservation_end_date")?><span class="font-required"> *</span></label>
|
|
<!-- <div class='input-group date' id='event_opening_date_icon'>
|
|
<input type='text' class="form-control datetimepicker invalid_date" id="reservation_end_date" name="reservation_end_date" placeholder="<?=$this->lang->line("reservation_end_date")?>" value=""/>
|
|
<span class="input-group-addon">
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
</span>
|
|
</div> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--event status-->
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="event_status" class="control-label"><?=$this->lang->line("event_status")?><span class="font-required"> *</span></label>
|
|
<!-- <select class="form-control" id="event_status" name="event_status">
|
|
<option disabled selected value="">- <?=$this->lang->line("event_status")?> -</option>
|
|
<option value="AVAILABLE"><?=$this->lang->line("available")?></option>
|
|
<option value="FULL"><?=$this->lang->line("full")?></option>
|
|
</select> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
<input type="hidden" id="old_event_status" value="">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="back_office_status" class="control-label"><?=$this->lang->line("bo_status")?> <font color="red">*</font></label>
|
|
<!-- <select class="form-control" id="back_office_status" name="back_office_status">
|
|
<option disabled selected value="">- <?=$this->lang->line("bo_status")?> -</option>
|
|
<option value="0"><?=$this->lang->line("being_created")?></option>
|
|
<option value="1"><?=$this->lang->line("published")?></option>
|
|
<option value="2"><?=$this->lang->line("open")?></option>
|
|
<option value="3"><?=$this->lang->line("locked")?></option>
|
|
<option value="4"><?=$this->lang->line("closed")?></option>
|
|
<option value="5"><?=$this->lang->line("archived")?></option>
|
|
<option value="7"><?=$this->lang->line("terminee")?></option>
|
|
</select> -->
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
</div> <!-- end of row -->
|
|
|
|
<div class="hidden" id="event_sched_date_moderation_setting">
|
|
<?php if (in_array(PRIVS[PAGE_CODE['events']]['sched_moderation_btn'], USER_PRIVS[$logged_in['role_id']][PAGE_CODE['events']])) {?>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label for="" class="control-label switch-label">Activer la Modération</label>
|
|
<!-- <label class="switch ">
|
|
<input id="moderationSwitchBtn" type="checkbox" name="moderationSwitchBtn" class="primary" data-toggle="collapse" data-target="#moderationFormCollapse" aria-expanded="false" aria-controls="moderationFormCollapse">
|
|
<span class="slider round"></span>
|
|
</label> -->
|
|
</div>
|
|
</div>
|
|
<?php if (in_array(PRIVS[PAGE_CODE['events']]['sched_moderation_flex'], USER_PRIVS[$logged_in['role_id']][PAGE_CODE['events']])) {?>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="collapse" id="moderationFormCollapse">
|
|
<div class="card card-body">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label for="" class="control-label switch-label">Modération Flexible</label>
|
|
<!-- <label class="switch">
|
|
<input id="moderationSwitchFlexibleBtn" type="checkbox" name="moderationSwitchFlexibleBtn" class="primary" data-toggle="collapse" data-target="#moderationFlexibleCollapse" aria-expanded="false" aria-controls="moderationFlexibleCollapse">
|
|
<span class="slider round"></span>
|
|
</label> -->
|
|
</div>
|
|
<div class="col-md-8">
|
|
<div class="collapse" id="moderationFlexibleCollapse">
|
|
<div class="card card-body">
|
|
<!-- <p>
|
|
Désactivation de la modération <span class="form-group"><input type="text" name="flex_no_of_hours" id="flex_no_of_hours" class="form-control small-input-modification"> </span>heures avant
|
|
la date de fin de la réservation S'il reste <span class="form-group"><input type="text" name="flex_places_to_lift_moderation" id="flex_places_to_lift_moderation" class="form-control small-input-modification"></span>% de places vacantes.
|
|
</p> -->
|
|
<!-- <div class="form-check form-group">
|
|
<label class="form-check-label"> -->
|
|
<!-- <input type="hidden" id="adapt_cur_mod_settings" name="adapt_cur_mod_settings" value="off" class="form-check-input"> -->
|
|
<!-- </label><div class="help-block with-errors"></div>
|
|
I agree that the following information is tumpak ganern.
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</div>
|
|
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
</form>
|
|
</div><!-- /.event schedule form specific-->
|
|
|