Heray-Was-Here
Server : Apache
System : Linux hybrid3195.ca.ns.planethoster.net 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
User : alliancerealtynb ( 1004)
PHP Version : 7.4.33
Disable Function : noop
Directory :  /home/alliancerealtynb/www/adminAR/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/www/adminAR/classes/wp_wpl_properties_delete.php
<?php
namespace PHPMaker2020\Alliance;

/**
 * Page class
 */
class wp_wpl_properties_delete extends wp_wpl_properties
{

	// Page ID
	public $PageID = "delete";

	// Project ID
	public $ProjectID = "{FE4AA35B-E768-461D-8010-4FE2D8E13345}";

	// Table name
	public $TableName = 'wp_wpl_properties';

	// Page object name
	public $PageObjName = "wp_wpl_properties_delete";

	// Page headings
	public $Heading = "";
	public $Subheading = "";
	public $PageHeader;
	public $PageFooter;

	// Token
	public $Token = "";
	public $TokenTimeout = 0;
	public $CheckToken;

	// Page heading
	public function pageHeading()
	{
		global $Language;
		if ($this->Heading != "")
			return $this->Heading;
		if (method_exists($this, "tableCaption"))
			return $this->tableCaption();
		return "";
	}

	// Page subheading
	public function pageSubheading()
	{
		global $Language;
		if ($this->Subheading != "")
			return $this->Subheading;
		if ($this->TableName)
			return $Language->phrase($this->PageID);
		return "";
	}

	// Page name
	public function pageName()
	{
		return CurrentPageName();
	}

	// Page URL
	public function pageUrl()
	{
		$url = CurrentPageName() . "?";
		if ($this->UseTokenInUrl)
			$url .= "t=" . $this->TableVar . "&"; // Add page token
		return $url;
	}

	// Messages
	private $_message = "";
	private $_failureMessage = "";
	private $_successMessage = "";
	private $_warningMessage = "";

	// Get message
	public function getMessage()
	{
		return isset($_SESSION[SESSION_MESSAGE]) ? $_SESSION[SESSION_MESSAGE] : $this->_message;
	}

	// Set message
	public function setMessage($v)
	{
		AddMessage($this->_message, $v);
		$_SESSION[SESSION_MESSAGE] = $this->_message;
	}

	// Get failure message
	public function getFailureMessage()
	{
		return isset($_SESSION[SESSION_FAILURE_MESSAGE]) ? $_SESSION[SESSION_FAILURE_MESSAGE] : $this->_failureMessage;
	}

	// Set failure message
	public function setFailureMessage($v)
	{
		AddMessage($this->_failureMessage, $v);
		$_SESSION[SESSION_FAILURE_MESSAGE] = $this->_failureMessage;
	}

	// Get success message
	public function getSuccessMessage()
	{
		return isset($_SESSION[SESSION_SUCCESS_MESSAGE]) ? $_SESSION[SESSION_SUCCESS_MESSAGE] : $this->_successMessage;
	}

	// Set success message
	public function setSuccessMessage($v)
	{
		AddMessage($this->_successMessage, $v);
		$_SESSION[SESSION_SUCCESS_MESSAGE] = $this->_successMessage;
	}

	// Get warning message
	public function getWarningMessage()
	{
		return isset($_SESSION[SESSION_WARNING_MESSAGE]) ? $_SESSION[SESSION_WARNING_MESSAGE] : $this->_warningMessage;
	}

	// Set warning message
	public function setWarningMessage($v)
	{
		AddMessage($this->_warningMessage, $v);
		$_SESSION[SESSION_WARNING_MESSAGE] = $this->_warningMessage;
	}

	// Clear message
	public function clearMessage()
	{
		$this->_message = "";
		$_SESSION[SESSION_MESSAGE] = "";
	}

	// Clear failure message
	public function clearFailureMessage()
	{
		$this->_failureMessage = "";
		$_SESSION[SESSION_FAILURE_MESSAGE] = "";
	}

	// Clear success message
	public function clearSuccessMessage()
	{
		$this->_successMessage = "";
		$_SESSION[SESSION_SUCCESS_MESSAGE] = "";
	}

	// Clear warning message
	public function clearWarningMessage()
	{
		$this->_warningMessage = "";
		$_SESSION[SESSION_WARNING_MESSAGE] = "";
	}

	// Clear messages
	public function clearMessages()
	{
		$this->clearMessage();
		$this->clearFailureMessage();
		$this->clearSuccessMessage();
		$this->clearWarningMessage();
	}

	// Show message
	public function showMessage()
	{
		$hidden = TRUE;
		$html = "";

		// Message
		$message = $this->getMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($message, "");
		if ($message != "") { // Message in Session, display
			if (!$hidden)
				$message = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $message;
			$html .= '<div class="alert alert-info alert-dismissible ew-info"><i class="icon fas fa-info"></i>' . $message . '</div>';
			$_SESSION[SESSION_MESSAGE] = ""; // Clear message in Session
		}

		// Warning message
		$warningMessage = $this->getWarningMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($warningMessage, "warning");
		if ($warningMessage != "") { // Message in Session, display
			if (!$hidden)
				$warningMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $warningMessage;
			$html .= '<div class="alert alert-warning alert-dismissible ew-warning"><i class="icon fas fa-exclamation"></i>' . $warningMessage . '</div>';
			$_SESSION[SESSION_WARNING_MESSAGE] = ""; // Clear message in Session
		}

		// Success message
		$successMessage = $this->getSuccessMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($successMessage, "success");
		if ($successMessage != "") { // Message in Session, display
			if (!$hidden)
				$successMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $successMessage;
			$html .= '<div class="alert alert-success alert-dismissible ew-success"><i class="icon fas fa-check"></i>' . $successMessage . '</div>';
			$_SESSION[SESSION_SUCCESS_MESSAGE] = ""; // Clear message in Session
		}

		// Failure message
		$errorMessage = $this->getFailureMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($errorMessage, "failure");
		if ($errorMessage != "") { // Message in Session, display
			if (!$hidden)
				$errorMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $errorMessage;
			$html .= '<div class="alert alert-danger alert-dismissible ew-error"><i class="icon fas fa-ban"></i>' . $errorMessage . '</div>';
			$_SESSION[SESSION_FAILURE_MESSAGE] = ""; // Clear message in Session
		}
		echo '<div class="ew-message-dialog' . (($hidden) ? ' d-none' : "") . '">' . $html . '</div>';
	}

	// Get message as array
	public function getMessages()
	{
		$ar = [];

		// Message
		$message = $this->getMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($message, "");

		if ($message != "") { // Message in Session, display
			$ar["message"] = $message;
			$_SESSION[SESSION_MESSAGE] = ""; // Clear message in Session
		}

		// Warning message
		$warningMessage = $this->getWarningMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($warningMessage, "warning");

		if ($warningMessage != "") { // Message in Session, display
			$ar["warningMessage"] = $warningMessage;
			$_SESSION[SESSION_WARNING_MESSAGE] = ""; // Clear message in Session
		}

		// Success message
		$successMessage = $this->getSuccessMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($successMessage, "success");

		if ($successMessage != "") { // Message in Session, display
			$ar["successMessage"] = $successMessage;
			$_SESSION[SESSION_SUCCESS_MESSAGE] = ""; // Clear message in Session
		}

		// Failure message
		$failureMessage = $this->getFailureMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($failureMessage, "failure");

		if ($failureMessage != "") { // Message in Session, display
			$ar["failureMessage"] = $failureMessage;
			$_SESSION[SESSION_FAILURE_MESSAGE] = ""; // Clear message in Session
		}
		return $ar;
	}

	// Show Page Header
	public function showPageHeader()
	{
		$header = $this->PageHeader;
		$this->Page_DataRendering($header);
		if ($header != "") { // Header exists, display
			echo '<p id="ew-page-header">' . $header . '</p>';
		}
	}

	// Show Page Footer
	public function showPageFooter()
	{
		$footer = $this->PageFooter;
		$this->Page_DataRendered($footer);
		if ($footer != "") { // Footer exists, display
			echo '<p id="ew-page-footer">' . $footer . '</p>';
		}
	}

	// Validate page request
	protected function isPageRequest()
	{
		global $CurrentForm;
		if ($this->UseTokenInUrl) {
			if ($CurrentForm)
				return ($this->TableVar == $CurrentForm->getValue("t"));
			if (Get("t") !== NULL)
				return ($this->TableVar == Get("t"));
		}
		return TRUE;
	}

	// Valid Post
	protected function validPost()
	{
		if (!$this->CheckToken || !IsPost() || IsApi())
			return TRUE;
		if (Post(Config("TOKEN_NAME")) === NULL)
			return FALSE;
		$fn = Config("CHECK_TOKEN_FUNC");
		if (is_callable($fn))
			return $fn(Post(Config("TOKEN_NAME")), $this->TokenTimeout);
		return FALSE;
	}

	// Create Token
	public function createToken()
	{
		global $CurrentToken;
		$fn = Config("CREATE_TOKEN_FUNC"); // Always create token, required by API file/lookup request
		if ($this->Token == "" && is_callable($fn)) // Create token
			$this->Token = $fn();
		$CurrentToken = $this->Token; // Save to global variable
	}

	// Constructor
	public function __construct()
	{
		global $Language, $DashboardReport;

		// Check token
		$this->CheckToken = Config("CHECK_TOKEN");

		// Initialize
		$GLOBALS["Page"] = &$this;
		$this->TokenTimeout = SessionTimeoutTime();

		// Language object
		if (!isset($Language))
			$Language = new Language();

		// Parent constuctor
		parent::__construct();

		// Table object (wp_wpl_properties)
		if (!isset($GLOBALS["wp_wpl_properties"]) || get_class($GLOBALS["wp_wpl_properties"]) == PROJECT_NAMESPACE . "wp_wpl_properties") {
			$GLOBALS["wp_wpl_properties"] = &$this;
			$GLOBALS["Table"] = &$GLOBALS["wp_wpl_properties"];
		}

		// Page ID (for backward compatibility only)
		if (!defined(PROJECT_NAMESPACE . "PAGE_ID"))
			define(PROJECT_NAMESPACE . "PAGE_ID", 'delete');

		// Table name (for backward compatibility only)
		if (!defined(PROJECT_NAMESPACE . "TABLE_NAME"))
			define(PROJECT_NAMESPACE . "TABLE_NAME", 'wp_wpl_properties');

		// Start timer
		if (!isset($GLOBALS["DebugTimer"]))
			$GLOBALS["DebugTimer"] = new Timer();

		// Debug message
		LoadDebugMessage();

		// Open connection
		if (!isset($GLOBALS["Conn"]))
			$GLOBALS["Conn"] = $this->getConnection();
	}

	// Terminate page
	public function terminate($url = "")
	{
		global $ExportFileName, $TempImages, $DashboardReport;

		// Page Unload event
		$this->Page_Unload();

		// Global Page Unloaded event (in userfn*.php)
		Page_Unloaded();

		// Export
		global $wp_wpl_properties;
		if ($this->CustomExport && $this->CustomExport == $this->Export && array_key_exists($this->CustomExport, Config("EXPORT_CLASSES"))) {
				$content = ob_get_contents();
			if ($ExportFileName == "")
				$ExportFileName = $this->TableVar;
			$class = PROJECT_NAMESPACE . Config("EXPORT_CLASSES." . $this->CustomExport);
			if (class_exists($class)) {
				$doc = new $class($wp_wpl_properties);
				$doc->Text = @$content;
				if ($this->isExport("email"))
					echo $this->exportEmail($doc->Text);
				else
					$doc->export();
				DeleteTempImages(); // Delete temp images
				exit();
			}
		}
		if (!IsApi())
			$this->Page_Redirecting($url);

		// Close connection
		CloseConnections();

		// Return for API
		if (IsApi()) {
			$res = $url === TRUE;
			if (!$res) // Show error
				WriteJson(array_merge(["success" => FALSE], $this->getMessages()));
			return;
		}

		// Go to URL if specified
		if ($url != "") {
			if (!Config("DEBUG") && ob_get_length())
				ob_end_clean();
			SaveDebugMessage();
			AddHeader("Location", $url);
		}
		exit();
	}

	// Get records from recordset
	protected function getRecordsFromRecordset($rs, $current = FALSE)
	{
		$rows = [];
		if (is_object($rs)) { // Recordset
			while ($rs && !$rs->EOF) {
				$this->loadRowValues($rs); // Set up DbValue/CurrentValue
				$row = $this->getRecordFromArray($rs->fields);
				if ($current)
					return $row;
				else
					$rows[] = $row;
				$rs->moveNext();
			}
		} elseif (is_array($rs)) {
			foreach ($rs as $ar) {
				$row = $this->getRecordFromArray($ar);
				if ($current)
					return $row;
				else
					$rows[] = $row;
			}
		}
		return $rows;
	}

