コード例 #1
0
            $name_res = $db_object->get_a_line($name_qry);
            $alert_res[$i][addedby] = $name_res[username];
        }
        $values["alert_loop"] = $alert_res;
        $content = $common->simpleloopprocess($db_object, $content, $values);
        $content = $common->direct_replace($db_object, $content, $xArray);
        echo $content;
    }
    function date_format($date)
    {
        $date1 = @explode("/", $date);
        $date = $date1[2] . "-" . $date1[0] . "-" . $date1[1];
        return $date;
    }
}
$obj = new improvement();
if ($Submit) {
    $action = "submit";
}
switch ($action) {
    case NULL:
        $obj->performance_improvement($db_object, $common, $user_id, $uid);
        break;
    case "submit":
        $obj->submit_plan($db_object, $common, $fAssigned_by, $fAssigned_to, $fRequirement, $fConsequences, $fDate1, $default, $error_msg);
        break;
    case "alert":
        $obj->show_alert($db_object, $common, $user_id);
        break;
}
include_once "footer.php";