Location: PHPKode > projects > SimpleHRM > simplehrm-1.0-beta1/simplehrm-1.0-beta1/templates/default/employee/leaveRequestSearch.tpl.html
{assign var=emp_sts value=$util->get_values_from_config('EMPLOYMENT_STATUS')}
{if $smarty.session.id_company}
<table>
	<tr>
    		<td>			
			<div id="employee_leaveRequest" class="mrgtp_16">{include file=employee/leaveRequestList}</div>
		</td>
	</tr>
</table>
{else}
	<div id="employee_leaveRequest">{include file=employee/leaveRequestList}</div>
{/if}
{literal}
<script type="text/javascript">
	var f;
	function searchLeaveRequest(f,msg,k,qs){
		cShowActivity('1');
		var url="##LBL_SITE_URL##index.php/page-employee-choice-leaveRequest";
		// for filter on Leave status
		var leavestatus='';
		$('.leavestatus').each(function(){
			if($(this).is(':checked'))
				leavestatus+=","+$(this).val();
		});
		if(leavestatus == '')
			leavestatus=",1";
		if(qs===''){
			var qs=$("#qstart").val();
		}
		$.post(url,{ce:0,chk:1,f:f,keys:k,msg:msg,qs:qs,leavestatus:leavestatus},function(res){
			$("#employee_leaveRequest").html(res);
			cHideActivity();
		});
	}
	function searchEmployeeList(f,msg,k,qs){
		$("#a_terminate").css("font-weight","bold");
		cShowActivity('1');
		var url="##LBL_SITE_URL##index.php/page-employee-choice-employeeList";
		$.post(url,{ce:0,f:f,emp_status:"1",Tchk:1},function(res){
			$("#container").html(res);
			cHideActivity();
		});
	}
</script>
{/literal}
Return current item: SimpleHRM