<?php
namespace PHPMaker2020\project2;

// 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
$kp_lab_ot_add = new kp_lab_ot_add();

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

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

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

// Page Rendering event
$kp_lab_ot_add->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var fkp_lab_otadd, currentPageID;
loadjs.ready("head", function() {

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

	// Validate form
	fkp_lab_otadd.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 ($kp_lab_ot_add->idempresa->Required) { ?>
				elm = this.getElements("x" + infix + "_idempresa");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->idempresa->caption(), $kp_lab_ot_add->idempresa->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_add->numero->Required) { ?>
				elm = this.getElements("x" + infix + "_numero");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->numero->caption(), $kp_lab_ot_add->numero->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_add->fecha->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->fecha->caption(), $kp_lab_ot_add->fecha->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->fecha->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->tipocompra->Required) { ?>
				elm = this.getElements("x" + infix + "_tipocompra");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->tipocompra->caption(), $kp_lab_ot_add->tipocompra->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_add->cita->Required) { ?>
				elm = this.getElements("x" + infix + "_cita");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->cita->caption(), $kp_lab_ot_add->cita->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cita");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->cita->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->estado->Required) { ?>
				elm = this.getElements("x" + infix + "_estado");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->estado->caption(), $kp_lab_ot_add->estado->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_estado");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->estado->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->fecha_enviado->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha_enviado");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->fecha_enviado->caption(), $kp_lab_ot_add->fecha_enviado->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha_enviado");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->fecha_enviado->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->fecha_asignada->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha_asignada");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->fecha_asignada->caption(), $kp_lab_ot_add->fecha_asignada->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha_asignada");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->fecha_asignada->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->fecha_inicio->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha_inicio");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->fecha_inicio->caption(), $kp_lab_ot_add->fecha_inicio->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha_inicio");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->fecha_inicio->errorMessage()) ?>");
			<?php if ($kp_lab_ot_add->fecha_fin->Required) { ?>
				elm = this.getElements("x" + infix + "_fecha_fin");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_add->fecha_fin->caption(), $kp_lab_ot_add->fecha_fin->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_fecha_fin");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($kp_lab_ot_add->fecha_fin->errorMessage()) ?>");

				// Call 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
	fkp_lab_otadd.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
	fkp_lab_otadd.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

	// Dynamic selection lists
	loadjs.done("fkp_lab_otadd");
});
</script>
<script>
loadjs.ready("head", function() {

	// Client script
	// Write your client script here, no need to add script tags.

});
</script>
<?php $kp_lab_ot_add->showPageHeader(); ?>
<?php
$kp_lab_ot_add->showMessage();
?>
<form name="fkp_lab_otadd" id="fkp_lab_otadd" class="<?php echo $kp_lab_ot_add->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($Page->CheckToken) { ?>
<input type="hidden" name="<?php echo Config("TOKEN_NAME") ?>" value="<?php echo $Page->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="kp_lab_ot">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$kp_lab_ot_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($kp_lab_ot_add->idempresa->Visible) { // idempresa ?>
	<div id="r_idempresa" class="form-group row">
		<label id="elh_kp_lab_ot_idempresa" for="x_idempresa" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->idempresa->caption() ?><?php echo $kp_lab_ot_add->idempresa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->idempresa->cellAttributes() ?>>
<span id="el_kp_lab_ot_idempresa">
<input type="text" data-table="kp_lab_ot" data-field="x_idempresa" name="x_idempresa" id="x_idempresa" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->idempresa->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->idempresa->EditValue ?>"<?php echo $kp_lab_ot_add->idempresa->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_add->idempresa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->numero->Visible) { // numero ?>
	<div id="r_numero" class="form-group row">
		<label id="elh_kp_lab_ot_numero" for="x_numero" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->numero->caption() ?><?php echo $kp_lab_ot_add->numero->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->numero->cellAttributes() ?>>
<span id="el_kp_lab_ot_numero">
<input type="text" data-table="kp_lab_ot" data-field="x_numero" name="x_numero" id="x_numero" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->numero->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->numero->EditValue ?>"<?php echo $kp_lab_ot_add->numero->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_add->numero->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->fecha->Visible) { // fecha ?>
	<div id="r_fecha" class="form-group row">
		<label id="elh_kp_lab_ot_fecha" for="x_fecha" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->fecha->caption() ?><?php echo $kp_lab_ot_add->fecha->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->fecha->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha">
