<?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_edit = new kp_lab_ot_edit();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "edit";
	fkp_lab_otedit = currentForm = new ew.Form("fkp_lab_otedit", "edit");

	// Validate form
	fkp_lab_otedit.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_edit->id_reg->Required) { ?>
				elm = this.getElements("x" + infix + "_id_reg");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $kp_lab_ot_edit->id_reg->caption(), $kp_lab_ot_edit->id_reg->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_edit->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_edit->idempresa->caption(), $kp_lab_ot_edit->idempresa->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_edit->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_edit->numero->caption(), $kp_lab_ot_edit->numero->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_edit->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_edit->fecha->caption(), $kp_lab_ot_edit->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_edit->fecha->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->tipocompra->caption(), $kp_lab_ot_edit->tipocompra->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($kp_lab_ot_edit->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_edit->cita->caption(), $kp_lab_ot_edit->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_edit->cita->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->estado->caption(), $kp_lab_ot_edit->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_edit->estado->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->fecha_enviado->caption(), $kp_lab_ot_edit->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_edit->fecha_enviado->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->fecha_asignada->caption(), $kp_lab_ot_edit->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_edit->fecha_asignada->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->fecha_inicio->caption(), $kp_lab_ot_edit->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_edit->fecha_inicio->errorMessage()) ?>");
			<?php if ($kp_lab_ot_edit->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_edit->fecha_fin->caption(), $kp_lab_ot_edit->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_edit->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_otedit.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_otedit.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $kp_lab_ot_edit->showPageHeader(); ?>
<?php
$kp_lab_ot_edit->showMessage();
?>
<form name="fkp_lab_otedit" id="fkp_lab_otedit" class="<?php echo $kp_lab_ot_edit->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="update">
<input type="hidden" name="modal" value="<?php echo (int)$kp_lab_ot_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($kp_lab_ot_edit->id_reg->Visible) { // id_reg ?>
	<div id="r_id_reg" class="form-group row">
		<label id="elh_kp_lab_ot_id_reg" class="<?php echo $kp_lab_ot_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->id_reg->caption() ?><?php echo $kp_lab_ot_edit->id_reg->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->id_reg->cellAttributes() ?>>
<span id="el_kp_lab_ot_id_reg">
<span<?php echo $kp_lab_ot_edit->id_reg->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($kp_lab_ot_edit->id_reg->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="kp_lab_ot" data-field="x_id_reg" name="x_id_reg" id="x_id_reg" value="<?php echo HtmlEncode($kp_lab_ot_edit->id_reg->CurrentValue) ?>">
<?php echo $kp_lab_ot_edit->id_reg->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->idempresa->caption() ?><?php echo $kp_lab_ot_edit->idempresa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->idempresa->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->idempresa->EditValue ?>"<?php echo $kp_lab_ot_edit->idempresa->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_edit->idempresa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->numero->caption() ?><?php echo $kp_lab_ot_edit->numero->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->numero->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->numero->EditValue ?>"<?php echo $kp_lab_ot_edit->numero->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_edit->numero->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->fecha->caption() ?><?php echo $kp_lab_ot_edit->fecha->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->fecha->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->fecha->EditValue ?>"<?php echo $kp_lab_ot_edit->fecha->editAttributes() ?>>
<?php if (!$kp_lab_ot_edit->fecha->ReadOnly && !$kp_lab_ot_edit->fecha->Disabled && !isset($kp_lab_ot_edit->fecha->EditAttrs["readonly"]) && !isset($kp_lab_ot_edit->fecha->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otedit", "x_fecha", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_edit->fecha->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->tipocompra->caption() ?><?php echo $kp_lab_ot_edit->tipocompra->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->tipocompra->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->tipocompra->EditValue ?>"<?php echo $kp_lab_ot_edit->tipocompra->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_edit->tipocompra->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->cita->caption() ?><?php echo $kp_lab_ot_edit->cita->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->cita->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->cita->EditValue ?>"<?php echo $kp_lab_ot_edit->cita->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_edit->cita->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->estado->caption() ?><?php echo $kp_lab_ot_edit->estado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->estado->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->estado->EditValue ?>"<?php echo $kp_lab_ot_edit->estado->editAttributes() ?>>
</span>
<?php echo $kp_lab_ot_edit->estado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->fecha_enviado->caption() ?><?php echo $kp_lab_ot_edit->fecha_enviado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->fecha_enviado->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->fecha_enviado->EditValue ?>"<?php echo $kp_lab_ot_edit->fecha_enviado->editAttributes() ?>>
<?php if (!$kp_lab_ot_edit->fecha_enviado->ReadOnly && !$kp_lab_ot_edit->fecha_enviado->Disabled && !isset($kp_lab_ot_edit->fecha_enviado->EditAttrs["readonly"]) && !isset($kp_lab_ot_edit->fecha_enviado->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otedit", "x_fecha_enviado", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_edit->fecha_enviado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->fecha_asignada->caption() ?><?php echo $kp_lab_ot_edit->fecha_asignada->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->fecha_asignada->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->fecha_asignada->EditValue ?>"<?php echo $kp_lab_ot_edit->fecha_asignada->editAttributes() ?>>
<?php if (!$kp_lab_ot_edit->fecha_asignada->ReadOnly && !$kp_lab_ot_edit->fecha_asignada->Disabled && !isset($kp_lab_ot_edit->fecha_asignada->EditAttrs["readonly"]) && !isset($kp_lab_ot_edit->fecha_asignada->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otedit", "x_fecha_asignada", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_edit->fecha_asignada->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->fecha_inicio->caption() ?><?php echo $kp_lab_ot_edit->fecha_inicio->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->fecha_inicio->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->fecha_inicio->EditValue ?>"<?php echo $kp_lab_ot_edit->fecha_inicio->editAttributes() ?>>
<?php if (!$kp_lab_ot_edit->fecha_inicio->ReadOnly && !$kp_lab_ot_edit->fecha_inicio->Disabled && !isset($kp_lab_ot_edit->fecha_inicio->EditAttrs["readonly"]) && !isset($kp_lab_ot_edit->fecha_inicio->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otedit", "x_fecha_inicio", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_edit->fecha_inicio->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($kp_lab_ot_edit->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_edit->LeftColumnClass ?>"><?php echo $kp_lab_ot_edit->fecha_fin->caption() ?><?php echo $kp_lab_ot_edit->fecha_fin->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $kp_lab_ot_edit->RightColumnClass ?>"><div <?php echo $kp_lab_ot_edit->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_edit->fecha_fin->getPlaceHolder()) ?>" value="<?php echo $kp_lab_ot_edit->fecha_fin->EditValue ?>"<?php echo $kp_lab_ot_edit->fecha_fin->editAttributes() ?>>
<?php if (!$kp_lab_ot_edit->fecha_fin->ReadOnly && !$kp_lab_ot_edit->fecha_fin->Disabled && !isset($kp_lab_ot_edit->fecha_fin->EditAttrs["readonly"]) && !isset($kp_lab_ot_edit->fecha_fin->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fkp_lab_otedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fkp_lab_otedit", "x_fecha_fin", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $kp_lab_ot_edit->fecha_fin->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$kp_lab_ot_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $kp_lab_ot_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $kp_lab_ot_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$kp_lab_ot_edit->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_edit->terminate();
?>