54 lines
1.7 KiB
PHP
54 lines
1.7 KiB
PHP
|
|
<?
|
||
|
|
$formname = "form_status_cardform";
|
||
|
|
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||
|
|
$inputname = "input_id";
|
||
|
|
|
||
|
|
?>
|
||
|
|
|
||
|
|
|
||
|
|
<div id="overlaycrumb">
|
||
|
|
<?php if ($input_status["id"] == "") {
|
||
|
|
echo $translation->get("new_status");
|
||
|
|
} else {
|
||
|
|
echo $translation->get("edit_status");
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<ul class="toolbar_menu">
|
||
|
|
<?php
|
||
|
|
// Zurueck zur uebersicht
|
||
|
|
button("left", $translation->get("back"), $formname, "loadCard('load_status', true)");
|
||
|
|
|
||
|
|
// Speichern buttons
|
||
|
|
button("save", $translation->get("save"), $formname, "loadCard('save_status', true)");
|
||
|
|
button("save", $translation->get("save_and_close"), $formname, "jQuery('#save_and_close', jQuery('#" . $formname . "')).val(1);loadCard('save_status', true)");
|
||
|
|
|
||
|
|
if ($input_status["id"] != "") {
|
||
|
|
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_status', true, '{$translation->get('delete_status_confirm')}')");
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<?php
|
||
|
|
if (!empty($messages) && is_array($messages)) {
|
||
|
|
echo '<div id="overlayMessages">' . implode("\r\n", $messages) . '</div>';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
|
||
|
|
|
||
|
|
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||
|
|
<input name="input_status_id" type="hidden" value="<?= $input_status["id"] ?>" />
|
||
|
|
<input name="input_id" type="hidden" value="<?= $_REQUEST['input_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_status["description"]) ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
|