<?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.
//
// imageedit.php 0.30.1 2010/06/30 C K Wu
$app = 'ck-hr' ;
$tran = 'image' ;
require_once('../ck-api/ckapi.inc.php') ;
$ckapi['params'] = array( 'pre' => $pre ,
'app' => $app ,
'class' => $tran ,
'tran' => $tran ,
'table' => $pre.'empperson' ,
'uniqueflds' => '' ,
'return' => "/$app/${tran}edit.php" ) ;
$warn1 = exapi_lang("Image must be previewed before update.") ;
$warn2 = exapi_lang("Maximum image file size is 10K.") ;
$warn3 = exapi_lang("This (file upload) feature is not supported consistently across all browsers.") ;
$warn4 = exapi_lang("Firefox is the recommended browser.") ;
$warn5 = exapi_lang("Image update/preview will fail when multiple concurrent updates/previews occur.") ;
$warn6 = exapi_lang("Just try a few more times.") ;
$warn7 = exapi_lang("Be sure to view and check the saved image after update.") ;
$msg1 = exapi_lang("After image had been updated, close this image window and refresh the main contact screen to allow display of the updated image.") ;
$warning = "<b>$warn1 $warn2</b><br><br>$warn3 $warn4 $warn5 $warn6 $warn7 $msg1" ;
$ckapi['phrases'] = array('lang_title' => exapi_lang("Edit image") ,
'lang_post' => exapi_lang('Update image') ,
'lang_preview' => exapi_lang('Preview New image') ,
'lang_tran' => exapi_lang("Image for Contact") ,
'warning' => $warning ,
'message' => "" );
$ckapi['tables']["parents"] = array("${pre}empperson"=> "skipskip" );
$ckapi['buttons'] = array('post' => "" ,
'preview' => "" ) ;
$proc1 = newobj('ck-api','process1') ;
$proc1->process1_edit() ;
ck_footer() ;
?>