Files
awo-hamburg-intranet/module/sitemap/edit_sitemapform_cardform.inc.php

90 lines
2.9 KiB
PHP

<style>
#overlayWrapper{
z-index:9999999 !important;
}
</style>
<?php
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
$formname = "form_collection_cardform";
$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_sitemapform["id"] == "") {
echo $translation->get("new_sitemapform");
} else {
echo $translation->get("edit_sitemapform");
}
?>
<div id="closeoverlay" onclick="disableOverlay();"></div>
</div>
<ul class="toolbar_menu">
<?php
// Speichern button
button("save", $translation->get("save"), $formname, "loadCard('save_sitemapform', true)");
// Speichern und schliessen
button("save", $translation->get("save_and_close"), $formname, "loadCard('save_sitemapform', true, '', true)");
?>
<li>
<ul>
<?php
// Loeschen button
if ($input_sitemapform["id"] != "" && is_page_edit() === FALSE && is_component_edit() === FALSE) {
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_sitemapform', true, '{$translation->get('delete_data_confirm')}', true)", "", FALSE);
}
?>
</ul>
</li>
</ul>
<div class="clearfix"></div>
<?php
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_sitemapform["id"] ?>">
<input type="hidden" name="get_real_page_link_id" value="1" />
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- <? input($translation->get("short_text"), "input_short_text", "smalltextarea", $input_sitemapform["short_text"], 255) ?> -->
</td>
<td>
<?php
if ($input_sitemapform["id"] != "") {
show_changed_on($input_sitemapform["id"], "sitemap");
show_changed_by($input_sitemapform["id"], "sitemap");
}
?>
</td>
</tr>
<tr>
<td>
<?php
create_site_set($input_sitemapform["id"]);
?>
</td>
</tr>
</table>
</form>
<br/>