Location: PHPKode > projects > CK-ERP > ck-hr/commcatfilter_validate.php
<?php
//
// CK-ERP  --  Copyright (C) 2004 - 2010       Wu Chiu Kay
// ------------------------------------------------------
//  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
//
// commcatfilter_validate.php 0.30.1 2010/06/30 C K Wu

	$app = 'ck-hr' ;
	$tran = 'commcat' ;
	$noheader = $nonavbar = True ;
	require_once('../ck-api/ckapi.inc.php') ;

	$ckapi['params'] = array( 'pre'		=> $pre ,
				'app'		=> $app ,
				'class'		=> $tran ,
				'tran'		=> $tran			) ;

	$_POST['app'] = 'ck-hr' ;
	$_POST['type'] = strtolower(exapi_lang('comm')) ;
	$_POST['parent'] = '0' ;
	$ckapi['sql_filter'][]		= array('type'=>'',	'char'=>'0',	'str1'=>'1=1'		) ;
	$ckapi['sql_filter']['app']	= array('type'=>'',	'char'=>'1',	'str1'=>'app'		) ;
	$ckapi['sql_filter']['type']	= array('type'=>'',	'char'=>'1',	'str1'=>'type'		) ;
	$ckapi['sql_filter']['parent']	= array('type'=>'',	'char'=>'1',	'str1'=>'parent'	) ;
	$ckapi['sql_filter']['name']	= array('type'=>'string','char'=>'6',	'str1'=>'name'		) ;
	$ckapi['sql_filter']['description']= array('type'=>'string','char'=>'6','str1'=>'description'	) ;

	$proc = newobj('ck-api','process') ;
	$proc->process_filter_validate() ;

?>
Return current item: CK-ERP