<?php
	$rn = 'ageing_report_'.date('Y_m_d').'_'.SableGeneralFunctions::getClassNameFormat(SableGeneralFunctions::getFullUserName(false), '_');
?>
<form id="frmUser" name="frmUser" autocomplete="on">
    <input type="hidden" id="hddnHardwareReportFile" value=""/>
    <div class="forms">
        <div class="container">
            <div class="row forms-grid">
                <div class="col-md-12">
                    <h3 class="title"><i class="fa fa-money-check-alt" aria-hidden="true"></i>&nbsp;Age Analysis</h3>
                    <p></p>
                </div>
            </div>
        	<p></p>
        
        	<!--// edtReportName -->
            <div class="row forms-grid">
                <div class="col-md-5">
                    <input name="edtReportName" type="text" id="edtReportName" placeholder="Report Name"
                    onfocus="showHint('edtReportName');" onblur="hideHint('edtReportName'); validate_edtReportName()"
                    onkeypress="handleEnter(this, event)" value="<?php echo($rn); ?>"/>	
                </div>
            </div>
            <div class="row forms-grid_">
                <div class="col-md-5">
                	<div class="fieldHint" id="hint_edtReportName">Report Name</div>
                </div>
            </div>            
        	<p></p>
        	<!-- edtReportName //-->                                            
			
			<!--// edtClientName -->
			<div class="row forms-grids">
				<div class="col-md-5 forms-grid">
					<input type="text" id="edtClientName" name="edtClientName" placeholder="SEARCH..." onKeyUp="doClientRefinement(this)" style="border-bottom: none;" autocomplete="off"/>
				</div>
				<div class="col-md-7">
					<div class="fieldHint" id="hint_edtClientName">Search by name or cell no.</div>
				</div>   
			</div>
			<!-- edtClientName //-->		
			<!--// selClientId -->
			<div class="row forms-grid">
				<div class="col-md-5 forms-grid">
					<div class="dropdown">
						<select name="selClientId" type="select" id="selClientId" onfocus="showHint('selClientId');" onblur="hideHint('selClientId');"
								onkeypress="handleEnter(this, event)" placeholder="Client" size="6" class="noArrow"  onClick="setClientName()" >
						<?php echo(SableDBFunctions::getOptions("client", "client_id", "concat(client_name, ' ', client_surname, ' [', client_cell, ']')", -1)); ?>
						</select>
					</div>
				</div>
				<div class="col-md-7">
				</div>
			</div>
			<div class="row forms-grid">
				<div class="col-md-5 forms-grid">
					<div class="fieldHint hintUnder" id="hint_selClientId">Client</div>
				</div>
				<div class="col-md-7">
					
				</div>
			</div>			
			<p></p>
			<!-- selClientId //-->			

        	<!--// buttons -->
            <div class="row forms-grid">
                <div class="col-md-2 forms-grid">
                	<input id="btnOk" type="button" onclick="runAgeingReport()" value="Run" class="submit"/>
                </div>
            </div>
            <!-- buttons //-->
        </div>
    </div>
</form>