<?php
namespace PHPMaker2019\project_germanos;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start(); 

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$notifications_add = new notifications_add();

// Run the page
$notifications_add->run();

// Setup login status
SetupLoginStatus();
SetClientVar("login", LoginStatus());

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$notifications_add->Page_Render();
?>
<?php include_once "header.php" ?>
<script>

// Form object
currentPageID = ew.PAGE_ID = "add";
var fnotificationsadd = currentForm = new ew.Form("fnotificationsadd", "add");

// Validate form
fnotificationsadd.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		<?php if ($notifications_add->CaseNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseNumber");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->CaseNumber->caption(), $notifications->CaseNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($notifications_add->FileNumber->Required) { ?>
			elm = this.getElements("x" + infix + "_FileNumber");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->FileNumber->caption(), $notifications->FileNumber->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($notifications_add->Notification->Required) { ?>
			elm = this.getElements("x" + infix + "_Notification");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->Notification->caption(), $notifications->Notification->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($notifications_add->NotificationDate->Required) { ?>
			elm = this.getElements("x" + infix + "_NotificationDate");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->NotificationDate->caption(), $notifications->NotificationDate->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_NotificationDate");
			if (elm && !ew.checkEuroDate(elm.value))
				return this.onError(elm, "<?php echo JsEncode($notifications->NotificationDate->errorMessage()) ?>");
		<?php if ($notifications_add->NotificationTime->Required) { ?>
			elm = this.getElements("x" + infix + "_NotificationTime");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->NotificationTime->caption(), $notifications->NotificationTime->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_NotificationTime");
			if (elm && !ew.checkTime(elm.value))
				return this.onError(elm, "<?php echo JsEncode($notifications->NotificationTime->errorMessage()) ?>");
		<?php if ($notifications_add->Notes->Required) { ?>
			elm = this.getElements("x" + infix + "_Notes");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->Notes->caption(), $notifications->Notes->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($notifications_add->CaseID->Required) { ?>
			elm = this.getElements("x" + infix + "_CaseID");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $notifications->CaseID->caption(), $notifications->CaseID->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_CaseID");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($notifications->CaseID->errorMessage()) ?>");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ew.forms[val])
			if (!ew.forms[val].validate())
				return false;
	}
	return true;
}

// Form_CustomValidate event
fnotificationsadd.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!

	// Your custom validation code here, return false if invalid.
	return true;
}

// Use JavaScript validation or not
fnotificationsadd.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
// Form object for search

</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $notifications_add->showPageHeader(); ?>
<?php
$notifications_add->showMessage();
?>
<form name="fnotificationsadd" id="fnotificationsadd" class="<?php echo $notifications_add->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($notifications_add->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $notifications_add->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="notifications">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$notifications_add->IsModal ?>">
<?php if ($notifications->getCurrentMasterTable() == "cases") { ?>
<input type="hidden" name="<?php echo TABLE_SHOW_MASTER ?>" value="cases">
<input type="hidden" name="fk_CaseID" value="<?php echo $notifications->CaseID->getSessionValue() ?>">
<?php } ?>
<?php if (!$notifications_add->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
<div class="ew-add-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_notificationsadd" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($notifications->CaseNumber->Visible) { // CaseNumber ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_CaseNumber" class="form-group row">
		<label id="elh_notifications_CaseNumber" for="x_CaseNumber" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->CaseNumber->caption() ?><?php echo ($notifications->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->CaseNumber->cellAttributes() ?>>
<span id="el_notifications_CaseNumber">
<input type="text" data-table="notifications" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($notifications->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $notifications->CaseNumber->EditValue ?>"<?php echo $notifications->CaseNumber->editAttributes() ?>>
</span>
<?php echo $notifications->CaseNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_CaseNumber"><?php echo $notifications->CaseNumber->caption() ?><?php echo ($notifications->CaseNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->CaseNumber->cellAttributes() ?>>
<span id="el_notifications_CaseNumber">
<input type="text" data-table="notifications" data-field="x_CaseNumber" name="x_CaseNumber" id="x_CaseNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($notifications->CaseNumber->getPlaceHolder()) ?>" value="<?php echo $notifications->CaseNumber->EditValue ?>"<?php echo $notifications->CaseNumber->editAttributes() ?>>
</span>
<?php echo $notifications->CaseNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->FileNumber->Visible) { // FileNumber ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_FileNumber" class="form-group row">
		<label id="elh_notifications_FileNumber" for="x_FileNumber" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->FileNumber->caption() ?><?php echo ($notifications->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->FileNumber->cellAttributes() ?>>
<span id="el_notifications_FileNumber">
<input type="text" data-table="notifications" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($notifications->FileNumber->getPlaceHolder()) ?>" value="<?php echo $notifications->FileNumber->EditValue ?>"<?php echo $notifications->FileNumber->editAttributes() ?>>
</span>
<?php echo $notifications->FileNumber->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_FileNumber"><?php echo $notifications->FileNumber->caption() ?><?php echo ($notifications->FileNumber->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->FileNumber->cellAttributes() ?>>
<span id="el_notifications_FileNumber">
<input type="text" data-table="notifications" data-field="x_FileNumber" name="x_FileNumber" id="x_FileNumber" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($notifications->FileNumber->getPlaceHolder()) ?>" value="<?php echo $notifications->FileNumber->EditValue ?>"<?php echo $notifications->FileNumber->editAttributes() ?>>
</span>
<?php echo $notifications->FileNumber->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->Notification->Visible) { // Notification ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_Notification" class="form-group row">
		<label id="elh_notifications_Notification" for="x_Notification" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->Notification->caption() ?><?php echo ($notifications->Notification->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->Notification->cellAttributes() ?>>
<span id="el_notifications_Notification">
<textarea data-table="notifications" data-field="x_Notification" name="x_Notification" id="x_Notification" cols="35" rows="2" placeholder="<?php echo HtmlEncode($notifications->Notification->getPlaceHolder()) ?>"<?php echo $notifications->Notification->editAttributes() ?>><?php echo $notifications->Notification->EditValue ?></textarea>
</span>
<?php echo $notifications->Notification->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notification">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_Notification"><?php echo $notifications->Notification->caption() ?><?php echo ($notifications->Notification->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->Notification->cellAttributes() ?>>
<span id="el_notifications_Notification">
<textarea data-table="notifications" data-field="x_Notification" name="x_Notification" id="x_Notification" cols="35" rows="2" placeholder="<?php echo HtmlEncode($notifications->Notification->getPlaceHolder()) ?>"<?php echo $notifications->Notification->editAttributes() ?>><?php echo $notifications->Notification->EditValue ?></textarea>
</span>
<?php echo $notifications->Notification->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->NotificationDate->Visible) { // NotificationDate ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_NotificationDate" class="form-group row">
		<label id="elh_notifications_NotificationDate" for="x_NotificationDate" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->NotificationDate->caption() ?><?php echo ($notifications->NotificationDate->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->NotificationDate->cellAttributes() ?>>
<span id="el_notifications_NotificationDate">
<input type="text" data-table="notifications" data-field="x_NotificationDate" data-format="7" name="x_NotificationDate" id="x_NotificationDate" placeholder="<?php echo HtmlEncode($notifications->NotificationDate->getPlaceHolder()) ?>" value="<?php echo $notifications->NotificationDate->EditValue ?>"<?php echo $notifications->NotificationDate->editAttributes() ?>>
<?php if (!$notifications->NotificationDate->ReadOnly && !$notifications->NotificationDate->Disabled && !isset($notifications->NotificationDate->EditAttrs["readonly"]) && !isset($notifications->NotificationDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fnotificationsadd", "x_NotificationDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
<?php echo $notifications->NotificationDate->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_NotificationDate">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_NotificationDate"><?php echo $notifications->NotificationDate->caption() ?><?php echo ($notifications->NotificationDate->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->NotificationDate->cellAttributes() ?>>
<span id="el_notifications_NotificationDate">
<input type="text" data-table="notifications" data-field="x_NotificationDate" data-format="7" name="x_NotificationDate" id="x_NotificationDate" placeholder="<?php echo HtmlEncode($notifications->NotificationDate->getPlaceHolder()) ?>" value="<?php echo $notifications->NotificationDate->EditValue ?>"<?php echo $notifications->NotificationDate->editAttributes() ?>>
<?php if (!$notifications->NotificationDate->ReadOnly && !$notifications->NotificationDate->Disabled && !isset($notifications->NotificationDate->EditAttrs["readonly"]) && !isset($notifications->NotificationDate->EditAttrs["disabled"])) { ?>
<script>
ew.createDateTimePicker("fnotificationsadd", "x_NotificationDate", {"ignoreReadonly":true,"useCurrent":false,"format":7});
</script>
<?php } ?>
</span>
<?php echo $notifications->NotificationDate->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->NotificationTime->Visible) { // NotificationTime ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_NotificationTime" class="form-group row">
		<label id="elh_notifications_NotificationTime" for="x_NotificationTime" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->NotificationTime->caption() ?><?php echo ($notifications->NotificationTime->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->NotificationTime->cellAttributes() ?>>
<span id="el_notifications_NotificationTime">
<input type="text" data-table="notifications" data-field="x_NotificationTime" name="x_NotificationTime" id="x_NotificationTime" placeholder="<?php echo HtmlEncode($notifications->NotificationTime->getPlaceHolder()) ?>" value="<?php echo $notifications->NotificationTime->EditValue ?>"<?php echo $notifications->NotificationTime->editAttributes() ?>>
<?php if (!$notifications->NotificationTime->ReadOnly && !$notifications->NotificationTime->Disabled && !isset($notifications->NotificationTime->EditAttrs["readonly"]) && !isset($notifications->NotificationTime->EditAttrs["disabled"])) { ?>
<script>ew.createTimePicker("fnotificationsadd", "x_NotificationTime", {"timeFormat":"h:i A","step":15});</script><?php } ?>
</span>
<?php echo $notifications->NotificationTime->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_NotificationTime">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_NotificationTime"><?php echo $notifications->NotificationTime->caption() ?><?php echo ($notifications->NotificationTime->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->NotificationTime->cellAttributes() ?>>
<span id="el_notifications_NotificationTime">
<input type="text" data-table="notifications" data-field="x_NotificationTime" name="x_NotificationTime" id="x_NotificationTime" placeholder="<?php echo HtmlEncode($notifications->NotificationTime->getPlaceHolder()) ?>" value="<?php echo $notifications->NotificationTime->EditValue ?>"<?php echo $notifications->NotificationTime->editAttributes() ?>>
<?php if (!$notifications->NotificationTime->ReadOnly && !$notifications->NotificationTime->Disabled && !isset($notifications->NotificationTime->EditAttrs["readonly"]) && !isset($notifications->NotificationTime->EditAttrs["disabled"])) { ?>
<script>ew.createTimePicker("fnotificationsadd", "x_NotificationTime", {"timeFormat":"h:i A","step":15});</script><?php } ?>
</span>
<?php echo $notifications->NotificationTime->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->Notes->Visible) { // Notes ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label id="elh_notifications_Notes" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->Notes->caption() ?><?php echo ($notifications->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->Notes->cellAttributes() ?>>
<span id="el_notifications_Notes">
<?php AppendClass($notifications->Notes->EditAttrs["class"], "editor"); ?>
<textarea data-table="notifications" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($notifications->Notes->getPlaceHolder()) ?>"<?php echo $notifications->Notes->editAttributes() ?>><?php echo $notifications->Notes->EditValue ?></textarea>
<script>
ew.createEditor("fnotificationsadd", "x_Notes", 35, 4, <?php echo ($notifications->Notes->ReadOnly || FALSE) ? "true" : "false" ?>);
</script>
</span>
<?php echo $notifications->Notes->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_Notes"><?php echo $notifications->Notes->caption() ?><?php echo ($notifications->Notes->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->Notes->cellAttributes() ?>>
<span id="el_notifications_Notes">
<?php AppendClass($notifications->Notes->EditAttrs["class"], "editor"); ?>
<textarea data-table="notifications" data-field="x_Notes" name="x_Notes" id="x_Notes" cols="35" rows="4" placeholder="<?php echo HtmlEncode($notifications->Notes->getPlaceHolder()) ?>"<?php echo $notifications->Notes->editAttributes() ?>><?php echo $notifications->Notes->EditValue ?></textarea>
<script>
ew.createEditor("fnotificationsadd", "x_Notes", 35, 4, <?php echo ($notifications->Notes->ReadOnly || FALSE) ? "true" : "false" ?>);
</script>
</span>
<?php echo $notifications->Notes->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications->CaseID->Visible) { // CaseID ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
	<div id="r_CaseID" class="form-group row">
		<label id="elh_notifications_CaseID" for="x_CaseID" class="<?php echo $notifications_add->LeftColumnClass ?>"><?php echo $notifications->CaseID->caption() ?><?php echo ($notifications->CaseID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $notifications_add->RightColumnClass ?>"><div<?php echo $notifications->CaseID->cellAttributes() ?>>
<?php if ($notifications->CaseID->getSessionValue() <> "") { ?>
<span id="el_notifications_CaseID">
<span<?php echo $notifications->CaseID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($notifications->CaseID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x_CaseID" name="x_CaseID" value="<?php echo HtmlEncode($notifications->CaseID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_notifications_CaseID">
<input type="text" data-table="notifications" data-field="x_CaseID" name="x_CaseID" id="x_CaseID" size="30" placeholder="<?php echo HtmlEncode($notifications->CaseID->getPlaceHolder()) ?>" value="<?php echo $notifications->CaseID->EditValue ?>"<?php echo $notifications->CaseID->editAttributes() ?>>
</span>
<?php } ?>
<?php echo $notifications->CaseID->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseID">
		<td class="<?php echo $notifications_add->TableLeftColumnClass ?>"><span id="elh_notifications_CaseID"><?php echo $notifications->CaseID->caption() ?><?php echo ($notifications->CaseID->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $notifications->CaseID->cellAttributes() ?>>
<?php if ($notifications->CaseID->getSessionValue() <> "") { ?>
<span id="el_notifications_CaseID">
<span<?php echo $notifications->CaseID->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($notifications->CaseID->ViewValue) ?>"></span>
</span>
<input type="hidden" id="x_CaseID" name="x_CaseID" value="<?php echo HtmlEncode($notifications->CaseID->CurrentValue) ?>">
<?php } else { ?>
<span id="el_notifications_CaseID">
<input type="text" data-table="notifications" data-field="x_CaseID" name="x_CaseID" id="x_CaseID" size="30" placeholder="<?php echo HtmlEncode($notifications->CaseID->getPlaceHolder()) ?>" value="<?php echo $notifications->CaseID->EditValue ?>"<?php echo $notifications->CaseID->editAttributes() ?>>
</span>
<?php } ?>
<?php echo $notifications->CaseID->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($notifications_add->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$notifications_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $notifications_add->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $notifications_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$notifications_add->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$notifications_add->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php include_once "footer.php" ?>
<?php
$notifications_add->terminate();
?>
