Location: PHPKode > projects > CK-ERP > ck-hr/categoryadd.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.
//
// categoryadd.php 0.30.1 2010/06/30 C K Wu

	$app = 'ck-hr' ;
	$tran = 'category' ;
	require_once('../ck-api/ckapi.inc.php') ;

	$ckapi['params'] = array( 'pre'		=> $pre ,
				'app'		=> $app ,
				'class'		=> 'ck_category' ,
				'tran'		=> $tran ,
				'table'		=> $pre.$tran ,
				'uniqueflds'	=> array('type','name')		);
	$msg1 = exapi_lang('HR codes are designed to be permanent items.') ;
	$msg2 = exapi_lang('Normally hr codes should not be modified/deleted.') ;
	$ckapi['phrases'] = array('lang_title'	=> exapi_lang('Add %1',exapi_lang('HR Code')) ,
				'lang_post'	=> exapi_lang('Update %1',exapi_lang('HR Code')) ,
				'lang_tran'	=> exapi_lang('HR Code') ,
				'message'	=> $msg1.'  '.$msg2		);

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

?>

Return current item: CK-ERP