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

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

	$ckapi['params'] = array( 'pre'		=> $pre ,
				'app'		=> $app ,
				'class'		=> $tran ,
				'tran'		=> $tran ,
				'table'		=> $pre.$tran ,
				'uniqueflds'	=> '' ,
				'uniwhere'	=> ' '				);
	$ckapi['phrases'] = array('lang_title'	=> exapi_lang('Copy %1',exapi_lang('Timesheet')) ,
				'lang_post'	=> exapi_lang('Post %1',exapi_lang('Timesheet')) ,
				'lang_replicate'=> exapi_lang('Replicate from Caption') ,
				'lang_newrow'	=> exapi_lang('Add New Row') ,
				'lang_tran'	=> exapi_lang('Timesheet') ,
				'message'	=> ''				) ;
	$ckapi['tables']['parents'] = array(	$pre.$tran	=> ''		) ;
	$ckapi['tables']['children'] = array(	$pre.'ts_trans'	=> 'trans_id' ,
						$pre.'leave'	=> 'trans_id'	);
	$ckapi['buttons'] = array('insert'	=> '' ,
				'delete'	=> '' ,
				'replicate'	=> '' ,
				'post'		=> '' ,
				'newrow'	=> '' 				) ;

	$proc1 = newobj('ck-api','process1') ;
	$proc1->process1_copy() ;
	ck_footer() ;

?>
Return current item: CK-ERP