<?php
//require_once('../includes/sysinit.php');
//SELECT concat('[',unit_std_code,'] '), unit_std_name FROM `unit_standards` WHERE `unit_std_id` = 78
//$sql = "select ".$resultIdField.", ".$resultDescField." from ".$resultTableName;

	$callRefineField    = array();
	$callRefineField[0] = "user_title";
	$callRefineField[1] = "user_name";
	$callRefineField[3] = "user_surname";
	
	$restrictionFields = [];
	if (($_SESSION['user']['access_level'] < 20) && isset($_GET))
	{
		$restrictionFields[0]['name'] 		= "company_id";
		$restrictionFields[0]['operator'] 	= "=";
		$restrictionFields[0]['value'] 		= $_GET[id];
	}
	
	$callOrderField 	= "user_surname";
	$resultTableName	 = 	["table_name" => "user", 
								[
									"table_name" => "user_title",
									"id_field_name" => "user_title_id"
								]
							];
	$resultIdField		= "user_code";
	$resultDescField	= "concat(user_title, '. ', user_name, ' ', user_surname)";
	/*** -- end -- ***/
	require('optionsListRefiner.php');		
?>