1 <?php
3 if (!$remove_lock){
4 /* Create fonreport object on demand */
5 if (!session::is_set('fonreport') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
6 session::set('fonreport',new fonreport ($config, $ui));
7 }
8 $fonreport = session::get('fonreport');
10 /* Execute formular */
11 $fonreport->save_object();
12 $display= $fonreport->execute ();
13 $display.= "<input type=\"hidden\" name=\"ignore\">\n";
15 /* Page header*/
16 $display= print_header(get_template_path('plugins/gofon/images/phonereport.png'), _("Phone reports")).$display;
18 /* Store changes in session */
19 session::set('fonreport',$fonreport);
20 }
21 ?>