$listOfTimePoints = array($sessionID);
 }
 // print out candidate info
 fwrite(STDERR, "Candidate: {$candID} \n");
 // check/diagnose each timepoint separately
 foreach ($listOfTimePoints as $sessionID) {
     // create timepoint object
     $timePoint =& TimePoint::singleton($sessionID);
     if (PEAR::isError($timePoint)) {
         fwrite(STDERR, "Failed to create timepoint ({$sessionID}) object: " . $timePoint->getMessage());
         return false;
     }
     // print out the $sessionID
     fwrite(STDERR, "\n Timepoint " . $timePoint->getVisitLabel() . " ; SubProjectID: " . $timePoint->getSubprojectID() . " ; Effective DOB: " . $timePoint->getEffectiveDateOfBirth() . " ; (SessionID): {$sessionID} \n");
     // diagnose - get the list of missing instruments
     $listNewInstruments = diagnose($sessionID, $dateType, $newDate);
     // handle the error and skip to next time point
     if (PEAR::isError($listNewInstruments)) {
         fwrite(STDERR, "Error, failed to get the list of needed instruments for candidate ({$candID}), timepoint ({$sessionID}):\n");
         fwrite(STDERR, $listNewInstruments->getMessage() . "\n");
         continue;
     }
     // if there are missing instruments
     if (count($listNewInstruments) > 0) {
         fwrite(STDERR, "\n Missing instruments are:\n");
         //print out the list of missing instruments
         foreach ($listNewInstruments as $instrument) {
             fwrite(STDERR, "{$instrument} \n");
         }
     } else {
         fwrite(STDERR, "\n There are no missing instruments \n");
예제 #2
0
}
$ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
require_once 'include/QuickSearchDefaults.php';
$qsd = new QuickSearchDefaults();
$qsd->setFormName('wizform');
$sqs_objects = array('parent_name' => $qsd->getQSParent(), 'assigned_user_name' => $qsd->getQSUser(), 'test_name' => getProspectListQSObjects('prospect_list_type_test', 'test_name', 'wiz_step3_test_name_id'), 'unsubscription_name' => getProspectListQSObjects('prospect_list_type_exempt', 'unsubscription_name', 'wiz_step3_unsubscription_name_id'), 'subscription_name' => getProspectListQSObjects('prospect_list_type_default', 'subscription_name', 'wiz_step3_subscription_name_id'));
$quicksearch_js = '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
$ss->assign("JAVASCRIPT", $quicksearch_js);
//set the campaign type based on wizardtype value from request object
$campaign_type = 'newsletter';
if (isset($_REQUEST['wizardtype']) && $_REQUEST['wizardtype'] == 1 || $focus->campaign_type == 'NewsLetter') {
    $campaign_type = 'newsletter';
    $ss->assign("CAMPAIGN_DIAGNOSTIC_LINK", diagnose());
} elseif (isset($_REQUEST['wizardtype']) && $_REQUEST['wizardtype'] == 2 || $focus->campaign_type == 'Email') {
    $campaign_type = 'email';
    $ss->assign("CAMPAIGN_DIAGNOSTIC_LINK", diagnose());
} else {
    $campaign_type = 'general';
}
//******** CAMPAIGN HEADER AND BUDGET UI DIV Stuff (both divs) **********/
/// Users Popup
$popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'wizform', 'field_to_name_array' => array('id' => 'assigned_user_id', 'user_name' => 'assigned_user_name'));
$ss->assign('encoded_users_popup_request_data', $json->encode($popup_request_data));
//set default values
$ss->assign("CALENDAR_LANG", "en");
$ss->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
$ss->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
$ss->assign("CAMP_DATE_ENTERED", $focus->date_entered);
$ss->assign("CAMP_DATE_MODIFIED", $focus->date_modified);
$ss->assign("CAMP_CREATED_BY", $focus->created_by_name);
$ss->assign("CAMP_MODIFIED_BY", $focus->modified_by_name);
예제 #3
0

if(isset($_REQUEST['redirectToTargetList']) && $_REQUEST['redirectToTargetList']) {
    $ss->assign('hideScreen', true);
    $dotListWizardMenu .= <<<JS
<script type="text/javascript">
$(function(){
    document.location.href = $('#nav_step2 a').first().attr('href');
});
</script>
JS;
}

$ss->assign('WIZMENU', $dotListWizardMenu);

$diagnose = diagnose($errors, $links);

$ss->assign('diagnose', $diagnose);

foreach($errors as $error => $msg) {
    if($msg) {
        $ss->assign('error_on_' . $error, $msg);
    }
}


foreach($links as $link => $url) {
    if($url) {
        $ss->assign('link_to_' . $link, $url);
    }
}