コード例 #1
0
ファイル: upd_fu.php プロジェクト: nyimbi/legalcase
    // title
    if (!$_SESSION['form_data']['app_title']) {
        $_SESSION['errors']['app_title'] = _Ti('app_input_title') . _T('warning_field_mandatory');
    }
}
//
// Check if any errors found
//
if (count($_SESSION['errors'])) {
    lcm_header("Location: " . $_SERVER['HTTP_REFERER']);
    exit;
}
///////////////////////////////////////////////////////////////////////
//	Followup information update
///////////////////////////////////////////////////////////////////////
$fu = new LcmFollowup($id_followup);
$errs = $fu->save();
if (count($errs)) {
    $_SESSION['errors'] = array_merge($_SESSION['errors'], $errs);
}
if (count($_SESSION['errors'])) {
    lcm_header("Location: " . $_SERVER['HTTP_REFERER']);
    exit;
}
if (!$id_followup) {
    $id_followup = $fu->getDataInt('id_followup', '__ASSERT__');
}
//
// Update stage keywords
//
if (isset($_REQUEST['new_stage']) && $_REQUEST['new_stage']) {
コード例 #2
0
ファイル: upd_case.php プロジェクト: nyimbi/legalcase
}
//
// Create or update case data
//
$case = new LcmCase($id_case);
$errs = $case->save();
if (count($errs)) {
    $_SESSION['errors'] = array_merge($_SESSION['errors'], $errs);
    lcm_header("Location: " . $_SERVER['HTTP_REFERER']);
    exit;
}
//
// Create follow-up data
//
if (_request('add_fu')) {
    include_lcm('inc_obj_fu');
    $fu = new LcmFollowup(0, $case->getDataInt('id_case'));
    $errs = $fu->save();
    if (count($errs)) {
        $_SESSION['errors'] = array_merge($_SESSION['errors'], $errs);
        lcm_header("Location: " . $_SERVER['HTTP_REFERER']);
        exit;
    }
}
$send_to = _request('ref_edit_case', "case_det.php?case=" . $case->getDataInt('id_case'));
// Send to add_client if any client/org to attach
if (_session('attach_client') || _session('attach_org')) {
    lcm_header("Location: add_client.php?case=" . $case->getDataInt('id_case') . (_session('attach_client') ? "&clients[]=" . _session('attach_client') : '') . (_session('attach_org') ? "&orgs[]=" . _session('attach_org') : '') . "&ref_sel_client=" . rawurlencode($send_to));
    exit;
}
lcm_header("Location: " . $send_to);