<?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
$lotes_add = new lotes_add();

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

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

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

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

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

	// Validate form
	flotesadd.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 ($lotes_add->id_proyecto->Required) { ?>
				elm = this.getElements("x" + infix + "_id_proyecto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->id_proyecto->caption(), $lotes_add->id_proyecto->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_id_proyecto");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->id_proyecto->errorMessage()) ?>");
			<?php if ($lotes_add->codigo_producto->Required) { ?>
				elm = this.getElements("x" + infix + "_codigo_producto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->codigo_producto->caption(), $lotes_add->codigo_producto->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->nombre_producto->Required) { ?>
				elm = this.getElements("x" + infix + "_nombre_producto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->nombre_producto->caption(), $lotes_add->nombre_producto->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->status_producto->Required) { ?>
				elm = this.getElements("x" + infix + "_status_producto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->status_producto->caption(), $lotes_add->status_producto->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_status_producto");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->status_producto->errorMessage()) ?>");
			<?php if ($lotes_add->date_added->Required) { ?>
				elm = this.getElements("x" + infix + "_date_added");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->date_added->caption(), $lotes_add->date_added->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_date_added");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->date_added->errorMessage()) ?>");
			<?php if ($lotes_add->precio_producto->Required) { ?>
				elm = this.getElements("x" + infix + "_precio_producto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->precio_producto->caption(), $lotes_add->precio_producto->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_precio_producto");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->precio_producto->errorMessage()) ?>");
			<?php if ($lotes_add->costo_producto->Required) { ?>
				elm = this.getElements("x" + infix + "_costo_producto");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->costo_producto->caption(), $lotes_add->costo_producto->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_costo_producto");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->costo_producto->errorMessage()) ?>");
			<?php if ($lotes_add->mon_costo->Required) { ?>
				elm = this.getElements("x" + infix + "_mon_costo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->mon_costo->caption(), $lotes_add->mon_costo->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_mon_costo");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->mon_costo->errorMessage()) ?>");
			<?php if ($lotes_add->mon_venta->Required) { ?>
				elm = this.getElements("x" + infix + "_mon_venta");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->mon_venta->caption(), $lotes_add->mon_venta->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_mon_venta");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->mon_venta->errorMessage()) ?>");
			<?php if ($lotes_add->marca->Required) { ?>
				elm = this.getElements("x" + infix + "_marca");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->marca->caption(), $lotes_add->marca->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->modelo->Required) { ?>
				elm = this.getElements("x" + infix + "_modelo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->modelo->caption(), $lotes_add->modelo->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->color->Required) { ?>
				elm = this.getElements("x" + infix + "_color");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->color->caption(), $lotes_add->color->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->b1->Required) { ?>
				elm = this.getElements("x" + infix + "_b1");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b1->caption(), $lotes_add->b1->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b1");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b1->errorMessage()) ?>");
			<?php if ($lotes_add->b2->Required) { ?>
				elm = this.getElements("x" + infix + "_b2");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b2->caption(), $lotes_add->b2->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b2");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b2->errorMessage()) ?>");
			<?php if ($lotes_add->b3->Required) { ?>
				elm = this.getElements("x" + infix + "_b3");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b3->caption(), $lotes_add->b3->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b3");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b3->errorMessage()) ?>");
			<?php if ($lotes_add->b4->Required) { ?>
				elm = this.getElements("x" + infix + "_b4");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b4->caption(), $lotes_add->b4->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b4");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b4->errorMessage()) ?>");
			<?php if ($lotes_add->b5->Required) { ?>
				elm = this.getElements("x" + infix + "_b5");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b5->caption(), $lotes_add->b5->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b5");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b5->errorMessage()) ?>");
			<?php if ($lotes_add->b6->Required) { ?>
				elm = this.getElements("x" + infix + "_b6");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->b6->caption(), $lotes_add->b6->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_b6");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->b6->errorMessage()) ?>");
			<?php if ($lotes_add->cat_pro->Required) { ?>
				elm = this.getElements("x" + infix + "_cat_pro");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->cat_pro->caption(), $lotes_add->cat_pro->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_cat_pro");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->cat_pro->errorMessage()) ?>");
			<?php if ($lotes_add->pro_ser->Required) { ?>
				elm = this.getElements("x" + infix + "_pro_ser");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->pro_ser->caption(), $lotes_add->pro_ser->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_pro_ser");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->pro_ser->errorMessage()) ?>");
			<?php if ($lotes_add->foto1->Required) { ?>
				elm = this.getElements("x" + infix + "_foto1");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->foto1->caption(), $lotes_add->foto1->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->foto2->Required) { ?>
				elm = this.getElements("x" + infix + "_foto2");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->foto2->caption(), $lotes_add->foto2->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->foto3->Required) { ?>
				elm = this.getElements("x" + infix + "_foto3");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->foto3->caption(), $lotes_add->foto3->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->foto4->Required) { ?>
				elm = this.getElements("x" + infix + "_foto4");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->foto4->caption(), $lotes_add->foto4->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->web->Required) { ?>
				elm = this.getElements("x" + infix + "_web");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->web->caption(), $lotes_add->web->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_web");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->web->errorMessage()) ?>");
			<?php if ($lotes_add->pre_web->Required) { ?>
				elm = this.getElements("x" + infix + "_pre_web");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->pre_web->caption(), $lotes_add->pre_web->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_pre_web");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->pre_web->errorMessage()) ?>");
			<?php if ($lotes_add->descripcion->Required) { ?>
				elm = this.getElements("x" + infix + "_descripcion");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->descripcion->caption(), $lotes_add->descripcion->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->descripcion1->Required) { ?>
				elm = this.getElements("x" + infix + "_descripcion1");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->descripcion1->caption(), $lotes_add->descripcion1->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->megusta->Required) { ?>
				elm = this.getElements("x" + infix + "_megusta");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->megusta->caption(), $lotes_add->megusta->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_megusta");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->megusta->errorMessage()) ?>");
			<?php if ($lotes_add->nomegusta->Required) { ?>
				elm = this.getElements("x" + infix + "_nomegusta");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->nomegusta->caption(), $lotes_add->nomegusta->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_nomegusta");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->nomegusta->errorMessage()) ?>");
			<?php if ($lotes_add->precio2->Required) { ?>
				elm = this.getElements("x" + infix + "_precio2");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->precio2->caption(), $lotes_add->precio2->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_precio2");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->precio2->errorMessage()) ?>");
			<?php if ($lotes_add->precio3->Required) { ?>
				elm = this.getElements("x" + infix + "_precio3");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->precio3->caption(), $lotes_add->precio3->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_precio3");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->precio3->errorMessage()) ?>");
			<?php if ($lotes_add->und_pro->Required) { ?>
				elm = this.getElements("x" + infix + "_und_pro");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->und_pro->caption(), $lotes_add->und_pro->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_und_pro");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->und_pro->errorMessage()) ?>");
			<?php if ($lotes_add->barras->Required) { ?>
				elm = this.getElements("x" + infix + "_barras");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->barras->caption(), $lotes_add->barras->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->stockmin->Required) { ?>
				elm = this.getElements("x" + infix + "_stockmin");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->stockmin->caption(), $lotes_add->stockmin->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_stockmin");
				if (elm && !ew.checkNumber(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->stockmin->errorMessage()) ?>");
			<?php if ($lotes_add->id_grupo->Required) { ?>
				elm = this.getElements("x" + infix + "_id_grupo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->id_grupo->caption(), $lotes_add->id_grupo->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_id_grupo");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->id_grupo->errorMessage()) ?>");
			<?php if ($lotes_add->talla->Required) { ?>
				elm = this.getElements("x" + infix + "_talla");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->talla->caption(), $lotes_add->talla->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->mostrarcolor->Required) { ?>
				elm = this.getElements("x" + infix + "_mostrarcolor");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->mostrarcolor->caption(), $lotes_add->mostrarcolor->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_mostrarcolor");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->mostrarcolor->errorMessage()) ?>");
			<?php if ($lotes_add->lote->Required) { ?>
				elm = this.getElements("x" + infix + "_lote");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->lote->caption(), $lotes_add->lote->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->manzana->Required) { ?>
				elm = this.getElements("x" + infix + "_manzana");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->manzana->caption(), $lotes_add->manzana->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->etapa->Required) { ?>
				elm = this.getElements("x" + infix + "_etapa");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->etapa->caption(), $lotes_add->etapa->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_etapa");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->etapa->errorMessage()) ?>");
			<?php if ($lotes_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", $lotes_add->estado->caption(), $lotes_add->estado->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_estado");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->estado->errorMessage()) ?>");
			<?php if ($lotes_add->icon->Required) { ?>
				elm = this.getElements("x" + infix + "_icon");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->icon->caption(), $lotes_add->icon->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->topy->Required) { ?>
				elm = this.getElements("x" + infix + "_topy");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->topy->caption(), $lotes_add->topy->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->leftx->Required) { ?>
				elm = this.getElements("x" + infix + "_leftx");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->leftx->caption(), $lotes_add->leftx->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->codlogin->Required) { ?>
				elm = this.getElements("x" + infix + "_codlogin");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->codlogin->caption(), $lotes_add->codlogin->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($lotes_add->id_cliente->Required) { ?>
				elm = this.getElements("x" + infix + "_id_cliente");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $lotes_add->id_cliente->caption(), $lotes_add->id_cliente->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_id_cliente");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($lotes_add->id_cliente->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
	flotesadd.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
	flotesadd.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $lotes_add->showPageHeader(); ?>
<?php
$lotes_add->showMessage();
?>
<form name="flotesadd" id="flotesadd" class="<?php echo $lotes_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="lotes">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$lotes_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($lotes_add->id_proyecto->Visible) { // id_proyecto ?>
	<div id="r_id_proyecto" class="form-group row">
		<label id="elh_lotes_id_proyecto" for="x_id_proyecto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->id_proyecto->caption() ?><?php echo $lotes_add->id_proyecto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->id_proyecto->cellAttributes() ?>>
<span id="el_lotes_id_proyecto">
<input type="text" data-table="lotes" data-field="x_id_proyecto" name="x_id_proyecto" id="x_id_proyecto" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->id_proyecto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->id_proyecto->EditValue ?>"<?php echo $lotes_add->id_proyecto->editAttributes() ?>>
</span>
<?php echo $lotes_add->id_proyecto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->codigo_producto->Visible) { // codigo_producto ?>
	<div id="r_codigo_producto" class="form-group row">
		<label id="elh_lotes_codigo_producto" for="x_codigo_producto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->codigo_producto->caption() ?><?php echo $lotes_add->codigo_producto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->codigo_producto->cellAttributes() ?>>
<span id="el_lotes_codigo_producto">
<input type="text" data-table="lotes" data-field="x_codigo_producto" name="x_codigo_producto" id="x_codigo_producto" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($lotes_add->codigo_producto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->codigo_producto->EditValue ?>"<?php echo $lotes_add->codigo_producto->editAttributes() ?>>
</span>
<?php echo $lotes_add->codigo_producto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->nombre_producto->Visible) { // nombre_producto ?>
	<div id="r_nombre_producto" class="form-group row">
		<label id="elh_lotes_nombre_producto" for="x_nombre_producto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->nombre_producto->caption() ?><?php echo $lotes_add->nombre_producto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->nombre_producto->cellAttributes() ?>>
<span id="el_lotes_nombre_producto">
<input type="text" data-table="lotes" data-field="x_nombre_producto" name="x_nombre_producto" id="x_nombre_producto" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($lotes_add->nombre_producto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->nombre_producto->EditValue ?>"<?php echo $lotes_add->nombre_producto->editAttributes() ?>>
</span>
<?php echo $lotes_add->nombre_producto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->status_producto->Visible) { // status_producto ?>
	<div id="r_status_producto" class="form-group row">
		<label id="elh_lotes_status_producto" for="x_status_producto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->status_producto->caption() ?><?php echo $lotes_add->status_producto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->status_producto->cellAttributes() ?>>
<span id="el_lotes_status_producto">
<input type="text" data-table="lotes" data-field="x_status_producto" name="x_status_producto" id="x_status_producto" size="30" maxlength="4" placeholder="<?php echo HtmlEncode($lotes_add->status_producto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->status_producto->EditValue ?>"<?php echo $lotes_add->status_producto->editAttributes() ?>>
</span>
<?php echo $lotes_add->status_producto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->date_added->Visible) { // date_added ?>
	<div id="r_date_added" class="form-group row">
		<label id="elh_lotes_date_added" for="x_date_added" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->date_added->caption() ?><?php echo $lotes_add->date_added->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->date_added->cellAttributes() ?>>
<span id="el_lotes_date_added">
<input type="text" data-table="lotes" data-field="x_date_added" name="x_date_added" id="x_date_added" maxlength="19" placeholder="<?php echo HtmlEncode($lotes_add->date_added->getPlaceHolder()) ?>" value="<?php echo $lotes_add->date_added->EditValue ?>"<?php echo $lotes_add->date_added->editAttributes() ?>>
<?php if (!$lotes_add->date_added->ReadOnly && !$lotes_add->date_added->Disabled && !isset($lotes_add->date_added->EditAttrs["readonly"]) && !isset($lotes_add->date_added->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["flotesadd", "datetimepicker"], function() {
	ew.createDateTimePicker("flotesadd", "x_date_added", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $lotes_add->date_added->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->precio_producto->Visible) { // precio_producto ?>
	<div id="r_precio_producto" class="form-group row">
		<label id="elh_lotes_precio_producto" for="x_precio_producto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->precio_producto->caption() ?><?php echo $lotes_add->precio_producto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->precio_producto->cellAttributes() ?>>
<span id="el_lotes_precio_producto">
<input type="text" data-table="lotes" data-field="x_precio_producto" name="x_precio_producto" id="x_precio_producto" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->precio_producto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->precio_producto->EditValue ?>"<?php echo $lotes_add->precio_producto->editAttributes() ?>>
</span>
<?php echo $lotes_add->precio_producto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->costo_producto->Visible) { // costo_producto ?>
	<div id="r_costo_producto" class="form-group row">
		<label id="elh_lotes_costo_producto" for="x_costo_producto" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->costo_producto->caption() ?><?php echo $lotes_add->costo_producto->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->costo_producto->cellAttributes() ?>>
<span id="el_lotes_costo_producto">
<input type="text" data-table="lotes" data-field="x_costo_producto" name="x_costo_producto" id="x_costo_producto" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->costo_producto->getPlaceHolder()) ?>" value="<?php echo $lotes_add->costo_producto->EditValue ?>"<?php echo $lotes_add->costo_producto->editAttributes() ?>>
</span>
<?php echo $lotes_add->costo_producto->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->mon_costo->Visible) { // mon_costo ?>
	<div id="r_mon_costo" class="form-group row">
		<label id="elh_lotes_mon_costo" for="x_mon_costo" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->mon_costo->caption() ?><?php echo $lotes_add->mon_costo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->mon_costo->cellAttributes() ?>>
<span id="el_lotes_mon_costo">
<input type="text" data-table="lotes" data-field="x_mon_costo" name="x_mon_costo" id="x_mon_costo" size="30" maxlength="6" placeholder="<?php echo HtmlEncode($lotes_add->mon_costo->getPlaceHolder()) ?>" value="<?php echo $lotes_add->mon_costo->EditValue ?>"<?php echo $lotes_add->mon_costo->editAttributes() ?>>
</span>
<?php echo $lotes_add->mon_costo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->mon_venta->Visible) { // mon_venta ?>
	<div id="r_mon_venta" class="form-group row">
		<label id="elh_lotes_mon_venta" for="x_mon_venta" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->mon_venta->caption() ?><?php echo $lotes_add->mon_venta->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->mon_venta->cellAttributes() ?>>
<span id="el_lotes_mon_venta">
<input type="text" data-table="lotes" data-field="x_mon_venta" name="x_mon_venta" id="x_mon_venta" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->mon_venta->getPlaceHolder()) ?>" value="<?php echo $lotes_add->mon_venta->EditValue ?>"<?php echo $lotes_add->mon_venta->editAttributes() ?>>
</span>
<?php echo $lotes_add->mon_venta->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->marca->Visible) { // marca ?>
	<div id="r_marca" class="form-group row">
		<label id="elh_lotes_marca" for="x_marca" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->marca->caption() ?><?php echo $lotes_add->marca->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->marca->cellAttributes() ?>>
<span id="el_lotes_marca">
<input type="text" data-table="lotes" data-field="x_marca" name="x_marca" id="x_marca" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($lotes_add->marca->getPlaceHolder()) ?>" value="<?php echo $lotes_add->marca->EditValue ?>"<?php echo $lotes_add->marca->editAttributes() ?>>
</span>
<?php echo $lotes_add->marca->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->modelo->Visible) { // modelo ?>
	<div id="r_modelo" class="form-group row">
		<label id="elh_lotes_modelo" for="x_modelo" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->modelo->caption() ?><?php echo $lotes_add->modelo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->modelo->cellAttributes() ?>>
<span id="el_lotes_modelo">
<input type="text" data-table="lotes" data-field="x_modelo" name="x_modelo" id="x_modelo" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($lotes_add->modelo->getPlaceHolder()) ?>" value="<?php echo $lotes_add->modelo->EditValue ?>"<?php echo $lotes_add->modelo->editAttributes() ?>>
</span>
<?php echo $lotes_add->modelo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->color->Visible) { // color ?>
	<div id="r_color" class="form-group row">
		<label id="elh_lotes_color" for="x_color" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->color->caption() ?><?php echo $lotes_add->color->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->color->cellAttributes() ?>>
<span id="el_lotes_color">
<input type="text" data-table="lotes" data-field="x_color" name="x_color" id="x_color" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($lotes_add->color->getPlaceHolder()) ?>" value="<?php echo $lotes_add->color->EditValue ?>"<?php echo $lotes_add->color->editAttributes() ?>>
</span>
<?php echo $lotes_add->color->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b1->Visible) { // b1 ?>
	<div id="r_b1" class="form-group row">
		<label id="elh_lotes_b1" for="x_b1" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b1->caption() ?><?php echo $lotes_add->b1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b1->cellAttributes() ?>>
<span id="el_lotes_b1">
<input type="text" data-table="lotes" data-field="x_b1" name="x_b1" id="x_b1" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b1->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b1->EditValue ?>"<?php echo $lotes_add->b1->editAttributes() ?>>
</span>
<?php echo $lotes_add->b1->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b2->Visible) { // b2 ?>
	<div id="r_b2" class="form-group row">
		<label id="elh_lotes_b2" for="x_b2" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b2->caption() ?><?php echo $lotes_add->b2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b2->cellAttributes() ?>>
<span id="el_lotes_b2">
<input type="text" data-table="lotes" data-field="x_b2" name="x_b2" id="x_b2" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b2->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b2->EditValue ?>"<?php echo $lotes_add->b2->editAttributes() ?>>
</span>
<?php echo $lotes_add->b2->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b3->Visible) { // b3 ?>
	<div id="r_b3" class="form-group row">
		<label id="elh_lotes_b3" for="x_b3" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b3->caption() ?><?php echo $lotes_add->b3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b3->cellAttributes() ?>>
<span id="el_lotes_b3">
<input type="text" data-table="lotes" data-field="x_b3" name="x_b3" id="x_b3" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b3->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b3->EditValue ?>"<?php echo $lotes_add->b3->editAttributes() ?>>
</span>
<?php echo $lotes_add->b3->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b4->Visible) { // b4 ?>
	<div id="r_b4" class="form-group row">
		<label id="elh_lotes_b4" for="x_b4" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b4->caption() ?><?php echo $lotes_add->b4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b4->cellAttributes() ?>>
<span id="el_lotes_b4">
<input type="text" data-table="lotes" data-field="x_b4" name="x_b4" id="x_b4" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b4->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b4->EditValue ?>"<?php echo $lotes_add->b4->editAttributes() ?>>
</span>
<?php echo $lotes_add->b4->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b5->Visible) { // b5 ?>
	<div id="r_b5" class="form-group row">
		<label id="elh_lotes_b5" for="x_b5" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b5->caption() ?><?php echo $lotes_add->b5->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b5->cellAttributes() ?>>
<span id="el_lotes_b5">
<input type="text" data-table="lotes" data-field="x_b5" name="x_b5" id="x_b5" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b5->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b5->EditValue ?>"<?php echo $lotes_add->b5->editAttributes() ?>>
</span>
<?php echo $lotes_add->b5->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->b6->Visible) { // b6 ?>
	<div id="r_b6" class="form-group row">
		<label id="elh_lotes_b6" for="x_b6" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->b6->caption() ?><?php echo $lotes_add->b6->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->b6->cellAttributes() ?>>
<span id="el_lotes_b6">
<input type="text" data-table="lotes" data-field="x_b6" name="x_b6" id="x_b6" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->b6->getPlaceHolder()) ?>" value="<?php echo $lotes_add->b6->EditValue ?>"<?php echo $lotes_add->b6->editAttributes() ?>>
</span>
<?php echo $lotes_add->b6->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->cat_pro->Visible) { // cat_pro ?>
	<div id="r_cat_pro" class="form-group row">
		<label id="elh_lotes_cat_pro" for="x_cat_pro" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->cat_pro->caption() ?><?php echo $lotes_add->cat_pro->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->cat_pro->cellAttributes() ?>>
<span id="el_lotes_cat_pro">
<input type="text" data-table="lotes" data-field="x_cat_pro" name="x_cat_pro" id="x_cat_pro" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->cat_pro->getPlaceHolder()) ?>" value="<?php echo $lotes_add->cat_pro->EditValue ?>"<?php echo $lotes_add->cat_pro->editAttributes() ?>>
</span>
<?php echo $lotes_add->cat_pro->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->pro_ser->Visible) { // pro_ser ?>
	<div id="r_pro_ser" class="form-group row">
		<label id="elh_lotes_pro_ser" for="x_pro_ser" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->pro_ser->caption() ?><?php echo $lotes_add->pro_ser->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->pro_ser->cellAttributes() ?>>
<span id="el_lotes_pro_ser">
<input type="text" data-table="lotes" data-field="x_pro_ser" name="x_pro_ser" id="x_pro_ser" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->pro_ser->getPlaceHolder()) ?>" value="<?php echo $lotes_add->pro_ser->EditValue ?>"<?php echo $lotes_add->pro_ser->editAttributes() ?>>
</span>
<?php echo $lotes_add->pro_ser->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->foto1->Visible) { // foto1 ?>
	<div id="r_foto1" class="form-group row">
		<label id="elh_lotes_foto1" for="x_foto1" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->foto1->caption() ?><?php echo $lotes_add->foto1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->foto1->cellAttributes() ?>>
<span id="el_lotes_foto1">
<input type="text" data-table="lotes" data-field="x_foto1" name="x_foto1" id="x_foto1" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($lotes_add->foto1->getPlaceHolder()) ?>" value="<?php echo $lotes_add->foto1->EditValue ?>"<?php echo $lotes_add->foto1->editAttributes() ?>>
</span>
<?php echo $lotes_add->foto1->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->foto2->Visible) { // foto2 ?>
	<div id="r_foto2" class="form-group row">
		<label id="elh_lotes_foto2" for="x_foto2" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->foto2->caption() ?><?php echo $lotes_add->foto2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->foto2->cellAttributes() ?>>
<span id="el_lotes_foto2">
<input type="text" data-table="lotes" data-field="x_foto2" name="x_foto2" id="x_foto2" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($lotes_add->foto2->getPlaceHolder()) ?>" value="<?php echo $lotes_add->foto2->EditValue ?>"<?php echo $lotes_add->foto2->editAttributes() ?>>
</span>
<?php echo $lotes_add->foto2->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->foto3->Visible) { // foto3 ?>
	<div id="r_foto3" class="form-group row">
		<label id="elh_lotes_foto3" for="x_foto3" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->foto3->caption() ?><?php echo $lotes_add->foto3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->foto3->cellAttributes() ?>>
<span id="el_lotes_foto3">
<input type="text" data-table="lotes" data-field="x_foto3" name="x_foto3" id="x_foto3" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($lotes_add->foto3->getPlaceHolder()) ?>" value="<?php echo $lotes_add->foto3->EditValue ?>"<?php echo $lotes_add->foto3->editAttributes() ?>>
</span>
<?php echo $lotes_add->foto3->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->foto4->Visible) { // foto4 ?>
	<div id="r_foto4" class="form-group row">
		<label id="elh_lotes_foto4" for="x_foto4" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->foto4->caption() ?><?php echo $lotes_add->foto4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->foto4->cellAttributes() ?>>
<span id="el_lotes_foto4">
<input type="text" data-table="lotes" data-field="x_foto4" name="x_foto4" id="x_foto4" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($lotes_add->foto4->getPlaceHolder()) ?>" value="<?php echo $lotes_add->foto4->EditValue ?>"<?php echo $lotes_add->foto4->editAttributes() ?>>
</span>
<?php echo $lotes_add->foto4->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->web->Visible) { // web ?>
	<div id="r_web" class="form-group row">
		<label id="elh_lotes_web" for="x_web" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->web->caption() ?><?php echo $lotes_add->web->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->web->cellAttributes() ?>>
<span id="el_lotes_web">
<input type="text" data-table="lotes" data-field="x_web" name="x_web" id="x_web" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->web->getPlaceHolder()) ?>" value="<?php echo $lotes_add->web->EditValue ?>"<?php echo $lotes_add->web->editAttributes() ?>>
</span>
<?php echo $lotes_add->web->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->pre_web->Visible) { // pre_web ?>
	<div id="r_pre_web" class="form-group row">
		<label id="elh_lotes_pre_web" for="x_pre_web" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->pre_web->caption() ?><?php echo $lotes_add->pre_web->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->pre_web->cellAttributes() ?>>
<span id="el_lotes_pre_web">
<input type="text" data-table="lotes" data-field="x_pre_web" name="x_pre_web" id="x_pre_web" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->pre_web->getPlaceHolder()) ?>" value="<?php echo $lotes_add->pre_web->EditValue ?>"<?php echo $lotes_add->pre_web->editAttributes() ?>>
</span>
<?php echo $lotes_add->pre_web->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->descripcion->Visible) { // descripcion ?>
	<div id="r_descripcion" class="form-group row">
		<label id="elh_lotes_descripcion" for="x_descripcion" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->descripcion->caption() ?><?php echo $lotes_add->descripcion->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->descripcion->cellAttributes() ?>>
<span id="el_lotes_descripcion">
<textarea data-table="lotes" data-field="x_descripcion" name="x_descripcion" id="x_descripcion" cols="35" rows="4" placeholder="<?php echo HtmlEncode($lotes_add->descripcion->getPlaceHolder()) ?>"<?php echo $lotes_add->descripcion->editAttributes() ?>><?php echo $lotes_add->descripcion->EditValue ?></textarea>
</span>
<?php echo $lotes_add->descripcion->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->descripcion1->Visible) { // descripcion1 ?>
	<div id="r_descripcion1" class="form-group row">
		<label id="elh_lotes_descripcion1" for="x_descripcion1" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->descripcion1->caption() ?><?php echo $lotes_add->descripcion1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->descripcion1->cellAttributes() ?>>
<span id="el_lotes_descripcion1">
<textarea data-table="lotes" data-field="x_descripcion1" name="x_descripcion1" id="x_descripcion1" cols="35" rows="4" placeholder="<?php echo HtmlEncode($lotes_add->descripcion1->getPlaceHolder()) ?>"<?php echo $lotes_add->descripcion1->editAttributes() ?>><?php echo $lotes_add->descripcion1->EditValue ?></textarea>
</span>
<?php echo $lotes_add->descripcion1->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->megusta->Visible) { // megusta ?>
	<div id="r_megusta" class="form-group row">
		<label id="elh_lotes_megusta" for="x_megusta" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->megusta->caption() ?><?php echo $lotes_add->megusta->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->megusta->cellAttributes() ?>>
<span id="el_lotes_megusta">
<input type="text" data-table="lotes" data-field="x_megusta" name="x_megusta" id="x_megusta" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->megusta->getPlaceHolder()) ?>" value="<?php echo $lotes_add->megusta->EditValue ?>"<?php echo $lotes_add->megusta->editAttributes() ?>>
</span>
<?php echo $lotes_add->megusta->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->nomegusta->Visible) { // nomegusta ?>
	<div id="r_nomegusta" class="form-group row">
		<label id="elh_lotes_nomegusta" for="x_nomegusta" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->nomegusta->caption() ?><?php echo $lotes_add->nomegusta->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->nomegusta->cellAttributes() ?>>
<span id="el_lotes_nomegusta">
<input type="text" data-table="lotes" data-field="x_nomegusta" name="x_nomegusta" id="x_nomegusta" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->nomegusta->getPlaceHolder()) ?>" value="<?php echo $lotes_add->nomegusta->EditValue ?>"<?php echo $lotes_add->nomegusta->editAttributes() ?>>
</span>
<?php echo $lotes_add->nomegusta->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->precio2->Visible) { // precio2 ?>
	<div id="r_precio2" class="form-group row">
		<label id="elh_lotes_precio2" for="x_precio2" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->precio2->caption() ?><?php echo $lotes_add->precio2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->precio2->cellAttributes() ?>>
<span id="el_lotes_precio2">
<input type="text" data-table="lotes" data-field="x_precio2" name="x_precio2" id="x_precio2" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->precio2->getPlaceHolder()) ?>" value="<?php echo $lotes_add->precio2->EditValue ?>"<?php echo $lotes_add->precio2->editAttributes() ?>>
</span>
<?php echo $lotes_add->precio2->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->precio3->Visible) { // precio3 ?>
	<div id="r_precio3" class="form-group row">
		<label id="elh_lotes_precio3" for="x_precio3" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->precio3->caption() ?><?php echo $lotes_add->precio3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->precio3->cellAttributes() ?>>
<span id="el_lotes_precio3">
<input type="text" data-table="lotes" data-field="x_precio3" name="x_precio3" id="x_precio3" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($lotes_add->precio3->getPlaceHolder()) ?>" value="<?php echo $lotes_add->precio3->EditValue ?>"<?php echo $lotes_add->precio3->editAttributes() ?>>
</span>
<?php echo $lotes_add->precio3->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->und_pro->Visible) { // und_pro ?>
	<div id="r_und_pro" class="form-group row">
		<label id="elh_lotes_und_pro" for="x_und_pro" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->und_pro->caption() ?><?php echo $lotes_add->und_pro->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->und_pro->cellAttributes() ?>>
<span id="el_lotes_und_pro">
<input type="text" data-table="lotes" data-field="x_und_pro" name="x_und_pro" id="x_und_pro" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->und_pro->getPlaceHolder()) ?>" value="<?php echo $lotes_add->und_pro->EditValue ?>"<?php echo $lotes_add->und_pro->editAttributes() ?>>
</span>
<?php echo $lotes_add->und_pro->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->barras->Visible) { // barras ?>
	<div id="r_barras" class="form-group row">
		<label id="elh_lotes_barras" for="x_barras" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->barras->caption() ?><?php echo $lotes_add->barras->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->barras->cellAttributes() ?>>
<span id="el_lotes_barras">
<input type="text" data-table="lotes" data-field="x_barras" name="x_barras" id="x_barras" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($lotes_add->barras->getPlaceHolder()) ?>" value="<?php echo $lotes_add->barras->EditValue ?>"<?php echo $lotes_add->barras->editAttributes() ?>>
</span>
<?php echo $lotes_add->barras->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->stockmin->Visible) { // stockmin ?>
	<div id="r_stockmin" class="form-group row">
		<label id="elh_lotes_stockmin" for="x_stockmin" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->stockmin->caption() ?><?php echo $lotes_add->stockmin->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->stockmin->cellAttributes() ?>>
<span id="el_lotes_stockmin">
<input type="text" data-table="lotes" data-field="x_stockmin" name="x_stockmin" id="x_stockmin" size="30" maxlength="10" placeholder="<?php echo HtmlEncode($lotes_add->stockmin->getPlaceHolder()) ?>" value="<?php echo $lotes_add->stockmin->EditValue ?>"<?php echo $lotes_add->stockmin->editAttributes() ?>>
</span>
<?php echo $lotes_add->stockmin->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->id_grupo->Visible) { // id_grupo ?>
	<div id="r_id_grupo" class="form-group row">
		<label id="elh_lotes_id_grupo" for="x_id_grupo" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->id_grupo->caption() ?><?php echo $lotes_add->id_grupo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->id_grupo->cellAttributes() ?>>
<span id="el_lotes_id_grupo">
<input type="text" data-table="lotes" data-field="x_id_grupo" name="x_id_grupo" id="x_id_grupo" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->id_grupo->getPlaceHolder()) ?>" value="<?php echo $lotes_add->id_grupo->EditValue ?>"<?php echo $lotes_add->id_grupo->editAttributes() ?>>
</span>
<?php echo $lotes_add->id_grupo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->talla->Visible) { // talla ?>
	<div id="r_talla" class="form-group row">
		<label id="elh_lotes_talla" for="x_talla" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->talla->caption() ?><?php echo $lotes_add->talla->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->talla->cellAttributes() ?>>
<span id="el_lotes_talla">
<input type="text" data-table="lotes" data-field="x_talla" name="x_talla" id="x_talla" size="30" maxlength="110" placeholder="<?php echo HtmlEncode($lotes_add->talla->getPlaceHolder()) ?>" value="<?php echo $lotes_add->talla->EditValue ?>"<?php echo $lotes_add->talla->editAttributes() ?>>
</span>
<?php echo $lotes_add->talla->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->mostrarcolor->Visible) { // mostrarcolor ?>
	<div id="r_mostrarcolor" class="form-group row">
		<label id="elh_lotes_mostrarcolor" for="x_mostrarcolor" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->mostrarcolor->caption() ?><?php echo $lotes_add->mostrarcolor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->mostrarcolor->cellAttributes() ?>>
<span id="el_lotes_mostrarcolor">
<input type="text" data-table="lotes" data-field="x_mostrarcolor" name="x_mostrarcolor" id="x_mostrarcolor" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->mostrarcolor->getPlaceHolder()) ?>" value="<?php echo $lotes_add->mostrarcolor->EditValue ?>"<?php echo $lotes_add->mostrarcolor->editAttributes() ?>>
</span>
<?php echo $lotes_add->mostrarcolor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->lote->Visible) { // lote ?>
	<div id="r_lote" class="form-group row">
		<label id="elh_lotes_lote" for="x_lote" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->lote->caption() ?><?php echo $lotes_add->lote->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->lote->cellAttributes() ?>>
<span id="el_lotes_lote">
<input type="text" data-table="lotes" data-field="x_lote" name="x_lote" id="x_lote" size="30" maxlength="10" placeholder="<?php echo HtmlEncode($lotes_add->lote->getPlaceHolder()) ?>" value="<?php echo $lotes_add->lote->EditValue ?>"<?php echo $lotes_add->lote->editAttributes() ?>>
</span>
<?php echo $lotes_add->lote->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->manzana->Visible) { // manzana ?>
	<div id="r_manzana" class="form-group row">
		<label id="elh_lotes_manzana" for="x_manzana" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->manzana->caption() ?><?php echo $lotes_add->manzana->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->manzana->cellAttributes() ?>>
<span id="el_lotes_manzana">
<input type="text" data-table="lotes" data-field="x_manzana" name="x_manzana" id="x_manzana" size="30" maxlength="10" placeholder="<?php echo HtmlEncode($lotes_add->manzana->getPlaceHolder()) ?>" value="<?php echo $lotes_add->manzana->EditValue ?>"<?php echo $lotes_add->manzana->editAttributes() ?>>
</span>
<?php echo $lotes_add->manzana->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->etapa->Visible) { // etapa ?>
	<div id="r_etapa" class="form-group row">
		<label id="elh_lotes_etapa" for="x_etapa" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->etapa->caption() ?><?php echo $lotes_add->etapa->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->etapa->cellAttributes() ?>>
<span id="el_lotes_etapa">
<input type="text" data-table="lotes" data-field="x_etapa" name="x_etapa" id="x_etapa" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->etapa->getPlaceHolder()) ?>" value="<?php echo $lotes_add->etapa->EditValue ?>"<?php echo $lotes_add->etapa->editAttributes() ?>>
</span>
<?php echo $lotes_add->etapa->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->estado->Visible) { // estado ?>
	<div id="r_estado" class="form-group row">
		<label id="elh_lotes_estado" for="x_estado" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->estado->caption() ?><?php echo $lotes_add->estado->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->estado->cellAttributes() ?>>
<span id="el_lotes_estado">
<input type="text" data-table="lotes" data-field="x_estado" name="x_estado" id="x_estado" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->estado->getPlaceHolder()) ?>" value="<?php echo $lotes_add->estado->EditValue ?>"<?php echo $lotes_add->estado->editAttributes() ?>>
</span>
<?php echo $lotes_add->estado->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->icon->Visible) { // icon ?>
	<div id="r_icon" class="form-group row">
		<label id="elh_lotes_icon" for="x_icon" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->icon->caption() ?><?php echo $lotes_add->icon->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->icon->cellAttributes() ?>>
<span id="el_lotes_icon">
<input type="text" data-table="lotes" data-field="x_icon" name="x_icon" id="x_icon" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($lotes_add->icon->getPlaceHolder()) ?>" value="<?php echo $lotes_add->icon->EditValue ?>"<?php echo $lotes_add->icon->editAttributes() ?>>
</span>
<?php echo $lotes_add->icon->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->topy->Visible) { // topy ?>
	<div id="r_topy" class="form-group row">
		<label id="elh_lotes_topy" for="x_topy" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->topy->caption() ?><?php echo $lotes_add->topy->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->topy->cellAttributes() ?>>
<span id="el_lotes_topy">
<input type="text" data-table="lotes" data-field="x_topy" name="x_topy" id="x_topy" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($lotes_add->topy->getPlaceHolder()) ?>" value="<?php echo $lotes_add->topy->EditValue ?>"<?php echo $lotes_add->topy->editAttributes() ?>>
</span>
<?php echo $lotes_add->topy->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->leftx->Visible) { // leftx ?>
	<div id="r_leftx" class="form-group row">
		<label id="elh_lotes_leftx" for="x_leftx" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->leftx->caption() ?><?php echo $lotes_add->leftx->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->leftx->cellAttributes() ?>>
<span id="el_lotes_leftx">
<input type="text" data-table="lotes" data-field="x_leftx" name="x_leftx" id="x_leftx" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($lotes_add->leftx->getPlaceHolder()) ?>" value="<?php echo $lotes_add->leftx->EditValue ?>"<?php echo $lotes_add->leftx->editAttributes() ?>>
</span>
<?php echo $lotes_add->leftx->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->codlogin->Visible) { // codlogin ?>
	<div id="r_codlogin" class="form-group row">
		<label id="elh_lotes_codlogin" for="x_codlogin" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->codlogin->caption() ?><?php echo $lotes_add->codlogin->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->codlogin->cellAttributes() ?>>
<span id="el_lotes_codlogin">
<input type="text" data-table="lotes" data-field="x_codlogin" name="x_codlogin" id="x_codlogin" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($lotes_add->codlogin->getPlaceHolder()) ?>" value="<?php echo $lotes_add->codlogin->EditValue ?>"<?php echo $lotes_add->codlogin->editAttributes() ?>>
</span>
<?php echo $lotes_add->codlogin->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($lotes_add->id_cliente->Visible) { // id_cliente ?>
	<div id="r_id_cliente" class="form-group row">
		<label id="elh_lotes_id_cliente" for="x_id_cliente" class="<?php echo $lotes_add->LeftColumnClass ?>"><?php echo $lotes_add->id_cliente->caption() ?><?php echo $lotes_add->id_cliente->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $lotes_add->RightColumnClass ?>"><div <?php echo $lotes_add->id_cliente->cellAttributes() ?>>
<span id="el_lotes_id_cliente">
<input type="text" data-table="lotes" data-field="x_id_cliente" name="x_id_cliente" id="x_id_cliente" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($lotes_add->id_cliente->getPlaceHolder()) ?>" value="<?php echo $lotes_add->id_cliente->EditValue ?>"<?php echo $lotes_add->id_cliente->editAttributes() ?>>
</span>
<?php echo $lotes_add->id_cliente->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$lotes_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $lotes_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 $lotes_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$lotes_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
$lotes_add->terminate();
?>