Esempio n. 1
0
	}
}
if (file_exists('../modules/notifiable_report/class.notifiable_report.php')) {
	include '../modules/notifiable_report/class.notifiable_report.php';
	$notifiable_report = new notifiable_report;
	if (!$module->activated('notifiable_report') && $initmod) {
		$notifiable_report->init_sql();
		$notifiable_report->init_menu();
		$notifiable_report->init_deps();
		$notifiable_report->init_lang();
		$notifiable_report->init_help();
	}
}
if (file_exists('../modules/ntp/class.ntp.php')) {
	include '../modules/ntp/class.ntp.php';
	$ntp = new ntp;
	if (!$module->activated('ntp') && $initmod) {
		$ntp->init_sql();
		$ntp->init_menu();
		$ntp->init_deps();
		$ntp->init_lang();
		$ntp->init_help();
	}
}
if (file_exists('../modules/ntp_report/class.ntp_report.php')) {
	include '../modules/ntp_report/class.ntp_report.php';
	$ntp_report = new ntp_report;
	if (!$module->activated('ntp_report') && $initmod) {
		$ntp_report->init_sql();
		$ntp_report->init_menu();
		$ntp_report->init_deps();
Esempio n. 2
0
 function _ntp_partners()
 {
     //
     // main submodule for treatment partners
     // calls form_partner()
     //       display_partner()
     //       process_partner()
     //
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('ntp')) {
         return print $exitinfo;
     }
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
         //print_r($arg_list);
     }
     $n = new ntp();
     if ($post_vars["submitpartner"]) {
         $n->process_partner($menu_id, $post_vars, $get_vars);
     }
     $n->display_partner($menu_id, $post_vars, $get_vars);
     $n->form_partner($menu_id, $post_vars, $get_vars);
 }