本文整理匯總了PHP中rcmail::Q方法的典型用法代碼示例。如果您正苦於以下問題:PHP rcmail::Q方法的具體用法?PHP rcmail::Q怎麽用?PHP rcmail::Q使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rcmail
的用法示例。
在下文中一共展示了rcmail::Q方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: show_settings
function show_settings($args)
{
if ($args['section'] == 'mailbox') {
$this->add_texts('localization/');
$field_id = 'rcmfd_previewpane_layout';
$select = new html_select(array('name' => '_previewpane_layout', 'id' => $field_id));
$select->add(rcmail::Q($this->gettext('threecol.none')), 'none');
$select->add(rcmail::Q($this->gettext('threecol.below')), 'below');
$select->add(rcmail::Q($this->gettext('threecol.right')), 'right');
// add new option at the top of the list
$val = rcube::get_instance()->config->get('preview_pane') ? rcube::get_instance()->config->get('previewpane_layout', 'below') : 'none';
$args['blocks']['main']['options']['preview_pane']['content'] = $select->show($val);
}
return $args;
}
示例2: _prefs_block
private function _prefs_block($part, $attrib)
{
$rcmail = rcube::get_instance();
$no_override = array_flip($rcmail->config->get('sauserprefs_dont_override'));
$locale_info = localeconv();
switch ($part) {
// General tests
case 'general':
$out = '';
$data = '';
$table = new html_table(array('class' => 'generalprefstable', 'cols' => 2));
if (!isset($no_override['required_hits'])) {
$field_id = 'rcmfd_spamthres';
$input_spamthres = new html_select(array('name' => '_spamthres', 'id' => $field_id));
$input_spamthres->add($this->gettext('defaultscore'), '');
$decPlaces = 0;
if ($rcmail->config->get('sauserprefs_score_inc') - (int) $rcmail->config->get('sauserprefs_score_inc') > 0) {
$decPlaces = strlen($rcmail->config->get('sauserprefs_score_inc') - (int) $rcmail->config->get('sauserprefs_score_inc')) - 2;
}
$score_found = false;
for ($i = 1; $i <= 10; $i = $i + $rcmail->config->get('sauserprefs_score_inc')) {
$input_spamthres->add(number_format($i, $decPlaces, $locale_info['decimal_point'], ''), number_format($i, $decPlaces, '.', ''));
if (!$score_found && $this->user_prefs['required_hits'] && (double) $this->user_prefs['required_hits'] == (double) $i) {
$score_found = true;
}
}
if (!$score_found && $this->user_prefs['required_hits']) {
$input_spamthres->add(str_replace('%s', $this->user_prefs['required_hits'], $this->gettext('otherscore')), (double) $this->user_prefs['required_hits']);
}
$table->add('title', html::label($field_id, rcmail::Q($this->gettext('spamthres'))));
$table->add(null, $input_spamthres->show(number_format($this->user_prefs['required_hits'], $decPlaces, '.', '')));
$table->add(array('colspan' => 2), rcmail::Q($this->gettext('spamthresexp')));
}
if (!isset($no_override['rewrite_header Subject'])) {
$field_id = 'rcmfd_spamsubject';
$input_spamsubject = new html_inputfield(array('name' => '_spamsubject', 'id' => $field_id, 'value' => $this->user_prefs['rewrite_header Subject'], 'style' => 'width:200px;'));
$table->add('title', html::label($field_id, rcmail::Q($this->gettext('spamsubject'))));
$table->add(null, $input_spamsubject->show());
$table->add('title', " ");
$table->add(null, rcmail::Q($this->gettext('spamsubjectblank')));
}
if ($table->size() > 0) {
$out .= html::tag('fieldset', null, html::tag('legend', null, rcmail::Q($this->gettext('mainoptions'))) . $table->show());
}
if (!isset($no_override['ok_languages']) || !isset($no_override['ok_locales'])) {
$data = html::p(null, rcmail::Q($this->gettext('spamlangexp')));
$table = new html_table(array('class' => 'langprefstable', 'cols' => 1));
$select_all = $this->api->output->button(array('command' => 'plugin.sauserprefs.select_all_langs', 'type' => 'link', 'label' => 'all'));
$select_none = $this->api->output->button(array('command' => 'plugin.sauserprefs.select_no_langs', 'type' => 'link', 'label' => 'none'));
$select_invert = $this->api->output->button(array('command' => 'plugin.sauserprefs.select_invert_langs', 'type' => 'link', 'label' => 'invert'));
$table->add(array('id' => 'listcontrols'), $this->gettext('select') . ": " . $select_all . " " . $select_invert . " " . $select_none);
$lang_table = new html_table(array('id' => 'spam-langs-table', 'class' => 'records-table', 'cellspacing' => '0', 'cols' => 2));
$lang_table->add_header(array('colspan' => 2), $this->gettext('language'));
if (!isset($no_override['ok_locales'])) {
if ($this->user_prefs['ok_locales'] == "all") {
$ok_locales = $this->sa_locales;
} else {
$ok_locales = explode(" ", $this->user_prefs['ok_locales']);
}
} else {
$ok_locales = array();
}
if (!isset($no_override['ok_languages'])) {
if ($this->user_prefs['ok_languages'] == "all") {
$ok_languages = array_keys($rcmail->config->get('sauserprefs_languages'));
} else {
$ok_languages = explode(" ", $this->user_prefs['ok_languages']);
}
} else {
$tmp_array = $rcmail->config->get('sauserprefs_languages');
$rcmail->config->set('sauserprefs_languages', array_intersect_key($tmp_array, array_flip($this->sa_locales)));
$ok_languages = array();
}
$i = 0;
$locales_langs = array_merge($ok_locales, $ok_languages);
foreach ($rcmail->config->get('sauserprefs_languages') as $lang_code => $name) {
if (in_array($lang_code, $locales_langs)) {
$button = $this->api->output->button(array('command' => 'plugin.sauserprefs.message_lang', 'prop' => $lang_code, 'type' => 'link', 'class' => 'enabled', 'id' => 'spam_lang_' . $i, 'title' => 'sauserprefs.enabled', 'content' => ' '));
} else {
$button = $this->api->output->button(array('command' => 'plugin.sauserprefs.message_lang', 'prop' => $lang_code, 'type' => 'link', 'class' => 'disabled', 'id' => 'spam_lang_' . $i, 'title' => 'sauserprefs.disabled', 'content' => ' '));
}
$input_spamlang = new html_checkbox(array('style' => 'display: none;', 'name' => '_spamlang[]', 'value' => $lang_code));
$lang_table->add('lang', $name);
$lang_table->add('tick', $button . $input_spamlang->show(in_array($lang_code, $locales_langs) ? $lang_code : ''));
$i++;
}
$table->add('scroller', html::div(array('id' => 'spam-langs-cont'), $lang_table->show()));
$out .= html::tag('fieldset', null, html::tag('legend', null, rcmail::Q($this->gettext('langoptions'))) . $data . $table->show());
}
break;
// Header settings
// Header settings
case 'headers':
$data = html::p(null, rcmail::Q($this->gettext('headersexp')));
$table = new html_table(array('class' => 'headersprefstable', 'cols' => 3));
if (!isset($no_override['fold_headers'])) {
$help_button = html::img(array('class' => $imgclass, 'src' => $attrib['helpicon'], 'alt' => $this->gettext('sieveruleheaders'), 'border' => 0, 'style' => 'margin-left: 4px;'));
$help_button = html::a(array('name' => '_headerhlp', 'href' => "#", 'onclick' => 'return ' . rcmail_output::JS_OBJECT_NAME . '.sauserprefs_help("fold_help");', 'title' => $this->gettext('help')), $help_button);
$field_id = 'rcmfd_spamfoldheaders';
$input_spamreport = new html_checkbox(array('name' => '_spamfoldheaders', 'id' => $field_id, 'value' => '1'));
//.........這裏部分代碼省略.........
示例3: _vacation_table
protected function _vacation_table($ext, $rowid, $defaults, $display, $help_icon)
{
$rcmail = rcube::get_instance();
// begin vacation action
$vacs_table = new html_table(array('class' => 'records-table', 'cellspacing' => '0', 'cols' => 3, 'style' => $defaults['method'] == 'vacation' ? '' : 'display: none;'));
$to_addresses = "";
$vacto_arr = explode(",", $defaults['vacto']);
$field_id_vacfrom = 'rcmfd_sievevacfrom_' . $rowid;
$field_id_vacto = 'rcmfd_sievevacto_' . $rowid;
if (count($this->identities)) {
$select_id = new html_select(array('id' => $field_id_vacfrom, 'name' => "_vacfrom[]", 'class' => 'short', 'onchange' => rcmail_output::JS_OBJECT_NAME . '.enable_sig(this);'));
if ($this->show_vacfrom && in_array('variables', $ext)) {
$select_id->add($this->gettext('autodetect'), "auto");
} elseif (!$this->show_vacfrom) {
$select_id->add($this->gettext('autodetect'), "");
}
foreach ($this->identities as $sql_arr) {
// find currently selected from address
if ($defaults['vacfrom'] != '' && $defaults['vacfrom'] == rcmail::Q($sql_arr['from']['string'])) {
$defaults['vacfrom'] = $sql_arr['identity_id'];
} elseif ($defaults['vacfrom'] != '' && $defaults['vacfrom'] == $sql_arr['from']['mailto']) {
$defaults['vacfrom'] = $sql_arr['identity_id'];
}
$select_id->add($sql_arr['from']['disp_string'], $sql_arr['identity_id']);
$ffield_id = 'rcmfd_vac_' . $rowid . '_' . $sql_arr['identity_id'];
if ($this->force_vacto) {
$curaddress = $sql_arr['email'];
$defaults['vacto'] .= (!empty($defaults['vacto']) ? ',' : '') . $sql_arr['email'];
} else {
$curaddress = in_array($sql_arr['email'], $vacto_arr) ? $sql_arr['email'] : "";
}
$input_address = new html_checkbox(array('id' => $ffield_id, 'name' => '_vacto_check_' . $rowid . '[]', 'value' => $sql_arr['email'], 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_toggle_vac_to(this, ' . $rowid . ')', 'class' => 'checkbox'));
$to_addresses .= $input_address->show($curaddress) . " " . html::label($ffield_id, rcmail::Q($sql_arr['email'])) . "<br />";
}
}
// deduplicate vacto list
$tmparr = explode(",", $defaults['vacto']);
$tmparr = array_unique($tmparr);
$defaults['vacto'] = implode(",", $tmparr);
if ($rcmail->config->get('sieverules_limit_vacto', true) && strlen($to_addresses) > 0) {
$vacfrom_input = $select_id->show($defaults['vacfrom']);
$input_vacto = new html_hiddenfield(array('id' => $field_id_vacto, 'name' => '_vacto[]', 'value' => $defaults['vacto']));
$vacto_input = $to_addresses . $input_vacto->show();
$vac_help = $this->gettext('vactoexp');
} else {
$input_vacfrom = new html_inputfield(array('id' => $field_id_vacfrom, 'name' => '_vacfrom[]'));
$vacfrom_input = $input_vacfrom->show($defaults['vacfrom']);
$input_vacto = new html_inputfield(array('id' => $field_id_vacto, 'name' => '_vacto[]', 'class' => 'short'));
$vacto_input = $input_vacto->show($defaults['vacto']);
$vac_help = $this->gettext('vactoexp') . '<br /><br />' . $this->gettext('vactoexp_adv');
}
// from param
$vacs_table->set_row_attribs(array('class' => $this->show_vacfrom ? 'advanced' : 'disabled', 'style' => $display['vacfrom']));
$vacs_table->add(null, html::label($field_id_vacfrom, rcmail::Q($this->gettext('from'))));
$vacs_table->add(null, $vacfrom_input);
$sig_button = $this->api->output->button(array('command' => 'plugin.sieverules.vacation_sig', 'prop' => $rowid, 'type' => 'link', 'class' => 'vacsig', 'classact' => 'vacsig_act', 'title' => 'insertsignature', 'content' => ' '));
$vacs_table->add(null, $sig_button);
// to param
$vacs_table->set_row_attribs(array('class' => 'advanced', 'style' => $display['vacadv']));
$vacs_table->add(array('style' => 'vertical-align: top;'), html::label($field_id_vacto, rcmail::Q($this->gettext('sieveto'))));
$vacs_table->add(null, $vacto_input);
$help_button = html::a(array('href' => "#", 'onclick' => 'return ' . rcmail_output::JS_OBJECT_NAME . '.sieverules_help(this, ' . $vacs_table->size() . ');', 'title' => $this->gettext('messagehelp')), $help_icon);
$vacs_table->add(array('style' => 'vertical-align: top;'), $help_button);
$vacs_table->set_row_attribs(array('class' => 'advhelp', 'style' => 'display: none;'));
$vacs_table->add(array('colspan' => 3, 'class' => 'helpmsg'), $vac_help);
$field_id = 'rcmfd_sievevacperiod_' . $rowid;
$input_period = new html_inputfield(array('id' => $field_id, 'name' => '_period[]', 'class' => 'short'));
$vacs_table->set_row_attribs(array('class' => 'advanced', 'style' => $display['vacadv']));
$vacs_table->add(null, html::label($field_id, rcmail::Q($this->gettext('period'))));
$vacs_table->add(null, $input_period->show($defaults['period']));
$help_button = html::a(array('href' => "#", 'onclick' => 'return ' . rcmail_output::JS_OBJECT_NAME . '.sieverules_help(this, ' . (in_array('vacation-seconds', $ext) ? $vacs_table->size() + 1 : $vacs_table->size()) . ');', 'title' => $this->gettext('messagehelp')), $help_icon);
$vacs_table->add(null, $help_button);
if (in_array('vacation-seconds', $ext)) {
$input_periodtype = new html_radiobutton(array('id' => $field_id . '_days', 'name' => '_period_radio_' . $rowid, 'value' => 'days', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_period_type(this, ' . $rowid . ')', 'class' => 'radio'));
$period_type_show = $input_periodtype->show($defaults['periodtype']) . " " . html::label($field_id . '_days', rcmail::Q($this->gettext('days')));
$input_periodtype = new html_radiobutton(array('id' => $field_id . '_seconds', 'name' => '_period_radio_' . $rowid, 'value' => 'seconds', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_period_type(this, ' . $rowid . ')', 'class' => 'radio'));
$period_type_show .= ' ' . $input_periodtype->show($defaults['periodtype']) . " " . html::label($field_id . '_seconds', rcmail::Q($this->gettext('seconds')));
$input_periodtype = new html_hiddenfield(array('id' => 'rcmfd_sievevacperiodtype_' . $rowid, 'name' => '_periodtype[]'));
$vacs_table->set_row_attribs(array('class' => 'advanced', 'style' => $display['vacadv']));
$vacs_table->add(null, ' ');
$vacs_table->add(null, $period_type_show . $input_periodtype->show($defaults['periodtype']));
$vacs_table->add(null, ' ');
}
$vacs_table->set_row_attribs(array('style' => 'display: none;'));
$vacs_table->add(array('colspan' => 3, 'class' => 'helpmsg'), $this->gettext('vacperiodexp'));
$field_id = 'rcmfd_sievevachandle_' . $rowid;
$input_handle = new html_inputfield(array('id' => $field_id, 'name' => '_handle[]', 'class' => 'short'));
$vacs_table->set_row_attribs(array('class' => $this->show_vachandle ? 'advanced' : 'disabled', 'style' => $display['vachandle']));
$vacs_table->add(null, html::label($field_id, rcmail::Q($this->gettext('sievevachandle'))));
$vacs_table->add(null, $input_handle->show($defaults['handle']));
$help_button = html::a(array('href' => "#", 'onclick' => 'return ' . rcmail_output::JS_OBJECT_NAME . '.sieverules_help(this, ' . $vacs_table->size() . ');', 'title' => $this->gettext('messagehelp')), $help_icon);
$vacs_table->add(null, $help_button);
$vacs_table->set_row_attribs(array('class' => 'advhelp', 'style' => 'display: none;'));
$vacs_table->add(array('colspan' => 3, 'class' => 'helpmsg'), $this->gettext('vachandleexp'));
$field_id = 'rcmfd_sievevacsubject_' . $rowid;
$input_subject = new html_inputfield(array('id' => $field_id, 'name' => '_subject[]'));
$vacs_table->add(null, html::label($field_id, rcmail::Q($this->gettext('subject'))));
$vacs_table->add(array('colspan' => 2), $input_subject->show($defaults['subject']));
if (in_array('variables', $ext)) {
$field_id = 'rcmfd_sievevacsubject_orig_' . $rowid;
//.........這裏部分代碼省略.........
示例4: _action_row
//.........這裏部分代碼省略.........
$defaults['headerop'] = $action['operator'];
if ($action['type'] == 'editheaderrem' && (!empty($defaults['headerindex']) || !empty($defaults['headerval']))) {
$display['eheadadv'] = '';
}
} elseif ($action['type'] == 'discard' || $action['type'] == 'keep' || $action['type'] == 'stop') {
$defaults['method'] = $action['type'];
}
// hide the "template" row
if (!isset($action)) {
$actions_table->set_row_attribs(array('style' => 'display: none;'));
}
// action type select box
$select_action = new html_select(array('name' => "_act[]", 'onchange' => rcmail_output::JS_OBJECT_NAME . '.sieverules_action_select(this)'));
foreach ($allowed_actions as $value => $text) {
$select_action->add($text, $value);
}
// add action type to UI
$actions_table->add('action', $select_action->show($defaults['method']));
// begin vacation action
$vacs_table = new html_table(array('class' => 'records-table', 'cellspacing' => '0', 'cols' => 3, 'style' => $defaults['method'] == 'vacation' ? '' : 'display: none;'));
$to_addresses = "";
$vacto_arr = explode(",", $defaults['vacto']);
$field_id_vacfrom = 'rcmfd_sievevacfrom_' . $rowid;
$field_id_vacto = 'rcmfd_sievevacto_' . $rowid;
if (count($this->identities)) {
$select_id = new html_select(array('id' => $field_id_vacfrom, 'name' => "_vacfrom[]", 'class' => 'short', 'onchange' => rcmail_output::JS_OBJECT_NAME . '.enable_sig(this);'));
if ($this->show_vacfrom && in_array('variables', $ext)) {
$select_id->add($this->gettext('autodetect'), "auto");
} elseif (!$this->show_vacfrom) {
$select_id->add($this->gettext('autodetect'), "");
}
foreach ($this->identities as $sql_arr) {
// find currently selected from address
if ($defaults['vacfrom'] != '' && $defaults['vacfrom'] == rcmail::Q($sql_arr['from']['string'])) {
$defaults['vacfrom'] = $sql_arr['identity_id'];
} elseif ($defaults['vacfrom'] != '' && $defaults['vacfrom'] == $sql_arr['from']['mailto']) {
$defaults['vacfrom'] = $sql_arr['identity_id'];
}
$select_id->add($sql_arr['from']['disp_string'], $sql_arr['identity_id']);
$ffield_id = 'rcmfd_vac_' . $rowid . '_' . $sql_arr['identity_id'];
if ($this->force_vacto) {
$curaddress = $sql_arr['email'];
$defaults['vacto'] .= (!empty($defaults['vacto']) ? ',' : '') . $sql_arr['email'];
} else {
$curaddress = in_array($sql_arr['email'], $vacto_arr) ? $sql_arr['email'] : "";
}
$input_address = new html_checkbox(array('id' => $ffield_id, 'name' => '_vacto_check_' . $rowid . '[]', 'value' => $sql_arr['email'], 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_toggle_vac_to(this, ' . $rowid . ')', 'class' => 'checkbox'));
$to_addresses .= $input_address->show($curaddress) . " " . html::label($ffield_id, rcmail::Q($sql_arr['email'])) . "<br />";
}
}
// deduplicate vacto list
$tmparr = explode(",", $defaults['vacto']);
$tmparr = array_unique($tmparr);
$defaults['vacto'] = implode(",", $tmparr);
if ($rcmail->config->get('sieverules_limit_vacto', true) && strlen($to_addresses) > 0) {
$vacfrom_input = $select_id->show($defaults['vacfrom']);
$input_vacto = new html_hiddenfield(array('id' => $field_id_vacto, 'name' => '_vacto[]', 'value' => $defaults['vacto']));
$vacto_input = $to_addresses . $input_vacto->show();
$vac_help = $this->gettext('vactoexp');
} else {
$input_vacfrom = new html_inputfield(array('id' => $field_id_vacfrom, 'name' => '_vacfrom[]'));
$vacfrom_input = $input_vacfrom->show($defaults['vacfrom']);
$input_vacto = new html_inputfield(array('id' => $field_id_vacto, 'name' => '_vacto[]', 'class' => 'short'));
$vacto_input = $input_vacto->show($defaults['vacto']);
$vac_help = $this->gettext('vactoexp') . '<br /><br />' . $this->gettext('vactoexp_adv');
}
示例5: mailto_callback
/**
* Callback function used to build mailto: links around e-mail strings
*
* @param array Matches result from preg_replace_callback
* @return int Index of saved string value
*/
public function mailto_callback($matches)
{
$href = $matches[1];
$suffix = $this->parse_url_brackets($href);
$i = $this->add(html::a(array('href' => 'mailto:' . $href, 'onclick' => "return " . rcmail::JS_OBJECT_NAME . ".command('compose','" . rcmail::JQ($href) . "',this)"), rcmail::Q($href)) . $suffix);
return $i >= 0 ? $this->get_replacement($i) : '';
}
示例6: _action_row
//.........這裏部分代碼省略.........
} elseif ($action['type'] == 'redirect' || $action['type'] == 'redirect_copy') {
$method = $action['type'];
$address = $action['target'];
} elseif ($action['type'] == 'imapflags' || $action['type'] == 'imap4flags') {
$method = $action['type'];
$flags = $action['target'];
} elseif ($action['type'] == 'notify' || $action['type'] == 'enotify') {
$method = $action['type'];
$nfrom = htmlspecialchars($action['from']);
$nimpt = htmlspecialchars($action['importance']);
$nmethod = $action['method'];
$noptions = $action['options'];
$nmsg = $action['msg'];
// check advanced enabled
if (!empty($nfrom) || !empty($nimpt)) {
$noteadvstyle = '';
$noteshowadv = '1';
}
} elseif ($action['type'] == 'editheaderadd' || $action['type'] == 'editheaderrem') {
$method = $action['type'];
$headername = htmlspecialchars($action['name']);
$headerval = htmlspecialchars($action['value']);
$headerindex = $action['index'];
$headeropp = $action['operator'];
if ($action['type'] == 'editheaderrem' && (!empty($headerindex) || !empty($headerval))) {
$eheadadvstyle = '';
$eheadshowadv = '1';
}
} elseif ($action['type'] == 'discard' || $action['type'] == 'keep' || $action['type'] == 'stop') {
$method = $action['type'];
}
$select_action = new html_select(array('name' => "_act[]", 'onchange' => rcmail::JS_OBJECT_NAME . '.sieverules_action_select(this)'));
foreach ($allowed_actions as $value => $text) {
$select_action->add(rcmail::Q($text), $value);
}
$actions_table->add('action', $select_action->show($method));
$vacs_table = new html_table(array('class' => 'records-table', 'cellspacing' => '0', 'cols' => 3, 'style' => $method == 'vacation' ? '' : 'display: none;'));
$to_addresses = "";
$vacto_arr = explode(",", $vacto);
$user_identities = $rcmail->user->list_identities();
if (count($user_identities)) {
$field_id = 'rcmfd_sievevacfrom_' . $rowid;
$select_id = new html_select(array('id' => $field_id, 'name' => "_vacfrom[]", 'class' => 'short', 'onchange' => rcmail::JS_OBJECT_NAME . '.enable_sig(this);'));
if ($this->show_vacfrom && in_array('variables', $ext)) {
$select_id->add(rcmail::Q($this->gettext('autodetect')), "auto");
} elseif (!$this->show_vacfrom) {
$select_id->add(rcmail::Q($this->gettext('autodetect')), "");
}
foreach ($user_identities as $sql_arr) {
$from = $this->_rcmail_get_identity($sql_arr['identity_id']);
// find currently selected from address
if ($vacfrom != '' && $vacfrom == rcmail::Q($from['string'])) {
$vacfrom = $sql_arr['identity_id'];
} elseif ($vacfrom != '' && $vacfrom == $from['mailto']) {
$vacfrom = $sql_arr['identity_id'];
}
$select_id->add($from['disp_string'], $sql_arr['identity_id']);
$ffield_id = 'rcmfd_vac_' . $rowid . '_' . $sql_arr['identity_id'];
if ($this->force_vacto) {
$curaddress = $sql_arr['email'];
$vacto .= (!empty($vacto) ? ',' : '') . $sql_arr['email'];
} else {
$curaddress = in_array($sql_arr['email'], $vacto_arr) ? $sql_arr['email'] : "";
}
$input_address = new html_checkbox(array('id' => $ffield_id, 'name' => '_vacto_check_' . $rowid . '[]', 'value' => $sql_arr['email'], 'onclick' => rcmail::JS_OBJECT_NAME . '.sieverules_toggle_vac_to(this, ' . $rowid . ')', 'class' => 'checkbox'));
$to_addresses .= $input_address->show($curaddress) . " " . html::label($ffield_id, rcmail::Q($sql_arr['email'])) . "<br />";