예제 #1
0
    //get select prospect list.
    if (!empty($focus->id)) {
        $focus->load_relationship('prospectlists');
        $prospectlists = $focus->prospectlists->get();
    }
}
if (empty($prospectlists)) {
    $prospectlists = array();
}
if (empty($scope_options)) {
    $scope_options = array();
}
$xtpl->assign("SCOPE_OPTIONS", get_select_options_with_id($scope_options, $prospectlists));
$emails = array();
$mailboxes = get_campaign_mailboxes($emails);
$mailboxes_with_from_name = get_campaign_mailboxes($emails, false);
//add empty options.
$emails[''] = '*****@*****.**';
$mailboxes[''] = '';
//inbound_email_id
$default_email_address = '*****@*****.**';
$from_emails = '';
foreach ($mailboxes_with_from_name as $id => $name) {
    if (!empty($from_emails)) {
        $from_emails .= ',';
    }
    if ($id == '') {
        $from_emails .= "'EMPTY','{$name}','{$emails[$id]}'";
    } else {
        $from_emails .= "'{$id}','{$name}','{$emails[$id]}'";
    }
예제 #2
0
//jc: bug 15498
// assigning the length of the reply name from the var defs to the template to be used
// as the max length for the input field
$def = $mrkt_focus->getFieldDefinition('reply_to_name');
$ss->assign("MRKT_REPLY_NAME_LEN", $def['len']);
$ss->assign("MRKT_REPLY_NAME", $mrkt_focus->reply_to_name);
$def = $mrkt_focus->getFieldDefinition('reply_to_addr');
$ss->assign("MRKT_REPLY_ADDR_LEN", $def['len']);
// end bug 15498
$ss->assign("MRKT_REPLY_ADDR", $mrkt_focus->reply_to_addr);
$ss->assign("MRKT_DATE_START", $mrkt_focus->date_start);
$ss->assign("MRKT_TIME_START", $mrkt_focus->time_start);
//$_REQUEST['mass'] = $mrkt_focus->id;
$ss->assign("MRKT_ID", $mrkt_focus->id);
$emails = array();
$mailboxes = get_campaign_mailboxes($emails);
/*
 * get full array of stored options
 */
$IEStoredOptions = get_campaign_mailboxes_with_stored_options();
$IEStoredOptionsJSON = !empty($IEStoredOptions) ? $json->encode($IEStoredOptions, false) : 'new Object()';
$ss->assign("IEStoredOptions", $IEStoredOptionsJSON);
//add empty options.
$emails[''] = '*****@*****.**';
$mailboxes[''] = '';
//inbound_email_id
$default_email_address = '*****@*****.**';
$from_emails = '';
foreach ($mailboxes as $id => $name) {
    if (!empty($from_emails)) {
        $from_emails .= ',';