Beispiel #1
0
function updateLongTerm($parm)
{
    $pComplaintID = $parm["ComplaintID"];
    $pValue = $parm["value"] == "true" ? 1 : 0;
    $complaint = new complaint($pComplaintID);
    $complaint->setLongTermRenovation($pValue);
    $complaint->save();
}
    function form_consult_complaint() {
    //
    // create complaint section of notes
    //
        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);
        }
        print "<a name='notes_form'>";
        print "<table width='300'>";
        print "<form method='post' action='#notes_form' name='form_notes'>";
        print "<tr><td>";
        print "<b>".FTITLE_CONSULT_COMPLAINT_FORM."</b><br/>";
        print "<br/></td></tr>";
        print "<tr><td>";
        print "<span class='boxtitle'>".LBL_NOTES_ID."</span><br/>";
        print "<font color='red'>".module::pad_zero($get_vars["notes_id"],7)."</font><br/>";
        print "<br/></td></tr>";
        print "<tr><td>";
        print "<span class='boxtitle'>".LBL_COMPLAINT."</span><br/>";
        print complaint::checkbox_complaintcat();
        print "<br/></td></tr>";
        print "<tr><td>";
        print "<input type='submit' name='submitnotes' value='Save Complaint' class='textbox' style='border: 1px solid black'/> ";
        print "<br/></td></tr>";
        print "</form>";
        print "</table><br/>";

    }
Beispiel #3
0
	}
}
if (file_exists('../modules/ccdev_report/class.ccdev_report.php')) {
	include '../modules/ccdev_report/class.ccdev_report.php';
	$ccdev_report = new ccdev_report;
	if (!$module->activated('ccdev_report') && $initmod) {
		$ccdev_report->init_sql();
		$ccdev_report->init_menu();
		$ccdev_report->init_deps();
		$ccdev_report->init_lang();
		$ccdev_report->init_help();
	}
}
if (file_exists('../modules/complaint/class.complaint.php')) {
	include '../modules/complaint/class.complaint.php';
	$complaint = new complaint;
	if (!$module->activated('complaint') && $initmod) {
		$complaint->init_sql();
		$complaint->init_menu();
		$complaint->init_deps();
		$complaint->init_lang();
		$complaint->init_help();
	}
}
if (file_exists('../modules/consult_report/class.consult_report.php')) {
	include '../modules/consult_report/class.consult_report.php';
	$consult_report = new consult_report;
	if (!$module->activated('consult_report') && $initmod) {
		$consult_report->init_sql();
		$consult_report->init_menu();
		$consult_report->init_deps();