<input type="text" data-table="kp_lab_ot" data-field="x_fecha" name="x_fecha" id="x_fecha" maxlength="19" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->fecha->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->fecha->EditValue ?>"<?php echo $kp_lab_ot_add->fecha->editAttributes() ?>>
<?php if (!$kp_lab_ot_add->fecha->ReadOnly && !$kp_lab_ot_add->fecha->Disabled && !isset($kp_lab_ot_add->fecha->EditAttrs["readonly"]) && !isset($kp_lab_ot_add->fecha->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otadd", "x_fecha", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_add->fecha->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->tipocompra->Visible) { // tipocompra ?>
	<div id="r_tipocompra" class="form-group row">
		<label id="elh_kp_lab_ot_tipocompra" for="x_tipocompra" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->tipocompra->caption() ?><?php echo $kp_lab_ot_add->tipocompra->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->tipocompra->cellAttributes() ?>>
<span id="el_kp_lab_ot_tipocompra">
<input type="text" data-table="kp_lab_ot" data-field="x_tipocompra" name="x_tipocompra" id="x_tipocompra" size="30" maxlength="10" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->tipocompra->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->tipocompra->EditValue ?>"<?php echo $kp_lab_ot_add->tipocompra->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_add->tipocompra->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->cita->Visible) { // cita ?>
	<div id="r_cita" class="form-group row">
		<label id="elh_kp_lab_ot_cita" for="x_cita" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->cita->caption() ?><?php echo $kp_lab_ot_add->cita->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->cita->cellAttributes() ?>>
<span id="el_kp_lab_ot_cita">
<input type="text" data-table="kp_lab_ot" data-field="x_cita" name="x_cita" id="x_cita" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->cita->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->cita->EditValue ?>"<?php echo $kp_lab_ot_add->cita->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_add->cita->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->estado->Visible) { // estado ?>
	<div id="r_estado" class="form-group row">
		<label id="elh_kp_lab_ot_estado" for="x_estado" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->estado->caption() ?><?php echo $kp_lab_ot_add->estado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->estado->cellAttributes() ?>>
<span id="el_kp_lab_ot_estado">
<input type="text" data-table="kp_lab_ot" data-field="x_estado" name="x_estado" id="x_estado" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->estado->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->estado->EditValue ?>"<?php echo $kp_lab_ot_add->estado->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_add->estado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->fecha_enviado->Visible) { // fecha_enviado ?>
	<div id="r_fecha_enviado" class="form-group row">
		<label id="elh_kp_lab_ot_fecha_enviado" for="x_fecha_enviado" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->fecha_enviado->caption() ?><?php echo $kp_lab_ot_add->fecha_enviado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->fecha_enviado->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_enviado">
<input type="text" data-table="kp_lab_ot" data-field="x_fecha_enviado" name="x_fecha_enviado" id="x_fecha_enviado" maxlength="10" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->fecha_enviado->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->fecha_enviado->EditValue ?>"<?php echo $kp_lab_ot_add->fecha_enviado->editAttributes() ?>>
<?php if (!$kp_lab_ot_add->fecha_enviado->ReadOnly && !$kp_lab_ot_add->fecha_enviado->Disabled && !isset($kp_lab_ot_add->fecha_enviado->EditAttrs["readonly"]) && !isset($kp_lab_ot_add->fecha_enviado->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otadd", "x_fecha_enviado", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_add->fecha_enviado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->fecha_asignada->Visible) { // fecha_asignada ?>
	<div id="r_fecha_asignada" class="form-group row">
		<label id="elh_kp_lab_ot_fecha_asignada" for="x_fecha_asignada" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->fecha_asignada->caption() ?><?php echo $kp_lab_ot_add->fecha_asignada->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->fecha_asignada->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_asignada">
<input type="text" data-table="kp_lab_ot" data-field="x_fecha_asignada" name="x_fecha_asignada" id="x_fecha_asignada" maxlength="10" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->fecha_asignada->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->fecha_asignada->EditValue ?>"<?php echo $kp_lab_ot_add->fecha_asignada->editAttributes() ?>>
<?php if (!$kp_lab_ot_add->fecha_asignada->ReadOnly && !$kp_lab_ot_add->fecha_asignada->Disabled && !isset($kp_lab_ot_add->fecha_asignada->EditAttrs["readonly"]) && !isset($kp_lab_ot_add->fecha_asignada->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otadd", "x_fecha_asignada", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_add->fecha_asignada->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->fecha_inicio->Visible) { // fecha_inicio ?>
	<div id="r_fecha_inicio" class="form-group row">
		<label id="elh_kp_lab_ot_fecha_inicio" for="x_fecha_inicio" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->fecha_inicio->caption() ?><?php echo $kp_lab_ot_add->fecha_inicio->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->fecha_inicio->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_inicio">
<input type="text" data-table="kp_lab_ot" data-field="x_fecha_inicio" name="x_fecha_inicio" id="x_fecha_inicio" maxlength="10" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->fecha_inicio->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->fecha_inicio->EditValue ?>"<?php echo $kp_lab_ot_add->fecha_inicio->editAttributes() ?>>
<?php if (!$kp_lab_ot_add->fecha_inicio->ReadOnly && !$kp_lab_ot_add->fecha_inicio->Disabled && !isset($kp_lab_ot_add->fecha_inicio->EditAttrs["readonly"]) && !isset($kp_lab_ot_add->fecha_inicio->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otadd", "x_fecha_inicio", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_add->fecha_inicio->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_add->fecha_fin->Visible) { // fecha_fin ?>
	<div id="r_fecha_fin" class="form-group row">
		<label id="elh_kp_lab_ot_fecha_fin" for="x_fecha_fin" class="<?php echo $kp_lab_ot_add->LeftColumnClass ?>"><?php echo $kp_lab_ot_add->fecha_fin->caption() ?><?php echo $kp_lab_ot_add->fecha_fin->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_add->RightColumnClass ?>"><div <?php echo $kp_lab_ot_add->fecha_fin->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_fin">
<input type="text" data-table="kp_lab_ot" data-field="x_fecha_fin" name="x_fecha_fin" id="x_fecha_fin" maxlength="10" placeholder="<?php echo HtmlEncode($kp_lab_ot_add->fecha_fin->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_add->fecha_fin->EditValue ?>"<?php echo $kp_lab_ot_add->fecha_fin->editAttributes() ?>>
<?php if (!$kp_lab_ot_add->fecha_fin->ReadOnly && !$kp_lab_ot_add->fecha_fin->Disabled && !isset($kp_lab_ot_add->fecha_fin->EditAttrs["readonly"]) && !isset($kp_lab_ot_add->fecha_fin->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otadd", "x_fecha_fin", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_add->fecha_fin->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$kp_lab_ot_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $kp_lab_ot_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 $kp_lab_ot_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$kp_lab_ot_add->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

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