<?php
namespace PHPMaker2019\project_germanos;

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

// Output buffering
ob_start(); 

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

// Write header
WriteHeader(FALSE);

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

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

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

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

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

// Form object
currentPageID = ew.PAGE_ID = "search";
<?php if ($partiesstatus_search->IsModal) { ?>
var fpartiesstatussearch = currentAdvancedSearchForm = new ew.Form("fpartiesstatussearch", "search");
<?php } else { ?>
var fpartiesstatussearch = currentForm = new ew.Form("fpartiesstatussearch", "search");
<?php } ?>

// Form_CustomValidate event
fpartiesstatussearch.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
fpartiesstatussearch.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
// Form object for search
// Validate function for search

fpartiesstatussearch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";

	// Fire Form_CustomValidate event
	if (!this.Form_CustomValidate(fobj))
		return false;
	return true;
}
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $partiesstatus_search->showPageHeader(); ?>
<?php
$partiesstatus_search->showMessage();
?>
<form name="fpartiesstatussearch" id="fpartiesstatussearch" class="<?php echo $partiesstatus_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($partiesstatus_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $partiesstatus_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="partiesstatus">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$partiesstatus_search->IsModal ?>">
<?php if (!$partiesstatus_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($partiesstatus_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_partiesstatussearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($partiesstatus->PartiesStatusID->Visible) { // PartiesStatusID ?>
<?php if ($partiesstatus_search->IsMobileOrModal) { ?>
	<div id="r_PartiesStatusID" class="form-group row">
		<label class="<?php echo $partiesstatus_search->LeftColumnClass ?>"><span id="elh_partiesstatus_PartiesStatusID"><?php echo $partiesstatus->PartiesStatusID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_PartiesStatusID" id="z_PartiesStatusID" value="="></span>
		</label>
		<div class="<?php echo $partiesstatus_search->RightColumnClass ?>"><div<?php echo $partiesstatus->PartiesStatusID->cellAttributes() ?>>
			<span id="el_partiesstatus_PartiesStatusID">
<input type="text" data-table="partiesstatus" data-field="x_PartiesStatusID" name="x_PartiesStatusID" id="x_PartiesStatusID" placeholder="<?php echo HtmlEncode($partiesstatus->PartiesStatusID->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->PartiesStatusID->EditValue ?>"<?php echo $partiesstatus->PartiesStatusID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_PartiesStatusID">
		<td class="<?php echo $partiesstatus_search->TableLeftColumnClass ?>"><span id="elh_partiesstatus_PartiesStatusID"><?php echo $partiesstatus->PartiesStatusID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_PartiesStatusID" id="z_PartiesStatusID" value="="></span></td>
		<td<?php echo $partiesstatus->PartiesStatusID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_partiesstatus_PartiesStatusID">
<input type="text" data-table="partiesstatus" data-field="x_PartiesStatusID" name="x_PartiesStatusID" id="x_PartiesStatusID" placeholder="<?php echo HtmlEncode($partiesstatus->PartiesStatusID->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->PartiesStatusID->EditValue ?>"<?php echo $partiesstatus->PartiesStatusID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($partiesstatus->PartiesStatus->Visible) { // PartiesStatus ?>
<?php if ($partiesstatus_search->IsMobileOrModal) { ?>
	<div id="r_PartiesStatus" class="form-group row">
		<label for="x_PartiesStatus" class="<?php echo $partiesstatus_search->LeftColumnClass ?>"><span id="elh_partiesstatus_PartiesStatus"><?php echo $partiesstatus->PartiesStatus->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_PartiesStatus" id="z_PartiesStatus" value="LIKE"></span>
		</label>
		<div class="<?php echo $partiesstatus_search->RightColumnClass ?>"><div<?php echo $partiesstatus->PartiesStatus->cellAttributes() ?>>
			<span id="el_partiesstatus_PartiesStatus">
<input type="text" data-table="partiesstatus" data-field="x_PartiesStatus" name="x_PartiesStatus" id="x_PartiesStatus" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($partiesstatus->PartiesStatus->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->PartiesStatus->EditValue ?>"<?php echo $partiesstatus->PartiesStatus->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_PartiesStatus">
		<td class="<?php echo $partiesstatus_search->TableLeftColumnClass ?>"><span id="elh_partiesstatus_PartiesStatus"><?php echo $partiesstatus->PartiesStatus->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_PartiesStatus" id="z_PartiesStatus" value="LIKE"></span></td>
		<td<?php echo $partiesstatus->PartiesStatus->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_partiesstatus_PartiesStatus">
<input type="text" data-table="partiesstatus" data-field="x_PartiesStatus" name="x_PartiesStatus" id="x_PartiesStatus" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($partiesstatus->PartiesStatus->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->PartiesStatus->EditValue ?>"<?php echo $partiesstatus->PartiesStatus->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($partiesstatus->Notes->Visible) { // Notes ?>
<?php if ($partiesstatus_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $partiesstatus_search->LeftColumnClass ?>"><span id="elh_partiesstatus_Notes"><?php echo $partiesstatus->Notes->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Notes" id="z_Notes" value="LIKE"></span>
		</label>
		<div class="<?php echo $partiesstatus_search->RightColumnClass ?>"><div<?php echo $partiesstatus->Notes->cellAttributes() ?>>
			<span id="el_partiesstatus_Notes">
<input type="text" data-table="partiesstatus" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($partiesstatus->Notes->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->Notes->EditValue ?>"<?php echo $partiesstatus->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $partiesstatus_search->TableLeftColumnClass ?>"><span id="elh_partiesstatus_Notes"><?php echo $partiesstatus->Notes->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_Notes" id="z_Notes" value="LIKE"></span></td>
		<td<?php echo $partiesstatus->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_partiesstatus_Notes">
<input type="text" data-table="partiesstatus" data-field="x_Notes" name="x_Notes" id="x_Notes" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($partiesstatus->Notes->getPlaceHolder()) ?>" value="<?php echo $partiesstatus->Notes->EditValue ?>"<?php echo $partiesstatus->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($partiesstatus_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$partiesstatus_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $partiesstatus_search->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("Search") ?></button>
<button class="btn btn-default ew-btn" name="btn-reset" id="btn-reset" type="button" onclick="ew.clearForm(this.form);"><?php echo $Language->phrase("Reset") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$partiesstatus_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$partiesstatus_search->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

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

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