<?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.
//
// emppersonfilter.php 0.30.1 2010/06/30 C K Wu
$app = 'ck-hr' ;
$tran = 'empperson' ;
require_once('../ck-api/ckapi.inc.php') ;
$ckapi['params'] = array( 'pre' => $pre ,
'app' => $app ,
'class' => $tran ,
'tran' => $tran ,
'table' => $pre.$tran ) ;
$ckapi['phrases'] = array('lang_title' => exapi_lang('Search among existing - %1 :',exapi_lang('Employee Personal Record')) ,
'lang_criteria' => exapi_lang('Searching Criteria') ,
'lang_value' => exapi_lang('Value') ,
'lang_note' => exapi_lang('Note') ,
'lang_search' => exapi_lang('Start Search') ,
'lang_add' => exapi_lang('Add New %1',exapi_lang('Employee Personal Record')) ,
'lang_search_message' => exapi_lang('Emp - Employee') ,
'message' => '' );
$nullopt = "<OPTION value='ALL'></OPTION>" ;
$lang_prefix = strtolower(exapi_lang('prefix')) ;
$lang_suffix = strtolower(exapi_lang('suffix')) ;
$ckapi['filter'][] = array('criteria' => exapi_lang('Prefix') ,
'type' => 'select' ,
'selectlist' =>$nullopt.selectlist('category','name',"WHERE app='$app' and type='$lang_prefix'",'','name','name') ,
'varname' => 'prefix' ,
'defval' => '' ,
'note' => exapi_lang('Search for target Employee Personal Name Prefix'));
$ckapi['filter'][] = array('criteria' => exapi_lang('Suffix') ,
'type' => 'select' ,
'selectlist' =>$nullopt.selectlist('category','name',"WHERE app='$app' and type='$lang_suffix'",'','name','name') ,
'varname' => 'suffix' ,
'defval' => '' ,
'note' => exapi_lang('Search for target Employee Personal Name Suffix')) ;
$ckapi['filter'][] = array('criteria' => exapi_lang('Employee Personal Name/#') ,
'type' => 'input' ,
'varname' => 'prsnumber' ,
'defval' => '' ,
'note' =>exapi_lang('Search for target key word in Emp Personal Name/# Field') ) ;
$ckapi['filter'][] = array('criteria' => exapi_lang('Family Name') ,
'type' => 'input' ,
'varname' => 'family' ,
'defval' => '' ,
'note' =>exapi_lang('Search for target key word in Emp Personal Family Name Field'));
$ckapi['filter'][] = array('criteria' => exapi_lang('Given Name') ,
'type' => 'input' ,
'varname' => 'given' ,
'defval' => '' ,
'note' =>exapi_lang('Search for target key word in Emp Personal Given Name Field') );
$ckapi['filter'][] = array('criteria' => exapi_lang('National ID') ,
'type' => 'input' ,
'varname' => 'nationalid' ,
'defval' => '' ,
'note' =>exapi_lang('Search for target key word in Emp Personal National ID Field'));
$proc = newobj('ck-api','process') ;
$proc->process_filter() ;
ck_footer() ;
?>