Files
awo-hamburg-intranet/module/faq/edit_faq_setup_group_cardform.inc.php
2026-02-17 14:56:23 +01:00

61 lines
2.1 KiB
PHP

<?
$formname = "form_faq_group_cardform";
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
$inputname = "input_group_id";
$siteparts = \DynCom\mysyde\common\classes\Siteparts::get();
?>
<div id="overlaycrumb">
<?php if ($input_line["id"] == "") {
echo $translation->get("new_faq_group");
} else {
echo $translation->get("edit_faq_group");
}
?>
<div id="closeoverlay" onclick="disableOverlay();"></div>
</div>
<ul class="toolbar_menu">
<?php
// Zurueck zur uebersicht
button("left", $translation->get("back"), $formname, "loadCard('edit_group_faq_setup', true)");
// Speichern buttons
button("save", $translation->get("save"), $formname, "loadCard('save_group_faq_setup', true)");
button("save", $translation->get("save_and_close"), $formname, "loadCard('save_group_faq_setup', true, '', true)");
if ($input_line["id"] != "") {
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_group_faq_setup', true, '{$translation->get('delete_faq_group')}', 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_group_id" type="hidden" value="<?= $input_line["id"] ?>" />
<input name="save_and_close" id="save_and_close" type="hidden" value="0" />
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? input($translation->get("description"), "input_description", "text", $input_line["description"], 255) ?>
<? input_select($translation->get("default_active"), "input_default_active", $values = array('1', '0'), $value_names = array($translation->get("yes"), $translation->get("no")), $input_line["default_active"]); ?>
</td>
<td>
</td>
</tr>
</table>
</form>