104 lines
4.4 KiB
PHP
104 lines
4.4 KiB
PHP
|
|
<?php
|
||
|
|
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||
|
|
$formname = "form_textcontent_card";
|
||
|
|
$input_section_id = (isset($_REQUEST["input_section_id"]) ? $_REQUEST["input_section_id"] : "");
|
||
|
|
$input_contactform_id = (isset($_REQUEST["input_contactform_id"]) ? $_REQUEST["input_contactform_id"] : "");
|
||
|
|
|
||
|
|
$input_component_id = (isset($_REQUEST["input_component_id"]) ? $_REQUEST["input_component_id"] : "");
|
||
|
|
?>
|
||
|
|
|
||
|
|
<div id="overlaycrumb">
|
||
|
|
<?php if ($input_textcontent["id"] == "") {
|
||
|
|
echo $translation->get("new_textcontent");
|
||
|
|
} else {
|
||
|
|
echo $translation->get("edit_textcontent");
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<div id="closeoverlay" onclick="disableOverlay();"></div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<ul class="toolbar_menu">
|
||
|
|
<?php
|
||
|
|
|
||
|
|
button("left", $translation->get("back"), $formname, "loadCard('edit_contactform', true)");
|
||
|
|
|
||
|
|
?>
|
||
|
|
|
||
|
|
<?= button("save", $translation->get("save"), $formname, "loadCard('save_textcontent', true)"); ?>
|
||
|
|
|
||
|
|
|
||
|
|
<?php
|
||
|
|
// button("save", $translation->get("save_and_close"), $formname, "loadCard('save_textcontent', true, '', true)");
|
||
|
|
?>
|
||
|
|
<li>
|
||
|
|
<ul>
|
||
|
|
<?php
|
||
|
|
if ($input_textcontent["id"] != "" && is_page_edit() === FALSE && is_component_edit() === FALSE) {
|
||
|
|
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_textcontent', true, '{$translation->get('delete_textcontent_confirm')}', true)", "", FALSE);
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<?= button("reset", $translation->get("restore"), $formname, "?action=edit_textcontent", "", 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_textcontent["id"] ?>">
|
||
|
|
<input name="input_section_id" type="hidden" value="<?= $input_section_id ?>">
|
||
|
|
<input type="hidden" name="input_component_id" value="<?php echo $input_component_id; ?>" />
|
||
|
|
<input name="data-sitepartid" type="hidden" value="1">
|
||
|
|
<input type="hidden" name="input_contactform_id" value="<?= $input_contactform_id;?>">
|
||
|
|
<input type="hidden" name="get_real_page_link_id" value="1" />
|
||
|
|
<?php
|
||
|
|
$queryLine = "SELECT * FROM multi_contactform_link WHERE main_sitepart_header_id = '" . $input_textcontent["id"] . "' LIMIT 1";
|
||
|
|
$resultLine = @mysqli_query($GLOBALS['mysql_con'], $queryLine);
|
||
|
|
$input_line = array();
|
||
|
|
$input_line['layout_area_id'] = '';
|
||
|
|
if (@mysqli_num_rows($resultLine) == 1) {
|
||
|
|
$input_line = @mysqli_fetch_array($resultLine);
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<? layout_class_select($translation->get("layout_area"), "input_layout_area_id", $input_line['layout_area_id']); ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<? input($translation->get("description"), "input_description", "text", $input_textcontent["description"], 255) ?>
|
||
|
|
<?
|
||
|
|
// input($translation->get("show_in_all_languages"), "input_all_languages", "checkbox", $input_textcontent["all_languages"])
|
||
|
|
?>
|
||
|
|
<? input($translation->get("active"), "input_active", "checkbox", $input_line['active']); ?>
|
||
|
|
<? input($translation->get("self_definded_class"), "layout_class_defined", "text", $input_line["layout_class_defined"], 50) ?>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php
|
||
|
|
if ($input_textcontent["id"] != "") {
|
||
|
|
show_changed_on($input_textcontent["id"], "textcontent_header");
|
||
|
|
show_changed_by($input_textcontent["id"], "textcontent_header");
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="2">
|
||
|
|
<h2><?php echo $translation->get("content"); ?></h2>
|
||
|
|
<?php
|
||
|
|
show_ck_editor($input_textcontent['content'], "dc", 'layout/frontend/' . $GLOBALS["layout"]["code"] . '/dist/css/fck.css', 'layout/frontend/' . $GLOBALS["layout"]["code"] . '/fckstyles.xml');
|
||
|
|
?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|