phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/custom/organize_drawing.php, 1.1.2.1


From: nomail
Subject: [Phpgroupware-cvs] property/inc/custom/organize_drawing.php, 1.1.2.1
Date: Fri, 5 Nov 2004 16:09:49 +0100

Update of /property/inc/custom
Added Files:
        Branch: proposed-0_9_18-branch
          organize_drawing.php

date: 2004/11/05 15:09:49;  author: sigurdne;  state: Exp;  lines: +64 -0

Log Message:
no message
=====================================================================
<?php

        class organize_drawing
        {
                function organize_drawing()
                {
                        $this->currentapp       = 
$GLOBALS['phpgw_info']['flags']['currentapp'];
                        $this->bocommon                         = 
CreateObject($this->currentapp.'.bocommon');

                        $confirm        = get_var('confirm',array('POST'));

                        $link_data = array
                        (
                                'menuaction' => 
$this->currentapp.'.custom_functions.index',
                                'function'      =>'organize_drawing'
                        );

                        if (get_var('confirm',array('POST')))
                        {
                                $receipt= $this->run();
                        }
                        else
                        {
                                $lang_confirm_msg       = 'Vil du virkelig 
utføre denne operasjonen';
                                $lang_yes                       = lang('yes');
                        }

                        
$GLOBALS['phpgw']->xslttpl->add_file(array('confirm_custom'));

                        $msgbox_data = $this->bocommon->msgbox_data($receipt);

                        $data = array
                        (
                                'msgbox_data'                   => 
$GLOBALS['phpgw']->common->msgbox($msgbox_data),
                                'done_action'                   => 
$GLOBALS['phpgw']->link('/admin/index.php'),
                                'run_action'                    => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
                                'message'                               => 
$receipt['message'],
                                'lang_confirm_msg'              => 
$lang_confirm_msg,
                                'lang_yes'                              => 
$lang_yes,
                                'lang_yes_statustext'   => 'Organisere 
tegninger i register og på disk',
                                'lang_no_statustext'    => 'tilbake',
                                'lang_no'                               => 
lang('no'),
                                'lang_done'                             => 
'Avbryt',
                                'lang_done_statustext'  => 'tilbake'
                        );

                        $appname                = 'Organisere tegninger';
                        $function_msg   = 'Organisere tegninger i register og 
på disk';
                        $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang($this->currentapp) . ' - ' . $appname . ': ' . $function_msg;
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('confirm' => $data));
                        $GLOBALS['phpgw']->xslttpl->pp();

                }

                function run()
                {
                        $debug  = get_var('debug',array('POST','GET'));
                        _debug_array($_GET);
                        _debug_array($debug);

                }

        }
?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]