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

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

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

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

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

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

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

// Dynamic selection lists
fattachmentssearch.lists["x_AttachmentSource_ID"] = <?php echo $attachments_search->AttachmentSource_ID->Lookup->toClientList() ?>;
fattachmentssearch.lists["x_AttachmentSource_ID"].options = <?php echo JsonEncode($attachments_search->AttachmentSource_ID->lookupOptions()) ?>;
fattachmentssearch.autoSuggests["x_AttachmentSource_ID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;

// Form object for search
// Validate function for search

fattachmentssearch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";
	elm = this.getElements("x" + infix + "_AttachmentID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($attachments->AttachmentID->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_AttachmentSource_ID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($attachments->AttachmentSource_ID->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_CaseID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($attachments->CaseID->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_EmployeeID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($attachments->EmployeeID->errorMessage()) ?>");
	elm = this.getElements("x" + infix + "_AttachID");
	if (elm && !ew.checkInteger(elm.value))
		return this.onError(elm, "<?php echo JsEncode($attachments->AttachID->errorMessage()) ?>");

	// 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 $attachments_search->showPageHeader(); ?>
<?php
$attachments_search->showMessage();
?>
<form name="fattachmentssearch" id="fattachmentssearch" class="<?php echo $attachments_search->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($attachments_search->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $attachments_search->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="attachments">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$attachments_search->IsModal ?>">
<?php if (!$attachments_search->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
<div class="ew-search-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_attachmentssearch" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($attachments->AttachmentID->Visible) { // AttachmentID ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachmentID" class="form-group row">
		<label for="x_AttachmentID" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachmentID"><?php echo $attachments->AttachmentID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachmentID" id="z_AttachmentID" value="="></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachmentID->cellAttributes() ?>>
			<span id="el_attachments_AttachmentID">
<input type="text" data-table="attachments" data-field="x_AttachmentID" name="x_AttachmentID" id="x_AttachmentID" placeholder="<?php echo HtmlEncode($attachments->AttachmentID->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachmentID->EditValue ?>"<?php echo $attachments->AttachmentID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachmentID">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachmentID"><?php echo $attachments->AttachmentID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachmentID" id="z_AttachmentID" value="="></span></td>
		<td<?php echo $attachments->AttachmentID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachmentID">
<input type="text" data-table="attachments" data-field="x_AttachmentID" name="x_AttachmentID" id="x_AttachmentID" placeholder="<?php echo HtmlEncode($attachments->AttachmentID->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachmentID->EditValue ?>"<?php echo $attachments->AttachmentID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachmentSource_ID->Visible) { // AttachmentSource_ID ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachmentSource_ID" class="form-group row">
		<label class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachmentSource_ID"><?php echo $attachments->AttachmentSource_ID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachmentSource_ID" id="z_AttachmentSource_ID" value="="></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachmentSource_ID->cellAttributes() ?>>
			<span id="el_attachments_AttachmentSource_ID">
<?php
$wrkonchange = "" . trim(@$attachments->AttachmentSource_ID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$attachments->AttachmentSource_ID->EditAttrs["onchange"] = "";
?>
<span id="as_x_AttachmentSource_ID" class="text-nowrap" style="z-index: 8980">
	<input type="text" class="form-control" name="sv_x_AttachmentSource_ID" id="sv_x_AttachmentSource_ID" value="<?php echo RemoveHtml($attachments->AttachmentSource_ID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($attachments->AttachmentSource_ID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($attachments->AttachmentSource_ID->getPlaceHolder()) ?>"<?php echo $attachments->AttachmentSource_ID->editAttributes() ?>>
</span>
<input type="hidden" data-table="attachments" data-field="x_AttachmentSource_ID" data-value-separator="<?php echo $attachments->AttachmentSource_ID->displayValueSeparatorAttribute() ?>" name="x_AttachmentSource_ID" id="x_AttachmentSource_ID" value="<?php echo HtmlEncode($attachments->AttachmentSource_ID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fattachmentssearch.createAutoSuggest({"id":"x_AttachmentSource_ID","forceSelect":false});
</script>
<?php echo $attachments->AttachmentSource_ID->Lookup->getParamTag("p_x_AttachmentSource_ID") ?>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachmentSource_ID">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachmentSource_ID"><?php echo $attachments->AttachmentSource_ID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachmentSource_ID" id="z_AttachmentSource_ID" value="="></span></td>
		<td<?php echo $attachments->AttachmentSource_ID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachmentSource_ID">
<?php
$wrkonchange = "" . trim(@$attachments->AttachmentSource_ID->EditAttrs["onchange"]);
if (trim($wrkonchange) <> "") $wrkonchange = " onchange=\"" . JsEncode($wrkonchange) . "\"";
$attachments->AttachmentSource_ID->EditAttrs["onchange"] = "";
?>
<span id="as_x_AttachmentSource_ID" class="text-nowrap" style="z-index: 8980">
	<input type="text" class="form-control" name="sv_x_AttachmentSource_ID" id="sv_x_AttachmentSource_ID" value="<?php echo RemoveHtml($attachments->AttachmentSource_ID->EditValue) ?>" size="30" placeholder="<?php echo HtmlEncode($attachments->AttachmentSource_ID->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($attachments->AttachmentSource_ID->getPlaceHolder()) ?>"<?php echo $attachments->AttachmentSource_ID->editAttributes() ?>>
</span>
<input type="hidden" data-table="attachments" data-field="x_AttachmentSource_ID" data-value-separator="<?php echo $attachments->AttachmentSource_ID->displayValueSeparatorAttribute() ?>" name="x_AttachmentSource_ID" id="x_AttachmentSource_ID" value="<?php echo HtmlEncode($attachments->AttachmentSource_ID->AdvancedSearch->SearchValue) ?>"<?php echo $wrkonchange ?>>
<script>
fattachmentssearch.createAutoSuggest({"id":"x_AttachmentSource_ID","forceSelect":false});
</script>
<?php echo $attachments->AttachmentSource_ID->Lookup->getParamTag("p_x_AttachmentSource_ID") ?>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->CaseID->Visible) { // CaseID ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_CaseID" class="form-group row">
		<label for="x_CaseID" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_CaseID"><?php echo $attachments->CaseID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CaseID" id="z_CaseID" value="="></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->CaseID->cellAttributes() ?>>
			<span id="el_attachments_CaseID">
<input type="text" data-table="attachments" data-field="x_CaseID" name="x_CaseID" id="x_CaseID" size="30" placeholder="<?php echo HtmlEncode($attachments->CaseID->getPlaceHolder()) ?>" value="<?php echo $attachments->CaseID->EditValue ?>"<?php echo $attachments->CaseID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_CaseID">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_CaseID"><?php echo $attachments->CaseID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CaseID" id="z_CaseID" value="="></span></td>
		<td<?php echo $attachments->CaseID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_CaseID">
<input type="text" data-table="attachments" data-field="x_CaseID" name="x_CaseID" id="x_CaseID" size="30" placeholder="<?php echo HtmlEncode($attachments->CaseID->getPlaceHolder()) ?>" value="<?php echo $attachments->CaseID->EditValue ?>"<?php echo $attachments->CaseID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->EmployeeID->Visible) { // EmployeeID ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_EmployeeID" class="form-group row">
		<label for="x_EmployeeID" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_EmployeeID"><?php echo $attachments->EmployeeID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_EmployeeID" id="z_EmployeeID" value="="></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->EmployeeID->cellAttributes() ?>>
			<span id="el_attachments_EmployeeID">
<input type="text" data-table="attachments" data-field="x_EmployeeID" name="x_EmployeeID" id="x_EmployeeID" size="30" placeholder="<?php echo HtmlEncode($attachments->EmployeeID->getPlaceHolder()) ?>" value="<?php echo $attachments->EmployeeID->EditValue ?>"<?php echo $attachments->EmployeeID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_EmployeeID">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_EmployeeID"><?php echo $attachments->EmployeeID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_EmployeeID" id="z_EmployeeID" value="="></span></td>
		<td<?php echo $attachments->EmployeeID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_EmployeeID">
<input type="text" data-table="attachments" data-field="x_EmployeeID" name="x_EmployeeID" id="x_EmployeeID" size="30" placeholder="<?php echo HtmlEncode($attachments->EmployeeID->getPlaceHolder()) ?>" value="<?php echo $attachments->EmployeeID->EditValue ?>"<?php echo $attachments->EmployeeID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachID->Visible) { // AttachID ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachID" class="form-group row">
		<label for="x_AttachID" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachID"><?php echo $attachments->AttachID->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachID" id="z_AttachID" value="="></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachID->cellAttributes() ?>>
			<span id="el_attachments_AttachID">
<input type="text" data-table="attachments" data-field="x_AttachID" name="x_AttachID" id="x_AttachID" size="30" placeholder="<?php echo HtmlEncode($attachments->AttachID->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachID->EditValue ?>"<?php echo $attachments->AttachID->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachID">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachID"><?php echo $attachments->AttachID->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_AttachID" id="z_AttachID" value="="></span></td>
		<td<?php echo $attachments->AttachID->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachID">
<input type="text" data-table="attachments" data-field="x_AttachID" name="x_AttachID" id="x_AttachID" size="30" placeholder="<?php echo HtmlEncode($attachments->AttachID->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachID->EditValue ?>"<?php echo $attachments->AttachID->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilename->Visible) { // AttachFilename ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachFilename" class="form-group row">
		<label class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachFilename"><?php echo $attachments->AttachFilename->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilename" id="z_AttachFilename" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachFilename->cellAttributes() ?>>
			<span id="el_attachments_AttachFilename">
<input type="text" data-table="attachments" data-field="x_AttachFilename" name="x_AttachFilename" id="x_AttachFilename" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachFilename->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilename->EditValue ?>"<?php echo $attachments->AttachFilename->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachFilename">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachFilename"><?php echo $attachments->AttachFilename->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilename" id="z_AttachFilename" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachFilename->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachFilename">
<input type="text" data-table="attachments" data-field="x_AttachFilename" name="x_AttachFilename" id="x_AttachFilename" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachFilename->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilename->EditValue ?>"<?php echo $attachments->AttachFilename->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilenameInitial->Visible) { // AttachFilenameInitial ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachFilenameInitial" class="form-group row">
		<label for="x_AttachFilenameInitial" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachFilenameInitial"><?php echo $attachments->AttachFilenameInitial->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilenameInitial" id="z_AttachFilenameInitial" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachFilenameInitial->cellAttributes() ?>>
			<span id="el_attachments_AttachFilenameInitial">
<input type="text" data-table="attachments" data-field="x_AttachFilenameInitial" name="x_AttachFilenameInitial" id="x_AttachFilenameInitial" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachFilenameInitial->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilenameInitial->EditValue ?>"<?php echo $attachments->AttachFilenameInitial->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachFilenameInitial">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachFilenameInitial"><?php echo $attachments->AttachFilenameInitial->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilenameInitial" id="z_AttachFilenameInitial" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachFilenameInitial->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachFilenameInitial">
<input type="text" data-table="attachments" data-field="x_AttachFilenameInitial" name="x_AttachFilenameInitial" id="x_AttachFilenameInitial" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachFilenameInitial->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilenameInitial->EditValue ?>"<?php echo $attachments->AttachFilenameInitial->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachExtension->Visible) { // AttachExtension ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachExtension" class="form-group row">
		<label for="x_AttachExtension" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachExtension"><?php echo $attachments->AttachExtension->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachExtension" id="z_AttachExtension" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachExtension->cellAttributes() ?>>
			<span id="el_attachments_AttachExtension">
<input type="text" data-table="attachments" data-field="x_AttachExtension" name="x_AttachExtension" id="x_AttachExtension" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($attachments->AttachExtension->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachExtension->EditValue ?>"<?php echo $attachments->AttachExtension->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachExtension">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachExtension"><?php echo $attachments->AttachExtension->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachExtension" id="z_AttachExtension" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachExtension->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachExtension">
<input type="text" data-table="attachments" data-field="x_AttachExtension" name="x_AttachExtension" id="x_AttachExtension" size="30" maxlength="20" placeholder="<?php echo HtmlEncode($attachments->AttachExtension->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachExtension->EditValue ?>"<?php echo $attachments->AttachExtension->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachDescription->Visible) { // AttachDescription ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachDescription" class="form-group row">
		<label for="x_AttachDescription" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachDescription"><?php echo $attachments->AttachDescription->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachDescription" id="z_AttachDescription" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachDescription->cellAttributes() ?>>
			<span id="el_attachments_AttachDescription">
<input type="text" data-table="attachments" data-field="x_AttachDescription" name="x_AttachDescription" id="x_AttachDescription" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachDescription->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachDescription->EditValue ?>"<?php echo $attachments->AttachDescription->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachDescription">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachDescription"><?php echo $attachments->AttachDescription->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachDescription" id="z_AttachDescription" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachDescription->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachDescription">
<input type="text" data-table="attachments" data-field="x_AttachDescription" name="x_AttachDescription" id="x_AttachDescription" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($attachments->AttachDescription->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachDescription->EditValue ?>"<?php echo $attachments->AttachDescription->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachNotes->Visible) { // AttachNotes ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachNotes" class="form-group row">
		<label for="x_AttachNotes" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachNotes"><?php echo $attachments->AttachNotes->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachNotes" id="z_AttachNotes" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachNotes->cellAttributes() ?>>
			<span id="el_attachments_AttachNotes">
<input type="text" data-table="attachments" data-field="x_AttachNotes" name="x_AttachNotes" id="x_AttachNotes" size="35" placeholder="<?php echo HtmlEncode($attachments->AttachNotes->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachNotes->EditValue ?>"<?php echo $attachments->AttachNotes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachNotes">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachNotes"><?php echo $attachments->AttachNotes->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachNotes" id="z_AttachNotes" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachNotes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachNotes">
<input type="text" data-table="attachments" data-field="x_AttachNotes" name="x_AttachNotes" id="x_AttachNotes" size="35" placeholder="<?php echo HtmlEncode($attachments->AttachNotes->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachNotes->EditValue ?>"<?php echo $attachments->AttachNotes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachFilepath->Visible) { // AttachFilepath ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachFilepath" class="form-group row">
		<label for="x_AttachFilepath" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachFilepath"><?php echo $attachments->AttachFilepath->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilepath" id="z_AttachFilepath" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachFilepath->cellAttributes() ?>>
			<span id="el_attachments_AttachFilepath">
<input type="text" data-table="attachments" data-field="x_AttachFilepath" name="x_AttachFilepath" id="x_AttachFilepath" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->AttachFilepath->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilepath->EditValue ?>"<?php echo $attachments->AttachFilepath->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachFilepath">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachFilepath"><?php echo $attachments->AttachFilepath->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachFilepath" id="z_AttachFilepath" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachFilepath->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachFilepath">
<input type="text" data-table="attachments" data-field="x_AttachFilepath" name="x_AttachFilepath" id="x_AttachFilepath" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->AttachFilepath->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachFilepath->EditValue ?>"<?php echo $attachments->AttachFilepath->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->AttachPath->Visible) { // AttachPath ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_AttachPath" class="form-group row">
		<label for="x_AttachPath" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_AttachPath"><?php echo $attachments->AttachPath->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachPath" id="z_AttachPath" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->AttachPath->cellAttributes() ?>>
			<span id="el_attachments_AttachPath">
<input type="text" data-table="attachments" data-field="x_AttachPath" name="x_AttachPath" id="x_AttachPath" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->AttachPath->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachPath->EditValue ?>"<?php echo $attachments->AttachPath->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_AttachPath">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_AttachPath"><?php echo $attachments->AttachPath->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z_AttachPath" id="z_AttachPath" value="LIKE"></span></td>
		<td<?php echo $attachments->AttachPath->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_AttachPath">
<input type="text" data-table="attachments" data-field="x_AttachPath" name="x_AttachPath" id="x_AttachPath" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->AttachPath->getPlaceHolder()) ?>" value="<?php echo $attachments->AttachPath->EditValue ?>"<?php echo $attachments->AttachPath->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->Notes->Visible) { // Notes ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r_Notes" class="form-group row">
		<label for="x_Notes" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments_Notes"><?php echo $attachments->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 $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->Notes->cellAttributes() ?>>
			<span id="el_attachments_Notes">
<input type="text" data-table="attachments" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($attachments->Notes->getPlaceHolder()) ?>" value="<?php echo $attachments->Notes->EditValue ?>"<?php echo $attachments->Notes->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r_Notes">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments_Notes"><?php echo $attachments->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 $attachments->Notes->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments_Notes">
<input type="text" data-table="attachments" data-field="x_Notes" name="x_Notes" id="x_Notes" size="35" placeholder="<?php echo HtmlEncode($attachments->Notes->getPlaceHolder()) ?>" value="<?php echo $attachments->Notes->EditValue ?>"<?php echo $attachments->Notes->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments->_Case->Visible) { // Case ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
	<div id="r__Case" class="form-group row">
		<label for="x__Case" class="<?php echo $attachments_search->LeftColumnClass ?>"><span id="elh_attachments__Case"><?php echo $attachments->_Case->caption() ?></span>
		<span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z__Case" id="z__Case" value="LIKE"></span>
		</label>
		<div class="<?php echo $attachments_search->RightColumnClass ?>"><div<?php echo $attachments->_Case->cellAttributes() ?>>
			<span id="el_attachments__Case">
<input type="text" data-table="attachments" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->_Case->getPlaceHolder()) ?>" value="<?php echo $attachments->_Case->EditValue ?>"<?php echo $attachments->_Case->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } else { ?>
	<tr id="r__Case">
		<td class="<?php echo $attachments_search->TableLeftColumnClass ?>"><span id="elh_attachments__Case"><?php echo $attachments->_Case->caption() ?></span></td>
		<td class="w-col-1"><span class="ew-search-operator"><?php echo $Language->phrase("LIKE") ?><input type="hidden" name="z__Case" id="z__Case" value="LIKE"></span></td>
		<td<?php echo $attachments->_Case->cellAttributes() ?>>
			<div class="text-nowrap">
				<span id="el_attachments__Case">
<input type="text" data-table="attachments" data-field="x__Case" name="x__Case" id="x__Case" size="30" maxlength="200" placeholder="<?php echo HtmlEncode($attachments->_Case->getPlaceHolder()) ?>" value="<?php echo $attachments->_Case->EditValue ?>"<?php echo $attachments->_Case->editAttributes() ?>>
</span>
			</div>
		</td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($attachments_search->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$attachments_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $attachments_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 (!$attachments_search->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
</form>
<?php
$attachments_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
$attachments_search->terminate();
?>
