"bitrix:catalog.section
"SECTION_CODE" => $_REQUEST["COD"],
Верно?$_REQUEST["PRODUCT_ID"]
это вот это должно выводить по названию и артиклу товар.if(CModule::IncludeModule("iblock"))
{
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Главная страница");
} else {
var_dump('No');die();
}
array(1) { [0]=> string(11) "00:00-03:00" } array(2) { [0]=> string(11) "00:00-03:00" [1]=> string(11) "00:30-03:00" } array(3) { [0]=> string(11) "00:00-03:00" [1]=> string(11) "00:30-03:00" [2]=> string(11) "01:00-03:00" } array(4) { [0]=> string(11) "00:00-03:00" [1]=> string(11) "00:30-03:00" [2]=> string(11) "01:00-03:00" [3]=> string(11) "01:30-03:00" } array(5) { [0]=> string(11) "00:00-03:00" [1]=> string(11) "00:30-03:00" [2]=> string(11) "01:00-03:00" [3]=> string(11) "01:30-03:00" [4]=> string(11) "02:00-03:00" } array(6) { [0]=> string(11) "00:00-03:00" [1]=> string(11) "00:30-03:00" [2]=> string(11) "01:00-03:00" [3]=> string(11) "01:30-03:00" [4]=> string(11) "02:00-03:00" [5]=> string(11) "02:30-03:00" } array(7) { [0]=> string(11) "00:00-03:00"
<div class="block-lesson" style="width: 43.5%; height: {{ ((strtotime($lesson->time_end) - strtotime($lesson->time_start))/60/30 + 1) * 33}}px;" data-href="{{ route('shedule.edit', $lesson->id) }}">
$(modal).modal('show').find('.modal-content').load($(this).data('href'));
<form id="form-create_shedule" action="{{ route('shedule.update', $shedule->id) }}" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Создание занятие</h4>
</div>
<div class="modal-body">
{{ csrf_field() }}
<div class="form-group">
<input type="text" class="form-control datetimepicker" name="date" placeholder="Время занятие" required>
</div>
<div class="form-group">
<div class="col-lg-6">
<input type="text" class="form-control time" name="time_start" placeholder="Начало занятии" required value="{{ $shedule->time_start }}">
</div>
<div class="col-lg-6">
<input type="text" class="form-control time" name="time_end" placeholder="Конец занятии" required value="{{ $shedule->time_end }}">
</div>
</div>
<div class="form-group">
<select name="direction_id" class="form-control" required>
<option value="" disabled selected>Выберите напраление</option>
@foreach($directions as $direction)
<option value="{{ $direction->id }}">{{ $direction->name }}
@if($direction->id == $shedule->direction_id)
selected
@endif
</option>
@endforeach
</select>
</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" name="type" autocomplete="off" value="1"
@if($shedule->type == 1)
checked
@endif>Групповое занятие
</label>
<label class="btn btn-default">
<input type="radio" name="type" autocomplete="off" value="2"
@if($shedule->type == 2)
checked
@endif>Индивидуальное занятие
</label>
</div>
<div class="form-group">
<select name="execute_id" class="form-control" required>
<option value="" disabled selected>Выберите исполнителя</option>
@foreach($executes as $execute)
<option value="{{ $execute->id }}"
@if($execute->id == $shedule->execute_id)
selected
@endif
>{{ $execute->fullName }}</option>
@endforeach
</select>
</div>
<div class="form-group">
<select name="branch_id" class="form-control" id="select-branch" required>
<option value="" disabled selected>Выберите Филиал</option>
@foreach($branchs as $branch)
<option value="{{ $branch->id }}">{{ $branch->name }}</option>
@endforeach
</select>
</div>
<div class="form-group">
<select name="room_id" class="form-control select-room" required>
</select>
</div>
<div class="form-group">
<select name="client[]" class="form-control js-select-client addClient" multiple="multiple" title="Клиенты" required>
@foreach($clients as $client)
<option value="{{ $client->id }}">{{ $client->fullName }}</option>
@endforeach
</select>
</div>
<input type="hidden" name="user_id" value="{{ Auth::user()->id }}">
</div>
<div class="modal-footer">
<button type="button" class="button-error" data-dismiss="modal">Отменить</button>
<button type="submit" class="button-success">Создать</button>
</div>
</form>
<script>
$(document).ready(function(){
$('.datetimepicker').datetimepicker({
format: 'DD MMMM YYYY',
pickTime: false,
locale: 'ru',
language: 'ru-RU',
});
$('.time').datetimepicker({
format: 'HH:mm',
minuteStepping: 30,
pickDate: false,
locale: 'ru',
language: 'ru-RU',
});
})
</script>
Еще можно html модалки.А это уже я показывал идет нажатие и на отсылка на контроллер
public function edit($id)
{
$user = Auth::user()->id;
$branchs = Branch::where('user_id', $user)->get();
$directions = Direction::where('user_id', $user)->get();
$executes = Execute::where('user_id', $user)->get();
$clients = Client::where('user_id', $user)->get();
$shedule = Shedule::find($id);
return view('shedule.update', compact('branchs', 'directions', 'executes', 'clients', 'shedule'));
}
require('./bootstrap');
require('./send-form');
require('./form');
require('./index');
require('./modal');
require('./panel');
require('bootstrap-datetimepicker-sass/src/js/bootstrap-datetimepicker');
require('select2');
require('moment');
$(document).ready(function () {
$('.datetimepicker').datetimepicker({
format: 'DD MMMM YYYY',
pickTime: false,
locale: 'ru',
language: 'ru-RU',
});
$('.time').datetimepicker({
format: 'HH:mm',
minuteStepping: 30,
pickDate: false,
locale: 'ru',
language: 'ru-RU',
});
$('.js-select-client').select({
width: '300px',
placeholder: 'Выберите клиента'
});
});
<form id="form-create_shedule" action="{{ route('shedule.update') }}" method="post">