<?php
/*
OpenDataBag - Data Web Interface
Copyright (C) 2004 Nawara
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
$id=get('id');
if($id)
{
$tmp_line_array=search('sysId='.$id.' MyBag=');
if(count($tmp_line_array)==1)
{
$tmp_variable_array=line2array($tmp_line_array[0]);
$tmp_variable_array['sysComment']='Quality accepted';
$tmp_variable_array['Quality']='Valid';
$tmp_variable_array['Quality By']=USERNAME;
$tmp_variable_array['Quality Date']=date('Ymd');
//USEREXIT OnSave
//~ $userexit='onsave';
//~ if(file_exists(cfg_data_path.'/config/userexit/exit_'.$userexit.'.txt'))
//~ {
//~ include(cfg_data_path.'/config/userexit/exit_'.$userexit.'.txt');
//~ }
//~ else
//~ {
//~ include(cfg_data_path.'/script/userexit/exit_'.$userexit.'.txt');
//~ }
save($tmp_variable_array);
}
}
?>