60 lines
2.3 KiB
PHP
60 lines
2.3 KiB
PHP
<?
|
|
|
|
$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
|
|
$input_line;
|
|
$queryFaq = "SELECT mfq.* FROM main_faq_header as mfq INNER JOIN main_collection_faq_header_group_link as mfl on mfq.id = mfl.header_id WHERE main_collection_id = '" . $collectionData['id'] . "' AND field_id = '".$fieldSetup['id']."' LIMIT 1";
|
|
|
|
$resultFAQ = @mysqli_query($GLOBALS['mysql_con'], $queryFaq);
|
|
|
|
if (@mysqli_num_rows($resultFAQ) == 1) {
|
|
$input_line = @mysqli_fetch_array($resultFAQ);
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<?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_faq<?=$fieldSetup['id']?>" type="hidden" value="<?= ($input_line["id"]) ? $input_line["id"] : 0; ?>">
|
|
|
|
|
|
|
|
<input name="data-sitepartid<?=$fieldSetup['id'];?>" type="hidden" value="16">
|
|
<input name="input_faq<?=$fieldSetup['id'];?>" type="hidden" value="<?=$fieldSetup['id'];?>">
|
|
<input type="hidden" name="collection_modul_input_<?php echo $fieldSetup['id']; ?>" value="faq" />
|
|
|
|
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td>
|
|
<? input($translation->get("description"), "input_description_faq".$fieldSetup['id'], "text", $input_line['description'], 255) ?>
|
|
|
|
</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");
|
|
}
|
|
|
|
loadFAQGroupCollection($input_line['id'], $fieldSetup['id']);
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
</form>
|