	// Get record from array
	protected function getRecordFromArray($ar)
	{
		$row = [];
		if (is_array($ar)) {
			foreach ($ar as $fldname => $val) {
				if (array_key_exists($fldname, $this->fields) && ($this->fields[$fldname]->Visible || $this->fields[$fldname]->IsPrimaryKey)) { // Primary key or Visible
					$fld = &$this->fields[$fldname];
					if ($fld->HtmlTag == "FILE") { // Upload field
						if (EmptyValue($val)) {
							$row[$fldname] = NULL;
						} else {
							if ($fld->DataType == DATATYPE_BLOB) {
								$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
									Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
									Config("API_FIELD_NAME") . "=" . $fld->Param . "&" .
									Config("API_KEY_NAME") . "=" . rawurlencode($this->getRecordKeyValue($ar)))); //*** need to add this? API may not be in the same folder
								$row[$fldname] = ["type" => ContentType($val), "url" => $url, "name" => $fld->Param . ContentExtension($val)];
							} elseif (!$fld->UploadMultiple || !ContainsString($val, Config("MULTIPLE_UPLOAD_SEPARATOR"))) { // Single file
								$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
									Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
									"fn=" . Encrypt($fld->physicalUploadPath() . $val)));
								$row[$fldname] = ["type" => MimeContentType($val), "url" => $url, "name" => $val];
							} else { // Multiple files
								$files = explode(Config("MULTIPLE_UPLOAD_SEPARATOR"), $val);
								$ar = [];
								foreach ($files as $file) {
									$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
										Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
										"fn=" . Encrypt($fld->physicalUploadPath() . $file)));
									if (!EmptyValue($file))
										$ar[] = ["type" => MimeContentType($file), "url" => $url, "name" => $file];
								}
								$row[$fldname] = $ar;
							}
						}
					} else {
						$row[$fldname] = $val;
					}
				}
			}
		}
		return $row;
	}

	// Get record key value from array
	protected function getRecordKeyValue($ar)
	{
		$key = "";
		if (is_array($ar)) {
			$key .= @$ar['id'];
		}
		return $key;
	}

	/**
	 * Hide fields for add/edit
	 *
	 * @return void
	 */
	protected function hideFieldsForAddEdit()
	{
		if ($this->isAdd() || $this->isCopy() || $this->isGridAdd())
			$this->id->Visible = FALSE;
	}

	// Set up API security
	public function setupApiSecurity()
	{
		global $Security;

		// Setup security for API request
	}
	public $DbMasterFilter = "";
	public $DbDetailFilter = "";
	public $StartRecord;
	public $TotalRecords = 0;
	public $RecordCount;
	public $RecKeys = [];
	public $StartRowCount = 1;
	public $RowCount = 0;

	//
	// Page run
	//

	public function run()
	{
		global $ExportType, $CustomExportType, $ExportFileName, $UserProfile, $Language, $Security, $CurrentForm;

		// User profile
		$UserProfile = new UserProfile();

		// Security
		if (ValidApiRequest()) { // API request
			$this->setupApiSecurity(); // Set up API Security
			if (!$Security->canDelete()) {
				SetStatus(401); // Unauthorized
				return;
			}
		} else {
			$Security = new AdvancedSecurity();
			if (!$Security->isLoggedIn())
				$Security->autoLogin();
			$Security->loadCurrentUserLevel($this->ProjectID . $this->TableName);
			if (!$Security->canDelete()) {
				$Security->saveLastUrl();
				$this->setFailureMessage(DeniedMessage()); // Set no permission
				if ($Security->canList())
					$this->terminate(GetUrl("wp_wpl_propertieslist.php"));
				else
					$this->terminate(GetUrl("login.php"));
				return;
			}
		}
		$this->CurrentAction = Param("action"); // Set up current action
		$this->id->setVisibility();
		$this->kind->Visible = FALSE;
		$this->deleted->Visible = FALSE;
		$this->mls_id->Visible = FALSE;
		$this->mls_id_num->Visible = FALSE;
		$this->parent->Visible = FALSE;
		$this->pic_numb->Visible = FALSE;
		$this->user_id->Visible = FALSE;
		$this->listing->Visible = FALSE;
		$this->property_type->Visible = FALSE;
		$this->location1_id->Visible = FALSE;
		$this->location2_id->Visible = FALSE;
		$this->location3_id->Visible = FALSE;
		$this->location4_id->Visible = FALSE;
		$this->location5_id->Visible = FALSE;
		$this->location6_id->Visible = FALSE;
		$this->location7_id->Visible = FALSE;
		$this->location1_name->Visible = FALSE;
		$this->location2_name->Visible = FALSE;
		$this->location3_name->Visible = FALSE;
		$this->location4_name->Visible = FALSE;
		$this->location5_name->Visible = FALSE;
		$this->location6_name->Visible = FALSE;
		$this->location7_name->Visible = FALSE;
		$this->show_address->Visible = FALSE;
		$this->show_marker->Visible = FALSE;
		$this->price->Visible = FALSE;
		$this->price_unit->Visible = FALSE;
		$this->price_si->Visible = FALSE;
		$this->price_period->Visible = FALSE;
		$this->bedrooms->Visible = FALSE;
		$this->rooms->Visible = FALSE;
		$this->bathrooms->Visible = FALSE;
		$this->living_area->Visible = FALSE;
		$this->living_area_unit->Visible = FALSE;
		$this->living_area_si->Visible = FALSE;
		$this->lot_area->Visible = FALSE;
		$this->lot_area_unit->Visible = FALSE;
		$this->lot_area_si->Visible = FALSE;
		$this->googlemap_lt->Visible = FALSE;
		$this->googlemap_ln->Visible = FALSE;
		$this->finalized->Visible = FALSE;
		$this->add_date->Visible = FALSE;
		$this->last_finalize_date->Visible = FALSE;
		$this->expire_days->Visible = FALSE;
		$this->confirmed->Visible = FALSE;
		$this->expired->Visible = FALSE;
		$this->build_year->Visible = FALSE;
		$this->zip_id->Visible = FALSE;
		$this->zip_name->Visible = FALSE;
		$this->last_modified_time_stamp->Visible = FALSE;
		$this->post_code->Visible = FALSE;
		$this->meta_description->Visible = FALSE;
		$this->meta_description_manual->Visible = FALSE;
		$this->meta_keywords->Visible = FALSE;
		$this->meta_keywords_manual->Visible = FALSE;
		$this->street_no->Visible = FALSE;
		$this->sp_featured->Visible = FALSE;
		$this->sp_hot->Visible = FALSE;
		$this->sp_openhouse->Visible = FALSE;
		$this->sp_forclosure->Visible = FALSE;
		$this->textsearch->Visible = FALSE;
		$this->location_text->Visible = FALSE;
		$this->field_42->Visible = FALSE;
		$this->field_312->Visible = FALSE;
		$this->field_313->Visible = FALSE;
		$this->field_7->Visible = FALSE;
		$this->n_103->Visible = FALSE;
		$this->n_103_distance->Visible = FALSE;
		$this->n_103_distance_by->Visible = FALSE;
		$this->n_105->Visible = FALSE;
		$this->n_105_distance->Visible = FALSE;
		$this->n_105_distance_by->Visible = FALSE;
		$this->n_107->Visible = FALSE;
		$this->n_107_distance->Visible = FALSE;
		$this->n_107_distance_by->Visible = FALSE;
		$this->n_108->Visible = FALSE;
		$this->n_108_distance->Visible = FALSE;
		$this->n_108_distance_by->Visible = FALSE;
		$this->n_109->Visible = FALSE;
		$this->n_109_distance->Visible = FALSE;
		$this->n_109_distance_by->Visible = FALSE;
		$this->f_131_options->Visible = FALSE;
		$this->f_131->Visible = FALSE;
		$this->f_137_options->Visible = FALSE;
		$this->f_137->Visible = FALSE;
		$this->f_139_options->Visible = FALSE;
		$this->f_139->Visible = FALSE;
		$this->f_144_options->Visible = FALSE;
		$this->f_144->Visible = FALSE;
		$this->f_146_options->Visible = FALSE;
		$this->f_146->Visible = FALSE;
		$this->f_149_options->Visible = FALSE;
		$this->f_149->Visible = FALSE;
		$this->f_150_options->Visible = FALSE;
		$this->f_150->Visible = FALSE;
		$this->f_156_options->Visible = FALSE;
		$this->f_156->Visible = FALSE;
		$this->f_157_options->Visible = FALSE;
		$this->f_157->Visible = FALSE;
		$this->f_159_options->Visible = FALSE;
		$this->f_159->Visible = FALSE;
		$this->f_161_options->Visible = FALSE;
		$this->f_161->Visible = FALSE;
		$this->f_163_options->Visible = FALSE;
		$this->f_163->Visible = FALSE;
		$this->f_165_options->Visible = FALSE;
		$this->f_165->Visible = FALSE;
		$this->f_166_options->Visible = FALSE;
		$this->f_166->Visible = FALSE;
		$this->ref_id->Visible = FALSE;
		$this->field_54->Visible = FALSE;
		$this->half_bathrooms->Visible = FALSE;
		$this->field_55->Visible = FALSE;
		$this->rendered->Visible = FALSE;
		$this->alias->Visible = FALSE;
		$this->source->Visible = FALSE;
		$this->last_sync_date->Visible = FALSE;
		$this->street_suffix->Visible = FALSE;
		$this->energy_tag->Visible = FALSE;
		$this->field_3006->Visible = FALSE;
		$this->field_3007->Visible = FALSE;
		$this->field_3008->Visible = FALSE;
		$this->importer_structure_id->Visible = FALSE;
		$this->importer_params->Visible = FALSE;
		$this->field_3009->Visible = FALSE;
		$this->field_3010->Visible = FALSE;
		$this->field_3012->Visible = FALSE;
		$this->rendered_en_us->Visible = FALSE;
		$this->textsearch_en_us->Visible = FALSE;
		$this->rendered_fr_fr->Visible = FALSE;
		$this->textsearch_fr_fr->Visible = FALSE;
		$this->field_3013->Visible = FALSE;
		$this->field_3014->Visible = FALSE;
		$this->f_3014_options->Visible = FALSE;
		$this->f_3014->Visible = FALSE;
		$this->field_3015->Visible = FALSE;
		$this->field_3016->Visible = FALSE;
		$this->field_3017->Visible = FALSE;
		$this->f_3018_options->Visible = FALSE;
		$this->f_3018->Visible = FALSE;
		$this->f_3019_options->Visible = FALSE;
		$this->f_3019->Visible = FALSE;
		$this->f_3020_options->Visible = FALSE;
		$this->f_3020->Visible = FALSE;
		$this->f_3021_options->Visible = FALSE;
		$this->f_3021->Visible = FALSE;
		$this->f_3022_options->Visible = FALSE;
		$this->f_3022->Visible = FALSE;
		$this->f_3023_options->Visible = FALSE;
		$this->f_3023->Visible = FALSE;
		$this->f_3024_options->Visible = FALSE;
		$this->f_3024->Visible = FALSE;
		$this->f_3025_options->Visible = FALSE;
		$this->f_3025->Visible = FALSE;
		$this->f_3026_options->Visible = FALSE;
		$this->f_3026->Visible = FALSE;
		$this->f_3027_options->Visible = FALSE;
		$this->f_3027->Visible = FALSE;
		$this->f_3028_options->Visible = FALSE;
		$this->f_3028->Visible = FALSE;
		$this->f_3029_options->Visible = FALSE;
		$this->f_3029->Visible = FALSE;
		$this->f_3031_options->Visible = FALSE;
		$this->f_3031->Visible = FALSE;
		$this->f_3032_options->Visible = FALSE;
		$this->f_3032->Visible = FALSE;
		$this->f_3033_options->Visible = FALSE;
		$this->f_3033->Visible = FALSE;
		$this->f_3034_options->Visible = FALSE;
		$this->f_3034->Visible = FALSE;
		$this->f_3035_options->Visible = FALSE;
		$this->f_3035->Visible = FALSE;
		$this->f_3036_options->Visible = FALSE;
		$this->f_3036->Visible = FALSE;
		$this->f_3037_options->Visible = FALSE;
		$this->f_3037->Visible = FALSE;
		$this->f_3038_options->Visible = FALSE;
		$this->f_3038->Visible = FALSE;
		$this->f_3039_options->Visible = FALSE;
		$this->f_3039->Visible = FALSE;
		$this->f_3040_options->Visible = FALSE;
		$this->f_3040->Visible = FALSE;
		$this->f_3041_options->Visible = FALSE;
		$this->f_3041->Visible = FALSE;
		$this->f_3042_options->Visible = FALSE;
		$this->f_3042->Visible = FALSE;
		$this->f_3043_options->Visible = FALSE;
		$this->f_3043->Visible = FALSE;
		$this->f_3044_options->Visible = FALSE;
		$this->f_3044->Visible = FALSE;
		$this->n_3045->Visible = FALSE;
		$this->n_3045_distance->Visible = FALSE;
		$this->n_3045_distance_by->Visible = FALSE;
		$this->n_3046->Visible = FALSE;
		$this->n_3046_distance->Visible = FALSE;
		$this->n_3046_distance_by->Visible = FALSE;
		$this->n_3047->Visible = FALSE;
		$this->n_3047_distance->Visible = FALSE;
		$this->n_3047_distance_by->Visible = FALSE;
		$this->n_3048->Visible = FALSE;
		$this->n_3048_distance->Visible = FALSE;
		$this->n_3048_distance_by->Visible = FALSE;
		$this->n_3049->Visible = FALSE;
		$this->n_3049_distance->Visible = FALSE;
		$this->n_3049_distance_by->Visible = FALSE;
		$this->n_3050->Visible = FALSE;
		$this->n_3050_distance->Visible = FALSE;
		$this->n_3050_distance_by->Visible = FALSE;
		$this->n_3051->Visible = FALSE;
		$this->n_3051_distance->Visible = FALSE;
		$this->n_3051_distance_by->Visible = FALSE;
		$this->n_3052->Visible = FALSE;
		$this->n_3052_distance->Visible = FALSE;
		$this->n_3052_distance_by->Visible = FALSE;
		$this->n_3053->Visible = FALSE;
		$this->n_3053_distance->Visible = FALSE;
		$this->n_3053_distance_by->Visible = FALSE;
		$this->n_3054->Visible = FALSE;
		$this->n_3054_distance->Visible = FALSE;
		$this->n_3054_distance_by->Visible = FALSE;
		$this->n_3055->Visible = FALSE;
		$this->n_3055_distance->Visible = FALSE;
		$this->n_3055_distance_by->Visible = FALSE;
		$this->n_3056->Visible = FALSE;
		$this->n_3056_distance->Visible = FALSE;
		$this->n_3056_distance_by->Visible = FALSE;
		$this->n_3057->Visible = FALSE;
		$this->n_3057_distance->Visible = FALSE;
		$this->n_3057_distance_by->Visible = FALSE;
		$this->n_3058->Visible = FALSE;
		$this->n_3058_distance->Visible = FALSE;
		$this->n_3058_distance_by->Visible = FALSE;
		$this->n_3059->Visible = FALSE;
		$this->n_3059_distance->Visible = FALSE;
		$this->n_3059_distance_by->Visible = FALSE;
		$this->f_3060_options->Visible = FALSE;
		$this->f_3060->Visible = FALSE;
		$this->f_3061_options->Visible = FALSE;
		$this->f_3061->Visible = FALSE;
		$this->f_3062_options->Visible = FALSE;
		$this->f_3062->Visible = FALSE;
		$this->field_3063->Visible = FALSE;
		$this->field_3064->Visible = FALSE;
		$this->field_3065->Visible = FALSE;
		$this->field_308->Visible = FALSE;
		$this->field_308_en_us->Visible = FALSE;
		$this->field_308_fr_fr->Visible = FALSE;
		$this->field_313_en_us->Visible = FALSE;
		$this->field_313_fr_fr->Visible = FALSE;
		$this->field_312_en_us->Visible = FALSE;
		$this->field_312_fr_fr->Visible = FALSE;
		$this->field_3017_en_us->Visible = FALSE;
		$this->field_3017_fr_fr->Visible = FALSE;
		$this->field_42_en_us->Visible = FALSE;
		$this->field_42_fr_fr->Visible = FALSE;
		$this->field_3067->Visible = FALSE;
		$this->field_3068->Visible = FALSE;
		$this->field_3069->Visible = FALSE;
		$this->field_3070->Visible = FALSE;
		$this->field_3071->Visible = FALSE;
		$this->field_3071_en_us->Visible = FALSE;
		$this->field_3071_fr_fr->Visible = FALSE;
		$this->field_3072->Visible = FALSE;
		$this->field_3073->Visible = FALSE;
		$this->field_3074->Visible = FALSE;
		$this->field_3074_en_us->Visible = FALSE;
		$this->field_3074_fr_fr->Visible = FALSE;
		$this->field_3075->Visible = FALSE;
		$this->field_3076->Visible = FALSE;
		$this->field_3077->Visible = FALSE;
		$this->field_3078->Visible = FALSE;
		$this->field_3079->Visible = FALSE;
		$this->field_3080->Visible = FALSE;
		$this->field_3076_en_us->Visible = FALSE;
		$this->field_3076_fr_fr->Visible = FALSE;
		$this->field_3080_en_us->Visible = FALSE;
		$this->field_3080_fr_fr->Visible = FALSE;
		$this->field_3081->Visible = FALSE;
		$this->field_3081_en_us->Visible = FALSE;
		$this->field_3081_fr_fr->Visible = FALSE;
		$this->field_3082->Visible = FALSE;
		$this->field_3082_en_us->Visible = FALSE;
		$this->field_3082_fr_fr->Visible = FALSE;
		$this->field_3084->Visible = FALSE;
		$this->field_3085->Visible = FALSE;
		$this->field_3086->Visible = FALSE;
		$this->field_3096->Visible = FALSE;
		$this->field_3097->Visible = FALSE;
		$this->field_3098->Visible = FALSE;
		$this->field_3099->Visible = FALSE;
		$this->field_3100->Visible = FALSE;
		$this->field_3101->Visible = FALSE;
		$this->field_3102->Visible = FALSE;
		$this->field_3103->Visible = FALSE;
		$this->field_3104->Visible = FALSE;
		$this->field_3105->Visible = FALSE;
		$this->field_3106->Visible = FALSE;
		$this->field_3107->Visible = FALSE;
		$this->field_3108->Visible = FALSE;
		$this->field_3109->Visible = FALSE;
		$this->field_3110->Visible = FALSE;
		$this->field_3111->Visible = FALSE;
		$this->field_3112->Visible = FALSE;
		$this->field_3113->Visible = FALSE;
		$this->field_3113_en_us->Visible = FALSE;
		$this->field_3113_fr_fr->Visible = FALSE;
		$this->field_3114->Visible = FALSE;
		$this->field_3115->Visible = FALSE;
		$this->field_3115_si->Visible = FALSE;
		$this->field_3115_unit->Visible = FALSE;
		$this->field_3116->Visible = FALSE;
		$this->field_3117->Visible = FALSE;
		$this->field_3117_en_us->Visible = FALSE;
		$this->field_3117_fr_fr->Visible = FALSE;
		$this->field_3118->Visible = FALSE;
		$this->field_3118_en_us->Visible = FALSE;
		$this->field_3118_fr_fr->Visible = FALSE;
		$this->field_3119->setVisibility();
		$this->field_3119_en_us->setVisibility();
		$this->field_3119_fr_fr->setVisibility();
		$this->field_3120->setVisibility();
		$this->field_3120_en_us->setVisibility();
		$this->field_3120_fr_fr->setVisibility();
		$this->field_3121->Visible = FALSE;
		$this->field_3122->Visible = FALSE;
		$this->field_3122_si->Visible = FALSE;
		$this->field_3122_unit->Visible = FALSE;
		$this->field_3123->Visible = FALSE;
		$this->field_3124->Visible = FALSE;
		$this->field_3125->Visible = FALSE;
		$this->field_3126->Visible = FALSE;
		$this->field_3127->Visible = FALSE;
		$this->field_3128->Visible = FALSE;
		$this->field_3129->Visible = FALSE;
		$this->field_3130->Visible = FALSE;
		$this->field_3131->Visible = FALSE;
		$this->field_3132->Visible = FALSE;
		$this->field_3133->Visible = FALSE;
		$this->field_3134->Visible = FALSE;
		$this->field_3135->Visible = FALSE;
		$this->field_3136->Visible = FALSE;
		$this->field_3137->Visible = FALSE;
		$this->field_3138->Visible = FALSE;
		$this->field_3139->Visible = FALSE;
		$this->field_3140->Visible = FALSE;
		$this->field_3141->Visible = FALSE;
		$this->field_3142->Visible = FALSE;
		$this->field_3143->Visible = FALSE;
		$this->field_3144->Visible = FALSE;
		$this->field_3145->Visible = FALSE;
		$this->field_3146->Visible = FALSE;
		$this->field_3147->Visible = FALSE;
		$this->field_3148->Visible = FALSE;
		$this->field_3149->Visible = FALSE;
		$this->field_3150->Visible = FALSE;
		$this->field_3151->Visible = FALSE;
		$this->field_3152->Visible = FALSE;
		$this->field_3153->Visible = FALSE;
		$this->field_3154->Visible = FALSE;
		$this->field_3155->Visible = FALSE;
		$this->field_3156->Visible = FALSE;
		$this->field_3157->Visible = FALSE;
		$this->field_3158->Visible = FALSE;
		$this->field_3159->Visible = FALSE;
		$this->field_3160->Visible = FALSE;
		$this->field_3161->Visible = FALSE;
		$this->field_3162->Visible = FALSE;
		$this->field_3163->Visible = FALSE;
		$this->field_3164->Visible = FALSE;
		$this->field_3165->Visible = FALSE;
		$this->field_3166->Visible = FALSE;
		$this->field_3167->Visible = FALSE;
		$this->field_3168->Visible = FALSE;
		$this->field_3169->Visible = FALSE;
		$this->field_3170->Visible = FALSE;
		$this->field_3171->Visible = FALSE;
		$this->field_3172->Visible = FALSE;
		$this->field_3173->Visible = FALSE;
		$this->field_3173_si->Visible = FALSE;
		$this->field_3173_unit->Visible = FALSE;
		$this->field_3180->Visible = FALSE;
		$this->field_3180_en_us->Visible = FALSE;
		$this->field_3180_fr_fr->Visible = FALSE;
		$this->field_3181->Visible = FALSE;
		$this->field_3182->Visible = FALSE;
		$this->n_3189->Visible = FALSE;
		$this->n_3189_distance->Visible = FALSE;
		$this->n_3189_distance_by->Visible = FALSE;
		$this->field_3190->setVisibility();
		$this->field_3192->setVisibility();
		$this->field_3193->setVisibility();
		$this->field_3195->setVisibility();
		$this->field_3114_en_us->setVisibility();
		$this->field_3114_fr_fr->setVisibility();
		$this->n_3196->setVisibility();
		$this->n_3196_distance->setVisibility();
		$this->n_3196_distance_by->setVisibility();
		$this->field_3197->setVisibility();
		$this->field_3197_si->setVisibility();
		$this->field_3197_unit->setVisibility();
		$this->hideFieldsForAddEdit();

		// Do not use lookup cache
		$this->setUseLookupCache(FALSE);

		// Global Page Loading event (in userfn*.php)
		Page_Loading();

		// Page Load event
		$this->Page_Load();

		// Check token
		if (!$this->validPost()) {
			Write($Language->phrase("InvalidPostRequest"));
			$this->terminate();
		}

		// Create Token
		$this->createToken();

		// Set up lookup cache
		// Set up Breadcrumb

		$this->setupBreadcrumb();

		// Load key parameters
		$this->RecKeys = $this->getRecordKeys(); // Load record keys
		$filter = $this->getFilterFromRecordKeys();
		if ($filter == "") {
			$this->terminate("wp_wpl_propertieslist.php"); // Prevent SQL injection, return to list
			return;
		}

		// Set up filter (WHERE Clause)
		$this->CurrentFilter = $filter;

		// Get action
		if (IsApi()) {
			$this->CurrentAction = "delete"; // Delete record directly
		} elseif (Post("action") !== NULL) {
			$this->CurrentAction = Post("action");
		} elseif (Get("action") == "1") {
			$this->CurrentAction = "delete"; // Delete record directly
		} else {
			$this->CurrentAction = "show"; // Display record
		}
		if ($this->isDelete()) {
			$this->SendEmail = TRUE; // Send email on delete success
			if ($this->deleteRows()) { // Delete rows
				if ($this->getSuccessMessage() == "")
					$this->setSuccessMessage($Language->phrase("DeleteSuccess")); // Set up success message
				if (IsApi()) {
					$this->terminate(TRUE);
					return;
				} else {
					$this->terminate($this->getReturnUrl()); // Return to caller
				}
			} else { // Delete failed
				if (IsApi()) {
					$this->terminate();
					return;
				}
				$this->CurrentAction = "show"; // Display record
			}
		}
		if ($this->isShow()) { // Load records for display
			if ($this->Recordset = $this->loadRecordset())
				$this->TotalRecords = $this->Recordset->RecordCount(); // Get record count
			if ($this->TotalRecords <= 0) { // No record found, exit
				if ($this->Recordset)
					$this->Recordset->close();
				$this->terminate("wp_wpl_propertieslist.php"); // Return to list
			}
		}
	}

	// Load recordset
	public function loadRecordset($offset = -1, $rowcnt = -1)
	{

		// Load List page SQL
		$sql = $this->getListSql();
		$conn = $this->getConnection();

		// Load recordset
		$dbtype = GetConnectionType($this->Dbid);
		if ($this->UseSelectLimit) {
			$conn->raiseErrorFn = Config("ERROR_FUNC");
			if ($dbtype == "MSSQL") {
				$rs = $conn->selectLimit($sql, $rowcnt, $offset, ["_hasOrderBy" => trim($this->getOrderBy()) || trim($this->getSessionOrderBy())]);
			} else {
				$rs = $conn->selectLimit($sql, $rowcnt, $offset);
			}
			$conn->raiseErrorFn = "";
		} else {
			$rs = LoadRecordset($sql, $conn);
		}

		// Call Recordset Selected event
		$this->Recordset_Selected($rs);
		return $rs;
	}

	// Load row based on key values
	public function loadRow()
	{
		global $Security, $Language;
		$filter = $this->getRecordFilter();

		// Call Row Selecting event
		$this->Row_Selecting($filter);

		// Load SQL based on filter
		$this->CurrentFilter = $filter;
		$sql = $this->getCurrentSql();
		$conn = $this->getConnection();
		$res = FALSE;
		$rs = LoadRecordset($sql, $conn);
		if ($rs && !$rs->EOF) {
			$res = TRUE;
			$this->loadRowValues($rs); // Load row values
			$rs->close();
		}
		return $res;
	}

	// Load row values from recordset
	public function loadRowValues($rs = NULL)
	{
		if ($rs && !$rs->EOF)
			$row = $rs->fields;
		else
			$row = $this->newRow();

		// Call Row Selected event
		$this->Row_Selected($row);
		if (!$rs || $rs->EOF)
			return;
		$this->id->setDbValue($row['id']);
		$this->kind->setDbValue($row['kind']);
		$this->deleted->setDbValue($row['deleted']);
		$this->mls_id->setDbValue($row['mls_id']);
		$this->mls_id_num->setDbValue($row['mls_id_num']);
		$this->parent->setDbValue($row['parent']);
		$this->pic_numb->setDbValue($row['pic_numb']);
		$this->user_id->setDbValue($row['user_id']);
		$this->listing->setDbValue($row['listing']);
		$this->property_type->setDbValue($row['property_type']);
		$this->location1_id->setDbValue($row['location1_id']);
		$this->location2_id->setDbValue($row['location2_id']);
		$this->location3_id->setDbValue($row['location3_id']);
		$this->location4_id->setDbValue($row['location4_id']);
		$this->location5_id->setDbValue($row['location5_id']);
		$this->location6_id->setDbValue($row['location6_id']);
		$this->location7_id->setDbValue($row['location7_id']);
		$this->location1_name->setDbValue($row['location1_name']);
		$this->location2_name->setDbValue($row['location2_name']);
		$this->location3_name->setDbValue($row['location3_name']);
		$this->location4_name->setDbValue($row['location4_name']);
		$this->location5_name->setDbValue($row['location5_name']);
		$this->location6_name->setDbValue($row['location6_name']);
		$this->location7_name->setDbValue($row['location7_name']);
		$this->show_address->setDbValue($row['show_address']);
		$this->show_marker->setDbValue($row['show_marker']);
		$this->price->setDbValue($row['price']);
		$this->price_unit->setDbValue($row['price_unit']);
		$this->price_si->setDbValue($row['price_si']);
		$this->price_period->setDbValue($row['price_period']);
		$this->bedrooms->setDbValue($row['bedrooms']);
		$this->rooms->setDbValue($row['rooms']);
		$this->bathrooms->setDbValue($row['bathrooms']);
		$this->living_area->setDbValue($row['living_area']);
		$this->living_area_unit->setDbValue($row['living_area_unit']);
		$this->living_area_si->setDbValue($row['living_area_si']);
		$this->lot_area->setDbValue($row['lot_area']);
		$this->lot_area_unit->setDbValue($row['lot_area_unit']);
		$this->lot_area_si->setDbValue($row['lot_area_si']);
		$this->googlemap_lt->setDbValue($row['googlemap_lt']);
		$this->googlemap_ln->setDbValue($row['googlemap_ln']);
		$this->finalized->setDbValue($row['finalized']);
		$this->add_date->setDbValue($row['add_date']);
		$this->last_finalize_date->setDbValue($row['last_finalize_date']);
		$this->expire_days->setDbValue($row['expire_days']);
		$this->confirmed->setDbValue($row['confirmed']);
		$this->expired->setDbValue($row['expired']);
		$this->build_year->setDbValue($row['build_year']);
		$this->zip_id->setDbValue($row['zip_id']);
		$this->zip_name->setDbValue($row['zip_name']);
		$this->last_modified_time_stamp->setDbValue($row['last_modified_time_stamp']);
		$this->post_code->setDbValue($row['post_code']);
		$this->meta_description->setDbValue($row['meta_description']);
		$this->meta_description_manual->setDbValue($row['meta_description_manual']);
		$this->meta_keywords->setDbValue($row['meta_keywords']);
		$this->meta_keywords_manual->setDbValue($row['meta_keywords_manual']);
		$this->street_no->setDbValue($row['street_no']);
		$this->sp_featured->setDbValue($row['sp_featured']);
		$this->sp_hot->setDbValue($row['sp_hot']);
		$this->sp_openhouse->setDbValue($row['sp_openhouse']);
		$this->sp_forclosure->setDbValue($row['sp_forclosure']);
		$this->textsearch->setDbValue($row['textsearch']);
		$this->location_text->setDbValue($row['location_text']);
		$this->field_42->setDbValue($row['field_42']);
		$this->field_312->setDbValue($row['field_312']);
		$this->field_313->setDbValue($row['field_313']);
		$this->field_7->setDbValue($row['field_7']);
		$this->n_103->setDbValue($row['n_103']);
		$this->n_103_distance->setDbValue($row['n_103_distance']);
		$this->n_103_distance_by->setDbValue($row['n_103_distance_by']);
		$this->n_105->setDbValue($row['n_105']);
		$this->n_105_distance->setDbValue($row['n_105_distance']);
		$this->n_105_distance_by->setDbValue($row['n_105_distance_by']);
		$this->n_107->setDbValue($row['n_107']);
		$this->n_107_distance->setDbValue($row['n_107_distance']);
		$this->n_107_distance_by->setDbValue($row['n_107_distance_by']);
		$this->n_108->setDbValue($row['n_108']);
		$this->n_108_distance->setDbValue($row['n_108_distance']);
		$this->n_108_distance_by->setDbValue($row['n_108_distance_by']);
		$this->n_109->setDbValue($row['n_109']);
		$this->n_109_distance->setDbValue($row['n_109_distance']);
		$this->n_109_distance_by->setDbValue($row['n_109_distance_by']);
		$this->f_131_options->setDbValue($row['f_131_options']);
		$this->f_131->setDbValue($row['f_131']);
		$this->f_137_options->setDbValue($row['f_137_options']);
		$this->f_137->setDbValue($row['f_137']);
		$this->f_139_options->setDbValue($row['f_139_options']);
		$this->f_139->setDbValue($row['f_139']);
		$this->f_144_options->setDbValue($row['f_144_options']);
		$this->f_144->setDbValue($row['f_144']);
		$this->f_146_options->setDbValue($row['f_146_options']);
		$this->f_146->setDbValue($row['f_146']);
		$this->f_149_options->setDbValue($row['f_149_options']);
		$this->f_149->setDbValue($row['f_149']);
		$this->f_150_options->setDbValue($row['f_150_options']);
		$this->f_150->setDbValue($row['f_150']);
		$this->f_156_options->setDbValue($row['f_156_options']);
		$this->f_156->setDbValue($row['f_156']);
		$this->f_157_options->setDbValue($row['f_157_options']);
		$this->f_157->setDbValue($row['f_157']);
		$this->f_159_options->setDbValue($row['f_159_options']);
		$this->f_159->setDbValue($row['f_159']);
		$this->f_161_options->setDbValue($row['f_161_options']);
		$this->f_161->setDbValue($row['f_161']);
		$this->f_163_options->setDbValue($row['f_163_options']);
		$this->f_163->setDbValue($row['f_163']);
		$this->f_165_options->setDbValue($row['f_165_options']);
		$this->f_165->setDbValue($row['f_165']);
		$this->f_166_options->setDbValue($row['f_166_options']);
		$this->f_166->setDbValue($row['f_166']);
		$this->ref_id->setDbValue($row['ref_id']);
		$this->field_54->setDbValue($row['field_54']);
		$this->half_bathrooms->setDbValue($row['half_bathrooms']);
		$this->field_55->setDbValue($row['field_55']);
		$this->rendered->setDbValue($row['rendered']);
		$this->alias->setDbValue($row['alias']);
		$this->source->setDbValue($row['source']);
		$this->last_sync_date->setDbValue($row['last_sync_date']);
		$this->street_suffix->setDbValue($row['street_suffix']);
		$this->energy_tag->setDbValue($row['energy_tag']);
		$this->field_3006->setDbValue($row['field_3006']);
		$this->field_3007->setDbValue($row['field_3007']);
		$this->field_3008->setDbValue($row['field_3008']);
		$this->importer_structure_id->setDbValue($row['importer_structure_id']);
		$this->importer_params->setDbValue($row['importer_params']);
		$this->field_3009->setDbValue($row['field_3009']);
		$this->field_3010->setDbValue($row['field_3010']);
		$this->field_3012->setDbValue($row['field_3012']);
		$this->rendered_en_us->setDbValue($row['rendered_en_us']);
		$this->textsearch_en_us->setDbValue($row['textsearch_en_us']);
		$this->rendered_fr_fr->setDbValue($row['rendered_fr_fr']);
		$this->textsearch_fr_fr->setDbValue($row['textsearch_fr_fr']);
		$this->field_3013->setDbValue($row['field_3013']);
		$this->field_3014->setDbValue($row['field_3014']);
		$this->f_3014_options->setDbValue($row['f_3014_options']);
		$this->f_3014->setDbValue($row['f_3014']);
		$this->field_3015->setDbValue($row['field_3015']);
		$this->field_3016->setDbValue($row['field_3016']);
		$this->field_3017->setDbValue($row['field_3017']);
		$this->f_3018_options->setDbValue($row['f_3018_options']);
		$this->f_3018->setDbValue($row['f_3018']);
		$this->f_3019_options->setDbValue($row['f_3019_options']);
		$this->f_3019->setDbValue($row['f_3019']);
		$this->f_3020_options->setDbValue($row['f_3020_options']);
		$this->f_3020->setDbValue($row['f_3020']);
		$this->f_3021_options->setDbValue($row['f_3021_options']);
		$this->f_3021->setDbValue($row['f_3021']);
		$this->f_3022_options->setDbValue($row['f_3022_options']);
		$this->f_3022->setDbValue($row['f_3022']);
		$this->f_3023_options->setDbValue($row['f_3023_options']);
		$this->f_3023->setDbValue($row['f_3023']);
		$this->f_3024_options->setDbValue($row['f_3024_options']);
		$this->f_3024->setDbValue($row['f_3024']);
		$this->f_3025_options->setDbValue($row['f_3025_options']);
		$this->f_3025->setDbValue($row['f_3025']);
		$this->f_3026_options->setDbValue($row['f_3026_options']);
		$this->f_3026->setDbValue($row['f_3026']);
		$this->f_3027_options->setDbValue($row['f_3027_options']);
		$this->f_3027->setDbValue($row['f_3027']);
		$this->f_3028_options->setDbValue($row['f_3028_options']);
		$this->f_3028->setDbValue($row['f_3028']);
		$this->f_3029_options->setDbValue($row['f_3029_options']);
		$this->f_3029->setDbValue($row['f_3029']);
		$this->f_3031_options->setDbValue($row['f_3031_options']);
		$this->f_3031->setDbValue($row['f_3031']);
		$this->f_3032_options->setDbValue($row['f_3032_options']);
		$this->f_3032->setDbValue($row['f_3032']);
		$this->f_3033_options->setDbValue($row['f_3033_options']);
		$this->f_3033->setDbValue($row['f_3033']);
		$this->f_3034_options->setDbValue($row['f_3034_options']);
		$this->f_3034->setDbValue($row['f_3034']);
		$this->f_3035_options->setDbValue($row['f_3035_options']);
		$this->f_3035->setDbValue($row['f_3035']);
		$this->f_3036_options->setDbValue($row['f_3036_options']);
		$this->f_3036->setDbValue($row['f_3036']);
		$this->f_3037_options->setDbValue($row['f_3037_options']);
		$this->f_3037->setDbValue($row['f_3037']);
		$this->f_3038_options->setDbValue($row['f_3038_options']);
		$this->f_3038->setDbValue($row['f_3038']);
		$this->f_3039_options->setDbValue($row['f_3039_options']);
		$this->f_3039->setDbValue($row['f_3039']);
		$this->f_3040_options->setDbValue($row['f_3040_options']);
		$this->f_3040->setDbValue($row['f_3040']);
		$this->f_3041_options->setDbValue($row['f_3041_options']);
		$this->f_3041->setDbValue($row['f_3041']);
		$this->f_3042_options->setDbValue($row['f_3042_options']);
		$this->f_3042->setDbValue($row['f_3042']);
		$this->f_3043_options->setDbValue($row['f_3043_options']);
		$this->f_3043->setDbValue($row['f_3043']);
		$this->f_3044_options->setDbValue($row['f_3044_options']);
		$this->f_3044->setDbValue($row['f_3044']);
		$this->n_3045->setDbValue($row['n_3045']);
		$this->n_3045_distance->setDbValue($row['n_3045_distance']);
		$this->n_3045_distance_by->setDbValue($row['n_3045_distance_by']);
		$this->n_3046->setDbValue($row['n_3046']);
		$this->n_3046_distance->setDbValue($row['n_3046_distance']);
		$this->n_3046_distance_by->setDbValue($row['n_3046_distance_by']);
		$this->n_3047->setDbValue($row['n_3047']);
		$this->n_3047_distance->setDbValue($row['n_3047_distance']);
		$this->n_3047_distance_by->setDbValue($row['n_3047_distance_by']);
		$this->n_3048->setDbValue($row['n_3048']);
		$this->n_3048_distance->setDbValue($row['n_3048_distance']);
		$this->n_3048_distance_by->setDbValue($row['n_3048_distance_by']);
		$this->n_3049->setDbValue($row['n_3049']);
		$this->n_3049_distance->setDbValue($row['n_3049_distance']);
		$this->n_3049_distance_by->setDbValue($row['n_3049_distance_by']);
		$this->n_3050->setDbValue($row['n_3050']);
		$this->n_3050_distance->setDbValue($row['n_3050_distance']);
		$this->n_3050_distance_by->setDbValue($row['n_3050_distance_by']);
		$this->n_3051->setDbValue($row['n_3051']);
		$this->n_3051_distance->setDbValue($row['n_3051_distance']);
		$this->n_3051_distance_by->setDbValue($row['n_3051_distance_by']);
		$this->n_3052->setDbValue($row['n_3052']);
		$this->n_3052_distance->setDbValue($row['n_3052_distance']);
		$this->n_3052_distance_by->setDbValue($row['n_3052_distance_by']);
		$this->n_3053->setDbValue($row['n_3053']);
		$this->n_3053_distance->setDbValue($row['n_3053_distance']);
		$this->n_3053_distance_by->setDbValue($row['n_3053_distance_by']);
		$this->n_3054->setDbValue($row['n_3054']);
		$this->n_3054_distance->setDbValue($row['n_3054_distance']);
		$this->n_3054_distance_by->setDbValue($row['n_3054_distance_by']);
		$this->n_3055->setDbValue($row['n_3055']);
		$this->n_3055_distance->setDbValue($row['n_3055_distance']);
		$this->n_3055_distance_by->setDbValue($row['n_3055_distance_by']);
		$this->n_3056->setDbValue($row['n_3056']);
		$this->n_3056_distance->setDbValue($row['n_3056_distance']);
		$this->n_3056_distance_by->setDbValue($row['n_3056_distance_by']);
		$this->n_3057->setDbValue($row['n_3057']);
		$this->n_3057_distance->setDbValue($row['n_3057_distance']);
		$this->n_3057_distance_by->setDbValue($row['n_3057_distance_by']);
		$this->n_3058->setDbValue($row['n_3058']);
		$this->n_3058_distance->setDbValue($row['n_3058_distance']);
		$this->n_3058_distance_by->setDbValue($row['n_3058_distance_by']);
		$this->n_3059->setDbValue($row['n_3059']);
		$this->n_3059_distance->setDbValue($row['n_3059_distance']);
		$this->n_3059_distance_by->setDbValue($row['n_3059_distance_by']);
		$this->f_3060_options->setDbValue($row['f_3060_options']);
		$this->f_3060->setDbValue($row['f_3060']);
		$this->f_3061_options->setDbValue($row['f_3061_options']);
		$this->f_3061->setDbValue($row['f_3061']);
		$this->f_3062_options->setDbValue($row['f_3062_options']);
		$this->f_3062->setDbValue($row['f_3062']);
		$this->field_3063->setDbValue($row['field_3063']);
		$this->field_3064->setDbValue($row['field_3064']);
		$this->field_3065->setDbValue($row['field_3065']);
		$this->field_308->setDbValue($row['field_308']);
		$this->field_308_en_us->setDbValue($row['field_308_en_us']);
		$this->field_308_fr_fr->setDbValue($row['field_308_fr_fr']);
		$this->field_313_en_us->setDbValue($row['field_313_en_us']);
		$this->field_313_fr_fr->setDbValue($row['field_313_fr_fr']);
		$this->field_312_en_us->setDbValue($row['field_312_en_us']);
		$this->field_312_fr_fr->setDbValue($row['field_312_fr_fr']);
		$this->field_3017_en_us->setDbValue($row['field_3017_en_us']);
		$this->field_3017_fr_fr->setDbValue($row['field_3017_fr_fr']);
		$this->field_42_en_us->setDbValue($row['field_42_en_us']);
		$this->field_42_fr_fr->setDbValue($row['field_42_fr_fr']);
		$this->field_3067->setDbValue($row['field_3067']);
		$this->field_3068->setDbValue($row['field_3068']);
		$this->field_3069->setDbValue($row['field_3069']);
		$this->field_3070->setDbValue($row['field_3070']);
		$this->field_3071->setDbValue($row['field_3071']);
		$this->field_3071_en_us->setDbValue($row['field_3071_en_us']);
		$this->field_3071_fr_fr->setDbValue($row['field_3071_fr_fr']);
		$this->field_3072->setDbValue($row['field_3072']);
		$this->field_3073->setDbValue($row['field_3073']);
		$this->field_3074->setDbValue($row['field_3074']);
		$this->field_3074_en_us->setDbValue($row['field_3074_en_us']);
		$this->field_3074_fr_fr->setDbValue($row['field_3074_fr_fr']);
		$this->field_3075->setDbValue($row['field_3075']);
		$this->field_3076->setDbValue($row['field_3076']);
		$this->field_3077->setDbValue($row['field_3077']);
		$this->field_3078->setDbValue($row['field_3078']);
		$this->field_3079->setDbValue($row['field_3079']);
		$this->field_3080->setDbValue($row['field_3080']);
		$this->field_3076_en_us->setDbValue($row['field_3076_en_us']);
		$this->field_3076_fr_fr->setDbValue($row['field_3076_fr_fr']);
		$this->field_3080_en_us->setDbValue($row['field_3080_en_us']);
		$this->field_3080_fr_fr->setDbValue($row['field_3080_fr_fr']);
		$this->field_3081->setDbValue($row['field_3081']);
		$this->field_3081_en_us->setDbValue($row['field_3081_en_us']);
		$this->field_3081_fr_fr->setDbValue($row['field_3081_fr_fr']);
		$this->field_3082->setDbValue($row['field_3082']);
		$this->field_3082_en_us->setDbValue($row['field_3082_en_us']);
		$this->field_3082_fr_fr->setDbValue($row['field_3082_fr_fr']);
		$this->field_3084->setDbValue($row['field_3084']);
		$this->field_3085->setDbValue($row['field_3085']);
		$this->field_3086->setDbValue($row['field_3086']);
		$this->field_3096->setDbValue($row['field_3096']);
		$this->field_3097->setDbValue($row['field_3097']);
		$this->field_3098->setDbValue($row['field_3098']);
		$this->field_3099->setDbValue($row['field_3099']);
		$this->field_3100->setDbValue($row['field_3100']);
		$this->field_3101->setDbValue($row['field_3101']);
		$this->field_3102->setDbValue($row['field_3102']);
		$this->field_3103->setDbValue($row['field_3103']);
		$this->field_3104->setDbValue($row['field_3104']);
		$this->field_3105->setDbValue($row['field_3105']);
		$this->field_3106->setDbValue($row['field_3106']);
		$this->field_3107->setDbValue($row['field_3107']);
		$this->field_3108->setDbValue($row['field_3108']);
		$this->field_3109->setDbValue($row['field_3109']);
		$this->field_3110->setDbValue($row['field_3110']);
		$this->field_3111->setDbValue($row['field_3111']);
		$this->field_3112->setDbValue($row['field_3112']);
		$this->field_3113->setDbValue($row['field_3113']);
		$this->field_3113_en_us->setDbValue($row['field_3113_en_us']);
		$this->field_3113_fr_fr->setDbValue($row['field_3113_fr_fr']);
		$this->field_3114->setDbValue($row['field_3114']);
		$this->field_3115->setDbValue($row['field_3115']);
		$this->field_3115_si->setDbValue($row['field_3115_si']);
		$this->field_3115_unit->setDbValue($row['field_3115_unit']);
		$this->field_3116->setDbValue($row['field_3116']);
		$this->field_3117->setDbValue($row['field_3117']);
		$this->field_3117_en_us->setDbValue($row['field_3117_en_us']);
		$this->field_3117_fr_fr->setDbValue($row['field_3117_fr_fr']);
		$this->field_3118->setDbValue($row['field_3118']);
		$this->field_3118_en_us->setDbValue($row['field_3118_en_us']);
		$this->field_3118_fr_fr->setDbValue($row['field_3118_fr_fr']);
		$this->field_3119->setDbValue($row['field_3119']);
		$this->field_3119_en_us->setDbValue($row['field_3119_en_us']);
		$this->field_3119_fr_fr->setDbValue($row['field_3119_fr_fr']);
		$this->field_3120->setDbValue($row['field_3120']);
		$this->field_3120_en_us->setDbValue($row['field_3120_en_us']);
		$this->field_3120_fr_fr->setDbValue($row['field_3120_fr_fr']);
		$this->field_3121->setDbValue($row['field_3121']);
		$this->field_3122->setDbValue($row['field_3122']);
		$this->field_3122_si->setDbValue($row['field_3122_si']);
		$this->field_3122_unit->setDbValue($row['field_3122_unit']);
		$this->field_3123->setDbValue($row['field_3123']);
		$this->field_3124->setDbValue($row['field_3124']);
		$this->field_3125->setDbValue($row['field_3125']);
		$this->field_3126->setDbValue($row['field_3126']);
		$this->field_3127->setDbValue($row['field_3127']);
		$this->field_3128->setDbValue($row['field_3128']);
		$this->field_3129->setDbValue($row['field_3129']);
		$this->field_3130->setDbValue($row['field_3130']);
		$this->field_3131->setDbValue($row['field_3131']);
		$this->field_3132->setDbValue($row['field_3132']);
		$this->field_3133->setDbValue($row['field_3133']);
		$this->field_3134->setDbValue($row['field_3134']);
		$this->field_3135->setDbValue($row['field_3135']);
		$this->field_3136->setDbValue($row['field_3136']);
		$this->field_3137->setDbValue($row['field_3137']);
		$this->field_3138->setDbValue($row['field_3138']);
		$this->field_3139->setDbValue($row['field_3139']);
		$this->field_3140->setDbValue($row['field_3140']);
		$this->field_3141->setDbValue($row['field_3141']);
		$this->field_3142->setDbValue($row['field_3142']);
		$this->field_3143->setDbValue($row['field_3143']);
		$this->field_3144->setDbValue($row['field_3144']);
		$this->field_3145->setDbValue($row['field_3145']);
		$this->field_3146->setDbValue($row['field_3146']);
		$this->field_3147->setDbValue($row['field_3147']);
		$this->field_3148->setDbValue($row['field_3148']);
		$this->field_3149->setDbValue($row['field_3149']);
		$this->field_3150->setDbValue($row['field_3150']);
		$this->field_3151->setDbValue($row['field_3151']);
		$this->field_3152->setDbValue($row['field_3152']);
		$this->field_3153->setDbValue($row['field_3153']);
		$this->field_3154->setDbValue($row['field_3154']);
		$this->field_3155->setDbValue($row['field_3155']);
		$this->field_3156->setDbValue($row['field_3156']);
		$this->field_3157->setDbValue($row['field_3157']);
		$this->field_3158->setDbValue($row['field_3158']);
		$this->field_3159->setDbValue($row['field_3159']);
		$this->field_3160->setDbValue($row['field_3160']);
		$this->field_3161->setDbValue($row['field_3161']);
		$this->field_3162->setDbValue($row['field_3162']);
		$this->field_3163->setDbValue($row['field_3163']);
		$this->field_3164->setDbValue($row['field_3164']);
		$this->field_3165->setDbValue($row['field_3165']);
		$this->field_3166->setDbValue($row['field_3166']);
		$this->field_3167->setDbValue($row['field_3167']);
		$this->field_3168->setDbValue($row['field_3168']);
		$this->field_3169->setDbValue($row['field_3169']);
		$this->field_3170->setDbValue($row['field_3170']);
		$this->field_3171->setDbValue($row['field_3171']);
		$this->field_3172->setDbValue($row['field_3172']);
		$this->field_3173->setDbValue($row['field_3173']);
		$this->field_3173_si->setDbValue($row['field_3173_si']);
		$this->field_3173_unit->setDbValue($row['field_3173_unit']);
		$this->field_3180->setDbValue($row['field_3180']);
		$this->field_3180_en_us->setDbValue($row['field_3180_en_us']);
		$this->field_3180_fr_fr->setDbValue($row['field_3180_fr_fr']);
		$this->field_3181->setDbValue($row['field_3181']);
		$this->field_3182->setDbValue($row['field_3182']);
		$this->n_3189->setDbValue($row['n_3189']);
		$this->n_3189_distance->setDbValue($row['n_3189_distance']);
		$this->n_3189_distance_by->setDbValue($row['n_3189_distance_by']);
		$this->field_3190->setDbValue($row['field_3190']);
		$this->field_3192->setDbValue($row['field_3192']);
		$this->field_3193->setDbValue($row['field_3193']);
		$this->field_3195->setDbValue($row['field_3195']);
		$this->field_3114_en_us->setDbValue($row['field_3114_en_us']);
		$this->field_3114_fr_fr->setDbValue($row['field_3114_fr_fr']);
		$this->n_3196->setDbValue($row['n_3196']);
		$this->n_3196_distance->setDbValue($row['n_3196_distance']);
		$this->n_3196_distance_by->setDbValue($row['n_3196_distance_by']);
		$this->field_3197->setDbValue($row['field_3197']);
		$this->field_3197_si->setDbValue($row['field_3197_si']);
		$this->field_3197_unit->setDbValue($row['field_3197_unit']);
	}

	// Return a row with default values
	protected function newRow()
	{
		$row = [];
		$row['id'] = NULL;
		$row['kind'] = NULL;
		$row['deleted'] = NULL;
		$row['mls_id'] = NULL;
		$row['mls_id_num'] = NULL;
		$row['parent'] = NULL;
		$row['pic_numb'] = NULL;
		$row['user_id'] = NULL;
		$row['listing'] = NULL;
		$row['property_type'] = NULL;
		$row['location1_id'] = NULL;
		$row['location2_id'] = NULL;
		$row['location3_id'] = NULL;
		$row['location4_id'] = NULL;
		$row['location5_id'] = NULL;
		$row['location6_id'] = NULL;
		$row['location7_id'] = NULL;
		$row['location1_name'] = NULL;
		$row['location2_name'] = NULL;
		$row['location3_name'] = NULL;
		$row['location4_name'] = NULL;
		$row['location5_name'] = NULL;
		$row['location6_name'] = NULL;
		$row['location7_name'] = NULL;
		$row['show_address'] = NULL;
		$row['show_marker'] = NULL;
		$row['price'] = NULL;
		$row['price_unit'] = NULL;
		$row['price_si'] = NULL;
		$row['price_period'] = NULL;
		$row['bedrooms'] = NULL;
		$row['rooms'] = NULL;
		$row['bathrooms'] = NULL;
		$row['living_area'] = NULL;
		$row['living_area_unit'] = NULL;
		$row['living_area_si'] = NULL;
		$row['lot_area'] = NULL;
		$row['lot_area_unit'] = NULL;
		$row['lot_area_si'] = NULL;
		$row['googlemap_lt'] = NULL;
		$row['googlemap_ln'] = NULL;
		$row['finalized'] = NULL;
		$row['add_date'] = NULL;
		$row['last_finalize_date'] = NULL;
		$row['expire_days'] = NULL;
		$row['confirmed'] = NULL;
		$row['expired'] = NULL;
		$row['build_year'] = NULL;
		$row['zip_id'] = NULL;
		$row['zip_name'] = NULL;
		$row['last_modified_time_stamp'] = NULL;
		$row['post_code'] = NULL;
		$row['meta_description'] = NULL;
		$row['meta_description_manual'] = NULL;
		$row['meta_keywords'] = NULL;
		$row['meta_keywords_manual'] = NULL;
		$row['street_no'] = NULL;
		$row['sp_featured'] = NULL;
		$row['sp_hot'] = NULL;
		$row['sp_openhouse'] = NULL;
		$row['sp_forclosure'] = NULL;
		$row['textsearch'] = NULL;
		$row['location_text'] = NULL;
		$row['field_42'] = NULL;
		$row['field_312'] = NULL;
		$row['field_313'] = NULL;
		$row['field_7'] = NULL;
		$row['n_103'] = NULL;
		$row['n_103_distance'] = NULL;
		$row['n_103_distance_by'] = NULL;
		$row['n_105'] = NULL;
		$row['n_105_distance'] = NULL;
		$row['n_105_distance_by'] = NULL;
		$row['n_107'] = NULL;
		$row['n_107_distance'] = NULL;
		$row['n_107_distance_by'] = NULL;
		$row['n_108'] = NULL;
		$row['n_108_distance'] = NULL;
		$row['n_108_distance_by'] = NULL;
		$row['n_109'] = NULL;
		$row['n_109_distance'] = NULL;
		$row['n_109_distance_by'] = NULL;
		$row['f_131_options'] = NULL;
		$row['f_131'] = NULL;
		$row['f_137_options'] = NULL;
		$row['f_137'] = NULL;
		$row['f_139_options'] = NULL;
		$row['f_139'] = NULL;
		$row['f_144_options'] = NULL;
		$row['f_144'] = NULL;
		$row['f_146_options'] = NULL;
		$row['f_146'] = NULL;
		$row['f_149_options'] = NULL;
		$row['f_149'] = NULL;
		$row['f_150_options'] = NULL;
		$row['f_150'] = NULL;
		$row['f_156_options'] = NULL;
		$row['f_156'] = NULL;
		$row['f_157_options'] = NULL;
		$row['f_157'] = NULL;
		$row['f_159_options'] = NULL;
		$row['f_159'] = NULL;
		$row['f_161_options'] = NULL;
		$row['f_161'] = NULL;
		$row['f_163_options'] = NULL;
		$row['f_163'] = NULL;
		$row['f_165_options'] = NULL;
		$row['f_165'] = NULL;
		$row['f_166_options'] = NULL;
		$row['f_166'] = NULL;
		$row['ref_id'] = NULL;
		$row['field_54'] = NULL;
		$row['half_bathrooms'] = NULL;
		$row['field_55'] = NULL;
		$row['rendered'] = NULL;
		$row['alias'] = NULL;
		$row['source'] = NULL;
		$row['last_sync_date'] = NULL;
		$row['street_suffix'] = NULL;
		$row['energy_tag'] = NULL;
		$row['field_3006'] = NULL;
		$row['field_3007'] = NULL;
		$row['field_3008'] = NULL;
		$row['importer_structure_id'] = NULL;
		$row['importer_params'] = NULL;
		$row['field_3009'] = NULL;
		$row['field_3010'] = NULL;
		$row['field_3012'] = NULL;
		$row['rendered_en_us'] = NULL;
		$row['textsearch_en_us'] = NULL;
		$row['rendered_fr_fr'] = NULL;
		$row['textsearch_fr_fr'] = NULL;
		$row['field_3013'] = NULL;
		$row['field_3014'] = NULL;
		$row['f_3014_options'] = NULL;
		$row['f_3014'] = NULL;
		$row['field_3015'] = NULL;
		$row['field_3016'] = NULL;
		$row['field_3017'] = NULL;
		$row['f_3018_options'] = NULL;
		$row['f_3018'] = NULL;
		$row['f_3019_options'] = NULL;
		$row['f_3019'] = NULL;
		$row['f_3020_options'] = NULL;
		$row['f_3020'] = NULL;
		$row['f_3021_options'] = NULL;
		$row['f_3021'] = NULL;
		$row['f_3022_options'] = NULL;
		$row['f_3022'] = NULL;
		$row['f_3023_options'] = NULL;
		$row['f_3023'] = NULL;
		$row['f_3024_options'] = NULL;
		$row['f_3024'] = NULL;
		$row['f_3025_options'] = NULL;
		$row['f_3025'] = NULL;
		$row['f_3026_options'] = NULL;
		$row['f_3026'] = NULL;
		$row['f_3027_options'] = NULL;
		$row['f_3027'] = NULL;
		$row['f_3028_options'] = NULL;
		$row['f_3028'] = NULL;
		$row['f_3029_options'] = NULL;
		$row['f_3029'] = NULL;
		$row['f_3031_options'] = NULL;
		$row['f_3031'] = NULL;
		$row['f_3032_options'] = NULL;
		$row['f_3032'] = NULL;
		$row['f_3033_options'] = NULL;
		$row['f_3033'] = NULL;
		$row['f_3034_options'] = NULL;
		$row['f_3034'] = NULL;
		$row['f_3035_options'] = NULL;
		$row['f_3035'] = NULL;
		$row['f_3036_options'] = NULL;
		$row['f_3036'] = NULL;
		$row['f_3037_options'] = NULL;
		$row['f_3037'] = NULL;
		$row['f_3038_options'] = NULL;
		$row['f_3038'] = NULL;
		$row['f_3039_options'] = NULL;
		$row['f_3039'] = NULL;
		$row['f_3040_options'] = NULL;
		$row['f_3040'] = NULL;
		$row['f_3041_options'] = NULL;
		$row['f_3041'] = NULL;
		$row['f_3042_options'] = NULL;
		$row['f_3042'] = NULL;
		$row['f_3043_options'] = NULL;
		$row['f_3043'] = NULL;
		$row['f_3044_options'] = NULL;
		$row['f_3044'] = NULL;
		$row['n_3045'] = NULL;
		$row['n_3045_distance'] = NULL;
		$row['n_3045_distance_by'] = NULL;
		$row['n_3046'] = NULL;
		$row['n_3046_distance'] = NULL;
		$row['n_3046_distance_by'] = NULL;
		$row['n_3047'] = NULL;
		$row['n_3047_distance'] = NULL;
		$row['n_3047_distance_by'] = NULL;
		$row['n_3048'] = NULL;
		$row['n_3048_distance'] = NULL;
		$row['n_3048_distance_by'] = NULL;
		$row['n_3049'] = NULL;
		$row['n_3049_distance'] = NULL;
		$row['n_3049_distance_by'] = NULL;
		$row['n_3050'] = NULL;
		$row['n_3050_distance'] = NULL;
		$row['n_3050_distance_by'] = NULL;
		$row['n_3051'] = NULL;
		$row['n_3051_distance'] = NULL;
		$row['n_3051_distance_by'] = NULL;
		$row['n_3052'] = NULL;
		$row['n_3052_distance'] = NULL;
		$row['n_3052_distance_by'] = NULL;
		$row['n_3053'] = NULL;
		$row['n_3053_distance'] = NULL;
		$row['n_3053_distance_by'] = NULL;
		$row['n_3054'] = NULL;
		$row['n_3054_distance'] = NULL;
		$row['n_3054_distance_by'] = NULL;
		$row['n_3055'] = NULL;
		$row['n_3055_distance'] = NULL;
		$row['n_3055_distance_by'] = NULL;
		$row['n_3056'] = NULL;
		$row['n_3056_distance'] = NULL;
		$row['n_3056_distance_by'] = NULL;
		$row['n_3057'] = NULL;
		$row['n_3057_distance'] = NULL;
		$row['n_3057_distance_by'] = NULL;
		$row['n_3058'] = NULL;
		$row['n_3058_distance'] = NULL;
		$row['n_3058_distance_by'] = NULL;
		$row['n_3059'] = NULL;
		$row['n_3059_distance'] = NULL;
		$row['n_3059_distance_by'] = NULL;
		$row['f_3060_options'] = NULL;
		$row['f_3060'] = NULL;
		$row['f_3061_options'] = NULL;
		$row['f_3061'] = NULL;
		$row['f_3062_options'] = NULL;
		$row['f_3062'] = NULL;
		$row['field_3063'] = NULL;
		$row['field_3064'] = NULL;
		$row['field_3065'] = NULL;
		$row['field_308'] = NULL;
		$row['field_308_en_us'] = NULL;
		$row['field_308_fr_fr'] = NULL;
		$row['field_313_en_us'] = NULL;
		$row['field_313_fr_fr'] = NULL;
		$row['field_312_en_us'] = NULL;
		$row['field_312_fr_fr'] = NULL;
		$row['field_3017_en_us'] = NULL;
		$row['field_3017_fr_fr'] = NULL;
		$row['field_42_en_us'] = NULL;
		$row['field_42_fr_fr'] = NULL;
		$row['field_3067'] = NULL;
		$row['field_3068'] = NULL;
		$row['field_3069'] = NULL;
		$row['field_3070'] = NULL;
		$row['field_3071'] = NULL;
		$row['field_3071_en_us'] = NULL;
		$row['field_3071_fr_fr'] = NULL;
		$row['field_3072'] = NULL;
		$row['field_3073'] = NULL;
		$row['field_3074'] = NULL;
		$row['field_3074_en_us'] = NULL;
		$row['field_3074_fr_fr'] = NULL;
		$row['field_3075'] = NULL;
		$row['field_3076'] = NULL;
		$row['field_3077'] = NULL;
		$row['field_3078'] = NULL;
		$row['field_3079'] = NULL;
		$row['field_3080'] = NULL;
		$row['field_3076_en_us'] = NULL;
		$row['field_3076_fr_fr'] = NULL;
		$row['field_3080_en_us'] = NULL;
		$row['field_3080_fr_fr'] = NULL;
		$row['field_3081'] = NULL;
		$row['field_3081_en_us'] = NULL;
		$row['field_3081_fr_fr'] = NULL;
		$row['field_3082'] = NULL;
		$row['field_3082_en_us'] = NULL;
		$row['field_3082_fr_fr'] = NULL;
		$row['field_3084'] = NULL;
		$row['field_3085'] = NULL;
		$row['field_3086'] = NULL;
		$row['field_3096'] = NULL;
		$row['field_3097'] = NULL;
		$row['field_3098'] = NULL;
		$row['field_3099'] = NULL;
		$row['field_3100'] = NULL;
		$row['field_3101'] = NULL;
		$row['field_3102'] = NULL;
		$row['field_3103'] = NULL;
		$row['field_3104'] = NULL;
		$row['field_3105'] = NULL;
		$row['field_3106'] = NULL;
		$row['field_3107'] = NULL;
		$row['field_3108'] = NULL;
		$row['field_3109'] = NULL;
		$row['field_3110'] = NULL;
		$row['field_3111'] = NULL;
		$row['field_3112'] = NULL;
		$row['field_3113'] = NULL;
		$row['field_3113_en_us'] = NULL;
		$row['field_3113_fr_fr'] = NULL;
		$row['field_3114'] = NULL;
		$row['field_3115'] = NULL;
		$row['field_3115_si'] = NULL;
		$row['field_3115_unit'] = NULL;
		$row['field_3116'] = NULL;
		$row['field_3117'] = NULL;
		$row['field_3117_en_us'] = NULL;
		$row['field_3117_fr_fr'] = NULL;
		$row['field_3118'] = NULL;
		$row['field_3118_en_us'] = NULL;
		$row['field_3118_fr_fr'] = NULL;
		$row['field_3119'] = NULL;
		$row['field_3119_en_us'] = NULL;
		$row['field_3119_fr_fr'] = NULL;
		$row['field_3120'] = NULL;
		$row['field_3120_en_us'] = NULL;
		$row['field_3120_fr_fr'] = NULL;
		$row['field_3121'] = NULL;
		$row['field_3122'] = NULL;
		$row['field_3122_si'] = NULL;
		$row['field_3122_unit'] = NULL;
		$row['field_3123'] = NULL;
		$row['field_3124'] = NULL;
		$row['field_3125'] = NULL;
		$row['field_3126'] = NULL;
		$row['field_3127'] = NULL;
		$row['field_3128'] = NULL;
		$row['field_3129'] = NULL;
		$row['field_3130'] = NULL;
		$row['field_3131'] = NULL;
		$row['field_3132'] = NULL;
		$row['field_3133'] = NULL;
		$row['field_3134'] = NULL;
		$row['field_3135'] = NULL;
		$row['field_3136'] = NULL;
		$row['field_3137'] = NULL;
		$row['field_3138'] = NULL;
		$row['field_3139'] = NULL;
		$row['field_3140'] = NULL;
		$row['field_3141'] = NULL;
		$row['field_3142'] = NULL;
		$row['field_3143'] = NULL;
		$row['field_3144'] = NULL;
		$row['field_3145'] = NULL;
		$row['field_3146'] = NULL;
		$row['field_3147'] = NULL;
		$row['field_3148'] = NULL;
		$row['field_3149'] = NULL;
		$row['field_3150'] = NULL;
		$row['field_3151'] = NULL;
		$row['field_3152'] = NULL;
		$row['field_3153'] = NULL;
		$row['field_3154'] = NULL;
		$row['field_3155'] = NULL;
		$row['field_3156'] = NULL;
		$row['field_3157'] = NULL;
		$row['field_3158'] = NULL;
		$row['field_3159'] = NULL;
		$row['field_3160'] = NULL;
		$row['field_3161'] = NULL;
		$row['field_3162'] = NULL;
		$row['field_3163'] = NULL;
		$row['field_3164'] = NULL;
		$row['field_3165'] = NULL;
		$row['field_3166'] = NULL;
		$row['field_3167'] = NULL;
		$row['field_3168'] = NULL;
		$row['field_3169'] = NULL;
		$row['field_3170'] = NULL;
		$row['field_3171'] = NULL;
		$row['field_3172'] = NULL;
		$row['field_3173'] = NULL;
		$row['field_3173_si'] = NULL;
		$row['field_3173_unit'] = NULL;
		$row['field_3180'] = NULL;
		$row['field_3180_en_us'] = NULL;
		$row['field_3180_fr_fr'] = NULL;
		$row['field_3181'] = NULL;
		$row['field_3182'] = NULL;
		$row['n_3189'] = NULL;
		$row['n_3189_distance'] = NULL;
		$row['n_3189_distance_by'] = NULL;
		$row['field_3190'] = NULL;
		$row['field_3192'] = NULL;
		$row['field_3193'] = NULL;
		$row['field_3195'] = NULL;
		$row['field_3114_en_us'] = NULL;
		$row['field_3114_fr_fr'] = NULL;
		$row['n_3196'] = NULL;
		$row['n_3196_distance'] = NULL;
		$row['n_3196_distance_by'] = NULL;
		$row['field_3197'] = NULL;
		$row['field_3197_si'] = NULL;
		$row['field_3197_unit'] = NULL;
		return $row;
	}

	// Render row values based on field settings
	public function renderRow()
	{
		global $Security, $Language, $CurrentLanguage;

		// Initialize URLs
		// Convert decimal values if posted back

		if ($this->field_3197->FormValue == $this->field_3197->CurrentValue && is_numeric(ConvertToFloatString($this->field_3197->CurrentValue)))
			$this->field_3197->CurrentValue = ConvertToFloatString($this->field_3197->CurrentValue);

		// Convert decimal values if posted back
		if ($this->field_3197_si->FormValue == $this->field_3197_si->CurrentValue && is_numeric(ConvertToFloatString($this->field_3197_si->CurrentValue)))
			$this->field_3197_si->CurrentValue = ConvertToFloatString($this->field_3197_si->CurrentValue);

		// Call Row_Rendering event
		$this->Row_Rendering();

		// Common render codes for all row types
		// id
		// kind
		// deleted
		// mls_id
		// mls_id_num
		// parent
		// pic_numb
		// user_id
		// listing
		// property_type
		// location1_id
		// location2_id
		// location3_id
		// location4_id
		// location5_id
		// location6_id
		// location7_id
		// location1_name
		// location2_name
		// location3_name
		// location4_name
		// location5_name
		// location6_name
		// location7_name
		// show_address
		// show_marker
		// price
		// price_unit
		// price_si
		// price_period
		// bedrooms
		// rooms
		// bathrooms
		// living_area
		// living_area_unit
		// living_area_si
		// lot_area
		// lot_area_unit
		// lot_area_si
		// googlemap_lt
		// googlemap_ln
		// finalized
		// add_date
		// last_finalize_date
		// expire_days
		// confirmed
		// expired
		// build_year
		// zip_id
		// zip_name
		// last_modified_time_stamp
		// post_code
		// meta_description
		// meta_description_manual
		// meta_keywords
		// meta_keywords_manual
		// street_no
		// sp_featured
		// sp_hot
		// sp_openhouse
		// sp_forclosure
		// textsearch
		// location_text
		// field_42
		// field_312
		// field_313
		// field_7
		// n_103
		// n_103_distance
		// n_103_distance_by
		// n_105
		// n_105_distance
		// n_105_distance_by
		// n_107
		// n_107_distance
		// n_107_distance_by
		// n_108
		// n_108_distance
		// n_108_distance_by
		// n_109
		// n_109_distance
		// n_109_distance_by
		// f_131_options
		// f_131
		// f_137_options
		// f_137
		// f_139_options
		// f_139
		// f_144_options
		// f_144
		// f_146_options
		// f_146
		// f_149_options
		// f_149
		// f_150_options
		// f_150
		// f_156_options
		// f_156
		// f_157_options
		// f_157
		// f_159_options
		// f_159
		// f_161_options
		// f_161
		// f_163_options
		// f_163
		// f_165_options
		// f_165
		// f_166_options
		// f_166
		// ref_id
		// field_54
		// half_bathrooms
		// field_55
		// rendered
		// alias
		// source
		// last_sync_date
		// street_suffix
		// energy_tag
		// field_3006
		// field_3007
		// field_3008
		// importer_structure_id
		// importer_params
		// field_3009
		// field_3010
		// field_3012
		// rendered_en_us
		// textsearch_en_us
		// rendered_fr_fr
		// textsearch_fr_fr
		// field_3013
		// field_3014
		// f_3014_options
		// f_3014
		// field_3015
		// field_3016
		// field_3017
		// f_3018_options
		// f_3018
		// f_3019_options
		// f_3019
		// f_3020_options
		// f_3020
		// f_3021_options
		// f_3021
		// f_3022_options
		// f_3022
		// f_3023_options
		// f_3023
		// f_3024_options
		// f_3024
		// f_3025_options
		// f_3025
		// f_3026_options
		// f_3026
		// f_3027_options
		// f_3027
		// f_3028_options
		// f_3028
		// f_3029_options
		// f_3029
		// f_3031_options
		// f_3031
		// f_3032_options
		// f_3032
		// f_3033_options
		// f_3033
		// f_3034_options
		// f_3034
		// f_3035_options
		// f_3035
		// f_3036_options
		// f_3036
		// f_3037_options
		// f_3037
		// f_3038_options
		// f_3038
		// f_3039_options
		// f_3039
		// f_3040_options
		// f_3040
		// f_3041_options
		// f_3041
		// f_3042_options
		// f_3042
		// f_3043_options
		// f_3043
		// f_3044_options
		// f_3044
		// n_3045
		// n_3045_distance
		// n_3045_distance_by
		// n_3046
		// n_3046_distance
		// n_3046_distance_by
		// n_3047
		// n_3047_distance
		// n_3047_distance_by
		// n_3048
		// n_3048_distance
		// n_3048_distance_by
		// n_3049
		// n_3049_distance
		// n_3049_distance_by
		// n_3050
		// n_3050_distance
		// n_3050_distance_by
		// n_3051
		// n_3051_distance
		// n_3051_distance_by
		// n_3052
		// n_3052_distance
		// n_3052_distance_by
		// n_3053
		// n_3053_distance
		// n_3053_distance_by
		// n_3054
		// n_3054_distance
		// n_3054_distance_by
		// n_3055
		// n_3055_distance
		// n_3055_distance_by
		// n_3056
		// n_3056_distance
		// n_3056_distance_by
		// n_3057
		// n_3057_distance
		// n_3057_distance_by
		// n_3058
		// n_3058_distance
		// n_3058_distance_by
		// n_3059
		// n_3059_distance
		// n_3059_distance_by
		// f_3060_options
		// f_3060
		// f_3061_options
		// f_3061
		// f_3062_options
		// f_3062
		// field_3063
		// field_3064
		// field_3065
		// field_308
		// field_308_en_us
		// field_308_fr_fr
		// field_313_en_us
		// field_313_fr_fr
		// field_312_en_us
		// field_312_fr_fr
		// field_3017_en_us
		// field_3017_fr_fr
		// field_42_en_us
		// field_42_fr_fr
		// field_3067
		// field_3068
		// field_3069
		// field_3070
		// field_3071
		// field_3071_en_us
		// field_3071_fr_fr
		// field_3072
		// field_3073
		// field_3074
		// field_3074_en_us
		// field_3074_fr_fr
		// field_3075
		// field_3076
		// field_3077
		// field_3078
		// field_3079
		// field_3080
		// field_3076_en_us
		// field_3076_fr_fr
		// field_3080_en_us
		// field_3080_fr_fr
		// field_3081
		// field_3081_en_us
		// field_3081_fr_fr
		// field_3082
		// field_3082_en_us
		// field_3082_fr_fr
		// field_3084
		// field_3085
		// field_3086
		// field_3096
		// field_3097
		// field_3098
		// field_3099
		// field_3100
		// field_3101
		// field_3102
		// field_3103
		// field_3104
		// field_3105
		// field_3106
		// field_3107
		// field_3108
		// field_3109
		// field_3110
		// field_3111
		// field_3112
		// field_3113
		// field_3113_en_us
		// field_3113_fr_fr
		// field_3114
		// field_3115
		// field_3115_si
		// field_3115_unit
		// field_3116
		// field_3117
		// field_3117_en_us
		// field_3117_fr_fr
		// field_3118
		// field_3118_en_us
		// field_3118_fr_fr
		// field_3119
		// field_3119_en_us
		// field_3119_fr_fr
		// field_3120
		// field_3120_en_us
		// field_3120_fr_fr
		// field_3121
		// field_3122
		// field_3122_si
		// field_3122_unit
		// field_3123
		// field_3124
		// field_3125
		// field_3126
		// field_3127
		// field_3128
		// field_3129
		// field_3130
		// field_3131
		// field_3132
		// field_3133
		// field_3134
		// field_3135
		// field_3136
		// field_3137
		// field_3138
		// field_3139
		// field_3140
		// field_3141
		// field_3142
		// field_3143
		// field_3144
		// field_3145
		// field_3146
		// field_3147
		// field_3148
		// field_3149
		// field_3150
		// field_3151
		// field_3152
		// field_3153
		// field_3154
		// field_3155
		// field_3156
		// field_3157
		// field_3158
		// field_3159
		// field_3160
		// field_3161
		// field_3162
		// field_3163
		// field_3164
		// field_3165
		// field_3166
		// field_3167
		// field_3168
		// field_3169
		// field_3170
		// field_3171
		// field_3172
		// field_3173
		// field_3173_si
		// field_3173_unit
		// field_3180
		// field_3180_en_us
		// field_3180_fr_fr
		// field_3181
		// field_3182
		// n_3189
		// n_3189_distance
		// n_3189_distance_by
		// field_3190
		// field_3192
		// field_3193
		// field_3195
		// field_3114_en_us
		// field_3114_fr_fr
		// n_3196
		// n_3196_distance
		// n_3196_distance_by
		// field_3197
		// field_3197_si
		// field_3197_unit

		if ($this->RowType == ROWTYPE_VIEW) { // View row

			// id
			$this->id->ViewValue = $this->id->CurrentValue;
			$this->id->ViewCustomAttributes = "";

			// kind
			$this->kind->ViewValue = $this->kind->CurrentValue;
			$this->kind->ViewValue = FormatNumber($this->kind->ViewValue, 0, -2, -2, -2);
			$this->kind->ViewCustomAttributes = "";

			// deleted
			if (ConvertToBool($this->deleted->CurrentValue)) {
				$this->deleted->ViewValue = $this->deleted->tagCaption(1) != "" ? $this->deleted->tagCaption(1) : "Yes";
			} else {
				$this->deleted->ViewValue = $this->deleted->tagCaption(2) != "" ? $this->deleted->tagCaption(2) : "No";
			}
			$this->deleted->ViewCustomAttributes = "";

			// mls_id
			$this->mls_id->ViewValue = $this->mls_id->CurrentValue;
			$this->mls_id->ViewCustomAttributes = "";

			// mls_id_num
			$this->mls_id_num->ViewValue = $this->mls_id_num->CurrentValue;
			$this->mls_id_num->ViewValue = FormatNumber($this->mls_id_num->ViewValue, 0, -2, -2, -2);
			$this->mls_id_num->ViewCustomAttributes = "";

			// parent
			$this->parent->ViewValue = $this->parent->CurrentValue;
			$this->parent->ViewValue = FormatNumber($this->parent->ViewValue, 0, -2, -2, -2);
			$this->parent->ViewCustomAttributes = "";

			// pic_numb
			$this->pic_numb->ViewValue = $this->pic_numb->CurrentValue;
			$this->pic_numb->ViewValue = FormatNumber($this->pic_numb->ViewValue, 0, -2, -2, -2);
			$this->pic_numb->ViewCustomAttributes = "";

			// user_id
			$this->user_id->ViewValue = $this->user_id->CurrentValue;
			$this->user_id->ViewValue = FormatNumber($this->user_id->ViewValue, 0, -2, -2, -2);
			$this->user_id->ViewCustomAttributes = "";

			// listing
			$this->listing->ViewValue = $this->listing->CurrentValue;
			$this->listing->ViewValue = FormatNumber($this->listing->ViewValue, 0, -2, -2, -2);
			$this->listing->ViewCustomAttributes = "";

			// property_type
			$this->property_type->ViewValue = $this->property_type->CurrentValue;
			$this->property_type->ViewValue = FormatNumber($this->property_type->ViewValue, 0, -2, -2, -2);
			$this->property_type->ViewCustomAttributes = "";

			// location1_id
			$this->location1_id->ViewValue = $this->location1_id->CurrentValue;
			$this->location1_id->ViewValue = FormatNumber($this->location1_id->ViewValue, 0, -2, -2, -2);
			$this->location1_id->ViewCustomAttributes = "";

			// location2_id
			$this->location2_id->ViewValue = $this->location2_id->CurrentValue;
			$this->location2_id->ViewValue = FormatNumber($this->location2_id->ViewValue, 0, -2, -2, -2);
			$this->location2_id->ViewCustomAttributes = "";

			// location3_id
			$this->location3_id->ViewValue = $this->location3_id->CurrentValue;
			$this->location3_id->ViewValue = FormatNumber($this->location3_id->ViewValue, 0, -2, -2, -2);
			$this->location3_id->ViewCustomAttributes = "";

			// location4_id
			$this->location4_id->ViewValue = $this->location4_id->CurrentValue;
			$this->location4_id->ViewValue = FormatNumber($this->location4_id->ViewValue, 0, -2, -2, -2);
			$this->location4_id->ViewCustomAttributes = "";

			// location5_id
			$this->location5_id->ViewValue = $this->location5_id->CurrentValue;
			$this->location5_id->ViewValue = FormatNumber($this->location5_id->ViewValue, 0, -2, -2, -2);
			$this->location5_id->ViewCustomAttributes = "";

			// location6_id
			$this->location6_id->ViewValue = $this->location6_id->CurrentValue;
			$this->location6_id->ViewValue = FormatNumber($this->location6_id->ViewValue, 0, -2, -2, -2);
			$this->location6_id->ViewCustomAttributes = "";

			// location7_id
			$this->location7_id->ViewValue = $this->location7_id->CurrentValue;
			$this->location7_id->ViewValue = FormatNumber($this->location7_id->ViewValue, 0, -2, -2, -2);
			$this->location7_id->ViewCustomAttributes = "";

			// location1_name
			$this->location1_name->ViewValue = $this->location1_name->CurrentValue;
			$this->location1_name->ViewCustomAttributes = "";

			// location2_name
			$this->location2_name->ViewValue = $this->location2_name->CurrentValue;
			$this->location2_name->ViewCustomAttributes = "";

			// location3_name
			$this->location3_name->ViewValue = $this->location3_name->CurrentValue;
			$this->location3_name->ViewCustomAttributes = "";

			// location4_name
			$this->location4_name->ViewValue = $this->location4_name->CurrentValue;
			$this->location4_name->ViewCustomAttributes = "";

			// location5_name
			$this->location5_name->ViewValue = $this->location5_name->CurrentValue;
			$this->location5_name->ViewCustomAttributes = "";

			// location6_name
			$this->location6_name->ViewValue = $this->location6_name->CurrentValue;
			$this->location6_name->ViewCustomAttributes = "";

			// location7_name
			$this->location7_name->ViewValue = $this->location7_name->CurrentValue;
			$this->location7_name->ViewCustomAttributes = "";

			// show_address
			$this->show_address->ViewValue = $this->show_address->CurrentValue;
			$this->show_address->ViewValue = FormatNumber($this->show_address->ViewValue, 0, -2, -2, -2);
			$this->show_address->ViewCustomAttributes = "";

			// show_marker
			$this->show_marker->ViewValue = $this->show_marker->CurrentValue;
			$this->show_marker->ViewValue = FormatNumber($this->show_marker->ViewValue, 0, -2, -2, -2);
			$this->show_marker->ViewCustomAttributes = "";

			// price
			$this->price->ViewValue = $this->price->CurrentValue;
			$this->price->ViewValue = FormatNumber($this->price->ViewValue, 2, -2, -2, -2);
			$this->price->ViewCustomAttributes = "";

			// price_unit
			$this->price_unit->ViewValue = $this->price_unit->CurrentValue;
			$this->price_unit->ViewValue = FormatNumber($this->price_unit->ViewValue, 0, -2, -2, -2);
			$this->price_unit->ViewCustomAttributes = "";

			// price_si
			$this->price_si->ViewValue = $this->price_si->CurrentValue;
			$this->price_si->ViewValue = FormatNumber($this->price_si->ViewValue, 2, -2, -2, -2);
			$this->price_si->ViewCustomAttributes = "";

			// price_period
			$this->price_period->ViewValue = $this->price_period->CurrentValue;
			$this->price_period->ViewValue = FormatNumber($this->price_period->ViewValue, 0, -2, -2, -2);
			$this->price_period->ViewCustomAttributes = "";

			// bedrooms
			$this->bedrooms->ViewValue = $this->bedrooms->CurrentValue;
			$this->bedrooms->ViewValue = FormatNumber($this->bedrooms->ViewValue, 2, -2, -2, -2);
			$this->bedrooms->ViewCustomAttributes = "";

			// rooms
			$this->rooms->ViewValue = $this->rooms->CurrentValue;
			$this->rooms->ViewValue = FormatNumber($this->rooms->ViewValue, 2, -2, -2, -2);
			$this->rooms->ViewCustomAttributes = "";

			// bathrooms
			$this->bathrooms->ViewValue = $this->bathrooms->CurrentValue;
			$this->bathrooms->ViewValue = FormatNumber($this->bathrooms->ViewValue, 2, -2, -2, -2);
			$this->bathrooms->ViewCustomAttributes = "";

			// living_area
			$this->living_area->ViewValue = $this->living_area->CurrentValue;
			$this->living_area->ViewValue = FormatNumber($this->living_area->ViewValue, 2, -2, -2, -2);
			$this->living_area->ViewCustomAttributes = "";

			// living_area_unit
			$this->living_area_unit->ViewValue = $this->living_area_unit->CurrentValue;
			$this->living_area_unit->ViewValue = FormatNumber($this->living_area_unit->ViewValue, 0, -2, -2, -2);
			$this->living_area_unit->ViewCustomAttributes = "";

			// living_area_si
			$this->living_area_si->ViewValue = $this->living_area_si->CurrentValue;
			$this->living_area_si->ViewValue = FormatNumber($this->living_area_si->ViewValue, 2, -2, -2, -2);
			$this->living_area_si->ViewCustomAttributes = "";

			// lot_area
			$this->lot_area->ViewValue = $this->lot_area->CurrentValue;
			$this->lot_area->ViewValue = FormatNumber($this->lot_area->ViewValue, 2, -2, -2, -2);
			$this->lot_area->ViewCustomAttributes = "";

			// lot_area_unit
			$this->lot_area_unit->ViewValue = $this->lot_area_unit->CurrentValue;
			$this->lot_area_unit->ViewValue = FormatNumber($this->lot_area_unit->ViewValue, 0, -2, -2, -2);
			$this->lot_area_unit->ViewCustomAttributes = "";

			// lot_area_si
			$this->lot_area_si->ViewValue = $this->lot_area_si->CurrentValue;
			$this->lot_area_si->ViewValue = FormatNumber($this->lot_area_si->ViewValue, 2, -2, -2, -2);
			$this->lot_area_si->ViewCustomAttributes = "";

			// googlemap_lt
			$this->googlemap_lt->ViewValue = $this->googlemap_lt->CurrentValue;
			$this->googlemap_lt->ViewValue = FormatNumber($this->googlemap_lt->ViewValue, 2, -2, -2, -2);
			$this->googlemap_lt->ViewCustomAttributes = "";

			// googlemap_ln
			$this->googlemap_ln->ViewValue = $this->googlemap_ln->CurrentValue;
			$this->googlemap_ln->ViewValue = FormatNumber($this->googlemap_ln->ViewValue, 2, -2, -2, -2);
			$this->googlemap_ln->ViewCustomAttributes = "";

			// finalized
			$this->finalized->ViewValue = $this->finalized->CurrentValue;
			$this->finalized->ViewValue = FormatNumber($this->finalized->ViewValue, 0, -2, -2, -2);
			$this->finalized->ViewCustomAttributes = "";

			// add_date
			$this->add_date->ViewValue = $this->add_date->CurrentValue;
			$this->add_date->ViewValue = FormatDateTime($this->add_date->ViewValue, 0);
			$this->add_date->ViewCustomAttributes = "";

			// last_finalize_date
			$this->last_finalize_date->ViewValue = $this->last_finalize_date->CurrentValue;
			$this->last_finalize_date->ViewValue = FormatDateTime($this->last_finalize_date->ViewValue, 0);
			$this->last_finalize_date->ViewCustomAttributes = "";

			// expire_days
			$this->expire_days->ViewValue = $this->expire_days->CurrentValue;
			$this->expire_days->ViewValue = FormatNumber($this->expire_days->ViewValue, 0, -2, -2, -2);
			$this->expire_days->ViewCustomAttributes = "";

			// confirmed
			$this->confirmed->ViewValue = $this->confirmed->CurrentValue;
			$this->confirmed->ViewValue = FormatNumber($this->confirmed->ViewValue, 0, -2, -2, -2);
			$this->confirmed->ViewCustomAttributes = "";

			// expired
			$this->expired->ViewValue = $this->expired->CurrentValue;
			$this->expired->ViewValue = FormatNumber($this->expired->ViewValue, 0, -2, -2, -2);
			$this->expired->ViewCustomAttributes = "";

			// build_year
			$this->build_year->ViewValue = $this->build_year->CurrentValue;
			$this->build_year->ViewValue = FormatNumber($this->build_year->ViewValue, 0, -2, -2, -2);
			$this->build_year->ViewCustomAttributes = "";

			// zip_id
			$this->zip_id->ViewValue = $this->zip_id->CurrentValue;
			$this->zip_id->ViewValue = FormatNumber($this->zip_id->ViewValue, 0, -2, -2, -2);
			$this->zip_id->ViewCustomAttributes = "";

			// zip_name
			$this->zip_name->ViewValue = $this->zip_name->CurrentValue;
			$this->zip_name->ViewCustomAttributes = "";

			// last_modified_time_stamp
			$this->last_modified_time_stamp->ViewValue = $this->last_modified_time_stamp->CurrentValue;
			$this->last_modified_time_stamp->ViewValue = FormatDateTime($this->last_modified_time_stamp->ViewValue, 0);
			$this->last_modified_time_stamp->ViewCustomAttributes = "";

			// post_code
			$this->post_code->ViewValue = $this->post_code->CurrentValue;
			$this->post_code->ViewCustomAttributes = "";

			// meta_description_manual
			$this->meta_description_manual->ViewValue = $this->meta_description_manual->CurrentValue;
			$this->meta_description_manual->ViewValue = FormatNumber($this->meta_description_manual->ViewValue, 0, -2, -2, -2);
			$this->meta_description_manual->ViewCustomAttributes = "";

			// meta_keywords_manual
			$this->meta_keywords_manual->ViewValue = $this->meta_keywords_manual->CurrentValue;
			$this->meta_keywords_manual->ViewValue = FormatNumber($this->meta_keywords_manual->ViewValue, 0, -2, -2, -2);
			$this->meta_keywords_manual->ViewCustomAttributes = "";

			// street_no
			$this->street_no->ViewValue = $this->street_no->CurrentValue;
			$this->street_no->ViewCustomAttributes = "";

			// sp_featured
			$this->sp_featured->ViewValue = $this->sp_featured->CurrentValue;
			$this->sp_featured->ViewValue = FormatNumber($this->sp_featured->ViewValue, 0, -2, -2, -2);
			$this->sp_featured->ViewCustomAttributes = "";

			// sp_hot
			$this->sp_hot->ViewValue = $this->sp_hot->CurrentValue;
			$this->sp_hot->ViewValue = FormatNumber($this->sp_hot->ViewValue, 0, -2, -2, -2);
			$this->sp_hot->ViewCustomAttributes = "";

			// sp_openhouse
			$this->sp_openhouse->ViewValue = $this->sp_openhouse->CurrentValue;
			$this->sp_openhouse->ViewValue = FormatNumber($this->sp_openhouse->ViewValue, 0, -2, -2, -2);
			$this->sp_openhouse->ViewCustomAttributes = "";

			// sp_forclosure
			$this->sp_forclosure->ViewValue = $this->sp_forclosure->CurrentValue;
			$this->sp_forclosure->ViewValue = FormatNumber($this->sp_forclosure->ViewValue, 0, -2, -2, -2);
			$this->sp_forclosure->ViewCustomAttributes = "";

			// location_text
			$this->location_text->ViewValue = $this->location_text->CurrentValue;
			$this->location_text->ViewCustomAttributes = "";

			// field_42
			$this->field_42->ViewValue = $this->field_42->CurrentValue;
			$this->field_42->ViewCustomAttributes = "";

			// field_312
			$this->field_312->ViewValue = $this->field_312->CurrentValue;
			$this->field_312->ViewCustomAttributes = "";

			// field_313
			$this->field_313->ViewValue = $this->field_313->CurrentValue;
			$this->field_313->ViewCustomAttributes = "";

			// field_7
			$this->field_7->ViewValue = $this->field_7->CurrentValue;
			$this->field_7->ViewValue = FormatNumber($this->field_7->ViewValue, 0, -2, -2, -2);
			$this->field_7->ViewCustomAttributes = "";

			// n_103
			$this->n_103->ViewValue = $this->n_103->CurrentValue;
			$this->n_103->ViewValue = FormatNumber($this->n_103->ViewValue, 0, -2, -2, -2);
			$this->n_103->ViewCustomAttributes = "";

			// n_103_distance
			$this->n_103_distance->ViewValue = $this->n_103_distance->CurrentValue;
			$this->n_103_distance->ViewValue = FormatNumber($this->n_103_distance->ViewValue, 0, -2, -2, -2);
			$this->n_103_distance->ViewCustomAttributes = "";

			// n_103_distance_by
			$this->n_103_distance_by->ViewValue = $this->n_103_distance_by->CurrentValue;
			$this->n_103_distance_by->ViewValue = FormatNumber($this->n_103_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_103_distance_by->ViewCustomAttributes = "";

			// n_105
			$this->n_105->ViewValue = $this->n_105->CurrentValue;
			$this->n_105->ViewValue = FormatNumber($this->n_105->ViewValue, 0, -2, -2, -2);
			$this->n_105->ViewCustomAttributes = "";

			// n_105_distance
			$this->n_105_distance->ViewValue = $this->n_105_distance->CurrentValue;
			$this->n_105_distance->ViewValue = FormatNumber($this->n_105_distance->ViewValue, 0, -2, -2, -2);
			$this->n_105_distance->ViewCustomAttributes = "";

			// n_105_distance_by
			$this->n_105_distance_by->ViewValue = $this->n_105_distance_by->CurrentValue;
			$this->n_105_distance_by->ViewValue = FormatNumber($this->n_105_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_105_distance_by->ViewCustomAttributes = "";

			// n_107
			$this->n_107->ViewValue = $this->n_107->CurrentValue;
			$this->n_107->ViewValue = FormatNumber($this->n_107->ViewValue, 0, -2, -2, -2);
			$this->n_107->ViewCustomAttributes = "";

			// n_107_distance
			$this->n_107_distance->ViewValue = $this->n_107_distance->CurrentValue;
			$this->n_107_distance->ViewValue = FormatNumber($this->n_107_distance->ViewValue, 0, -2, -2, -2);
			$this->n_107_distance->ViewCustomAttributes = "";

			// n_107_distance_by
			$this->n_107_distance_by->ViewValue = $this->n_107_distance_by->CurrentValue;
			$this->n_107_distance_by->ViewValue = FormatNumber($this->n_107_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_107_distance_by->ViewCustomAttributes = "";

			// n_108
			$this->n_108->ViewValue = $this->n_108->CurrentValue;
			$this->n_108->ViewValue = FormatNumber($this->n_108->ViewValue, 0, -2, -2, -2);
			$this->n_108->ViewCustomAttributes = "";

			// n_108_distance
			$this->n_108_distance->ViewValue = $this->n_108_distance->CurrentValue;
			$this->n_108_distance->ViewValue = FormatNumber($this->n_108_distance->ViewValue, 0, -2, -2, -2);
			$this->n_108_distance->ViewCustomAttributes = "";

			// n_108_distance_by
			$this->n_108_distance_by->ViewValue = $this->n_108_distance_by->CurrentValue;
			$this->n_108_distance_by->ViewValue = FormatNumber($this->n_108_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_108_distance_by->ViewCustomAttributes = "";

			// n_109
			$this->n_109->ViewValue = $this->n_109->CurrentValue;
			$this->n_109->ViewValue = FormatNumber($this->n_109->ViewValue, 0, -2, -2, -2);
			$this->n_109->ViewCustomAttributes = "";

			// n_109_distance
			$this->n_109_distance->ViewValue = $this->n_109_distance->CurrentValue;
			$this->n_109_distance->ViewValue = FormatNumber($this->n_109_distance->ViewValue, 0, -2, -2, -2);
			$this->n_109_distance->ViewCustomAttributes = "";

			// n_109_distance_by
			$this->n_109_distance_by->ViewValue = $this->n_109_distance_by->CurrentValue;
			$this->n_109_distance_by->ViewValue = FormatNumber($this->n_109_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_109_distance_by->ViewCustomAttributes = "";

			// f_131
			$this->f_131->ViewValue = $this->f_131->CurrentValue;
			$this->f_131->ViewValue = FormatNumber($this->f_131->ViewValue, 0, -2, -2, -2);
			$this->f_131->ViewCustomAttributes = "";

			// f_137
			$this->f_137->ViewValue = $this->f_137->CurrentValue;
			$this->f_137->ViewValue = FormatNumber($this->f_137->ViewValue, 0, -2, -2, -2);
			$this->f_137->ViewCustomAttributes = "";

			// f_139
			$this->f_139->ViewValue = $this->f_139->CurrentValue;
			$this->f_139->ViewValue = FormatNumber($this->f_139->ViewValue, 0, -2, -2, -2);
			$this->f_139->ViewCustomAttributes = "";

			// f_144
			$this->f_144->ViewValue = $this->f_144->CurrentValue;
			$this->f_144->ViewValue = FormatNumber($this->f_144->ViewValue, 0, -2, -2, -2);
			$this->f_144->ViewCustomAttributes = "";

			// f_146
			$this->f_146->ViewValue = $this->f_146->CurrentValue;
			$this->f_146->ViewValue = FormatNumber($this->f_146->ViewValue, 0, -2, -2, -2);
			$this->f_146->ViewCustomAttributes = "";

			// f_149
			$this->f_149->ViewValue = $this->f_149->CurrentValue;
			$this->f_149->ViewValue = FormatNumber($this->f_149->ViewValue, 0, -2, -2, -2);
			$this->f_149->ViewCustomAttributes = "";

			// f_150
			$this->f_150->ViewValue = $this->f_150->CurrentValue;
			$this->f_150->ViewValue = FormatNumber($this->f_150->ViewValue, 0, -2, -2, -2);
			$this->f_150->ViewCustomAttributes = "";

			// f_156
			$this->f_156->ViewValue = $this->f_156->CurrentValue;
			$this->f_156->ViewValue = FormatNumber($this->f_156->ViewValue, 0, -2, -2, -2);
			$this->f_156->ViewCustomAttributes = "";

			// f_157
			$this->f_157->ViewValue = $this->f_157->CurrentValue;
			$this->f_157->ViewValue = FormatNumber($this->f_157->ViewValue, 0, -2, -2, -2);
			$this->f_157->ViewCustomAttributes = "";

			// f_159
			$this->f_159->ViewValue = $this->f_159->CurrentValue;
			$this->f_159->ViewValue = FormatNumber($this->f_159->ViewValue, 0, -2, -2, -2);
			$this->f_159->ViewCustomAttributes = "";

			// f_161
			$this->f_161->ViewValue = $this->f_161->CurrentValue;
			$this->f_161->ViewValue = FormatNumber($this->f_161->ViewValue, 0, -2, -2, -2);
			$this->f_161->ViewCustomAttributes = "";

			// f_163
			$this->f_163->ViewValue = $this->f_163->CurrentValue;
			$this->f_163->ViewValue = FormatNumber($this->f_163->ViewValue, 0, -2, -2, -2);
			$this->f_163->ViewCustomAttributes = "";

			// f_165
			$this->f_165->ViewValue = $this->f_165->CurrentValue;
			$this->f_165->ViewValue = FormatNumber($this->f_165->ViewValue, 0, -2, -2, -2);
			$this->f_165->ViewCustomAttributes = "";

			// f_166
			$this->f_166->ViewValue = $this->f_166->CurrentValue;
			$this->f_166->ViewValue = FormatNumber($this->f_166->ViewValue, 0, -2, -2, -2);
			$this->f_166->ViewCustomAttributes = "";

			// ref_id
			$this->ref_id->ViewValue = $this->ref_id->CurrentValue;
			$this->ref_id->ViewCustomAttributes = "";

			// field_54
			$this->field_54->ViewValue = $this->field_54->CurrentValue;
			$this->field_54->ViewCustomAttributes = "";

			// half_bathrooms
			$this->half_bathrooms->ViewValue = $this->half_bathrooms->CurrentValue;
			$this->half_bathrooms->ViewValue = FormatNumber($this->half_bathrooms->ViewValue, 2, -2, -2, -2);
			$this->half_bathrooms->ViewCustomAttributes = "";

			// field_55
			$this->field_55->ViewValue = $this->field_55->CurrentValue;
			$this->field_55->ViewValue = FormatNumber($this->field_55->ViewValue, 2, -2, -2, -2);
			$this->field_55->ViewCustomAttributes = "";

			// source
			$this->source->ViewValue = $this->source->CurrentValue;
			$this->source->ViewCustomAttributes = "";

			// last_sync_date
			$this->last_sync_date->ViewValue = $this->last_sync_date->CurrentValue;
			$this->last_sync_date->ViewValue = FormatDateTime($this->last_sync_date->ViewValue, 0);
			$this->last_sync_date->ViewCustomAttributes = "";

			// street_suffix
			$this->street_suffix->ViewValue = $this->street_suffix->CurrentValue;
			$this->street_suffix->ViewCustomAttributes = "";

			// energy_tag
			$this->energy_tag->ViewValue = $this->energy_tag->CurrentValue;
			$this->energy_tag->ViewValue = FormatNumber($this->energy_tag->ViewValue, 0, -2, -2, -2);
			$this->energy_tag->ViewCustomAttributes = "";

			// field_3006
			$this->field_3006->ViewValue = $this->field_3006->CurrentValue;
			$this->field_3006->ViewCustomAttributes = "";

			// field_3007
			$this->field_3007->ViewValue = $this->field_3007->CurrentValue;
			$this->field_3007->ViewCustomAttributes = "";

			// field_3008
			$this->field_3008->ViewValue = $this->field_3008->CurrentValue;
			$this->field_3008->ViewCustomAttributes = "";

			// importer_structure_id
			$this->importer_structure_id->ViewValue = $this->importer_structure_id->CurrentValue;
			$this->importer_structure_id->ViewValue = FormatNumber($this->importer_structure_id->ViewValue, 0, -2, -2, -2);
			$this->importer_structure_id->ViewCustomAttributes = "";

			// field_3009
			$this->field_3009->ViewValue = $this->field_3009->CurrentValue;
			$this->field_3009->ViewCustomAttributes = "";

			// field_3010
			$this->field_3010->ViewValue = $this->field_3010->CurrentValue;
			$this->field_3010->ViewCustomAttributes = "";

			// field_3012
			$this->field_3012->ViewValue = $this->field_3012->CurrentValue;
			$this->field_3012->ViewValue = FormatNumber($this->field_3012->ViewValue, 0, -2, -2, -2);
			$this->field_3012->ViewCustomAttributes = "";

			// field_3013
			$this->field_3013->ViewValue = $this->field_3013->CurrentValue;
			$this->field_3013->ViewValue = FormatNumber($this->field_3013->ViewValue, 0, -2, -2, -2);
			$this->field_3013->ViewCustomAttributes = "";

			// field_3014
			$this->field_3014->ViewValue = $this->field_3014->CurrentValue;
			$this->field_3014->ViewValue = FormatNumber($this->field_3014->ViewValue, 0, -2, -2, -2);
			$this->field_3014->ViewCustomAttributes = "";

			// f_3014
			$this->f_3014->ViewValue = $this->f_3014->CurrentValue;
			$this->f_3014->ViewValue = FormatNumber($this->f_3014->ViewValue, 0, -2, -2, -2);
			$this->f_3014->ViewCustomAttributes = "";

			// field_3015
			$this->field_3015->ViewValue = $this->field_3015->CurrentValue;
			$this->field_3015->ViewCustomAttributes = "";

			// field_3016
			$this->field_3016->ViewValue = $this->field_3016->CurrentValue;
			$this->field_3016->ViewValue = FormatNumber($this->field_3016->ViewValue, 0, -2, -2, -2);
			$this->field_3016->ViewCustomAttributes = "";

			// f_3018
			$this->f_3018->ViewValue = $this->f_3018->CurrentValue;
			$this->f_3018->ViewValue = FormatNumber($this->f_3018->ViewValue, 0, -2, -2, -2);
			$this->f_3018->ViewCustomAttributes = "";

			// f_3019
			$this->f_3019->ViewValue = $this->f_3019->CurrentValue;
			$this->f_3019->ViewValue = FormatNumber($this->f_3019->ViewValue, 0, -2, -2, -2);
			$this->f_3019->ViewCustomAttributes = "";

			// f_3020
			$this->f_3020->ViewValue = $this->f_3020->CurrentValue;
			$this->f_3020->ViewValue = FormatNumber($this->f_3020->ViewValue, 0, -2, -2, -2);
			$this->f_3020->ViewCustomAttributes = "";

			// f_3021
			$this->f_3021->ViewValue = $this->f_3021->CurrentValue;
			$this->f_3021->ViewValue = FormatNumber($this->f_3021->ViewValue, 0, -2, -2, -2);
			$this->f_3021->ViewCustomAttributes = "";

			// f_3022
			$this->f_3022->ViewValue = $this->f_3022->CurrentValue;
			$this->f_3022->ViewValue = FormatNumber($this->f_3022->ViewValue, 0, -2, -2, -2);
			$this->f_3022->ViewCustomAttributes = "";

			// f_3023
			$this->f_3023->ViewValue = $this->f_3023->CurrentValue;
			$this->f_3023->ViewValue = FormatNumber($this->f_3023->ViewValue, 0, -2, -2, -2);
			$this->f_3023->ViewCustomAttributes = "";

			// f_3024
			$this->f_3024->ViewValue = $this->f_3024->CurrentValue;
			$this->f_3024->ViewValue = FormatNumber($this->f_3024->ViewValue, 0, -2, -2, -2);
			$this->f_3024->ViewCustomAttributes = "";

			// f_3025
			$this->f_3025->ViewValue = $this->f_3025->CurrentValue;
			$this->f_3025->ViewValue = FormatNumber($this->f_3025->ViewValue, 0, -2, -2, -2);
			$this->f_3025->ViewCustomAttributes = "";

			// f_3026
			$this->f_3026->ViewValue = $this->f_3026->CurrentValue;
			$this->f_3026->ViewValue = FormatNumber($this->f_3026->ViewValue, 0, -2, -2, -2);
			$this->f_3026->ViewCustomAttributes = "";

			// f_3027
			$this->f_3027->ViewValue = $this->f_3027->CurrentValue;
			$this->f_3027->ViewValue = FormatNumber($this->f_3027->ViewValue, 0, -2, -2, -2);
			$this->f_3027->ViewCustomAttributes = "";

			// f_3028
			$this->f_3028->ViewValue = $this->f_3028->CurrentValue;
			$this->f_3028->ViewValue = FormatNumber($this->f_3028->ViewValue, 0, -2, -2, -2);
			$this->f_3028->ViewCustomAttributes = "";

			// f_3029
			$this->f_3029->ViewValue = $this->f_3029->CurrentValue;
			$this->f_3029->ViewValue = FormatNumber($this->f_3029->ViewValue, 0, -2, -2, -2);
			$this->f_3029->ViewCustomAttributes = "";

			// f_3031
			$this->f_3031->ViewValue = $this->f_3031->CurrentValue;
			$this->f_3031->ViewValue = FormatNumber($this->f_3031->ViewValue, 0, -2, -2, -2);
			$this->f_3031->ViewCustomAttributes = "";

			// f_3032
			$this->f_3032->ViewValue = $this->f_3032->CurrentValue;
			$this->f_3032->ViewValue = FormatNumber($this->f_3032->ViewValue, 0, -2, -2, -2);
			$this->f_3032->ViewCustomAttributes = "";

			// f_3033
			$this->f_3033->ViewValue = $this->f_3033->CurrentValue;
			$this->f_3033->ViewValue = FormatNumber($this->f_3033->ViewValue, 0, -2, -2, -2);
			$this->f_3033->ViewCustomAttributes = "";

			// f_3034
			$this->f_3034->ViewValue = $this->f_3034->CurrentValue;
			$this->f_3034->ViewValue = FormatNumber($this->f_3034->ViewValue, 0, -2, -2, -2);
			$this->f_3034->ViewCustomAttributes = "";

			// f_3035
			$this->f_3035->ViewValue = $this->f_3035->CurrentValue;
			$this->f_3035->ViewValue = FormatNumber($this->f_3035->ViewValue, 0, -2, -2, -2);
			$this->f_3035->ViewCustomAttributes = "";

			// f_3036
			$this->f_3036->ViewValue = $this->f_3036->CurrentValue;
			$this->f_3036->ViewValue = FormatNumber($this->f_3036->ViewValue, 0, -2, -2, -2);
			$this->f_3036->ViewCustomAttributes = "";

			// f_3037
			$this->f_3037->ViewValue = $this->f_3037->CurrentValue;
			$this->f_3037->ViewValue = FormatNumber($this->f_3037->ViewValue, 0, -2, -2, -2);
			$this->f_3037->ViewCustomAttributes = "";

			// f_3038
			$this->f_3038->ViewValue = $this->f_3038->CurrentValue;
			$this->f_3038->ViewValue = FormatNumber($this->f_3038->ViewValue, 0, -2, -2, -2);
			$this->f_3038->ViewCustomAttributes = "";

			// f_3039
			$this->f_3039->ViewValue = $this->f_3039->CurrentValue;
			$this->f_3039->ViewValue = FormatNumber($this->f_3039->ViewValue, 0, -2, -2, -2);
			$this->f_3039->ViewCustomAttributes = "";

			// f_3040
			$this->f_3040->ViewValue = $this->f_3040->CurrentValue;
			$this->f_3040->ViewValue = FormatNumber($this->f_3040->ViewValue, 0, -2, -2, -2);
			$this->f_3040->ViewCustomAttributes = "";

			// f_3041
			$this->f_3041->ViewValue = $this->f_3041->CurrentValue;
			$this->f_3041->ViewValue = FormatNumber($this->f_3041->ViewValue, 0, -2, -2, -2);
			$this->f_3041->ViewCustomAttributes = "";

			// f_3042
			$this->f_3042->ViewValue = $this->f_3042->CurrentValue;
			$this->f_3042->ViewValue = FormatNumber($this->f_3042->ViewValue, 0, -2, -2, -2);
			$this->f_3042->ViewCustomAttributes = "";

			// f_3043
			$this->f_3043->ViewValue = $this->f_3043->CurrentValue;
			$this->f_3043->ViewValue = FormatNumber($this->f_3043->ViewValue, 0, -2, -2, -2);
			$this->f_3043->ViewCustomAttributes = "";

			// f_3044
			$this->f_3044->ViewValue = $this->f_3044->CurrentValue;
			$this->f_3044->ViewValue = FormatNumber($this->f_3044->ViewValue, 0, -2, -2, -2);
			$this->f_3044->ViewCustomAttributes = "";

			// n_3045
			$this->n_3045->ViewValue = $this->n_3045->CurrentValue;
			$this->n_3045->ViewValue = FormatNumber($this->n_3045->ViewValue, 0, -2, -2, -2);
			$this->n_3045->ViewCustomAttributes = "";

			// n_3045_distance
			$this->n_3045_distance->ViewValue = $this->n_3045_distance->CurrentValue;
			$this->n_3045_distance->ViewValue = FormatNumber($this->n_3045_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3045_distance->ViewCustomAttributes = "";

			// n_3045_distance_by
			$this->n_3045_distance_by->ViewValue = $this->n_3045_distance_by->CurrentValue;
			$this->n_3045_distance_by->ViewValue = FormatNumber($this->n_3045_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3045_distance_by->ViewCustomAttributes = "";

			// n_3046
			$this->n_3046->ViewValue = $this->n_3046->CurrentValue;
			$this->n_3046->ViewValue = FormatNumber($this->n_3046->ViewValue, 0, -2, -2, -2);
			$this->n_3046->ViewCustomAttributes = "";

			// n_3046_distance
			$this->n_3046_distance->ViewValue = $this->n_3046_distance->CurrentValue;
			$this->n_3046_distance->ViewValue = FormatNumber($this->n_3046_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3046_distance->ViewCustomAttributes = "";

			// n_3046_distance_by
			$this->n_3046_distance_by->ViewValue = $this->n_3046_distance_by->CurrentValue;
			$this->n_3046_distance_by->ViewValue = FormatNumber($this->n_3046_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3046_distance_by->ViewCustomAttributes = "";

			// n_3047
			$this->n_3047->ViewValue = $this->n_3047->CurrentValue;
			$this->n_3047->ViewValue = FormatNumber($this->n_3047->ViewValue, 0, -2, -2, -2);
			$this->n_3047->ViewCustomAttributes = "";

			// n_3047_distance
			$this->n_3047_distance->ViewValue = $this->n_3047_distance->CurrentValue;
			$this->n_3047_distance->ViewValue = FormatNumber($this->n_3047_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3047_distance->ViewCustomAttributes = "";

			// n_3047_distance_by
			$this->n_3047_distance_by->ViewValue = $this->n_3047_distance_by->CurrentValue;
			$this->n_3047_distance_by->ViewValue = FormatNumber($this->n_3047_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3047_distance_by->ViewCustomAttributes = "";

			// n_3048
			$this->n_3048->ViewValue = $this->n_3048->CurrentValue;
			$this->n_3048->ViewValue = FormatNumber($this->n_3048->ViewValue, 0, -2, -2, -2);
			$this->n_3048->ViewCustomAttributes = "";

			// n_3048_distance
			$this->n_3048_distance->ViewValue = $this->n_3048_distance->CurrentValue;
			$this->n_3048_distance->ViewValue = FormatNumber($this->n_3048_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3048_distance->ViewCustomAttributes = "";

			// n_3048_distance_by
			$this->n_3048_distance_by->ViewValue = $this->n_3048_distance_by->CurrentValue;
			$this->n_3048_distance_by->ViewValue = FormatNumber($this->n_3048_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3048_distance_by->ViewCustomAttributes = "";

			// n_3049
			$this->n_3049->ViewValue = $this->n_3049->CurrentValue;
			$this->n_3049->ViewValue = FormatNumber($this->n_3049->ViewValue, 0, -2, -2, -2);
			$this->n_3049->ViewCustomAttributes = "";

			// n_3049_distance
			$this->n_3049_distance->ViewValue = $this->n_3049_distance->CurrentValue;
			$this->n_3049_distance->ViewValue = FormatNumber($this->n_3049_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3049_distance->ViewCustomAttributes = "";

			// n_3049_distance_by
			$this->n_3049_distance_by->ViewValue = $this->n_3049_distance_by->CurrentValue;
			$this->n_3049_distance_by->ViewValue = FormatNumber($this->n_3049_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3049_distance_by->ViewCustomAttributes = "";

			// n_3050
			$this->n_3050->ViewValue = $this->n_3050->CurrentValue;
			$this->n_3050->ViewValue = FormatNumber($this->n_3050->ViewValue, 0, -2, -2, -2);
			$this->n_3050->ViewCustomAttributes = "";

			// n_3050_distance
			$this->n_3050_distance->ViewValue = $this->n_3050_distance->CurrentValue;
			$this->n_3050_distance->ViewValue = FormatNumber($this->n_3050_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3050_distance->ViewCustomAttributes = "";

			// n_3050_distance_by
			$this->n_3050_distance_by->ViewValue = $this->n_3050_distance_by->CurrentValue;
			$this->n_3050_distance_by->ViewValue = FormatNumber($this->n_3050_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3050_distance_by->ViewCustomAttributes = "";

			// n_3051
			$this->n_3051->ViewValue = $this->n_3051->CurrentValue;
			$this->n_3051->ViewValue = FormatNumber($this->n_3051->ViewValue, 0, -2, -2, -2);
			$this->n_3051->ViewCustomAttributes = "";

			// n_3051_distance
			$this->n_3051_distance->ViewValue = $this->n_3051_distance->CurrentValue;
			$this->n_3051_distance->ViewValue = FormatNumber($this->n_3051_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3051_distance->ViewCustomAttributes = "";

			// n_3051_distance_by
			$this->n_3051_distance_by->ViewValue = $this->n_3051_distance_by->CurrentValue;
			$this->n_3051_distance_by->ViewValue = FormatNumber($this->n_3051_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3051_distance_by->ViewCustomAttributes = "";

			// n_3052
			$this->n_3052->ViewValue = $this->n_3052->CurrentValue;
			$this->n_3052->ViewValue = FormatNumber($this->n_3052->ViewValue, 0, -2, -2, -2);
			$this->n_3052->ViewCustomAttributes = "";

			// n_3052_distance
			$this->n_3052_distance->ViewValue = $this->n_3052_distance->CurrentValue;
			$this->n_3052_distance->ViewValue = FormatNumber($this->n_3052_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3052_distance->ViewCustomAttributes = "";

			// n_3052_distance_by
			$this->n_3052_distance_by->ViewValue = $this->n_3052_distance_by->CurrentValue;
			$this->n_3052_distance_by->ViewValue = FormatNumber($this->n_3052_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3052_distance_by->ViewCustomAttributes = "";

			// n_3053
			$this->n_3053->ViewValue = $this->n_3053->CurrentValue;
			$this->n_3053->ViewValue = FormatNumber($this->n_3053->ViewValue, 0, -2, -2, -2);
			$this->n_3053->ViewCustomAttributes = "";

			// n_3053_distance
			$this->n_3053_distance->ViewValue = $this->n_3053_distance->CurrentValue;
			$this->n_3053_distance->ViewValue = FormatNumber($this->n_3053_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3053_distance->ViewCustomAttributes = "";

			// n_3053_distance_by
			$this->n_3053_distance_by->ViewValue = $this->n_3053_distance_by->CurrentValue;
			$this->n_3053_distance_by->ViewValue = FormatNumber($this->n_3053_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3053_distance_by->ViewCustomAttributes = "";

			// n_3054
			$this->n_3054->ViewValue = $this->n_3054->CurrentValue;
			$this->n_3054->ViewValue = FormatNumber($this->n_3054->ViewValue, 0, -2, -2, -2);
			$this->n_3054->ViewCustomAttributes = "";

			// n_3054_distance
			$this->n_3054_distance->ViewValue = $this->n_3054_distance->CurrentValue;
			$this->n_3054_distance->ViewValue = FormatNumber($this->n_3054_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3054_distance->ViewCustomAttributes = "";

			// n_3054_distance_by
			$this->n_3054_distance_by->ViewValue = $this->n_3054_distance_by->CurrentValue;
			$this->n_3054_distance_by->ViewValue = FormatNumber($this->n_3054_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3054_distance_by->ViewCustomAttributes = "";

			// n_3055
			$this->n_3055->ViewValue = $this->n_3055->CurrentValue;
			$this->n_3055->ViewValue = FormatNumber($this->n_3055->ViewValue, 0, -2, -2, -2);
			$this->n_3055->ViewCustomAttributes = "";

			// n_3055_distance
			$this->n_3055_distance->ViewValue = $this->n_3055_distance->CurrentValue;
			$this->n_3055_distance->ViewValue = FormatNumber($this->n_3055_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3055_distance->ViewCustomAttributes = "";

			// n_3055_distance_by
			$this->n_3055_distance_by->ViewValue = $this->n_3055_distance_by->CurrentValue;
			$this->n_3055_distance_by->ViewValue = FormatNumber($this->n_3055_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3055_distance_by->ViewCustomAttributes = "";

			// n_3056
			$this->n_3056->ViewValue = $this->n_3056->CurrentValue;
			$this->n_3056->ViewValue = FormatNumber($this->n_3056->ViewValue, 0, -2, -2, -2);
			$this->n_3056->ViewCustomAttributes = "";

			// n_3056_distance
			$this->n_3056_distance->ViewValue = $this->n_3056_distance->CurrentValue;
			$this->n_3056_distance->ViewValue = FormatNumber($this->n_3056_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3056_distance->ViewCustomAttributes = "";

			// n_3056_distance_by
			$this->n_3056_distance_by->ViewValue = $this->n_3056_distance_by->CurrentValue;
			$this->n_3056_distance_by->ViewValue = FormatNumber($this->n_3056_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3056_distance_by->ViewCustomAttributes = "";

			// n_3057
			$this->n_3057->ViewValue = $this->n_3057->CurrentValue;
			$this->n_3057->ViewValue = FormatNumber($this->n_3057->ViewValue, 0, -2, -2, -2);
			$this->n_3057->ViewCustomAttributes = "";

			// n_3057_distance
			$this->n_3057_distance->ViewValue = $this->n_3057_distance->CurrentValue;
			$this->n_3057_distance->ViewValue = FormatNumber($this->n_3057_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3057_distance->ViewCustomAttributes = "";

			// n_3057_distance_by
			$this->n_3057_distance_by->ViewValue = $this->n_3057_distance_by->CurrentValue;
			$this->n_3057_distance_by->ViewValue = FormatNumber($this->n_3057_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3057_distance_by->ViewCustomAttributes = "";

			// n_3058
			$this->n_3058->ViewValue = $this->n_3058->CurrentValue;
			$this->n_3058->ViewValue = FormatNumber($this->n_3058->ViewValue, 0, -2, -2, -2);
			$this->n_3058->ViewCustomAttributes = "";

			// n_3058_distance
			$this->n_3058_distance->ViewValue = $this->n_3058_distance->CurrentValue;
			$this->n_3058_distance->ViewValue = FormatNumber($this->n_3058_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3058_distance->ViewCustomAttributes = "";

			// n_3058_distance_by
			$this->n_3058_distance_by->ViewValue = $this->n_3058_distance_by->CurrentValue;
			$this->n_3058_distance_by->ViewValue = FormatNumber($this->n_3058_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3058_distance_by->ViewCustomAttributes = "";

			// n_3059
			$this->n_3059->ViewValue = $this->n_3059->CurrentValue;
			$this->n_3059->ViewValue = FormatNumber($this->n_3059->ViewValue, 0, -2, -2, -2);
			$this->n_3059->ViewCustomAttributes = "";

			// n_3059_distance
			$this->n_3059_distance->ViewValue = $this->n_3059_distance->CurrentValue;
			$this->n_3059_distance->ViewValue = FormatNumber($this->n_3059_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3059_distance->ViewCustomAttributes = "";

			// n_3059_distance_by
			$this->n_3059_distance_by->ViewValue = $this->n_3059_distance_by->CurrentValue;
			$this->n_3059_distance_by->ViewValue = FormatNumber($this->n_3059_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3059_distance_by->ViewCustomAttributes = "";

			// f_3060
			$this->f_3060->ViewValue = $this->f_3060->CurrentValue;
			$this->f_3060->ViewValue = FormatNumber($this->f_3060->ViewValue, 0, -2, -2, -2);
			$this->f_3060->ViewCustomAttributes = "";

			// f_3061
			$this->f_3061->ViewValue = $this->f_3061->CurrentValue;
			$this->f_3061->ViewValue = FormatNumber($this->f_3061->ViewValue, 0, -2, -2, -2);
			$this->f_3061->ViewCustomAttributes = "";

			// f_3062
			$this->f_3062->ViewValue = $this->f_3062->CurrentValue;
			$this->f_3062->ViewValue = FormatNumber($this->f_3062->ViewValue, 0, -2, -2, -2);
			$this->f_3062->ViewCustomAttributes = "";

			// field_3063
			$this->field_3063->ViewValue = $this->field_3063->CurrentValue;
			$this->field_3063->ViewCustomAttributes = "";

			// field_3064
			$this->field_3064->ViewValue = $this->field_3064->CurrentValue;
			$this->field_3064->ViewCustomAttributes = "";

			// field_3065
			$this->field_3065->ViewValue = $this->field_3065->CurrentValue;
			$this->field_3065->ViewValue = FormatNumber($this->field_3065->ViewValue, 0, -2, -2, -2);
			$this->field_3065->ViewCustomAttributes = "";

			// field_313_en_us
			$this->field_313_en_us->ViewValue = $this->field_313_en_us->CurrentValue;
			$this->field_313_en_us->ViewCustomAttributes = "";

			// field_313_fr_fr
			$this->field_313_fr_fr->ViewValue = $this->field_313_fr_fr->CurrentValue;
			$this->field_313_fr_fr->ViewCustomAttributes = "";

			// field_312_en_us
			$this->field_312_en_us->ViewValue = $this->field_312_en_us->CurrentValue;
			$this->field_312_en_us->ViewCustomAttributes = "";

			// field_312_fr_fr
			$this->field_312_fr_fr->ViewValue = $this->field_312_fr_fr->CurrentValue;
			$this->field_312_fr_fr->ViewCustomAttributes = "";

			// field_42_en_us
			$this->field_42_en_us->ViewValue = $this->field_42_en_us->CurrentValue;
			$this->field_42_en_us->ViewCustomAttributes = "";

			// field_42_fr_fr
			$this->field_42_fr_fr->ViewValue = $this->field_42_fr_fr->CurrentValue;
			$this->field_42_fr_fr->ViewCustomAttributes = "";

			// field_3067
			$this->field_3067->ViewValue = $this->field_3067->CurrentValue;
			$this->field_3067->ViewValue = FormatNumber($this->field_3067->ViewValue, 0, -2, -2, -2);
			$this->field_3067->ViewCustomAttributes = "";

			// field_3068
			$this->field_3068->ViewValue = $this->field_3068->CurrentValue;
			$this->field_3068->ViewValue = FormatNumber($this->field_3068->ViewValue, 0, -2, -2, -2);
			$this->field_3068->ViewCustomAttributes = "";

			// field_3069
			$this->field_3069->ViewValue = $this->field_3069->CurrentValue;
			$this->field_3069->ViewValue = FormatNumber($this->field_3069->ViewValue, 0, -2, -2, -2);
			$this->field_3069->ViewCustomAttributes = "";

			// field_3070
			$this->field_3070->ViewValue = $this->field_3070->CurrentValue;
			$this->field_3070->ViewValue = FormatNumber($this->field_3070->ViewValue, 0, -2, -2, -2);
			$this->field_3070->ViewCustomAttributes = "";

			// field_3071
			$this->field_3071->ViewValue = $this->field_3071->CurrentValue;
			$this->field_3071->ViewCustomAttributes = "";

			// field_3071_en_us
			$this->field_3071_en_us->ViewValue = $this->field_3071_en_us->CurrentValue;
			$this->field_3071_en_us->ViewCustomAttributes = "";

			// field_3071_fr_fr
			$this->field_3071_fr_fr->ViewValue = $this->field_3071_fr_fr->CurrentValue;
			$this->field_3071_fr_fr->ViewCustomAttributes = "";

			// field_3072
			$this->field_3072->ViewValue = $this->field_3072->CurrentValue;
			$this->field_3072->ViewValue = FormatNumber($this->field_3072->ViewValue, 0, -2, -2, -2);
			$this->field_3072->ViewCustomAttributes = "";

			// field_3073
			$this->field_3073->ViewValue = $this->field_3073->CurrentValue;
			$this->field_3073->ViewValue = FormatNumber($this->field_3073->ViewValue, 0, -2, -2, -2);
			$this->field_3073->ViewCustomAttributes = "";

			// field_3074
			$this->field_3074->ViewValue = $this->field_3074->CurrentValue;
			$this->field_3074->ViewCustomAttributes = "";

			// field_3074_en_us
			$this->field_3074_en_us->ViewValue = $this->field_3074_en_us->CurrentValue;
			$this->field_3074_en_us->ViewCustomAttributes = "";

			// field_3074_fr_fr
			$this->field_3074_fr_fr->ViewValue = $this->field_3074_fr_fr->CurrentValue;
			$this->field_3074_fr_fr->ViewCustomAttributes = "";

			// field_3075
			$this->field_3075->ViewValue = $this->field_3075->CurrentValue;
			$this->field_3075->ViewValue = FormatNumber($this->field_3075->ViewValue, 0, -2, -2, -2);
			$this->field_3075->ViewCustomAttributes = "";

			// field_3076
			$this->field_3076->ViewValue = $this->field_3076->CurrentValue;
			$this->field_3076->ViewCustomAttributes = "";

			// field_3077
			$this->field_3077->ViewValue = $this->field_3077->CurrentValue;
			$this->field_3077->ViewValue = FormatNumber($this->field_3077->ViewValue, 0, -2, -2, -2);
			$this->field_3077->ViewCustomAttributes = "";

			// field_3078
			$this->field_3078->ViewValue = $this->field_3078->CurrentValue;
			$this->field_3078->ViewValue = FormatNumber($this->field_3078->ViewValue, 0, -2, -2, -2);
			$this->field_3078->ViewCustomAttributes = "";

			// field_3079
			$this->field_3079->ViewValue = $this->field_3079->CurrentValue;
			$this->field_3079->ViewValue = FormatNumber($this->field_3079->ViewValue, 0, -2, -2, -2);
			$this->field_3079->ViewCustomAttributes = "";

			// field_3080
			$this->field_3080->ViewValue = $this->field_3080->CurrentValue;
			$this->field_3080->ViewCustomAttributes = "";

			// field_3076_en_us
			$this->field_3076_en_us->ViewValue = $this->field_3076_en_us->CurrentValue;
			$this->field_3076_en_us->ViewCustomAttributes = "";

			// field_3076_fr_fr
			$this->field_3076_fr_fr->ViewValue = $this->field_3076_fr_fr->CurrentValue;
			$this->field_3076_fr_fr->ViewCustomAttributes = "";

			// field_3080_en_us
			$this->field_3080_en_us->ViewValue = $this->field_3080_en_us->CurrentValue;
			$this->field_3080_en_us->ViewCustomAttributes = "";

			// field_3080_fr_fr
			$this->field_3080_fr_fr->ViewValue = $this->field_3080_fr_fr->CurrentValue;
			$this->field_3080_fr_fr->ViewCustomAttributes = "";

			// field_3081
			$this->field_3081->ViewValue = $this->field_3081->CurrentValue;
			$this->field_3081->ViewCustomAttributes = "";

			// field_3081_en_us
			$this->field_3081_en_us->ViewValue = $this->field_3081_en_us->CurrentValue;
			$this->field_3081_en_us->ViewCustomAttributes = "";

			// field_3081_fr_fr
			$this->field_3081_fr_fr->ViewValue = $this->field_3081_fr_fr->CurrentValue;
			$this->field_3081_fr_fr->ViewCustomAttributes = "";

			// field_3082
			$this->field_3082->ViewValue = $this->field_3082->CurrentValue;
			$this->field_3082->ViewCustomAttributes = "";

			// field_3082_en_us
			$this->field_3082_en_us->ViewValue = $this->field_3082_en_us->CurrentValue;
			$this->field_3082_en_us->ViewCustomAttributes = "";

			// field_3082_fr_fr
			$this->field_3082_fr_fr->ViewValue = $this->field_3082_fr_fr->CurrentValue;
			$this->field_3082_fr_fr->ViewCustomAttributes = "";

			// field_3084
			$this->field_3084->ViewValue = $this->field_3084->CurrentValue;
			$this->field_3084->ViewValue = FormatNumber($this->field_3084->ViewValue, 0, -2, -2, -2);
			$this->field_3084->ViewCustomAttributes = "";

			// field_3085
			$this->field_3085->ViewValue = $this->field_3085->CurrentValue;
			$this->field_3085->ViewValue = FormatNumber($this->field_3085->ViewValue, 0, -2, -2, -2);
			$this->field_3085->ViewCustomAttributes = "";

			// field_3086
			$this->field_3086->ViewValue = $this->field_3086->CurrentValue;
			$this->field_3086->ViewValue = FormatNumber($this->field_3086->ViewValue, 0, -2, -2, -2);
			$this->field_3086->ViewCustomAttributes = "";

			// field_3096
			$this->field_3096->ViewValue = $this->field_3096->CurrentValue;
			$this->field_3096->ViewValue = FormatNumber($this->field_3096->ViewValue, 2, -2, -2, -2);
			$this->field_3096->ViewCustomAttributes = "";

			// field_3097
			$this->field_3097->ViewValue = $this->field_3097->CurrentValue;
			$this->field_3097->ViewCustomAttributes = "";

			// field_3098
			$this->field_3098->ViewValue = $this->field_3098->CurrentValue;
			$this->field_3098->ViewValue = FormatNumber($this->field_3098->ViewValue, 2, -2, -2, -2);
			$this->field_3098->ViewCustomAttributes = "";

			// field_3099
			$this->field_3099->ViewValue = $this->field_3099->CurrentValue;
			$this->field_3099->ViewValue = FormatNumber($this->field_3099->ViewValue, 2, -2, -2, -2);
			$this->field_3099->ViewCustomAttributes = "";

			// field_3100
			$this->field_3100->ViewValue = $this->field_3100->CurrentValue;
			$this->field_3100->ViewValue = FormatNumber($this->field_3100->ViewValue, 2, -2, -2, -2);
			$this->field_3100->ViewCustomAttributes = "";

			// field_3101
			$this->field_3101->ViewValue = $this->field_3101->CurrentValue;
			$this->field_3101->ViewValue = FormatNumber($this->field_3101->ViewValue, 2, -2, -2, -2);
			$this->field_3101->ViewCustomAttributes = "";

			// field_3102
			$this->field_3102->ViewValue = $this->field_3102->CurrentValue;
			$this->field_3102->ViewValue = FormatNumber($this->field_3102->ViewValue, 2, -2, -2, -2);
			$this->field_3102->ViewCustomAttributes = "";

			// field_3103
			$this->field_3103->ViewValue = $this->field_3103->CurrentValue;
			$this->field_3103->ViewValue = FormatNumber($this->field_3103->ViewValue, 2, -2, -2, -2);
			$this->field_3103->ViewCustomAttributes = "";

			// field_3104
			$this->field_3104->ViewValue = $this->field_3104->CurrentValue;
			$this->field_3104->ViewValue = FormatNumber($this->field_3104->ViewValue, 2, -2, -2, -2);
			$this->field_3104->ViewCustomAttributes = "";

			// field_3105
			$this->field_3105->ViewValue = $this->field_3105->CurrentValue;
			$this->field_3105->ViewValue = FormatNumber($this->field_3105->ViewValue, 0, -2, -2, -2);
			$this->field_3105->ViewCustomAttributes = "";

			// field_3106
			$this->field_3106->ViewValue = $this->field_3106->CurrentValue;
			$this->field_3106->ViewValue = FormatNumber($this->field_3106->ViewValue, 0, -2, -2, -2);
			$this->field_3106->ViewCustomAttributes = "";

			// field_3107
			$this->field_3107->ViewValue = $this->field_3107->CurrentValue;
			$this->field_3107->ViewValue = FormatNumber($this->field_3107->ViewValue, 0, -2, -2, -2);
			$this->field_3107->ViewCustomAttributes = "";

			// field_3108
			$this->field_3108->ViewValue = $this->field_3108->CurrentValue;
			$this->field_3108->ViewValue = FormatNumber($this->field_3108->ViewValue, 0, -2, -2, -2);
			$this->field_3108->ViewCustomAttributes = "";

			// field_3109
			$this->field_3109->ViewValue = $this->field_3109->CurrentValue;
			$this->field_3109->ViewValue = FormatNumber($this->field_3109->ViewValue, 0, -2, -2, -2);
			$this->field_3109->ViewCustomAttributes = "";

			// field_3110
			$this->field_3110->ViewValue = $this->field_3110->CurrentValue;
			$this->field_3110->ViewValue = FormatNumber($this->field_3110->ViewValue, 0, -2, -2, -2);
			$this->field_3110->ViewCustomAttributes = "";

			// field_3111
			$this->field_3111->ViewValue = $this->field_3111->CurrentValue;
			$this->field_3111->ViewValue = FormatNumber($this->field_3111->ViewValue, 0, -2, -2, -2);
			$this->field_3111->ViewCustomAttributes = "";

			// field_3112
			$this->field_3112->ViewValue = $this->field_3112->CurrentValue;
			$this->field_3112->ViewValue = FormatNumber($this->field_3112->ViewValue, 0, -2, -2, -2);
			$this->field_3112->ViewCustomAttributes = "";

			// field_3113
			$this->field_3113->ViewValue = $this->field_3113->CurrentValue;
			$this->field_3113->ViewCustomAttributes = "";

			// field_3113_en_us
			$this->field_3113_en_us->ViewValue = $this->field_3113_en_us->CurrentValue;
			$this->field_3113_en_us->ViewCustomAttributes = "";

			// field_3113_fr_fr
			$this->field_3113_fr_fr->ViewValue = $this->field_3113_fr_fr->CurrentValue;
			$this->field_3113_fr_fr->ViewCustomAttributes = "";

			// field_3114
			$this->field_3114->ViewValue = $this->field_3114->CurrentValue;
			$this->field_3114->ViewCustomAttributes = "";

			// field_3115
			$this->field_3115->ViewValue = $this->field_3115->CurrentValue;
			$this->field_3115->ViewValue = FormatNumber($this->field_3115->ViewValue, 2, -2, -2, -2);
			$this->field_3115->ViewCustomAttributes = "";

			// field_3115_si
			$this->field_3115_si->ViewValue = $this->field_3115_si->CurrentValue;
			$this->field_3115_si->ViewValue = FormatNumber($this->field_3115_si->ViewValue, 2, -2, -2, -2);
			$this->field_3115_si->ViewCustomAttributes = "";

			// field_3115_unit
			$this->field_3115_unit->ViewValue = $this->field_3115_unit->CurrentValue;
			$this->field_3115_unit->ViewValue = FormatNumber($this->field_3115_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3115_unit->ViewCustomAttributes = "";

			// field_3116
			$this->field_3116->ViewValue = $this->field_3116->CurrentValue;
			$this->field_3116->ViewValue = FormatDateTime($this->field_3116->ViewValue, 0);
			$this->field_3116->ViewCustomAttributes = "";

			// field_3117
			$this->field_3117->ViewValue = $this->field_3117->CurrentValue;
			$this->field_3117->ViewCustomAttributes = "";

			// field_3117_en_us
			$this->field_3117_en_us->ViewValue = $this->field_3117_en_us->CurrentValue;
			$this->field_3117_en_us->ViewCustomAttributes = "";

			// field_3117_fr_fr
			$this->field_3117_fr_fr->ViewValue = $this->field_3117_fr_fr->CurrentValue;
			$this->field_3117_fr_fr->ViewCustomAttributes = "";

			// field_3118
			$this->field_3118->ViewValue = $this->field_3118->CurrentValue;
			$this->field_3118->ViewCustomAttributes = "";

			// field_3118_en_us
			$this->field_3118_en_us->ViewValue = $this->field_3118_en_us->CurrentValue;
			$this->field_3118_en_us->ViewCustomAttributes = "";

			// field_3118_fr_fr
			$this->field_3118_fr_fr->ViewValue = $this->field_3118_fr_fr->CurrentValue;
			$this->field_3118_fr_fr->ViewCustomAttributes = "";

			// field_3119
			$this->field_3119->ViewValue = $this->field_3119->CurrentValue;
			$this->field_3119->ViewCustomAttributes = "";

			// field_3119_en_us
			$this->field_3119_en_us->ViewValue = $this->field_3119_en_us->CurrentValue;
			$this->field_3119_en_us->ViewCustomAttributes = "";

			// field_3119_fr_fr
			$this->field_3119_fr_fr->ViewValue = $this->field_3119_fr_fr->CurrentValue;
			$this->field_3119_fr_fr->ViewCustomAttributes = "";

			// field_3120
			$this->field_3120->ViewValue = $this->field_3120->CurrentValue;
			$this->field_3120->ViewCustomAttributes = "";

			// field_3120_en_us
			$this->field_3120_en_us->ViewValue = $this->field_3120_en_us->CurrentValue;
			$this->field_3120_en_us->ViewCustomAttributes = "";

			// field_3120_fr_fr
			$this->field_3120_fr_fr->ViewValue = $this->field_3120_fr_fr->CurrentValue;
			$this->field_3120_fr_fr->ViewCustomAttributes = "";

			// field_3121
			$this->field_3121->ViewValue = $this->field_3121->CurrentValue;
			$this->field_3121->ViewValue = FormatDateTime($this->field_3121->ViewValue, 0);
			$this->field_3121->ViewCustomAttributes = "";

			// field_3122
			$this->field_3122->ViewValue = $this->field_3122->CurrentValue;
			$this->field_3122->ViewValue = FormatNumber($this->field_3122->ViewValue, 2, -2, -2, -2);
			$this->field_3122->ViewCustomAttributes = "";

			// field_3122_si
			$this->field_3122_si->ViewValue = $this->field_3122_si->CurrentValue;
			$this->field_3122_si->ViewValue = FormatNumber($this->field_3122_si->ViewValue, 2, -2, -2, -2);
			$this->field_3122_si->ViewCustomAttributes = "";

			// field_3122_unit
			$this->field_3122_unit->ViewValue = $this->field_3122_unit->CurrentValue;
			$this->field_3122_unit->ViewValue = FormatNumber($this->field_3122_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3122_unit->ViewCustomAttributes = "";

			// field_3123
			$this->field_3123->ViewValue = $this->field_3123->CurrentValue;
			$this->field_3123->ViewCustomAttributes = "";

			// field_3124
			$this->field_3124->ViewValue = $this->field_3124->CurrentValue;
			$this->field_3124->ViewCustomAttributes = "";

			// field_3125
			$this->field_3125->ViewValue = $this->field_3125->CurrentValue;
			$this->field_3125->ViewCustomAttributes = "";

			// field_3126
			$this->field_3126->ViewValue = $this->field_3126->CurrentValue;
			$this->field_3126->ViewValue = FormatNumber($this->field_3126->ViewValue, 0, -2, -2, -2);
			$this->field_3126->ViewCustomAttributes = "";

			// field_3127
			$this->field_3127->ViewValue = $this->field_3127->CurrentValue;
			$this->field_3127->ViewValue = FormatNumber($this->field_3127->ViewValue, 0, -2, -2, -2);
			$this->field_3127->ViewCustomAttributes = "";

			// field_3128
			$this->field_3128->ViewValue = $this->field_3128->CurrentValue;
			$this->field_3128->ViewValue = FormatNumber($this->field_3128->ViewValue, 0, -2, -2, -2);
			$this->field_3128->ViewCustomAttributes = "";

			// field_3129
			$this->field_3129->ViewValue = $this->field_3129->CurrentValue;
			$this->field_3129->ViewValue = FormatNumber($this->field_3129->ViewValue, 0, -2, -2, -2);
			$this->field_3129->ViewCustomAttributes = "";

			// field_3130
			$this->field_3130->ViewValue = $this->field_3130->CurrentValue;
			$this->field_3130->ViewValue = FormatNumber($this->field_3130->ViewValue, 0, -2, -2, -2);
			$this->field_3130->ViewCustomAttributes = "";

			// field_3131
			$this->field_3131->ViewValue = $this->field_3131->CurrentValue;
			$this->field_3131->ViewValue = FormatNumber($this->field_3131->ViewValue, 0, -2, -2, -2);
			$this->field_3131->ViewCustomAttributes = "";

			// field_3132
			$this->field_3132->ViewValue = $this->field_3132->CurrentValue;
			$this->field_3132->ViewValue = FormatNumber($this->field_3132->ViewValue, 0, -2, -2, -2);
			$this->field_3132->ViewCustomAttributes = "";

			// field_3133
			$this->field_3133->ViewValue = $this->field_3133->CurrentValue;
			$this->field_3133->ViewValue = FormatNumber($this->field_3133->ViewValue, 0, -2, -2, -2);
			$this->field_3133->ViewCustomAttributes = "";

			// field_3134
			$this->field_3134->ViewValue = $this->field_3134->CurrentValue;
			$this->field_3134->ViewValue = FormatNumber($this->field_3134->ViewValue, 0, -2, -2, -2);
			$this->field_3134->ViewCustomAttributes = "";

			// field_3135
			$this->field_3135->ViewValue = $this->field_3135->CurrentValue;
			$this->field_3135->ViewValue = FormatNumber($this->field_3135->ViewValue, 0, -2, -2, -2);
			$this->field_3135->ViewCustomAttributes = "";

			// field_3136
			$this->field_3136->ViewValue = $this->field_3136->CurrentValue;
			$this->field_3136->ViewValue = FormatNumber($this->field_3136->ViewValue, 0, -2, -2, -2);
			$this->field_3136->ViewCustomAttributes = "";

			// field_3137
			$this->field_3137->ViewValue = $this->field_3137->CurrentValue;
			$this->field_3137->ViewValue = FormatNumber($this->field_3137->ViewValue, 0, -2, -2, -2);
			$this->field_3137->ViewCustomAttributes = "";

			// field_3138
			$this->field_3138->ViewValue = $this->field_3138->CurrentValue;
			$this->field_3138->ViewValue = FormatNumber($this->field_3138->ViewValue, 0, -2, -2, -2);
			$this->field_3138->ViewCustomAttributes = "";

			// field_3139
			$this->field_3139->ViewValue = $this->field_3139->CurrentValue;
			$this->field_3139->ViewValue = FormatNumber($this->field_3139->ViewValue, 0, -2, -2, -2);
			$this->field_3139->ViewCustomAttributes = "";

			// field_3140
			$this->field_3140->ViewValue = $this->field_3140->CurrentValue;
			$this->field_3140->ViewValue = FormatNumber($this->field_3140->ViewValue, 0, -2, -2, -2);
			$this->field_3140->ViewCustomAttributes = "";

			// field_3141
			$this->field_3141->ViewValue = $this->field_3141->CurrentValue;
			$this->field_3141->ViewValue = FormatNumber($this->field_3141->ViewValue, 0, -2, -2, -2);
			$this->field_3141->ViewCustomAttributes = "";

			// field_3142
			$this->field_3142->ViewValue = $this->field_3142->CurrentValue;
			$this->field_3142->ViewValue = FormatNumber($this->field_3142->ViewValue, 0, -2, -2, -2);
			$this->field_3142->ViewCustomAttributes = "";

			// field_3143
			$this->field_3143->ViewValue = $this->field_3143->CurrentValue;
			$this->field_3143->ViewValue = FormatNumber($this->field_3143->ViewValue, 0, -2, -2, -2);
			$this->field_3143->ViewCustomAttributes = "";

			// field_3144
			$this->field_3144->ViewValue = $this->field_3144->CurrentValue;
			$this->field_3144->ViewValue = FormatNumber($this->field_3144->ViewValue, 0, -2, -2, -2);
			$this->field_3144->ViewCustomAttributes = "";

			// field_3145
			$this->field_3145->ViewValue = $this->field_3145->CurrentValue;
			$this->field_3145->ViewValue = FormatNumber($this->field_3145->ViewValue, 0, -2, -2, -2);
			$this->field_3145->ViewCustomAttributes = "";

			// field_3146
			$this->field_3146->ViewValue = $this->field_3146->CurrentValue;
			$this->field_3146->ViewValue = FormatNumber($this->field_3146->ViewValue, 0, -2, -2, -2);
			$this->field_3146->ViewCustomAttributes = "";

			// field_3147
			$this->field_3147->ViewValue = $this->field_3147->CurrentValue;
			$this->field_3147->ViewValue = FormatNumber($this->field_3147->ViewValue, 0, -2, -2, -2);
			$this->field_3147->ViewCustomAttributes = "";

			// field_3148
			$this->field_3148->ViewValue = $this->field_3148->CurrentValue;
			$this->field_3148->ViewValue = FormatNumber($this->field_3148->ViewValue, 0, -2, -2, -2);
			$this->field_3148->ViewCustomAttributes = "";

			// field_3149
			$this->field_3149->ViewValue = $this->field_3149->CurrentValue;
			$this->field_3149->ViewValue = FormatNumber($this->field_3149->ViewValue, 0, -2, -2, -2);
			$this->field_3149->ViewCustomAttributes = "";

			// field_3150
			$this->field_3150->ViewValue = $this->field_3150->CurrentValue;
			$this->field_3150->ViewValue = FormatNumber($this->field_3150->ViewValue, 0, -2, -2, -2);
			$this->field_3150->ViewCustomAttributes = "";

			// field_3151
			$this->field_3151->ViewValue = $this->field_3151->CurrentValue;
			$this->field_3151->ViewValue = FormatNumber($this->field_3151->ViewValue, 0, -2, -2, -2);
			$this->field_3151->ViewCustomAttributes = "";

			// field_3152
			$this->field_3152->ViewValue = $this->field_3152->CurrentValue;
			$this->field_3152->ViewValue = FormatNumber($this->field_3152->ViewValue, 0, -2, -2, -2);
			$this->field_3152->ViewCustomAttributes = "";

			// field_3153
			$this->field_3153->ViewValue = $this->field_3153->CurrentValue;
			$this->field_3153->ViewValue = FormatNumber($this->field_3153->ViewValue, 0, -2, -2, -2);
			$this->field_3153->ViewCustomAttributes = "";

			// field_3154
			$this->field_3154->ViewValue = $this->field_3154->CurrentValue;
			$this->field_3154->ViewValue = FormatNumber($this->field_3154->ViewValue, 0, -2, -2, -2);
			$this->field_3154->ViewCustomAttributes = "";

			// field_3155
			$this->field_3155->ViewValue = $this->field_3155->CurrentValue;
			$this->field_3155->ViewValue = FormatNumber($this->field_3155->ViewValue, 0, -2, -2, -2);
			$this->field_3155->ViewCustomAttributes = "";

			// field_3156
			$this->field_3156->ViewValue = $this->field_3156->CurrentValue;
			$this->field_3156->ViewValue = FormatNumber($this->field_3156->ViewValue, 0, -2, -2, -2);
			$this->field_3156->ViewCustomAttributes = "";

			// field_3157
			$this->field_3157->ViewValue = $this->field_3157->CurrentValue;
			$this->field_3157->ViewValue = FormatNumber($this->field_3157->ViewValue, 0, -2, -2, -2);
			$this->field_3157->ViewCustomAttributes = "";

			// field_3158
			$this->field_3158->ViewValue = $this->field_3158->CurrentValue;
			$this->field_3158->ViewValue = FormatNumber($this->field_3158->ViewValue, 0, -2, -2, -2);
			$this->field_3158->ViewCustomAttributes = "";

			// field_3159
			$this->field_3159->ViewValue = $this->field_3159->CurrentValue;
			$this->field_3159->ViewValue = FormatNumber($this->field_3159->ViewValue, 0, -2, -2, -2);
			$this->field_3159->ViewCustomAttributes = "";

			// field_3160
			$this->field_3160->ViewValue = $this->field_3160->CurrentValue;
			$this->field_3160->ViewValue = FormatNumber($this->field_3160->ViewValue, 0, -2, -2, -2);
			$this->field_3160->ViewCustomAttributes = "";

			// field_3161
			$this->field_3161->ViewValue = $this->field_3161->CurrentValue;
			$this->field_3161->ViewValue = FormatNumber($this->field_3161->ViewValue, 0, -2, -2, -2);
			$this->field_3161->ViewCustomAttributes = "";

			// field_3162
			$this->field_3162->ViewValue = $this->field_3162->CurrentValue;
			$this->field_3162->ViewValue = FormatNumber($this->field_3162->ViewValue, 0, -2, -2, -2);
			$this->field_3162->ViewCustomAttributes = "";

			// field_3163
			$this->field_3163->ViewValue = $this->field_3163->CurrentValue;
			$this->field_3163->ViewValue = FormatNumber($this->field_3163->ViewValue, 0, -2, -2, -2);
			$this->field_3163->ViewCustomAttributes = "";

			// field_3164
			$this->field_3164->ViewValue = $this->field_3164->CurrentValue;
			$this->field_3164->ViewValue = FormatNumber($this->field_3164->ViewValue, 0, -2, -2, -2);
			$this->field_3164->ViewCustomAttributes = "";

			// field_3165
			$this->field_3165->ViewValue = $this->field_3165->CurrentValue;
			$this->field_3165->ViewValue = FormatNumber($this->field_3165->ViewValue, 0, -2, -2, -2);
			$this->field_3165->ViewCustomAttributes = "";

			// field_3166
			$this->field_3166->ViewValue = $this->field_3166->CurrentValue;
			$this->field_3166->ViewValue = FormatNumber($this->field_3166->ViewValue, 0, -2, -2, -2);
			$this->field_3166->ViewCustomAttributes = "";

			// field_3167
			$this->field_3167->ViewValue = $this->field_3167->CurrentValue;
			$this->field_3167->ViewValue = FormatNumber($this->field_3167->ViewValue, 2, -2, -2, -2);
			$this->field_3167->ViewCustomAttributes = "";

			// field_3168
			$this->field_3168->ViewValue = $this->field_3168->CurrentValue;
			$this->field_3168->ViewValue = FormatNumber($this->field_3168->ViewValue, 2, -2, -2, -2);
			$this->field_3168->ViewCustomAttributes = "";

			// field_3169
			$this->field_3169->ViewValue = $this->field_3169->CurrentValue;
			$this->field_3169->ViewValue = FormatNumber($this->field_3169->ViewValue, 0, -2, -2, -2);
			$this->field_3169->ViewCustomAttributes = "";

			// field_3170
			$this->field_3170->ViewValue = $this->field_3170->CurrentValue;
			$this->field_3170->ViewValue = FormatNumber($this->field_3170->ViewValue, 0, -2, -2, -2);
			$this->field_3170->ViewCustomAttributes = "";

			// field_3171
			$this->field_3171->ViewValue = $this->field_3171->CurrentValue;
			$this->field_3171->ViewCustomAttributes = "";

			// field_3172
			$this->field_3172->ViewValue = $this->field_3172->CurrentValue;
			$this->field_3172->ViewCustomAttributes = "";

			// field_3173
			$this->field_3173->ViewValue = $this->field_3173->CurrentValue;
			$this->field_3173->ViewValue = FormatNumber($this->field_3173->ViewValue, 2, -2, -2, -2);
			$this->field_3173->ViewCustomAttributes = "";

			// field_3173_si
			$this->field_3173_si->ViewValue = $this->field_3173_si->CurrentValue;
			$this->field_3173_si->ViewValue = FormatNumber($this->field_3173_si->ViewValue, 2, -2, -2, -2);
			$this->field_3173_si->ViewCustomAttributes = "";

			// field_3173_unit
			$this->field_3173_unit->ViewValue = $this->field_3173_unit->CurrentValue;
			$this->field_3173_unit->ViewValue = FormatNumber($this->field_3173_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3173_unit->ViewCustomAttributes = "";

			// field_3180
			$this->field_3180->ViewValue = $this->field_3180->CurrentValue;
			$this->field_3180->ViewCustomAttributes = "";

			// field_3180_en_us
			$this->field_3180_en_us->ViewValue = $this->field_3180_en_us->CurrentValue;
			$this->field_3180_en_us->ViewCustomAttributes = "";

			// field_3180_fr_fr
			$this->field_3180_fr_fr->ViewValue = $this->field_3180_fr_fr->CurrentValue;
			$this->field_3180_fr_fr->ViewCustomAttributes = "";

			// field_3181
			$this->field_3181->ViewValue = $this->field_3181->CurrentValue;
			$this->field_3181->ViewValue = FormatNumber($this->field_3181->ViewValue, 0, -2, -2, -2);
			$this->field_3181->ViewCustomAttributes = "";

			// field_3182
			$this->field_3182->ViewValue = $this->field_3182->CurrentValue;
			$this->field_3182->ViewValue = FormatNumber($this->field_3182->ViewValue, 0, -2, -2, -2);
			$this->field_3182->ViewCustomAttributes = "";

			// n_3189
			$this->n_3189->ViewValue = $this->n_3189->CurrentValue;
			$this->n_3189->ViewValue = FormatNumber($this->n_3189->ViewValue, 0, -2, -2, -2);
			$this->n_3189->ViewCustomAttributes = "";

			// n_3189_distance
			$this->n_3189_distance->ViewValue = $this->n_3189_distance->CurrentValue;
			$this->n_3189_distance->ViewValue = FormatNumber($this->n_3189_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3189_distance->ViewCustomAttributes = "";

			// n_3189_distance_by
			$this->n_3189_distance_by->ViewValue = $this->n_3189_distance_by->CurrentValue;
			$this->n_3189_distance_by->ViewValue = FormatNumber($this->n_3189_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3189_distance_by->ViewCustomAttributes = "";

			// field_3190
			$this->field_3190->ViewValue = $this->field_3190->CurrentValue;
			$this->field_3190->ViewValue = FormatDateTime($this->field_3190->ViewValue, 0);
			$this->field_3190->ViewCustomAttributes = "";

			// field_3192
			$this->field_3192->ViewValue = $this->field_3192->CurrentValue;
			$this->field_3192->ViewValue = FormatNumber($this->field_3192->ViewValue, 0, -2, -2, -2);
			$this->field_3192->ViewCustomAttributes = "";

			// field_3193
			$this->field_3193->ViewValue = $this->field_3193->CurrentValue;
			$this->field_3193->ViewCustomAttributes = "";

			// field_3195
			$this->field_3195->ViewValue = $this->field_3195->CurrentValue;
			$this->field_3195->ViewValue = FormatNumber($this->field_3195->ViewValue, 0, -2, -2, -2);
			$this->field_3195->ViewCustomAttributes = "";

			// field_3114_en_us
			$this->field_3114_en_us->ViewValue = $this->field_3114_en_us->CurrentValue;
			$this->field_3114_en_us->ViewCustomAttributes = "";

			// field_3114_fr_fr
			$this->field_3114_fr_fr->ViewValue = $this->field_3114_fr_fr->CurrentValue;
			$this->field_3114_fr_fr->ViewCustomAttributes = "";

			// n_3196
			$this->n_3196->ViewValue = $this->n_3196->CurrentValue;
			$this->n_3196->ViewValue = FormatNumber($this->n_3196->ViewValue, 0, -2, -2, -2);
			$this->n_3196->ViewCustomAttributes = "";

			// n_3196_distance
			$this->n_3196_distance->ViewValue = $this->n_3196_distance->CurrentValue;
			$this->n_3196_distance->ViewValue = FormatNumber($this->n_3196_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3196_distance->ViewCustomAttributes = "";

			// n_3196_distance_by
			$this->n_3196_distance_by->ViewValue = $this->n_3196_distance_by->CurrentValue;
			$this->n_3196_distance_by->ViewValue = FormatNumber($this->n_3196_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3196_distance_by->ViewCustomAttributes = "";

			// field_3197
			$this->field_3197->ViewValue = $this->field_3197->CurrentValue;
			$this->field_3197->ViewValue = FormatNumber($this->field_3197->ViewValue, 2, -2, -2, -2);
			$this->field_3197->ViewCustomAttributes = "";

			// field_3197_si
			$this->field_3197_si->ViewValue = $this->field_3197_si->CurrentValue;
			$this->field_3197_si->ViewValue = FormatNumber($this->field_3197_si->ViewValue, 2, -2, -2, -2);
			$this->field_3197_si->ViewCustomAttributes = "";

			// field_3197_unit
			$this->field_3197_unit->ViewValue = $this->field_3197_unit->CurrentValue;
			$this->field_3197_unit->ViewValue = FormatNumber($this->field_3197_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3197_unit->ViewCustomAttributes = "";

			// id
			$this->id->LinkCustomAttributes = "";
			$this->id->HrefValue = "";
			$this->id->TooltipValue = "";

			// field_3119
			$this->field_3119->LinkCustomAttributes = "";
			$this->field_3119->HrefValue = "";
			$this->field_3119->TooltipValue = "";

			// field_3119_en_us
			$this->field_3119_en_us->LinkCustomAttributes = "";
			$this->field_3119_en_us->HrefValue = "";
			$this->field_3119_en_us->TooltipValue = "";

			// field_3119_fr_fr
			$this->field_3119_fr_fr->LinkCustomAttributes = "";
			$this->field_3119_fr_fr->HrefValue = "";
			$this->field_3119_fr_fr->TooltipValue = "";

			// field_3120
			$this->field_3120->LinkCustomAttributes = "";
			$this->field_3120->HrefValue = "";
			$this->field_3120->TooltipValue = "";

			// field_3120_en_us
			$this->field_3120_en_us->LinkCustomAttributes = "";
			$this->field_3120_en_us->HrefValue = "";
			$this->field_3120_en_us->TooltipValue = "";

			// field_3120_fr_fr
			$this->field_3120_fr_fr->LinkCustomAttributes = "";
			$this->field_3120_fr_fr->HrefValue = "";
			$this->field_3120_fr_fr->TooltipValue = "";

			// field_3190
			$this->field_3190->LinkCustomAttributes = "";
			$this->field_3190->HrefValue = "";
			$this->field_3190->TooltipValue = "";

			// field_3192
			$this->field_3192->LinkCustomAttributes = "";
			$this->field_3192->HrefValue = "";
			$this->field_3192->TooltipValue = "";

			// field_3193
			$this->field_3193->LinkCustomAttributes = "";
			$this->field_3193->HrefValue = "";
			$this->field_3193->TooltipValue = "";

			// field_3195
			$this->field_3195->LinkCustomAttributes = "";
			$this->field_3195->HrefValue = "";
			$this->field_3195->TooltipValue = "";

			// field_3114_en_us
			$this->field_3114_en_us->LinkCustomAttributes = "";
			$this->field_3114_en_us->HrefValue = "";
			$this->field_3114_en_us->TooltipValue = "";

			// field_3114_fr_fr
			$this->field_3114_fr_fr->LinkCustomAttributes = "";
			$this->field_3114_fr_fr->HrefValue = "";
			$this->field_3114_fr_fr->TooltipValue = "";

			// n_3196
			$this->n_3196->LinkCustomAttributes = "";
			$this->n_3196->HrefValue = "";
			$this->n_3196->TooltipValue = "";

			// n_3196_distance
			$this->n_3196_distance->LinkCustomAttributes = "";
			$this->n_3196_distance->HrefValue = "";
			$this->n_3196_distance->TooltipValue = "";

			// n_3196_distance_by
			$this->n_3196_distance_by->LinkCustomAttributes = "";
			$this->n_3196_distance_by->HrefValue = "";
			$this->n_3196_distance_by->TooltipValue = "";

			// field_3197
			$this->field_3197->LinkCustomAttributes = "";
			$this->field_3197->HrefValue = "";
			$this->field_3197->TooltipValue = "";

			// field_3197_si
			$this->field_3197_si->LinkCustomAttributes = "";
			$this->field_3197_si->HrefValue = "";
			$this->field_3197_si->TooltipValue = "";

			// field_3197_unit
			$this->field_3197_unit->LinkCustomAttributes = "";
			$this->field_3197_unit->HrefValue = "";
			$this->field_3197_unit->TooltipValue = "";
		}

		// Call Row Rendered event
		if ($this->RowType != ROWTYPE_AGGREGATEINIT)
			$this->Row_Rendered();
	}

	// Delete records based on current filter
	protected function deleteRows()
	{
		global $Language, $Security;
		$deleteRows = TRUE;
		$sql = $this->getCurrentSql();
		$conn = $this->getConnection();
		$conn->raiseErrorFn = Config("ERROR_FUNC");
		$rs = $conn->execute($sql);
		$conn->raiseErrorFn = "";
		if ($rs === FALSE) {
			return FALSE;
		} elseif ($rs->EOF) {
			$this->setFailureMessage($Language->phrase("NoRecord")); // No record found
			$rs->close();
			return FALSE;
		}
		$rows = ($rs) ? $rs->getRows() : [];
		$conn->beginTrans();

		// Clone old rows
		$rsold = $rows;
		if ($rs)
			$rs->close();

		// Call row deleting event
		if ($deleteRows) {
			foreach ($rsold as $row) {
				$deleteRows = $this->Row_Deleting($row);
				if (!$deleteRows)
					break;
			}
		}
		if ($deleteRows) {
			$key = "";
			foreach ($rsold as $row) {
				$thisKey = "";
				if ($thisKey != "")
					$thisKey .= Config("COMPOSITE_KEY_SEPARATOR");
				$thisKey .= $row['id'];
				if (Config("DELETE_UPLOADED_FILES")) // Delete old files
					$this->deleteUploadedFiles($row);
				$conn->raiseErrorFn = Config("ERROR_FUNC");
				$deleteRows = $this->delete($row); // Delete
				$conn->raiseErrorFn = "";
				if ($deleteRows === FALSE)
					break;
				if ($key != "")
					$key .= ", ";
				$key .= $thisKey;
			}
		}
		if (!$deleteRows) {

			// Set up error message
			if ($this->getSuccessMessage() != "" || $this->getFailureMessage() != "") {

				// Use the message, do nothing
			} elseif ($this->CancelMessage != "") {
				$this->setFailureMessage($this->CancelMessage);
				$this->CancelMessage = "";
			} else {
				$this->setFailureMessage($Language->phrase("DeleteCancelled"));
			}
		}
		if ($deleteRows) {
			$conn->commitTrans(); // Commit the changes
		} else {
			$conn->rollbackTrans(); // Rollback changes
		}

		// Call Row Deleted event
		if ($deleteRows) {
			foreach ($rsold as $row) {
				$this->Row_Deleted($row);
			}
		}

		// Write JSON for API request (Support single row only)
		if (IsApi() && $deleteRows) {
			$row = $this->getRecordsFromRecordset($rsold, TRUE);
			WriteJson(["success" => TRUE, $this->TableVar => $row]);
		}
		return $deleteRows;
	}

	// Set up Breadcrumb
	protected function setupBreadcrumb()
	{
		global $Breadcrumb, $Language;
		$Breadcrumb = new Breadcrumb();
		$url = substr(CurrentUrl(), strrpos(CurrentUrl(), "/")+1);
		$Breadcrumb->add("list", $this->TableVar, $this->addMasterUrl("wp_wpl_propertieslist.php"), "", $this->TableVar, TRUE);
		$pageId = "delete";
		$Breadcrumb->add("delete", $pageId, $url);
	}

	// Setup lookup options
	public function setupLookupOptions($fld)
	{
		if ($fld->Lookup !== NULL && $fld->Lookup->Options === NULL) {

			// Get default connection and filter
			$conn = $this->getConnection();
			$lookupFilter = "";

			// No need to check any more
			$fld->Lookup->Options = [];

			// Set up lookup SQL and connection
			switch ($fld->FieldVar) {
				case "x_deleted":
					break;
				default:
					$lookupFilter = "";
					break;
			}

			// Always call to Lookup->getSql so that user can setup Lookup->Options in Lookup_Selecting server event
			$sql = $fld->Lookup->getSql(FALSE, "", $lookupFilter, $this);

			// Set up lookup cache
			if ($fld->UseLookupCache && $sql != "" && count($fld->Lookup->Options) == 0) {
				$totalCnt = $this->getRecordCount($sql, $conn);
				if ($totalCnt > $fld->LookupCacheCount) // Total count > cache count, do not cache
					return;
				$rs = $conn->execute($sql);
				$ar = [];
				while ($rs && !$rs->EOF) {
					$row = &$rs->fields;

					// Format the field values
					switch ($fld->FieldVar) {
					}
					$ar[strval($row[0])] = $row;
					$rs->moveNext();
				}
				if ($rs)
					$rs->close();
				$fld->Lookup->Options = $ar;
			}
		}
	}

	// Page Load event
	function Page_Load() {

		//echo "Page Load";
	}

	// Page Unload event
	function Page_Unload() {

		//echo "Page Unload";
	}

	// Page Redirecting event
	function Page_Redirecting(&$url) {

		// Example:
		//$url = "your URL";

	}

	// Message Showing event
	// $type = ''|'success'|'failure'|'warning'
	function Message_Showing(&$msg, $type) {
		if ($type == 'success') {

			//$msg = "your success message";
		} elseif ($type == 'failure') {

			//$msg = "your failure message";
		} elseif ($type == 'warning') {

			//$msg = "your warning message";
		} else {

			//$msg = "your message";
		}
	}

	// Page Render event
	function Page_Render() {

		//echo "Page Render";
	}

	// Page Data Rendering event
	function Page_DataRendering(&$header) {

		// Example:
		//$header = "your header";

	}

	// Page Data Rendered event
	function Page_DataRendered(&$footer) {

		// Example:
		//$footer = "your footer";

	}
} // End class
?>

Hry