init
This commit is contained in:
96
module/forwarding/dashboard_forwarding.php
Normal file
96
module/forwarding/dashboard_forwarding.php
Normal file
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
require_once(MODULE_PATH . "faq/faq_config.inc.php");
|
||||
|
||||
$siteparts = \DynCom\mysyde\common\classes\Siteparts::get();
|
||||
$pageIds = array();
|
||||
$sitepartCount = array();
|
||||
$formname = "form_edit_faq";
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
|
||||
$action = (isset($_GET['action']) ? $_GET['action'] : "");
|
||||
|
||||
if ($action != "" && $action != "admin_login") {
|
||||
require_once(MODULE_PATH . "faq/edit_faq.inc.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$faq_group_anzahl = array();
|
||||
|
||||
|
||||
$query = "SELECT id, count(*) AS anzahl FROM main_faq_setup_group GROUP BY id";
|
||||
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
while ($row = @mysqli_fetch_array($result, 1)) {
|
||||
$faq_group_anzahl[] = $row['anzahl'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="mainContent">
|
||||
<?php echo current_website_language($site, $language); ?>
|
||||
<h1><?php echo get_translation('top_faq'); ?></h1>
|
||||
|
||||
<div class="dashboard_part_left">
|
||||
<h2><?php echo get_translation('top_faq'); ?></h2>
|
||||
|
||||
<?php
|
||||
$anzahl_group = count($faq_group_anzahl);
|
||||
if ($anzahl_group): ?>
|
||||
|
||||
|
||||
<a class="dashoard_box button_inhalt_collection"
|
||||
href="<?php echo get_menu_link($_GET["level_1"] . "/config", $site, $language); ?>">
|
||||
<span
|
||||
class="dashboard_box_number"><?php echo(isset($anzahl_group) ? $anzahl_group : 0); ?></span>
|
||||
<span class="dashboard_box_description"><?php echo $translation->get("faq_group"); ?></span>
|
||||
<img src="<?php echo PATH_SETUP_ICON_FAQ . "dokumente_2.png"; ?>" />
|
||||
</a>
|
||||
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php echo "<div class=\"infobox\">" . $translation->get("no_rows_found") . "</div>"; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="dashboard_part_right">
|
||||
<h2><?php echo get_translation('last_changed_faq'); ?></h2>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" class="selected_linklist_row" name="input_id" value="" />
|
||||
|
||||
<div class="requestLoader"></div>
|
||||
<div id="page_linklist">
|
||||
<?
|
||||
$query = "SELECT
|
||||
main_faq.id,
|
||||
GROUP_CONCAT(' ', IF(main_faq_group_link.active = 1,main_faq_setup_group.description,NULL)) AS '".$translation->get("linked_with")."',
|
||||
main_faq.description AS '" . $translation->get("description") . "',
|
||||
from_unixtime(main_faq.modified_date, '%d.%m.%Y %H:%i:%s') AS '" . $translation->get("changed_on") . "',
|
||||
main_admin_user.name AS '" . $translation->get("changed_by") . "'
|
||||
from
|
||||
main_faq left join main_admin_user
|
||||
ON
|
||||
main_faq.modified_user = main_admin_user.id
|
||||
LEFT JOIN
|
||||
main_faq_group_link
|
||||
ON
|
||||
main_faq_group_link.main_faq_id = main_faq.id
|
||||
LEFT JOIN
|
||||
main_faq_setup_group
|
||||
ON
|
||||
main_faq_setup_group.id = main_faq_group_link.main_faq_setup_group_id
|
||||
|
||||
where
|
||||
(main_faq.main_language_id = " . (int)$GLOBALS["language"]['id'] . ")
|
||||
GROUP BY main_faq_group_link.main_faq_id ORDER BY main_faq.modified_date desc limit 20";
|
||||
|
||||
$format = array('option', 'text', 'text', 'text', 'text');
|
||||
if ($result = @mysqli_query($GLOBALS['mysql_con'], $query)) {
|
||||
linklist($result, $formname, $format, "input_id", "edit_faq_list");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
317
module/forwarding/edit_forwarding.inc.php
Normal file
317
module/forwarding/edit_forwarding.inc.php
Normal file
@@ -0,0 +1,317 @@
|
||||
<?php
|
||||
date_default_timezone_set('Europe/Berlin');
|
||||
|
||||
$messages = array();
|
||||
$error = FALSE;
|
||||
|
||||
if (isset($custom_action)) {
|
||||
$action = $custom_action;
|
||||
} else {
|
||||
$action = $_REQUEST["action"];
|
||||
}
|
||||
|
||||
switch ($action) {
|
||||
|
||||
case 'edit_forwarding':
|
||||
edit_forwarding();
|
||||
break;
|
||||
case 'delete_forwarding':
|
||||
delete_forwarding();
|
||||
break;
|
||||
case 'new_forwarding':
|
||||
require_once("edit_forwarding_cardform.inc.php");
|
||||
break;
|
||||
case 'save_forwarding':
|
||||
save_forwarding();
|
||||
break;
|
||||
//Line Forwarding - Unterpunkt
|
||||
case 'save_line_forwarding':
|
||||
save_line_forwarding();
|
||||
break;
|
||||
case 'new_line_forwarding':
|
||||
new_line_forwarding();
|
||||
break;
|
||||
case 'edit_line_forwarding':
|
||||
edit_line_forwarding();
|
||||
break;
|
||||
case 'delete_line_forwarding':
|
||||
delete_line_forwarding();
|
||||
break;
|
||||
|
||||
default:
|
||||
require_once("edit_forwarding_listform.inc.php");
|
||||
break;
|
||||
}
|
||||
|
||||
function save_forwarding()
|
||||
{
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$input_id = "";
|
||||
// $input_all_languages = ($_POST["input_all_languages"] == "on") ? 1 : 0;
|
||||
|
||||
if ($_REQUEST["input_id"] <> '') {
|
||||
$query = "UPDATE forwarding_header SET
|
||||
description = '" . mysqli_real_escape_string($GLOBALS['mysql_con'], $_REQUEST["input_description"]) . "',
|
||||
modified_date = " . time() . ",
|
||||
modified_user = " . (int)$GLOBALS["admin_user"]['id'] . "
|
||||
WHERE id = '" . $_REQUEST["input_id"] . "'
|
||||
LIMIT 1";
|
||||
$inserted = FALSE;
|
||||
$input_id = $_REQUEST["input_id"];
|
||||
} else {
|
||||
$query = "INSERT INTO forwarding_header
|
||||
(main_language_id, description, modified_date, modified_user)
|
||||
VALUES (
|
||||
'" . $GLOBALS["language"]['id'] . "',
|
||||
'" . mysqli_real_escape_string($GLOBALS['mysql_con'], $_REQUEST['input_description']) . "',
|
||||
" . time() . ",
|
||||
" . (int)$GLOBALS["admin_user"]['id'] . "
|
||||
)";
|
||||
$inserted = TRUE;
|
||||
}
|
||||
|
||||
if (($_REQUEST["input_description"] == '')) {
|
||||
$messages[] = "<div class=\"errorbox\">" . $translation->get("error_description") . "</div>\n";
|
||||
$error = TRUE;
|
||||
}
|
||||
|
||||
|
||||
if (!$error) {
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
if ($inserted == TRUE) {
|
||||
$input_id = mysqli_insert_id($GLOBALS['mysql_con']);
|
||||
$messages[] = '<div class="successbox">' . $translation->get("url_management_msg_success1") . '</div>';
|
||||
} else {
|
||||
$messages[] = '<div class="successbox">' . $translation->get("url_management_msg_success2") . '</div>';
|
||||
}
|
||||
|
||||
update_sitepart_changes(17, $input_id);
|
||||
|
||||
if (is_page_edit()) {
|
||||
header('EDIT_ERROR: 1'); // verhindern, dass overlay geschlossen wird
|
||||
if (line_already_exists($_REQUEST["input_page_id"], 17, $input_id) === FALSE) {
|
||||
assoc_sitepart(17, $input_id, FALSE);
|
||||
}
|
||||
|
||||
if ($_REQUEST['force_close'] == 1) {
|
||||
edit_content_page();
|
||||
return;
|
||||
}
|
||||
|
||||
edit_forwarding($input_id, $messages);
|
||||
} elseif (is_component_edit()) {
|
||||
header('EDIT_ERROR: 1'); // verhindern, dass overlay geschlossen wird
|
||||
if (line_already_exists($_REQUEST["input_component_id"], 17, $input_id) === FALSE) {
|
||||
assoc_sitepart(17, $input_id, FALSE);
|
||||
}
|
||||
|
||||
if ($_REQUEST['force_close'] == 1) {
|
||||
edit_component("", $messages);
|
||||
return;
|
||||
}
|
||||
|
||||
edit_forwarding($input_id, $messages);
|
||||
} else {
|
||||
edit_forwarding($input_id, $messages);
|
||||
}
|
||||
} else {
|
||||
header('EDIT_ERROR: 1');
|
||||
$input_forwarding["description"] = $_REQUEST["input_description"];
|
||||
require_once("edit_forwarding_cardform.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
function edit_forwarding()
|
||||
{
|
||||
|
||||
if ((int)$_id > 0) {
|
||||
$input_id = $_id;
|
||||
} else {
|
||||
$input_id = $_REQUEST["input_id"];
|
||||
}
|
||||
|
||||
if ($input_id <> '') {
|
||||
$query = "SELECT * FROM forwarding_header WHERE id = '" . $input_id . "' LIMIT 1";
|
||||
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
if (@mysqli_num_rows($result) == 1) {
|
||||
$input_forwarding = @mysqli_fetch_array($result);
|
||||
require_once("edit_forwarding_cardform.inc.php");
|
||||
}
|
||||
} else {
|
||||
$input_forwarding = array();
|
||||
require_once("edit_forwarding_cardform.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
function delete_forwarding()
|
||||
{
|
||||
|
||||
if ($_REQUEST["input_id"] <> '') {
|
||||
$query = "DELETE FROM forwarding_header WHERE id = '" . $_REQUEST["input_id"] . "' LIMIT 1";
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
$query = "DELETE FROM forwarding_line WHERE header_id = '" . $_REQUEST["input_id"] . "'";
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
|
||||
// zuordnung von Seiten loeschen
|
||||
$query = "DELETE FROM main_page_link WHERE main_sitepart_id = 17 AND main_sitepart_header_id = '" . $_REQUEST["input_id"] . "'";
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
|
||||
update_sitepart_changes(17, $_REQUEST["input_id"], TRUE);
|
||||
}
|
||||
require_once("edit_forwarding_listform.inc.php");
|
||||
}
|
||||
|
||||
//Line Forwarding
|
||||
function new_line_forwarding()
|
||||
{
|
||||
|
||||
$input_line = array();
|
||||
|
||||
$input_line['header_id'] = $_REQUEST['input_id'];
|
||||
|
||||
|
||||
require_once("edit_forwarding_line_cardform.inc.php");
|
||||
}
|
||||
|
||||
function save_line_forwarding()
|
||||
{
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$messages = array();
|
||||
|
||||
$id = $_REQUEST["input_line_id"];
|
||||
$header_id = $_REQUEST['input_id'];
|
||||
$forward_url = "";
|
||||
$forward_navigation_id = 0;
|
||||
|
||||
|
||||
switch ($_POST["input_forward_type"]) {
|
||||
|
||||
case 1: // interne weiterleitung / Navigation
|
||||
$forward_navigation_id = $_POST['input_forward_navigation_id'];
|
||||
break;
|
||||
|
||||
case 2: // interne pfad weiterleitung
|
||||
$forward_url = $_POST['input_forward_url'];
|
||||
break;
|
||||
|
||||
case 3: // externe weiterleitung
|
||||
$forward_url = addhttp($_POST['input_forward_url_external']);
|
||||
break;
|
||||
}
|
||||
|
||||
if ($_REQUEST["input_line_id"] <> '') {
|
||||
$query = "UPDATE forwarding_line SET
|
||||
description = '" . mysqli_real_escape_string($GLOBALS['mysql_con'], $_REQUEST["input_description"]) . "',
|
||||
forward_type = '" . (int)$_POST["input_forward_type"] . "',
|
||||
forward_navigation_id = " . $forward_navigation_id . ",
|
||||
forward_url = '" . $forward_url . "',
|
||||
forward_parameter = '" . $_POST["input_forward_parameter"] . "',
|
||||
forward_icon = '" . $_POST["input_forward_icon"] . "'
|
||||
WHERE id = '" . $_REQUEST["input_line_id"] . "'
|
||||
LIMIT 1";
|
||||
$inserted = FALSE;
|
||||
} else {
|
||||
$sorting = @mysqli_fetch_array(@mysqli_query($GLOBALS['mysql_con'], "SELECT MAX(sorting)+1 AS 'newsorting' FROM forwarding_line WHERE header_id = '" . $_REQUEST["input_id"] . "'"));
|
||||
$sorting = ($sorting["newsorting"] <> "") ? $sorting = $sorting["newsorting"] : $sorting = 1;
|
||||
$query = "INSERT INTO forwarding_line
|
||||
(header_id, description, forward_type, forward_navigation_id, forward_url, forward_parameter, forward_icon, sorting)
|
||||
VALUES (
|
||||
'" . (int)$header_id . "',
|
||||
'" . mysqli_real_escape_string($GLOBALS['mysql_con'], $_REQUEST['input_description']) . "',
|
||||
'" . (int)$_POST["input_forward_type"] . "',
|
||||
'" . $forward_navigation_id . "',
|
||||
'" . $forward_url . "',
|
||||
'" . $_POST["input_forward_parameter"] . "',
|
||||
'" . $_POST["input_forward_icon"] . "',
|
||||
'" . $sorting . "'
|
||||
)";
|
||||
$inserted = TRUE;
|
||||
}
|
||||
|
||||
if (($_REQUEST["input_description"] == '')) {
|
||||
$messages[] = "<div class=\"errorbox\">" . $translation->get("error_description") . "</div>\n";
|
||||
$error = true;
|
||||
}
|
||||
|
||||
// benoetigt fuer ajax calls
|
||||
if ($error === true) {
|
||||
header('EDIT_ERROR: 1');
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
if ($_REQUEST['save_and_close'] == 1) {
|
||||
|
||||
edit_forwarding();
|
||||
} else {
|
||||
if ($inserted === TRUE) {
|
||||
$id = mysqli_insert_id($GLOBALS['mysql_con']);
|
||||
}
|
||||
edit_line_forwarding($id);
|
||||
}
|
||||
} else {
|
||||
$input_line["id"] = $_REQUEST["input_line_id"];
|
||||
$input_line["description"] = $_REQUEST['input_description'];
|
||||
$input_line["header_id"] = $header_id;
|
||||
$input_line["forward_type"] = $_REQUEST['forward_type'];
|
||||
$input_line["forward_url"] = $_REQUEST['forward_url'];
|
||||
$input_line["input_forward_url_external"] = $_REQUEST['input_forward_url_external'];
|
||||
|
||||
require_once("edit_forwarding_line_cardform.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function edit_line_forwarding($_id = "")
|
||||
{
|
||||
if ((int)$_id > 0) {
|
||||
$line_id = $_id;
|
||||
} else {
|
||||
$line_id = $_REQUEST["input_line_id"];
|
||||
}
|
||||
|
||||
if ($line_id <> '') {
|
||||
$query = "SELECT * FROM forwarding_line WHERE id = '" . $line_id . "' LIMIT 1";
|
||||
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
if (@mysqli_num_rows($result) == 1) {
|
||||
$input_line = @mysqli_fetch_array($result);
|
||||
require_once("edit_forwarding_line_cardform.inc.php");
|
||||
}
|
||||
} else {
|
||||
require_once("edit_forwarding_line_cardform.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
function delete_line_forwarding()
|
||||
{
|
||||
if ($_REQUEST["input_line_id"] <> '') {
|
||||
$query = "DELETE FROM forwarding_line WHERE id = '" . $_REQUEST["input_line_id"] . "' LIMIT 1";
|
||||
@mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
}
|
||||
edit_forwarding();
|
||||
}
|
||||
|
||||
/** Dropdown für icons 20210707 DuP **/
|
||||
function create_preview_select($input_line)
|
||||
{
|
||||
require 'forwarding_config.inc.php';
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
|
||||
echo "<div class\"icon-select-container\">";
|
||||
|
||||
echo "<div class=\"label\"><label for=\"forward_icon\">Icon auswählen</label></div>";
|
||||
|
||||
echo "<div class\"input\">";
|
||||
echo "<select style=\"float:left;\" id=\"forward_icon\" class=\"code\" type=\"text\" name=\"input_forward_icon\" >";
|
||||
|
||||
foreach ($forwarding_icon_images as $key => $data) {
|
||||
$selected_text = ($key == $input_line["forward_icon"]) ? " selected=\"selected\"" : "";
|
||||
echo "<option value=\"" . $key . "\" $selected_text>" . $data["name"] . "</option>";
|
||||
$value++;
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
echo "<div class=\"dropdownPreview\" data-image=\"" . $input_line['forward_icon'] . "\" style=\"float:left\" ></div>";
|
||||
echo "</div>";
|
||||
echo "</div>";
|
||||
}
|
||||
71
module/forwarding/edit_forwarding_cardform.inc.php
Normal file
71
module/forwarding/edit_forwarding_cardform.inc.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$formname = "form_forwarding_card";
|
||||
$input_page_id = (isset($_REQUEST["input_page_id"]) ? $_REQUEST["input_page_id"] : "");
|
||||
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||||
?>
|
||||
|
||||
<div id="overlaycrumb">
|
||||
<?php if ($input_forwarding["id"] == "") {
|
||||
echo $translation->get("new_forwarding");
|
||||
} else {
|
||||
echo $translation->get("edit_forwarding");
|
||||
}
|
||||
?>
|
||||
<div id="closeoverlay" onclick="disableOverlay();"></div>
|
||||
</div>
|
||||
|
||||
<ul class="toolbar_menu">
|
||||
<?php
|
||||
if (is_page_edit() || is_component_edit()) {
|
||||
button("left", $translation->get("back"), $formname, "loadCard('edit_content_page', true)");
|
||||
}
|
||||
?>
|
||||
|
||||
<?= button("save", $translation->get("save"), $formname, "loadCard('save_forwarding', true)"); ?>
|
||||
|
||||
|
||||
<?= button("save", $translation->get("save_and_close"), $formname, "loadCard('save_forwarding', true, '', true)"); ?>
|
||||
<li>
|
||||
<ul>
|
||||
<?php
|
||||
if ($input_forwarding["id"] != "" && is_page_edit() === FALSE && is_component_edit() === FALSE) {
|
||||
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_forwarding', true, '{$translation->get('delete_forwarding_confirm')}', true)", "", FALSE);
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
|
||||
if ($messages !== null) {
|
||||
if (count($messages)) {
|
||||
echo '<div id="overlayMessages">' . join("\r\n", $messages) . '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input name="input_id" type="hidden" value="<?= $input_forwarding["id"] ?>">
|
||||
<input type="hidden" name="get_real_page_link_id" value="1" />
|
||||
<input name="input_page_id" type="hidden" value="<?= $input_page_id ?>">
|
||||
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||||
<input name="data-sitepartid" type="hidden" value="17">
|
||||
|
||||
|
||||
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<?php input($translation->get("description"), "input_description", "text", $input_forwarding["description"], 255) ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?
|
||||
if ($input_forwarding['id'] != "") {
|
||||
require_once __DIR__ . DIRECTORY_SEPARATOR . 'edit_forwarding_line_listform.inc.php';
|
||||
}
|
||||
?>
|
||||
113
module/forwarding/edit_forwarding_line_cardform.inc.php
Normal file
113
module/forwarding/edit_forwarding_line_cardform.inc.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?
|
||||
$formname = "form_line_card";
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$input_page_id = (isset($_REQUEST["input_page_id"]) ? $_REQUEST["input_page_id"] : "");
|
||||
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||||
$header_id = (isset($input_line["header_id"]) ? $input_line["header_id"] : "");
|
||||
?>
|
||||
|
||||
<div id="overlaycrumb">
|
||||
<?php if ($input_line["id"] == "") {
|
||||
echo $translation->get("new_forwarding_field");
|
||||
} else {
|
||||
echo $translation->get("edit_forwarding_field");
|
||||
}
|
||||
?>
|
||||
<div id="closeoverlay" onclick="disableOverlay();"></div>
|
||||
</div>
|
||||
|
||||
<ul class="toolbar_menu">
|
||||
<?
|
||||
if (is_collection_edit()) {
|
||||
button("left", $translation->get("overview"), $formname, "loadCard('edit_collection', true)");
|
||||
} else {
|
||||
button("left", $translation->get("overview"), $formname, "loadCard('edit_forwarding', true)");
|
||||
}
|
||||
?>
|
||||
<?= button("save", $translation->get("save"), $formname, "loadCard('save_line_forwarding', true)"); ?>
|
||||
<?= button("save", $translation->get("save_and_close"), $formname, "jQuery('#save_and_close', jQuery('#" . $formname . "')).val(1);loadCard('save_line_forwarding', true)"); ?>
|
||||
<?php
|
||||
if ($input_line["id"] != "") {
|
||||
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_line_forwarding', true, '{$translation->get('delete_forwarding_field_confirm')}')");
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
|
||||
if ($messages !== null) {
|
||||
if (count($messages)) {
|
||||
echo '<div id="overlayMessages">' . join("\r\n", $messages) . '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
|
||||
<input name="input_line_id" type="hidden" value="<?= $input_line["id"] ?>" />
|
||||
<input name="input_id" type="hidden" value="<?= $header_id; ?>" />
|
||||
<input type="hidden" name="input_page_id" value="<?php echo $input_page_id; ?>" />
|
||||
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||||
<input name="save_and_close" id="save_and_close" type="hidden" value="0" />
|
||||
<input type="hidden" name="linklist_form" value="form_field_forwarding_list">
|
||||
|
||||
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<? create_preview_select($input_line) ?>
|
||||
|
||||
<?php input($translation->get("description"), "input_description", "text", $input_line["description"], 255) ?>
|
||||
<?php input_select($translation->get("use_menuitem_for"), "input_forward_type", array(0 => "1", 1 => "2", 2 => "3"), array(
|
||||
0 => $translation->get("assign_page"),
|
||||
1 => $translation->get("internal_forward"),
|
||||
2 => $translation->get("external_forward"),
|
||||
), $input_line['forward_type'], FALSE, FALSE, 'onchange="select_forwardtype(this.value);"') ?>
|
||||
|
||||
<div id="select_navigation_id" <?php echo $input_line['forward_type'] != 1 && $input_line['forward_type'] != 0 ? 'style="display:none;"' : ''; ?>>
|
||||
<? navigation_select($translation->get("choose_navigation_item"), "input_forward_navigation_id", $input_line["forward_navigation_id"], $GLOBALS["site"]['id'], $GLOBALS["language"]['id'], FALSE); ?>
|
||||
</div>
|
||||
|
||||
<div id="insert_path" <?php echo $input_line['forward_type'] != 2 ? 'style="display:none;"' : ''; ?>>
|
||||
<? input($translation->get("internal_url"), "input_forward_url", "text", $input_line["forward_url"], 255) ?>
|
||||
</div>
|
||||
|
||||
<div id="external_url" <?php echo $input_line['forward_type'] != 3 ? 'style="display:none;"' : ''; ?>>
|
||||
<? input($translation->get("external_url"), "input_forward_url_external", "text", $input_line["forward_url"], 255) ?>
|
||||
</div>
|
||||
|
||||
<? input($translation->get("insert_parameter"), "input_forward_parameter", "text", $input_line["forward_parameter"], 255) ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function select_forwardtype(value) {
|
||||
$('#select_navigation_id, #external_url, #insert_path').hide();
|
||||
value = parseInt(value);
|
||||
switch (value) {
|
||||
case 1:
|
||||
$('#select_navigation_id').show();
|
||||
break;
|
||||
case 2:
|
||||
$('#insert_path').show();
|
||||
break;
|
||||
case 3:
|
||||
$('#external_url').show();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
44
module/forwarding/edit_forwarding_line_listform.inc.php
Normal file
44
module/forwarding/edit_forwarding_line_listform.inc.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$formname = "form_field_list";
|
||||
$inputname = "input_id";
|
||||
$input_page_id = (isset($_REQUEST["input_page_id"]) ? $_REQUEST["input_page_id"] : "");
|
||||
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||||
?>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input name="input_id" type="hidden" value="<?= $input_id ?>">
|
||||
<input type="hidden" class="selected_linklist_row" name="input_line_id" value="" />
|
||||
<input type="hidden" name="input_page_id" value="<?php echo $input_page_id; ?>" />
|
||||
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||||
|
||||
<h2><?php echo $translation->get("forwarding_field_headline"); ?></h2>
|
||||
<ul class="toolbar_menu">
|
||||
<?= button("new", $translation->get("new"), $formname, "loadCard('new_line_forwarding', true)", "", FALSE); ?>
|
||||
<?= button("edit", $translation->get("edit"), $formname, "loadCard('edit_line_forwarding')", "", FALSE); ?>
|
||||
<?= button("delete", $translation->get("delete"), $formname, "loadCard('delete_line_forwarding', false, '{$translation->get('delete_forwarding_field_confirm')}')", "", FALSE); ?>
|
||||
|
||||
<?= button("up", $translation->get("go_up"), $formname, "loadCard('moveup_line_forwarding')", "", FALSE); ?>
|
||||
<?= button("down", $translation->get("go_down"), $formname, "loadCard('movedown_line_forwarding')", "", FALSE); ?>
|
||||
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?
|
||||
|
||||
$query = "SELECT id, CASE forward_type WHEN 1 THEN '" .
|
||||
$translation->get("assign_page") . "' WHEN 2 THEN '" .
|
||||
$translation->get("internal_forward") . "' WHEN 3 THEN '" .
|
||||
$translation->get("external_forward") . "' END AS '" . $translation->get("forwarding_type") . "',
|
||||
description AS '" . $translation->get("description") . "',
|
||||
forward_navigation_id AS '" . $translation->get("forward_navigation_id") . "',
|
||||
forward_url AS '" . $translation->get("url") . "'
|
||||
FROM forwarding_line WHERE header_id = '" . $input_id . "' ORDER BY sorting ASC";
|
||||
|
||||
$format = array('text', 'text', 'text', 'text');
|
||||
if ($result = @mysqli_query($GLOBALS['mysql_con'], $query)) {
|
||||
linklist($result, $formname, $format, "input_line_id", "edit_line_forwarding", TRUE, "update_sortorder_forwarding");
|
||||
}
|
||||
?>
|
||||
|
||||
</form>
|
||||
43
module/forwarding/edit_forwarding_listform.inc.php
Normal file
43
module/forwarding/edit_forwarding_listform.inc.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$formname = "form_faq_list";
|
||||
?>
|
||||
|
||||
<ul class="toolbar_menu">
|
||||
<?= button("new", $translation->get("new"), $formname, "loadCard('new_faq_list', true)"); ?>
|
||||
<?= button("edit", $translation->get("edit"), $formname, "loadCard('edit_faq_list')"); ?>
|
||||
<?= button("delete", $translation->get("delete"), $formname, "sendRequest('delete_faq_list', false, '{$translation->get('delete_faq_group')}')"); ?>
|
||||
</ul>
|
||||
|
||||
<div id="mainContent">
|
||||
|
||||
<?php echo current_website_language($site, $language); ?>
|
||||
<h1><?php echo get_translation('top_faq'); ?></h1>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input type="hidden" class="selected_linklist_row" name="input_id" value="" />
|
||||
<div class="requestLoader"></div>
|
||||
<?
|
||||
$query = "SELECT main_faq.id, GROUP_CONCAT(' ', IF(main_faq_group_link.active = 1,main_faq_setup_group.description,NULL)) AS '".$translation->get("linked_with")."',main_faq.description AS '" . $translation->get("description") . "', from_unixtime(modified_date, '%d.%m.%Y %H:%i:%s') as '" . $translation->get("changed_on") . "', main_admin_user.name as '" . $translation->get("changed_by") . "' from main_faq
|
||||
LEFT JOIN
|
||||
main_admin_user
|
||||
ON
|
||||
main_admin_user.id = main_faq.modified_user
|
||||
LEFT JOIN
|
||||
main_faq_group_link
|
||||
ON
|
||||
main_faq_group_link.main_faq_id = main_faq.id
|
||||
LEFT JOIN
|
||||
main_faq_setup_group
|
||||
ON
|
||||
main_faq_setup_group.id = main_faq_group_link.main_faq_setup_group_id
|
||||
GROUP BY main_faq_group_link.main_faq_id ORDER BY main_faq.sorting asc";
|
||||
|
||||
$format = array('option', 'text', 'text', 'text', 'text');
|
||||
if ($result = @mysqli_query($GLOBALS['mysql_con'], $query)) {
|
||||
linklist($result, $formname, $format, "input_id", "edit_faq_list", TRUE, 'update_sortorder_faq');
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
11
module/forwarding/forwarding.php
Normal file
11
module/forwarding/forwarding.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function forwarding_show($sitepart_id)
|
||||
{
|
||||
require("show_forwarding.inc.php");
|
||||
}
|
||||
|
||||
function forwarding_edit()
|
||||
{
|
||||
require_once('edit_forwarding.inc.php');
|
||||
}
|
||||
113
module/forwarding/forwarding_config.inc.php
Normal file
113
module/forwarding/forwarding_config.inc.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?
|
||||
|
||||
// Forwarding Icons
|
||||
|
||||
|
||||
$forwarding_icon_images = array(
|
||||
"" => array(
|
||||
"name" => "Keine",
|
||||
"image" => ''
|
||||
),
|
||||
|
||||
"dashboard" => array(
|
||||
"name" => "Dashboard",
|
||||
"image" => '<svg id="menu-grid-o" xmlns="https://www.w3.org/2000/svg" width="14.914" height="14.914" viewBox="0 0 14.914 14.914">
|
||||
<path id="Pfad_24" data-name="Pfad 24" d="M9.729,7.864A1.864,1.864,0,1,1,7.864,6,1.864,1.864,0,0,1,9.729,7.864Z" transform="translate(-6 -6)"/>
|
||||
<path id="Pfad_25" data-name="Pfad 25" d="M9.729,16.864A1.864,1.864,0,1,1,7.864,15,1.864,1.864,0,0,1,9.729,16.864Z" transform="translate(-6 -9.407)"/>
|
||||
<path id="Pfad_26" data-name="Pfad 26" d="M7.864,27.729A1.864,1.864,0,1,0,6,25.864,1.864,1.864,0,0,0,7.864,27.729Z" transform="translate(-6 -12.814)"/>
|
||||
<path id="Pfad_27" data-name="Pfad 27" d="M18.729,7.864A1.864,1.864,0,1,1,16.864,6,1.864,1.864,0,0,1,18.729,7.864Z" transform="translate(-9.407 -6)"/>
|
||||
<path id="Pfad_28" data-name="Pfad 28" d="M16.864,18.729A1.864,1.864,0,1,0,15,16.864,1.864,1.864,0,0,0,16.864,18.729Z" transform="translate(-9.407 -9.407)"/>
|
||||
<path id="Pfad_29" data-name="Pfad 29" d="M18.729,25.864A1.864,1.864,0,1,1,16.864,24,1.864,1.864,0,0,1,18.729,25.864Z" transform="translate(-9.407 -12.814)"/>
|
||||
<path id="Pfad_30" data-name="Pfad 30" d="M25.864,9.729A1.864,1.864,0,1,0,24,7.864,1.864,1.864,0,0,0,25.864,9.729Z" transform="translate(-12.814 -6)"/>
|
||||
<path id="Pfad_31" data-name="Pfad 31" d="M27.729,16.864A1.864,1.864,0,1,1,25.864,15,1.864,1.864,0,0,1,27.729,16.864Z" transform="translate(-12.814 -9.407)"/>
|
||||
<path id="Pfad_32" data-name="Pfad 32" d="M25.864,27.729A1.864,1.864,0,1,0,24,25.864,1.864,1.864,0,0,0,25.864,27.729Z" transform="translate(-12.814 -12.814)"/>
|
||||
</svg>'
|
||||
),
|
||||
|
||||
"news" => array(
|
||||
"name" => "News",
|
||||
"image" => '<svg id="newspaper" xmlns="https://www.w3.org/2000/svg" width="15.876" height="14.884" viewBox="0 0 15.876 14.884">
|
||||
<path id="Pfad_33" data-name="Pfad 33" d="M0,2.613A1.488,1.488,0,0,1,1.488,1.125H12.4a1.488,1.488,0,0,1,1.488,1.488V14.521A1.488,1.488,0,0,1,12.4,16.009H1.488A1.488,1.488,0,0,1,0,14.521Zm1.488-.5a.5.5,0,0,0-.5.5V14.521a.5.5,0,0,0,.5.5H12.4a.5.5,0,0,0,.5-.5V2.613a.5.5,0,0,0-.5-.5Z" transform="translate(0 -1.125)" fill-rule="evenodd"/>
|
||||
<path id="Pfad_34" data-name="Pfad 34" d="M29.844,6.75a.5.5,0,0,1,.5.5V17.665a1.488,1.488,0,0,1-1.488,1.488H25.875v-.992h2.977a.5.5,0,0,0,.5-.5V7.246A.5.5,0,0,1,29.844,6.75Z" transform="translate(-14.464 -4.269)" fill-rule="evenodd"/>
|
||||
<path id="Pfad_35" data-name="Pfad 35" d="M4.5,6.75h9.923V8.735H4.5Zm0,2.977H8.469V12.7H4.5Zm0,3.969H8.469v.992H4.5Zm0,1.985H8.469v.992H4.5ZM9.461,9.727h1.985v.992H9.461Zm2.977,0h1.985v.992H12.438ZM9.461,11.711h1.985V12.7H9.461Zm2.977,0h1.985V12.7H12.438ZM9.461,13.7h1.985v.992H9.461Zm2.977,0h1.985v.992H12.438ZM9.461,15.68h1.985v.992H9.461Zm2.977,0h1.985v.992H12.438Z" transform="translate(-2.515 -4.269)"/>
|
||||
</svg>'
|
||||
),
|
||||
|
||||
"food" => array(
|
||||
"name" => "Food",
|
||||
"image" => '<svg id="fast-food" xmlns="https://www.w3.org/2000/svg" width="24.037" height="24.036" viewBox="0 0 24.037 24.036">
|
||||
<path id="Pfad_46" data-name="Pfad 46" d="M25.875,9h0" transform="translate(-8.249 -3.392)"/>
|
||||
<path id="Pfad_47" data-name="Pfad 47" d="M28.223,5.131h-4.56l.447-1.785,1.919-.654a.818.818,0,0,0,.533-.987.8.8,0,0,0-1.028-.537l-2.354.8a.8.8,0,0,0-.518.564l-.649,2.6H15.449a.817.817,0,0,0-.823.763.8.8,0,0,0,.8.84h.137l.05.434a.416.416,0,0,0,.414.367,8.056,8.056,0,0,1,5.014,1.578,6.1,6.1,0,0,1,1.746,2.131,6.18,6.18,0,0,1,.507,1.478.392.392,0,0,0,.165.244,3.606,3.606,0,0,1,1.321,4.328.4.4,0,0,0-.008.277,4.807,4.807,0,0,1,.268,1.582,4.639,4.639,0,0,1-1.072,3,4.012,4.012,0,0,1-1.441,1.085.4.4,0,0,0-.211.219,5.418,5.418,0,0,1-.87,1.5.125.125,0,0,0,.1.206h2.464a2.414,2.414,0,0,0,2.4-2.211L28.115,6.733h.13a.8.8,0,0,0,.8-.84A.818.818,0,0,0,28.223,5.131Z" transform="translate(-5.011 -1.125)"/>
|
||||
<path id="Pfad_48" data-name="Pfad 48" d="M5.766,19.586a1.2,1.2,0,0,1,.851.35l.777.777a.2.2,0,0,0,.283,0l.776-.777a1.2,1.2,0,0,1,.851-.35h9.844a.4.4,0,0,0,.4-.4v0a2.006,2.006,0,0,0-1.6-1.963,4.561,4.561,0,0,0-1.778-3.606,6.469,6.469,0,0,0-4.03-1.242H8.536c-3.416,0-5.73,1.941-5.809,4.847a2.006,2.006,0,0,0-1.6,1.963.4.4,0,0,0,.4.4Z" transform="translate(-1.125 -4.363)"/>
|
||||
<path id="Pfad_49" data-name="Pfad 49" d="M9.635,24.75a.4.4,0,0,0-.283.118L8.243,25.976a1,1,0,0,1-1.416,0L5.718,24.868a.4.4,0,0,0-.283-.118H1.959a.8.8,0,0,0-.789.659,3.266,3.266,0,0,0-.045.543,2.64,2.64,0,0,0,2.367,2.8,4.1,4.1,0,0,0,.86,1.976,3.413,3.413,0,0,0,2.683,1.228h6.61a3.409,3.409,0,0,0,2.683-1.229,4.113,4.113,0,0,0,.86-1.976,2.638,2.638,0,0,0,2.367-2.8,3.266,3.266,0,0,0-.045-.542.8.8,0,0,0-.789-.659Z" transform="translate(-1.125 -7.925)"/>
|
||||
</svg>
|
||||
'
|
||||
),
|
||||
|
||||
"knowledgecenter" => array(
|
||||
"name" => "Knowledgecenter",
|
||||
"image" => '<svg id="network-globe-line" xmlns="https://www.w3.org/2000/svg" width="15.039" height="15.036" viewBox="0 0 15.039 15.036">
|
||||
<path id="Pfad_37" data-name="Pfad 37" d="M11.268,2A7.518,7.518,0,0,0,3.75,9.518a4.515,4.515,0,0,0,.038.714A7.518,7.518,0,1,0,11.268,2Zm0,1.074A6.444,6.444,0,0,1,15.8,4.943V5.48a9.939,9.939,0,0,0-6.546.027,1.251,1.251,0,0,0-.612-.328H8.508c-.064-.226-.124-.451-.172-.682s-.075-.435-.1-.655a6.4,6.4,0,0,1,3.034-.768ZM9.657,6.226a9.129,9.129,0,0,1,6,.07,9.075,9.075,0,0,1-1.67,3.759,1.224,1.224,0,0,0-1.385.306,4.809,4.809,0,0,1-.537-.338A8.592,8.592,0,0,1,9.415,7.214a1.208,1.208,0,0,0,.252-.95ZM7.509,4.293a1.9,1.9,0,0,0,.054.344c.048.236.113.467.177.7a1.224,1.224,0,0,0-.591,1.208A9.837,9.837,0,0,0,4.9,8.562a6.444,6.444,0,0,1,2.61-4.269Zm0,8.436a1.257,1.257,0,0,0-.832.945H6.333a6.412,6.412,0,0,1-1.482-3.662l.059-.1A9.075,9.075,0,0,1,7.493,7.284a1.24,1.24,0,0,0,1.224.338,9.413,9.413,0,0,0,2.873,3.034c.22.145.446.279.671.408a1.246,1.246,0,0,0,.1.6,9.1,9.1,0,0,1-3.329,1.67,1.257,1.257,0,0,0-1.514-.6Zm3.759,3.222a6.4,6.4,0,0,1-3.12-.811l.15-.032a1.257,1.257,0,0,0,.843-.961A9.9,9.9,0,0,0,12.9,12.267a1.23,1.23,0,0,0,1.611-.333,9.349,9.349,0,0,0,2.32.3h.285a6.444,6.444,0,0,1-5.848,3.727Zm3.5-4.779a1.251,1.251,0,0,0-.177-.639,9.88,9.88,0,0,0,1.82-3.958q.4.188.795.419a6.444,6.444,0,0,1,.226,4.4,8.592,8.592,0,0,1-2.658-.209Z" transform="translate(-3.75 -2)"/>
|
||||
</svg>'
|
||||
),
|
||||
|
||||
"elearning" => array(
|
||||
"name" => "E-Learning",
|
||||
"image" => '<svg xmlns="https://www.w3.org/2000/svg" width="17.017" height="13.923" viewBox="0 0 17.017 13.923">
|
||||
<path id="academic-cap-outline" d="M10.009,4.5,1.5,9.141l3.094,1.686v4.641l5.415,2.955,5.415-2.955V10.827l1.547-.843v5.345h1.547V9.141L10.009,4.5m5.275,4.641-5.275,2.877L4.733,9.141l5.275-2.877,5.275,2.877m-1.408,5.415-3.868,2.1-3.868-2.1V11.67l3.868,2.112,3.868-2.112Z" transform="translate(-1.5 -4.5)"/>
|
||||
</svg>
|
||||
'
|
||||
),
|
||||
"krankmeldung" => array(
|
||||
"name" => "Krankmeldung",
|
||||
"image" => '<svg id="document" xmlns="https://www.w3.org/2000/svg" width="10.924" height="15.293" viewBox="0 0 10.924 15.293">
|
||||
<path id="Pfad_38" data-name="Pfad 38" d="M17.51,6.238,13.686,2.415a.5.5,0,0,0-.382-.164H7.842A1.1,1.1,0,0,0,6.75,3.343V16.452a1.1,1.1,0,0,0,1.092,1.092h8.739a1.1,1.1,0,0,0,1.092-1.092V6.62a.5.5,0,0,0-.164-.382ZM13.3,3.561,16.363,6.62H13.3Zm3.277,12.89H7.842V3.343h4.369V6.62A1.1,1.1,0,0,0,13.3,7.712h3.277Z" transform="translate(-6.75 -2.251)"/>
|
||||
<path id="Pfad_39" data-name="Pfad 39" d="M11.25,24.75H17.8v1.092H11.25Z" transform="translate(-9.065 -13.827)"/>
|
||||
<path id="Pfad_40" data-name="Pfad 40" d="M11.25,18H17.8v1.092H11.25Z" transform="translate(-9.065 -10.354)"/>
|
||||
</svg>
|
||||
|
||||
'
|
||||
),
|
||||
"anruferfassung" => array(
|
||||
"name" => "Anruferfassung",
|
||||
"image" => '<svg xmlns="https://www.w3.org/2000/svg" width="14.914" height="14.909" viewBox="0 0 14.914 14.909">
|
||||
<path id="phone" d="M16.558,18.284h-.1C5.193,17.636,3.593,8.128,3.37,5.227A1.72,1.72,0,0,1,4.952,3.375h3.16A1.147,1.147,0,0,1,9.179,4.1l.871,2.145A1.147,1.147,0,0,1,9.8,7.481L8.576,8.714a5.373,5.373,0,0,0,4.346,4.358l1.244-1.233a1.147,1.147,0,0,1,1.244-.235l2.162.866a1.147,1.147,0,0,1,.706,1.066v3.028a1.72,1.72,0,0,1-1.72,1.72ZM5.09,4.522a.573.573,0,0,0-.573.573v.046c.264,3.395,1.955,11.422,12.007,12a.573.573,0,0,0,.608-.539V13.536L14.97,12.67,13.325,14.3l-.275-.035C8.061,13.644,7.384,8.655,7.384,8.6l-.035-.275L8.978,6.683l-.86-2.161Z" transform="translate(-3.364 -3.375)"/>
|
||||
</svg>
|
||||
|
||||
'
|
||||
),
|
||||
"kontaktdaten" => array(
|
||||
"name" => "Kontaktdaten",
|
||||
"image" => '<svg id="person-lines-fill" xmlns="https://www.w3.org/2000/svg" width="19.635" height="14.759" viewBox="0 0 19.635 14.759">
|
||||
<path id="Pfad_41" data-name="Pfad 41" d="M15.953,13.7a.614.614,0,0,1,.614-.614h2.454a.614.614,0,0,1,0,1.227H16.567A.614.614,0,0,1,15.953,13.7ZM13.5,10.022a.614.614,0,0,1,.614-.614h4.909a.614.614,0,1,1,0,1.227H14.112A.614.614,0,0,1,13.5,10.022Zm0-3.681a.614.614,0,0,1,.614-.614h4.909a.614.614,0,0,1,0,1.227H14.112A.614.614,0,0,1,13.5,6.341Zm2.454,11.044a.614.614,0,0,1,.614-.614h2.454a.614.614,0,0,1,0,1.227H16.567A.614.614,0,0,1,15.953,17.385Z" transform="translate(0 -4.5)" fill-rule="evenodd"/>
|
||||
<g id="person">
|
||||
<path id="Pfad_42" data-name="Pfad 42" d="M18.029,19.259a1.2,1.2,0,0,0,1.23-1.23c0-1.23-1.23-4.92-7.38-4.92S4.5,16.8,4.5,18.029a1.2,1.2,0,0,0,1.23,1.23ZM5.736,18.1v0Zm.021-.069H18l.017,0,.01,0a3.284,3.284,0,0,0-1.023-2.047c-.8-.8-2.311-1.638-5.126-1.638s-4.324.836-5.126,1.638A3.293,3.293,0,0,0,5.73,18.024Zm12.267.069v0ZM11.88,10.65A2.46,2.46,0,1,0,9.42,8.19,2.46,2.46,0,0,0,11.88,10.65Zm3.69-2.46A3.69,3.69,0,1,1,11.88,4.5,3.69,3.69,0,0,1,15.569,8.19Z" transform="translate(-4.5 -4.5)" fill-rule="evenodd"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
'
|
||||
),
|
||||
"todo" => array(
|
||||
"name" => "To Do",
|
||||
"image" => '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||
<g id="dot-circle-line" transform="translate(-2 -2)">
|
||||
<path id="Pfad_280" data-name="Pfad 280" d="M18,11a7,7,0,1,1-7,7,7,7,0,0,1,7-7"/>
|
||||
<path id="Pfad_281" data-name="Pfad 281" d="M18,34A16,16,0,1,1,34,18,16,16,0,0,1,18,34ZM18,4A14,14,0,1,0,32,18,14,14,0,0,0,18,4Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
||||
'
|
||||
),
|
||||
"communityboard" => array(
|
||||
"name" => "Communityboard",
|
||||
"image" => '<svg xmlns="https://www.w3.org/2000/svg" width="18.98" height="14.914" viewBox="0 0 18.98 14.914">
|
||||
<path id="comments-o" d="M7.457,1.356a8.244,8.244,0,0,0-3.03.551A5.677,5.677,0,0,0,2.187,3.4a3.01,3.01,0,0,0-.831,2.023A2.886,2.886,0,0,0,1.917,7.1,4.875,4.875,0,0,0,3.5,8.495l1.028.593-.371.89q.36-.212.657-.413l.466-.328.562.106a9.171,9.171,0,0,0,1.621.148,8.244,8.244,0,0,0,3.03-.551,5.677,5.677,0,0,0,2.24-1.494,3.01,3.01,0,0,0,.831-2.023A3.01,3.01,0,0,0,12.727,3.4a5.676,5.676,0,0,0-2.241-1.494,8.249,8.249,0,0,0-3.03-.551ZM7.457,0A9.543,9.543,0,0,1,11.2.725,6.719,6.719,0,0,1,13.918,2.7a4.22,4.22,0,0,1,0,5.444A6.728,6.728,0,0,1,11.2,10.121a9.533,9.533,0,0,1-3.744.725,10.654,10.654,0,0,1-1.864-.169,8.9,8.9,0,0,1-2.945,1.356,8.823,8.823,0,0,1-.911.169H1.705a.331.331,0,0,1-.217-.085.35.35,0,0,1-.122-.222.217.217,0,0,1-.011-.069.421.421,0,0,1,.005-.069.23.23,0,0,1,.021-.064l.026-.053.037-.058.042-.053.047-.053.042-.047q.053-.064.244-.265a4.008,4.008,0,0,0,.275-.313q.084-.112.238-.307a2.62,2.62,0,0,0,.265-.408q.111-.212.217-.466A6.2,6.2,0,0,1,.752,7.8,4.155,4.155,0,0,1,0,5.423,4.279,4.279,0,0,1,1,2.7,6.723,6.723,0,0,1,3.712.725,9.543,9.543,0,0,1,7.457,0Zm8.706,12.382q.106.254.217.466a2.672,2.672,0,0,0,.265.408q.153.2.238.307t.275.313q.19.2.244.265l.042.047q.032.037.047.053a.449.449,0,0,1,.042.053.475.475,0,0,1,.037.058l.026.053.021.064.005.069-.011.069a.392.392,0,0,1-.138.233.319.319,0,0,1-.233.074,9.054,9.054,0,0,1-.911-.169,8.916,8.916,0,0,1-2.945-1.356,10.654,10.654,0,0,1-1.864.169,8.9,8.9,0,0,1-5-1.4q.614.042.932.042a11.192,11.192,0,0,0,3.273-.477,9.368,9.368,0,0,0,2.8-1.367,7.086,7.086,0,0,0,2.034-2.246,5.451,5.451,0,0,0,.466-4.3A6.268,6.268,0,0,1,18.185,5.7a4.134,4.134,0,0,1,.043,4.814A6.221,6.221,0,0,1,16.163,12.382Z"/>
|
||||
</svg>
|
||||
|
||||
|
||||
'
|
||||
),
|
||||
|
||||
|
||||
);
|
||||
73
module/forwarding/page_forwarding_preview_cardform.inc.php
Normal file
73
module/forwarding/page_forwarding_preview_cardform.inc.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?
|
||||
$formname = "form_faq_cardformtest";
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$inputname = "input_id";
|
||||
$input_page_id = (isset($_REQUEST["input_page_id"]) ? $_REQUEST["input_page_id"] : "");
|
||||
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||||
|
||||
// erstellte FAQ sammeln
|
||||
$faq = array();
|
||||
$query = "SELECT * FROM main_faq WHERE (main_language_id = " . (int)$GLOBALS["language"]['id'] . " OR all_languages = 1)";
|
||||
$result = @mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
|
||||
?>
|
||||
|
||||
<div id="overlaycrumb">
|
||||
<?php
|
||||
echo $translation->get("new_faq");
|
||||
?>
|
||||
<div id="closeoverlay" onclick="disableOverlay();"></div>
|
||||
</div>
|
||||
|
||||
<ul class="toolbar_menu">
|
||||
<?php
|
||||
// Zurueck zur uebersicht
|
||||
if (is_page_edit() || is_component_edit()) {
|
||||
button("left", $translation->get("back"), $formname, "loadCard('edit_content_page', true)");
|
||||
}
|
||||
|
||||
// Speichern button
|
||||
button("save", $translation->get("save"), $formname, "loadCard('save_faq_page_link', true)");
|
||||
|
||||
// Speichern und schliessen
|
||||
button("save", $translation->get("save_and_close"), $formname, "loadCard('save_faq_page_link', true, '', true)");
|
||||
?>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<?php
|
||||
|
||||
if ($messages !== null) {
|
||||
if (count($messages)) {
|
||||
echo '<div id="overlayMessages">' . join("\r\n", $messages) . '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input name="input_id" type="hidden" value="<?= $input_line["id"] ?>">
|
||||
|
||||
<input type="hidden" name="get_real_page_link_id" value="1" />
|
||||
<input type="hidden" name="input_page_id" value="<?php echo $input_page_id; ?>" />
|
||||
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||||
<input name="data-sitepartid" type="hidden" value="16">
|
||||
|
||||
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<? input($translation->get("description"), "input_description", "text", $input_line["description"], 255) ?>
|
||||
<? input($translation->get("show_in_all_languages"), "input_all_languages", "checkbox", $input_line["all_languages"]) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
if ($input_line["id"] != "") {
|
||||
show_changed_on($input_line["id"], "main_faq_header");
|
||||
show_changed_by($input_line["id"], "main_faq_header");
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
57
module/forwarding/show_forwarding.inc.php
Normal file
57
module/forwarding/show_forwarding.inc.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
include("forwarding_config.inc.php");
|
||||
?>
|
||||
|
||||
<div class="forwarding-wrapper">
|
||||
|
||||
<?
|
||||
$query = "SELECT * FROM forwarding_line WHERE header_id = '" . $sitepart_id . "'";
|
||||
$result = mysqli_query($GLOBALS['mysql_con'], $query);
|
||||
|
||||
if (@mysqli_num_rows($result) > 0) {
|
||||
|
||||
while ($row = @mysqli_fetch_array($result)) {
|
||||
|
||||
$parameter = $row['forward_parameter'];
|
||||
|
||||
// pruefen um was es sich fuer ein menupunkt handelt
|
||||
switch ($row['forward_type']) {
|
||||
|
||||
case 1: // interne weiterleitung
|
||||
$url = get_link_to_navigation($row['forward_navigation_id']);
|
||||
break;
|
||||
|
||||
case 2: // interne pfad weiterleitung
|
||||
if (substr($row['forward_url'], 0, 1) != "/") {
|
||||
$url = "/" . $row['forward_url'];
|
||||
}
|
||||
$url = $row['forward_url'];
|
||||
break;
|
||||
|
||||
case 3: // externe weiterleitung
|
||||
$url = $row['forward_url'];
|
||||
break;
|
||||
}
|
||||
|
||||
echo '
|
||||
<div class="forwarding_container">';
|
||||
|
||||
echo "<a href=\"" . $url . $parameter . "\">
|
||||
<div class=\"forwarding_content_container\">
|
||||
<div class=\"forwarding_content\">
|
||||
<div class=\"forwarding_image\">
|
||||
" . $forwarding_icon_images[$row["forward_icon"]]["image"] . "
|
||||
</div>
|
||||
<div class=\"forwarding_text\">
|
||||
" . $row['description'] . "
|
||||
</div>
|
||||
</div>
|
||||
</div></a>";
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
//$row[forward_icon]
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user