Initial import of Din Beste Hjelper site

CodeIgniter 3 app for dinbestehjelper.no. Excludes vendor/, local backup
folders (new/, archive/, archived/) and DB dumps (*.sql) via .gitignore.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P16ttGUge8zj91dm6WrmEb
This commit is contained in:
Astral04
2026-08-04 12:52:43 +00:00
co-authored by Claude Opus 4.8
commit 4e1a69c8d4
542 changed files with 214158 additions and 0 deletions
@@ -0,0 +1,187 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>bookings/booking-process">
<input type="hidden" name="servicelength" id="servicelength" value="00:00:00">
<div class="formRow">
<label class="formTitle">Vendég neve</label>
<input type="text" class="formInputBox" name="guest_name" value="">
</div>
<div class="formRow">
<label class="formTitle">Email</label>
<input type="text" class="formInputBox" name="guest_email" value="">
</div>
<div class="formRow">
<label class="formTitle">Telefon</label>
<input type="text" class="formInputBox" name="guest_phone" value="">
</div>
<div class="formRow">
<label class="formTitle">Csoport</label>
<select class="formDropdownBox" style="padding:0;" name="group_id" id="group_id">
<?php
foreach($workgroups as $workgroupItem){
echo '<option value="'.$workgroupItem->group_id.'">'.$workgroupItem->group_name.'</option>';
}
?>
</select>
</div>
<div class="formRow">
<label class="formTitle">Kezdő dátum</label>
<input type="date" class="formInputBox" name="booking_date" id="booking_date" value="<?php echo date('Y-m-d');?>">
</div>
<div class="formRow">
<label class="formTitle">Záró dátum</label>
<input type="date" class="formInputBox" name="end_booking_date" id="end_booking_date" value="<?php echo date('Y-m-d');?>">
</div>
<div class="formRow">
<label class="formTitle">Egész nap szabadnap</label>
<select class="formDropdownBox" style="padding:0;" name="free_day" id="free_day">
<option value="1">igen</option>
<option value="0" selected>nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás(ok)</label>
<input type="text"
class="flexdatalist formInputBox"
data-data="<?php echo SITEURL;?>load_services.json"
data-search-in="service_name"
data-visible-properties='["service_name"]'
data-selection-required="true"
data-value-property="service_id"
data-text-property="{service_name}"
data-min-length="0"
multiple="multiple"
name="service_ids"
id="serviceList" style="background-color:white;">
</div>
<div class="formRow">
<label class="formTitle">Kezdő időpont</label>
<select class="formDropdownBox" style="padding:0;" name="booking_start_time" id="booking_start_time">
</select>
</div>
<div class="formRow">
<label class="formTitle">Záró időpont</label>
<input type="time" class="formInputBox" name="booking_finish_time" id="booking_finish_time" value="">
</div>
<div class="formRow">
<label class="formTitle">Értesítés küldése</label>
<select class="formDropdownBox" style="padding:0;" name="send_notification">
<option value="1">igen</option>
<option value="0" selected>nem</option>
</select>
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="addNewBookingManual" value="Hozzáadás">
<a href="<?php echo base_url();?>bookings" class="cancelButton" >Mégsem</a>
</div>
</form>
</div>
<script>
$(document).ready(function(){
getAvaliableTimesOfTheDay();
$('#free_day').change(function(){
if($('#free_day').val() == '1'){
$('#booking_start_time').html('<option value="09:00:00">09:00:00</option>');
$('#booking_start_time').val('09:00:00');
$('#booking_finish_time').val('18:00:00');
$('#serviceList').val('');
}
else{
getAvaliableTimesOfTheDay();
}
});
$('#booking_date').change(function(){
if($('#free_day').val() != '1'){
$('#end_booking_date').val($('#booking_date').val());
getAvaliableTimesOfTheDay();
$("#booking_start_time option:first").attr('selected', true);
}
});
$('#booking_start_time').change(function(){
//getAvaliableTimesOfTheDay();
if($('#free_day').val() != '1'){
calculateServiceEndTime();
}
});
$('#serviceList').change(function(){
$.ajax({
url: '<?php echo base_url();?>ajax',
type: 'POST',
data: {
action:'calculate_service_length',
service_ids: $('#serviceList').val()
},
error: function() {
},
//dataType: 'json',
success: function(data) {
},
}).done(function(result){
$('#servicelength').val(result);
if($('#free_day').val() != '1'){
getAvaliableTimesOfTheDay();
calculateServiceEndTime();
}
});
});
$('#group_id').change(function(){
if($('#free_day').val() != '1'){
getAvaliableTimesOfTheDay();
}
});
});
function getAvaliableTimesOfTheDay(){
var selectedDate = $('#booking_date').val();
$.ajax({
url: '<?php echo base_url();?>ajax',
type: 'POST',
data: {
action:'getAvailableTimeOptions',
group_id:$('#group_id').val(),
servicelength:$('#servicelength').val(),
selectedDate:selectedDate
},
error: function() {
},
//dataType: 'json',
success: function(data) {
},
}).done(function(result){
if(result != 0){
$('#booking_start_time').html(result);
calculateServiceEndTime();
}
else{
$('#booking_start_time').html('<option value="">Nincs erre a napra szabad időpont!</option>');
}
});
}
function calculateServiceEndTime(){
var selectedTotalTime = $('#booking_start_time').val();
const selectedServiceDatetime = new Date('<?php echo date('Y-m-d');?> ' + $('#servicelength').val());
//console.log($('#servicelength').val());
var subTotalTimeHours = moment.utc(selectedTotalTime,'HH:mm').add(selectedServiceDatetime.getHours(),'hour').format('HH:mm');
var subTotalTimeMinutes = moment.utc(subTotalTimeHours,'HH:mm').add(selectedServiceDatetime.getMinutes(),'minutes').format('HH:mm');
//console.log(subTotalTimeMinutes);
$('#booking_finish_time').val(subTotalTimeMinutes);
}
</script>
@@ -0,0 +1,52 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>groups/group-process" enctype="multipart/form-data">
<div class="formRow">
<label class="formTitle">Név</label>
<input type="text" class="formInputBox" name="group_name" value="">
</div>
<div class="formRow">
<label class="formTitle">Profilkép</label>
<input type="file" class="formInputBox" name="group_profile_img" value="">
</div>
<div class="formRow">
<label class="formTitle">Leírás</label>
<input type="text" class="formInputBox" name="group_info" value="">
</div>
<div class="formRow">
<label class="formTitle">Képességek</label>
<div class="skillContainer">
<?php
if(is_array($services)){
foreach($services as $serviceItem){
if($serviceItem->service_category != ''){
echo '<div class="skillItem"><div class="skillCheckBoxContainer"><input type="hidden" name="skill_'.$serviceItem->service_id.'" value="0"><input type="checkbox" name="skill_'.$serviceItem->service_id.'" id="skill_'.$serviceItem->service_id.'" value="1"></div><label class="skillLabel" for="skill_'.$serviceItem->service_id.'">'.$serviceItem->service_name.' <br />('.$serviceItem->service_category.')</label></div>';
}
else{
echo '<div class="skillItem"><div class="skillCheckBoxContainer"><input type="hidden" name="skill_'.$serviceItem->service_id.'" value="0"><input type="checkbox" name="skill_'.$serviceItem->service_id.'" id="skill_'.$serviceItem->service_id.'" value="1"></div><label class="skillLabel" for="skill_'.$serviceItem->service_id.'">'.$serviceItem->service_name.'</label></div>';
}
}
}
?>
</div>
</div>
<div class="formRow">
<label class="formTitle">Aktív</label>
<select class="formDropdownBox" style="padding:0;" name="is_active">
<option value="1" selected>igen</option>
<option value="0">nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Megjegyzés</label>
<input type="text" class="formInputBox" name="group_notes" value="">
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="addNewGroup" value="Hozzáadás">
<a href="<?php echo base_url();?>groups" class="cancelButton">Mégsem</a>
</div>
</form>
</div>
@@ -0,0 +1,53 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>services/service-process">
<div class="formRow">
<label class="formTitle">Fő kategória</label>
<input type="text" class="formInputBox" name="main_category" value="">
</div>
<div class="formRow">
<label class="formTitle">Fő kategória leírás</label>
<input type="text" class="formInputBox" name="main_category_description" value="">
</div>
<div class="formRow">
<label class="formTitle">Kategória</label>
<input type="text" class="formInputBox" name="service_category" value="">
</div>
<div class="formRow">
<label class="formTitle">Megnevezés</label>
<input type="text" class="formInputBox" name="service_name" value="">
</div>
<div class="formRow">
<label class="formTitle">Leírás</label>
<input type="text" class="formInputBox" name="service_description" value="">
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás ára</label>
<input type="number" class="formInputBox" name="service_price" value="">
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás időtartama</label>
<input type="time" class="formInputBox" name="service_time" value="">
</div>
<div class="formRow">
<label class="formTitle">Aktív</label>
<select class="formDropdownBox" style="padding:0;" name="is_enabled">
<option value="1" selected>igen</option>
<option value="0">nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Nyilvános</label>
<select class="formDropdownBox" style="padding:0;" name="is_public">
<option value="1" selected>igen</option>
<option value="0">nem</option>
</select>
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="addNewService" value="Hozzáadás">
<a href="<?php echo base_url();?>services" class="cancelButton">Mégsem</a>
</div>
</form>
</div>
@@ -0,0 +1,72 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<div class="form-row">
<a href="<?php echo SITEURL;?>bookings/add-booking" class="submitBtn">Új foglalás</a>
</div>
<div class="form-row">
<table class="tableClass">
<tr>
<td></td>
<td>#</td>
<td>Vendég neve</td>
<td>Email</td>
<td>Telefon</td>
<td>Csoport</td>
<td>Foglalási dátum</td>
<td>Szolg. kezdete</td>
<td>Szolg. vége</td>
<td>Szolgáltatások</td>
</tr>
<?php
if(is_array($results)){
foreach($results as $resultItem){
?>
<tr>
<td>
<a href="<?php echo SITEURL;?>bookings/update-booking/<?php echo $resultItem->booking_id ;?>"><i class="fas fa-edit"></i></a>
| <a href="<?php echo site_url().'bookings/booking-process?delete-booking='.$resultItem->booking_id;?>"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
</td>
<td>#<?php echo $resultItem->booking_id;?></td>
<td><?php echo $resultItem->guest_name;?></td>
<td><?php echo $resultItem->guest_email;?></td>
<td><?php echo $resultItem->guest_phone;?></td>
<td><?php echo $resultItem->group_name;?></td>
<td style="min-width:85px;"><?php echo $resultItem->booking_date;?></td>
<td><?php echo $resultItem->booking_start_time;?></td>
<td><?php echo $resultItem->booking_finish_time;?></td>
<td><?php
if(!empty($resultItem->services)){
echo '<table class="tableInTable">';
echo '<tr>';
echo '<td>Szolgáltalás neve</td>';
echo '<td>Mennyiség</td>';
echo '<td>Ár</td>';
echo '<td>Időtartam</td>';
echo '</tr>';
foreach($resultItem->services as $serviceItem){
echo '<tr>';
echo '<td>'.$serviceItem->service_name.'</td>';
echo '<td>'.$serviceItem->quantity.'</td>';
echo '<td>'.$serviceItem->service_price.'</td>';
echo '<td>'.$serviceItem->service_time.'</td>';
echo '</tr>';
}
echo '</table>';
}
?></td>
</tr>
<?php
}
}
else{
echo '<tr>';
echo '<td colspan="10">Nincs bejegyzett foglalás</td>';
echo '</tr>';
}
?>
</table>
</div>
</div>
@@ -0,0 +1,81 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<script src="<?php echo SITEURL;?>assets/js/calendar.js" defer></script>
<div class="contianer">
<div class="calendar">
<div class="calendar-header">
<span class="month-picker" id="month-picker"> May </span>
<div class="year-picker" id="year-picker">
<span class="year-change" id="pre-year">
<pre><</pre>
</span>
<span id="year">2020 </span>
<span class="year-change" id="next-year">
<pre>></pre>
</span>
</div>
</div>
<div class="calendar-body">
<div class="calendar-week-days">
<div>V</div>
<div>H</div>
<div>K</div>
<div>Sze</div>
<div>CS</div>
<div>P</div>
<div>Szo</div>
</div>
<div class="calendar-days">
</div>
</div>
<div class="calendar-footer">
</div>
<div class="date-time-formate">
<div class="day-text-formate">MA</div>
<div class="date-time-value">
<div class="time-formate">01:41:20</div>
<div class="date-formate">2022 - march - 03</div>
</div>
</div>
<div class="month-list"></div>
</div>
<div class="calendarContent"></div>
</div>
</div>
<script>
$(document).ready(function(){
});
function hasEventDay(year, monthNumber, dayNumber){
var month = monthNumber+1 > 9 ? (monthNumber+1) : '0' + (monthNumber+1);
var day = dayNumber > 9 ? dayNumber : '0' + dayNumber;
var selectedDate = year +'-'+ month +'-'+ day;
//console.log(selectedDate);
var status = 0;
$.ajax({
url: '<?php echo SITEURL;?>ajax',
type: 'POST',
data: {
action:'dayHasEvent',
dayDate: selectedDate
},
error: function() {
},
//dataType: 'json',
success: function(data) {
status = data;
return status;
console.log(status);
},
}).done(function(result){
});
return status;
}
</script>
@@ -0,0 +1,53 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<div class="form-row">
<a href="<?php echo SITEURL;?>groups/add-group" class="submitBtn">Új csoport</a>
</div>
<div class="form-row">
<table class="tableClass">
<tr>
<td></td>
<td>#</td>
<td>Profilkép</td>
<td>Név</td>
<td>Leírás</td>
<td>Képességek</td>
<td>Aktív</td>
</tr>
<?php
$skillList = '';
if(is_array($results)){
foreach($results as $resultItem){
$skillList = '<div>';
if(is_array($resultItem->skillList)){
foreach($resultItem->skillList as $skillListItem){
$skillList .= '<div>'.$skillListItem->service_name.' / '.$skillListItem->service_category.' (#'.$skillListItem->service_id.')</div>';
}
}
$skillList .= '</div>';
?>
<tr>
<td>
<a href="<?php echo SITEURL;?>groups/update-group/<?php echo $resultItem->group_id;?>"><i class="fas fa-edit"></i></a>
| <a href="<?php echo site_url().'groups/group-process?delete-group='.$resultItem->group_id;?>"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
</td>
<td>#<?php echo $resultItem->group_id;?></td>
<td><img src="<?php echo SITEURL.'assets/img/'.$resultItem->group_profile_img;?>" style="width:50px;margin:0;" /></td>
<td><?php echo $resultItem->group_name;?></td>
<td><?php echo $resultItem->group_info;?></td>
<td><?php echo $skillList;?></td>
<td><?php echo $resultItem->is_active?'igen':'nem';?></td>
</tr>
<?php
}
}
else{
echo '<tr>';
echo '<td colspan="10">Nincs találat</td>';
echo '</tr>';
}
?>
</table>
</div>
</div>
@@ -0,0 +1,55 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<div class="form-row">
<a href="<?php echo SITEURL;?>services/add-service" class="submitBtn">Új szolgáltatás</a>
</div>
<div class="form-row">
<table class="tableClass">
<tr>
<td style="min-width:55px;"></td>
<td>#</td>
<td>Fő kategória</td>
<td>Fő kategória leírás</td>
<td>Kategória</td>
<td>Megnevezés</td>
<td>Leírás</td>
<td>Ár</td>
<td>Időtartam</td>
<td>Nyilvános</td>
<td>Elérhető</td>
<td>Státusz</td>
</tr>
<?php
if(is_array($results)){
foreach($results as $resultItem){
?>
<tr>
<td>
<a href="<?php echo SITEURL;?>services/update-service/<?php echo $resultItem->service_id;?>"><i class="fas fa-edit"></i></a>
| <a href="<?php echo site_url().'services/service-process?delete-service='.$resultItem->service_id;?>"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
</td>
<td>#<?php echo $resultItem->service_id;?></td>
<td><?php echo $resultItem->main_category;?></td>
<td><?php echo $resultItem->main_category_description;?></td>
<td><?php echo $resultItem->service_category;?></td>
<td><?php echo $resultItem->service_name;?></td>
<td><?php echo $resultItem->service_description;?></td>
<td><?php echo $resultItem->service_price;?></td>
<td><?php echo $resultItem->service_time;?></td>
<td><?php echo $resultItem->is_public?'igen':'nem';?></td>
<td><?php echo $resultItem->is_service_available?'igen':'nem';?></td>
<td><?php echo $resultItem->is_enabled?'aktív':'inaktív';?></td>
</tr>
<?php
}
}
else{
echo '<tr>';
echo '<td colspan="10">Nincs találat</td>';
echo '</tr>';
}
?>
</table>
</div>
</div>
@@ -0,0 +1,211 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>bookings/booking-process">
<input type="hidden" name="servicelength" id="servicelength" value="00:00:00">
<input type="hidden" name="booking_id" value="<?php echo $selectedItem->booking_id;?>">
<div class="formRow">
<label class="formTitle">Vendég neve</label>
<input type="text" class="formInputBox" name="guest_name" value="<?php echo $selectedItem->guest_name;?>">
</div>
<div class="formRow">
<label class="formTitle">Email</label>
<input type="text" class="formInputBox" name="guest_email" value="<?php echo $selectedItem->guest_email;?>">
</div>
<div class="formRow">
<label class="formTitle">Telefon</label>
<input type="text" class="formInputBox" name="guest_phone" value="<?php echo $selectedItem->guest_phone;?>">
</div>
<div class="formRow">
<label class="formTitle">Csoport</label>
<select class="formDropdownBox" style="padding:0;" name="group_id" id="group_id">
<?php
foreach($workgroups as $workgroupItem){
echo '<option value="'.$workgroupItem->group_id.'" '.($workgroupItem->group_id == $selectedItem->group_id?'selected':'').'>'.$workgroupItem->group_name.'</option>';
}
?>
</select>
</div>
<div class="formRow">
<label class="formTitle">Kezdő dátum</label>
<input type="date" class="formInputBox" name="booking_date" id="booking_date" value="<?php echo $selectedItem->booking_date;?>">
</div>
<div class="formRow">
<label class="formTitle">Záró dátum</label>
<input type="date" class="formInputBox" name="end_booking_date" id="end_booking_date" value="<?php echo $selectedItem->booking_date;?>">
</div>
<div class="formRow">
<label class="formTitle">Egész nap szabadnap</label>
<select class="formDropdownBox" style="padding:0;" name="free_day" id="free_day">
<option value="1">igen</option>
<option value="0" selected>nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás(ok)</label>
<input type="text"
class="flexdatalist formInputBox"
data-data="<?php echo SITEURL;?>load_services.json"
data-search-in="service_name"
data-visible-properties='["service_name"]'
data-selection-required="true"
data-value-property="service_id"
data-text-property="{service_name}"
data-min-length="1"
multiple="multiple"
name="service_ids"
value="<?php
if($selectedItem->service_ids != ''){
$services = unserialize($selectedItem->service_ids);
echo implode(',',$services);
}
?>"
id="serviceList" required style="background-color:white;">
</div>
<div class="formRow">
<label class="formTitle">Kezdő időpont</label>
<input type="time" class="formInputBox" name="booking_start_time" id="booking_start_time" value="<?php echo $selectedItem->booking_start_time;?>">
</div>
<div class="formRow">
<label class="formTitle">Záró időpont</label>
<input type="time" class="formInputBox" name="booking_finish_time" id="booking_finish_time" value="<?php echo $selectedItem->booking_finish_time;?>">
</div>
<div class="formRow">
<label class="formTitle">Értesítés küldése</label>
<select class="formDropdownBox" style="padding:0;" name="send_notification">
<option value="1">igen</option>
<option value="0" selected>nem</option>
</select>
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="updateBookingManual" value="Módosítás">
<a href="<?php echo base_url();?>bookings" class="cancelButton" >Mégsem</a>
</div>
</form>
</div>
<script>
$(document).ready(function(){
//getAvaliableTimesOfTheDay();
$('#free_day').change(function(){
if($('#free_day').val() == '1'){
$('#booking_start_time').html('<option value="10:00:00">10:00:00</option>');
$('#booking_start_time').val('10:00:00');
$('#booking_finish_time').val('18:00:00');
$('#serviceList').val('');
}
else{
getAvaliableTimesOfTheDay();
}
});
$('#booking_date').change(function(){
if($('#free_day').val() != '1'){
$('#end_booking_date').val($('#booking_date').val());
getAvaliableTimesOfTheDay();
$("#booking_start_time option:first").attr('selected', true);
}
});
$('#booking_start_time').change(function(){
if($('#free_day').val() != '1'){
$.ajax({
url: '<?php echo base_url();?>ajax',
type: 'POST',
data: {
action:'calculate_service_length',
service_ids: $('#serviceList').val()
},
error: function() {
},
//dataType: 'json',
success: function(data) {
},
}).done(function(result){
$('#servicelength').val(result);
if($('#free_day').val() != '1'){
getAvaliableTimesOfTheDay();
calculateServiceEndTime();
}
});
}
});
$('#serviceList').change(function(){
$.ajax({
url: '<?php echo base_url();?>ajax',
type: 'POST',
data: {
action:'calculate_service_length',
service_ids: $('#serviceList').val()
},
error: function() {
},
//dataType: 'json',
success: function(data) {
},
}).done(function(result){
$('#servicelength').val(result);
if($('#free_day').val() != '1'){
getAvaliableTimesOfTheDay();
calculateServiceEndTime();
}
});
});
$('#group_id').change(function(){
if($('#free_day').val() != '1'){
getAvaliableTimesOfTheDay();
}
});
});
function getAvaliableTimesOfTheDay(){
var selectedDate = $('#booking_date').val();
$.ajax({
url: '<?php echo base_url();?>ajax',
type: 'POST',
data: {
action:'getAvailableTimeOptions',
worker_id:$('#worker_id').val(),
servicelength:$('#servicelength').val(),
selectedDate:selectedDate
},
error: function() {
},
//dataType: 'json',
success: function(data) {
},
}).done(function(result){
if(result != 0){
$('#booking_start_time').html(result);
calculateServiceEndTime();
}
else{
$('#booking_start_time').html('<option value="">Nincs erre a napra szabad időpont!</option>');
}
});
}
function calculateServiceEndTime(){
var selectedTotalTime = $('#booking_start_time').val();
const selectedServiceDatetime = new Date('<?php echo date('Y-m-d');?> ' + $('#servicelength').val());
//console.log($('#servicelength').val());
var subTotalTimeHours = moment.utc(selectedTotalTime,'HH:mm').add(selectedServiceDatetime.getHours(),'hour').format('HH:mm');
var subTotalTimeMinutes = moment.utc(subTotalTimeHours,'HH:mm').add(selectedServiceDatetime.getMinutes(),'minutes').format('HH:mm');
//console.log(subTotalTimeMinutes);
$('#booking_finish_time').val(subTotalTimeMinutes);
}
</script>
@@ -0,0 +1,57 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>groups/group-process" enctype="multipart/form-data">
<input type="hidden" name ="group_id" value="<?php echo $selectedItem->group_id;?>">
<div class="formRow">
<label class="formTitle">Név</label>
<input type="text" class="formInputBox" name="group_name" value="<?php echo $selectedItem->group_name;?>">
</div>
<div class="formRow">
<img src="<?php echo SITEURL.'assets/img/groups/'.$selectedItem->group_profile_img;?>" width="100px">
</div>
<div class="formRow">
<label class="formTitle">Profilkép</label>
<input type="file" class="formInputBox" name="group_profile_img">
</div>
<div class="formRow">
<label class="formTitle">Leírás</label>
<input type="text" class="formInputBox" name="group_info" value="<?php echo $selectedItem->group_info;?>">
</div>
<div class="formRow">
<label class="formTitle">Képességek</label>
<div class="skillContainer">
<?php
$selectedServiceArray = unserialize($selectedItem->skills);
if(is_array($services)){
foreach($services as $serviceItem){
if($serviceItem->service_category != ''){
echo '<div class="skillItem"><div class="skillCheckBoxContainer"><input type="hidden" name="skill_'.$serviceItem->service_id.'" value="0"><input type="checkbox" name="skill_'.$serviceItem->service_id.'" id="skill_'.$serviceItem->service_id.'" value="1" '.(in_array($serviceItem->service_id, $selectedServiceArray)?'checked':'').'></div><label class="skillLabel" for="skill_'.$serviceItem->service_id.'">'.$serviceItem->service_name.' <br />('.$serviceItem->service_category.')</label></div>';
}
else{
echo '<div class="skillItem"><div class="skillCheckBoxContainer"><input type="hidden" name="skill_'.$serviceItem->service_id.'" value="0"><input type="checkbox" name="skill_'.$serviceItem->service_id.'" id="skill_'.$serviceItem->service_id.'" value="1" '.(in_array($serviceItem->service_id, $selectedServiceArray)?'checked':'').'></div><label class="skillLabel" for="skill_'.$serviceItem->service_id.'">'.$serviceItem->service_name.'</label></div>';
}
}
}
?>
</div>
</div>
<div class="formRow">
<label class="formTitle">Aktív</label>
<select class="formDropdownBox" style="padding:0;" name="is_active">
<option value="1" <?php echo $selectedItem->is_active?'selected':'';?>>igen</option>
<option value="0" <?php echo !$selectedItem->is_active?'selected':'';?>>nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Megjegyzés</label>
<input type="text" class="formInputBox" name="group_notes" value="<?php echo $selectedItem->group_notes;?>">
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="updateGroup" value="Módosítás">
<a href="<?php echo base_url();?>groups" class="cancelButton">Mégsem</a>
</div>
</form>
</div>
@@ -0,0 +1,54 @@
<div class="mainContentContainer" style="top:100px">
<div class="pageTitle"><?php echo $pageTitle;?></div>
<form method="post" action="<?php echo base_url();?>services/service-process">
<input type="hidden" name ="service_id" value="<?php echo $selectedItem->service_id;?>">
<div class="formRow">
<label class="formTitle">Fő kategória</label>
<input type="text" class="formInputBox" name="main_category" value="<?php echo $selectedItem->main_category;?>">
</div>
<div class="formRow">
<label class="formTitle">Fő kategória leírás</label>
<input type="text" class="formInputBox" name="main_category_description" value="<?php echo $selectedItem->main_category_description;?>">
</div>
<div class="formRow">
<label class="formTitle">Kategória</label>
<input type="text" class="formInputBox" name="service_category" value="<?php echo $selectedItem->service_category;?>">
</div>
<div class="formRow">
<label class="formTitle">Megnevezés</label>
<input type="text" class="formInputBox" name="service_name" value="<?php echo $selectedItem->service_name;?>">
</div>
<div class="formRow">
<label class="formTitle">Leírás</label>
<input type="text" class="formInputBox" name="service_description" value="<?php echo $selectedItem->service_description;?>">
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás ára</label>
<input type="number" class="formInputBox" name="service_price" value="<?php echo $selectedItem->service_price;?>">
</div>
<div class="formRow">
<label class="formTitle">Szolgáltatás időtartama</label>
<input type="time" class="formInputBox" name="service_time" value="<?php echo $selectedItem->service_time;?>">
</div>
<div class="formRow">
<label class="formTitle">Aktív</label>
<select class="formDropdownBox" style="padding:0;" name="is_enabled">
<option value="1" <?php echo $selectedItem->is_enabled?'selected':'';?>>igen</option>
<option value="0" <?php echo !$selectedItem->is_enabled?'selected':'';?>>nem</option>
</select>
</div>
<div class="formRow">
<label class="formTitle">Nyilvános</label>
<select class="formDropdownBox" style="padding:0;" name="is_public">
<option value="1" <?php echo $selectedItem->is_public?'selected':'';?>>igen</option>
<option value="0" <?php echo !$selectedItem->is_public?'selected':'';?>>nem</option>
</select>
</div>
<div class="formRow">
<input type="submit" class="submitButton" name="updateService" value="Módosítás">
<a href="<?php echo base_url();?>services" class="cancelButton" >Mégsem</a>
</div>
</form>
</div>