Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
blackcat.dev-vt2b.ru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Акимов Владимир
blackcat.dev-vt2b.ru
Commits
15888960
Commit
15888960
authored
Aug 01, 2024
by
Владимир Акимов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Форма заказ квеста
parent
2a1cfa10
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
180 additions
and
247 deletions
+180
-247
add-zakaz.php
local/ajax/add-zakaz.php
+23
-0
init.php
local/php_interface/init.php
+4
-3
result_modifier.php
...ews/party/bitrix/news.detail/.default/result_modifier.php
+8
-0
style.css
...s/bitrix/news/party/bitrix/news.detail/.default/style.css
+14
-0
template.php
...itrix/news/party/bitrix/news.detail/.default/template.php
+131
-244
No files found.
local/ajax/add-zakaz.php
0 → 100644
View file @
15888960
<?
require_once
(
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/modules/main/include/prolog_before.php"
);
CModule
::
IncludeModule
(
"iblock"
);
?>
<?
if
(
$_POST
[
'NAME'
]){
$el
=
new
CIBlockElement
;
$PROP
=
[];
$PROP
=
$_POST
;
$arLoad
=
Array
(
"MODIFIED_BY"
=>
$USER
->
GetID
(),
// элемент изменен текущим пользователем
"IBLOCK_SECTION_ID"
=>
false
,
// элемент лежит в корне раздела
"IBLOCK_ID"
=>
9
,
"PROPERTY_VALUES"
=>
$PROP
,
"NAME"
=>
$_POST
[
'NAME'
],
"ACTIVE"
=>
"Y"
,
//
);
$el
->
Add
(
$arLoad
);
}
?>
local/php_interface/init.php
View file @
15888960
<?
\Bitrix\Main\Loader
::
includeModule
(
'iblock'
);
// ключи рекапчи
define
(
"RE_SITE_KEY"
,
"6LdUvhMqAAAAAGXFJv_32hIuz8xtsj05pHKoiWIr"
);
define
(
"RE_SEC_KEY"
,
"6LdUvhMqAAAAANE0BPDr9IuMLGeXTKFugQcW1C6d"
);
// функция получения квестов по жанрам
function
quests_genre
(
$genre
){
$genres
=
[];
...
...
@@ -26,9 +29,7 @@ function elements($iblockId,$adressId){
return
$elements
;
}
// ключи рекапчи
define
(
"RE_SITE_KEY"
,
"6LdUvhMqAAAAAGXFJv_32hIuz8xtsj05pHKoiWIr"
);
define
(
"RE_SEC_KEY"
,
"6LdUvhMqAAAAANE0BPDr9IuMLGeXTKFugQcW1C6d"
);
//функуия цвет жанров
function
color
(
$genre
)
...
...
local/templates/blackcat/components/bitrix/news/party/bitrix/news.detail/.default/result_modifier.php
View file @
15888960
...
...
@@ -12,6 +12,14 @@
}
$dbEnums
=
\Bitrix\Iblock\PropertyEnumerationTable
::
getList
(
array
(
'order'
=>
array
(
'SORT'
=>
'asc'
),
// параметры сортировки
'select'
=>
array
(
'*'
),
// * - означает что выбираем все поля
'filter'
=>
array
(
'PROPERTY_ID'
=>
34
)
// параметры фильтра
));
while
(
$arEnum
=
$dbEnums
->
fetch
())
{
$arResult
[
'POVODS'
][]
=
$arEnum
;
}
?>
\ No newline at end of file
local/templates/blackcat/components/bitrix/news/party/bitrix/news.detail/.default/style.css
View file @
15888960
...
...
@@ -140,4 +140,18 @@
}
.q-phone
{
top
:
0px
;
}
.help-block1
{
display
:
none
;
}
.help-block1.error
{
display
:
block
;
color
:
red
;
}
.order-children
.form-group.error
{
color
:
red
;
}
.order-children
.thanks
{
margin
:
20px
0
;
font-size
:
14px
;
}
\ No newline at end of file
local/templates/blackcat/components/bitrix/news/party/bitrix/news.detail/.default/template.php
View file @
15888960
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment