本文整理汇总了PHP中html::span方法的典型用法代码示例。如果您正苦于以下问题:PHP html::span方法的具体用法?PHP html::span怎么用?PHP html::span使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类html
的用法示例。
在下文中一共展示了html::span方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html_output
/**
* This callback function adds a box below the message content
* if there is a vcard attachment available
*/
function html_output($p)
{
$attach_script = false;
foreach ($this->vcard_parts as $part) {
$vcards = rcube_vcard::import($this->message->get_part_content($part, null, true));
// successfully parsed vcards?
if (empty($vcards)) {
continue;
}
// remove part's body
if (in_array($part, $this->vcard_bodies)) {
$p['content'] = '';
}
foreach ($vcards as $idx => $vcard) {
// skip invalid vCards
if (empty($vcard->email) || empty($vcard->email[0])) {
continue;
}
$display = $vcard->displayname . ' <' . $vcard->email[0] . '>';
// add box below message body
$p['content'] .= html::p(array('class' => 'vcardattachment'), html::a(array('href' => "#", 'onclick' => "return plugin_vcard_save_contact('" . rcube::JQ($part . ':' . $idx) . "')", 'title' => $this->gettext('addvcardmsg')), html::span(null, rcube::Q($display))));
}
$attach_script = true;
}
if ($attach_script) {
$this->include_script('vcardattach.js');
$this->include_stylesheet($this->local_skin_path() . '/style.css');
}
return $p;
}
示例2: html_output
/**
* This callback function adds a box below the message content
* if there is a vcard attachment available
*/
function html_output($p)
{
$attach_script = false;
$icon = 'plugins/vcard_attachments/' . $this->local_skin_path() . '/vcard_add_contact.png';
foreach ($this->vcard_parts as $part) {
$vcards = rcube_vcard::import($this->message->get_part_content($part));
// successfully parsed vcards?
if (empty($vcards)) {
continue;
}
// remove part's body
if (in_array($part, $this->vcard_bodies)) {
$p['content'] = '';
}
$style = 'margin:0.5em 1em; padding:0.2em 0.5em; border:1px solid #999; ' . 'border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; width: auto';
foreach ($vcards as $idx => $vcard) {
$display = $vcard->displayname;
if ($vcard->email[0]) {
$display .= ' <' . $vcard->email[0] . '>';
}
// add box below messsage body
$p['content'] .= html::p(array('style' => $style), html::a(array('href' => "#", 'onclick' => "return plugin_vcard_save_contact('" . JQ($part . ':' . $idx) . "')", 'title' => $this->gettext('addvcardmsg')), html::img(array('src' => $icon, 'style' => "vertical-align:middle"))) . ' ' . html::span(null, Q($display)));
}
$attach_script = true;
}
if ($attach_script) {
$this->include_script('vcardattach.js');
}
return $p;
}
示例3: test_span_with_attributes_and_empty_string_args
public function test_span_with_attributes_and_empty_string_args()
{
$attributes = array('class' => 'test', 'data' => '0101');
$actual = html::span($attributes, '');
$expected = '<span class=test data=0101></span>';
$this->assertSame($expected, $actual);
}
示例4: row
public static function row($label, $control, $help = null)
{
if (!empty($help)) {
$help = html::span('help-block', $help);
} else {
$help = '';
}
return html::div('control-group', html::label('control-label', $label) . html::div('controls', $control . $help));
}
示例5: init
/**
* Plugin initialization.
*/
function init()
{
$this->version_detect();
$this->rc = rcube::get_instance();
$this->rm = rcmail::get_instance();
$this->add_hook('user_create', array($this, 'user_create'));
$this->register_action('plugin.pks_search', array($this, 'hkp_search'));
$this->register_action('plugin.hkp_add', array($this, 'hkp_add'));
$this->register_action('plugin.pubkey_save', array($this, 'pubkey_save'));
if ($this->rc->task == 'mail') {
$this->add_hook('render_page', array($this, 'render_page'));
// make localization available on the client
$this->add_texts('localization/', true);
// load js
$this->include_script('js/openpgp.min.js');
$this->include_script('js/rc_openpgpjs.crypto.js');
$this->include_script('js/rc_openpgpjs.js');
if (isset($_SESSION["rc_openpgpjs_outdated"])) {
$this->include_script('js/outdated.js');
}
// load css
$this->include_stylesheet($this->local_skin_path() . '/rc_openpgpjs.css');
// add public key attachment related hooks
$this->add_hook('message_compose', array($this, 'message_compose'));
$this->add_hook('message_sent', array($this, 'unlink_pubkey'));
if ($this->api->output->type == 'html') {
// add key manager item to message menu
$opts = array("command" => "open-key-manager", "label" => "rc_openpgpjs.key_manager", "type" => "link", "classact" => "icon active", "class" => "icon", "innerclass" => "icon key_manager");
$this->api->add_content(html::tag('li', null, $this->api->output->button($opts)), "messagemenu");
if ($this->rc->action == 'compose') {
// add key manager button to compose toolbar
$opts = array("command" => "open-key-manager", "label" => "rc_openpgpjs.key_manager", "type" => "link", "classact" => "button active key_manager", "class" => "button key_manager");
$this->api->add_content($this->api->output->button($opts), "toolbar");
// add encrypt and sign checkboxes to composeoptions
$encrypt_opts = array('id' => 'openpgpjs_encrypt', 'type' => 'checkbox');
if ($this->rc->config->get('encrypt', false)) {
$encrypt_opts['checked'] = 'checked';
}
$encrypt = new html_inputfield($encrypt_opts);
$this->api->add_content(html::span('composeoption', html::label(null, $encrypt->show() . $this->gettext('encrypt'))), "composeoptions");
$sign_opts = array('id' => 'openpgpjs_sign', 'type' => 'checkbox');
if ($this->rc->config->get('sign', false)) {
$sign_opts['checked'] = 'checked';
}
$sign = new html_inputfield($sign_opts);
$this->api->add_content(html::span('composeoption', html::label(null, $sign->show() . $this->gettext('sign'))), "composeoptions");
}
}
} elseif ($this->rc->task == 'settings') {
// load localization
$this->add_texts('localization/', false);
// add hooks for OpenPGP settings
$this->add_hook('preferences_list', array($this, 'preferences_list'));
$this->add_hook('preferences_save', array($this, 'preferences_save'));
}
}
示例6: progress_bar
public function progress_bar(array $items)
{
foreach ($items as $step) {
if ($step['class'] == 'backup_stage backup_stage_current') {
$steps[] = html::span(label::inverse($step['text']));
} else {
$steps[] = html::span($step['text']);
}
}
return html::ul('breadcrumb', '<li>' . implode(' > </li><li>', $steps) . '</li>');
//TODO: there's better bootstrap wizard progress out there, but this'll do for now
}
示例7: calendar
/**
* see html::calendar()
*/
public static function calendar($options = [])
{
// include js & css files
if (empty($options['readonly'])) {
layout::add_js('/numbers/media_submodules/numbers_frontend_components_calendar_numbers_media_js_base.js');
layout::add_css('/numbers/media_submodules/numbers_frontend_components_calendar_numbers_media_css_base.css');
}
// font awesome icons
library::add('fontawesome');
// widget parameters
$type = $options['calendar_type'] ?? $options['type'] ?? 'date';
$widget_options = ['id' => $options['id'], 'type' => $type, 'format' => $options['calendar_format'] ?? format::get_date_format($type), 'date_week_start_day' => $options['calendar_date_week_start_day'] ?? 1, 'date_disable_week_days' => $options['calendar_date_disable_week_days'] ?? null, 'master_id' => $options['calendar_master_id'] ?? null, 'slave_id' => $options['calendar_slave_id'] ?? null];
$options['type'] = 'text';
// determine input size
$placeholder = format::get_date_placeholder($widget_options['format']);
$options['size'] = strlen($placeholder);
// set placeholder
if (!empty($options['placeholder']) && $options['placeholder'] == 'format::get_date_placeholder') {
$options['placeholder'] = $placeholder;
$options['title'] = ($options['title'] ?? '') . ' (' . $placeholder . ')';
}
if (isset($options['calendar_icon']) && ($options['calendar_icon'] == 'left' || $options['calendar_icon'] == 'right')) {
$position = $options['calendar_icon'];
if (i18n::rtl()) {
if ($position == 'left') {
$position = 'right';
} else {
$position = 'left';
}
}
$icon_type = $type == 'time' ? 'clock-o' : 'calendar';
unset($options['calendar_icon']);
if (empty($options['readonly'])) {
$icon_onclick = 'numbers_calendar_var_' . $options['id'] . '.show();';
} else {
$icon_onclick = null;
}
$icon_value = html::span(['onclick' => $icon_onclick, 'class' => 'numbers_calendar_icon numbers_prevent_selection', 'value' => html::icon(['type' => $icon_type])]);
$result = html::input_group(['value' => html::input($options), $position => $icon_value, 'dir' => 'ltr']);
$div_id = $options['id'] . '_div_holder';
$result .= html::div(['id' => $div_id, 'class' => 'numbers_calendar_div_holder']);
$widget_options['holder_div_id'] = $div_id;
} else {
$result = html::input($options);
}
// we do not render a widget if readonly
if (empty($options['readonly'])) {
layout::onload('numbers_calendar(' . json_encode($widget_options) . ');');
}
return $result;
}
示例8: html_output
/**
* This callback function adds a box below the message content
* if there is a vcard attachment available
*/
function html_output($p)
{
if ($this->vcard_part) {
$vcard = new rcube_vcard($this->message->get_part_content($this->vcard_part));
// successfully parsed vcard
if ($vcard->displayname) {
$display = $vcard->displayname;
if ($vcard->email[0]) {
$display .= ' <' . $vcard->email[0] . '>';
}
// add box below messsage body
$p['content'] .= html::p(array('style' => "margin:1em; padding:0.5em; border:1px solid #999; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; width: auto;"), html::a(array('href' => "#", 'onclick' => "return plugin_vcard_save_contact('" . JQ($this->vcard_part) . "')", 'title' => $this->gettext('addvardmsg')), html::img(array('src' => $this->url('vcard_add_contact.png'), 'align' => "middle"))) . ' ' . html::span(null, Q($display)));
$this->include_script('vcardattach.js');
}
}
return $p;
}
示例9: html_output
/**
* This callback function adds a box below the message content
* if there is a vcard attachment available
*/
function html_output($p)
{
$attach_script = false;
foreach ($this->ics_parts as $part) {
$icscontent = $this->message->get_part_content($part['part'], null, true);
$file_name = $part['uid'];
$file = '../../../cache/import/' . $file_name . '.ics';
file_put_contents($file, $icscontent);
// add box below message body
$p['content'] .= html::p(array('class' => 'icalattachments'), html::a(array('href' => "#", 'class' => rcube::JQ($file_name), 'title' => $this->gettext('addicalinvitemsg')), html::span(null, rcube::Q($this->gettext('addicalinvitemsg')))));
$attach_script = true;
}
if ($attach_script) {
$this->include_stylesheet($this->local_skin_path() . '/style.css');
}
return $p;
}
示例10: preferences_list
function preferences_list($params)
{
$rcmail = rcmail::get_instance();
if ($params['section'] == 'addressbook') {
$params['blocks'][$this->id]['name'] = $this->abook_name;
$field_id = 'rc_use_plugin';
$checkbox = new html_checkbox(array('name' => $field_id, 'id' => $field_id, 'value' => 1));
$params['blocks'][$this->id]['options'][$field_id] = array('title' => html::label($field_id, $this->gettext('use') . $this->abook_name), 'content' => $checkbox->show($rcmail->config->get(google_func::$settings_key_use_plugin)));
$field_id = 'rc_google_autosync';
$checkbox = new html_checkbox(array('name' => $field_id, 'id' => $field_id, 'value' => 1));
$params['blocks'][$this->id]['options'][$field_id] = array('title' => html::label($field_id, $this->gettext('autosync')), 'content' => $checkbox->show($rcmail->config->get(google_func::$settings_key_auto_sync)));
$field_id = 'rc_google_authcode';
$input_auth = new html_inputfield(array('name' => $field_id, 'id' => $field_id, 'size' => 45));
$params['blocks'][$this->id]['options'][$field_id] = array('title' => html::label($field_id, $this->gettext('authcode')), 'content' => $input_auth->show($rcmail->config->get(google_func::$settings_key_auth_code)));
$params['blocks'][$this->id]['options']['link'] = array('title' => html::span('', ''), 'content' => html::a(array('href' => google_func::get_client()->createAuthUrl(), 'target' => '_blank'), $this->gettext('authcodelink')));
}
return $params;
}
示例11: input_group
/**
* @see html::input_group()
*/
public static function input_group($options = [])
{
$temp = [];
foreach (['left', 'center', 'right'] as $k0) {
if ($k0 == 'center') {
$temp[] = $options['value'];
} else {
if (!empty($options[$k0])) {
if (!is_array($options[$k0])) {
$options[$k0] = [$options[$k0]];
}
foreach ($options[$k0] as $k => $v) {
$temp[] = html::span(['value' => $v, 'class' => 'input-group-addon']);
}
}
}
}
unset($options['left'], $options['right']);
$options['value'] = implode('', $temp);
$options['class'] = 'input-group';
return html::div($options);
}
示例12: Copyright
<?php
/**************************************************
Coppermine 1.5.x Plugin - forum
*************************************************
Copyright (c) 2010 foulu (Le Hoai Phuong), eenemeenemuu
*************************************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
********************************************
$HeadURL$
$Revision$
$LastChangedBy$
$Date$
**************************************************/
pageheader($fr_title ? $fr_title : Config::item('fr_title'));
print html::spacer();
print table::open(0);
print table::tds(array(array('text' => $fr_title ? $fr_title : Config::item('fr_title')), array('align' => 'right', 'text' => ($authorizer->is_user() ? html::button('forum.php?c=profile', Lang::item('home.fr_profile')) : '') . NBSP . html::button('forum.php?c=search', Lang::item('home.search')))));
print table::close();
print html::spacer();
print table::open();
print form::hidden('c', 'search');
print table::tds(array(array('class' => 'tableb', 'text' => html::span(forum::nagavitor($nagavitor)))));
print table::close();
print html::spacer();
print $fr_contents;
pagefooter();
示例13: recurrence_form
/**
* Generate the form for recurrence settings
*/
public function recurrence_form($attrib = array())
{
switch ($attrib['part']) {
// frequency selector
case 'frequency':
$select = new html_select(array('name' => 'frequency', 'id' => 'edit-recurrence-frequency'));
$select->add($this->gettext('never'), '');
$select->add($this->gettext('daily'), 'DAILY');
$select->add($this->gettext('weekly'), 'WEEKLY');
$select->add($this->gettext('monthly'), 'MONTHLY');
$select->add($this->gettext('yearly'), 'YEARLY');
$select->add($this->gettext('rdate'), 'RDATE');
$html = html::label('edit-recurrence-frequency', $this->gettext('frequency')) . $select->show('');
break;
// daily recurrence
// daily recurrence
case 'daily':
$select = $this->interval_selector(array('name' => 'interval', 'class' => 'edit-recurrence-interval', 'id' => 'edit-recurrence-interval-daily'));
$html = html::div($attrib, html::label('edit-recurrence-interval-daily', $this->gettext('every')) . $select->show(1) . html::span('label-after', $this->gettext('days')));
break;
// weekly recurrence form
// weekly recurrence form
case 'weekly':
$select = $this->interval_selector(array('name' => 'interval', 'class' => 'edit-recurrence-interval', 'id' => 'edit-recurrence-interval-weekly'));
$html = html::div($attrib, html::label('edit-recurrence-interval-weekly', $this->gettext('every')) . $select->show(1) . html::span('label-after', $this->gettext('weeks')));
// weekday selection
$daymap = array('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat');
$checkbox = new html_checkbox(array('name' => 'byday', 'class' => 'edit-recurrence-weekly-byday'));
$first = $this->rc->config->get('calendar_first_day', 1);
for ($weekdays = '', $j = $first; $j <= $first + 6; $j++) {
$d = $j % 7;
$weekdays .= html::label(array('class' => 'weekday'), $checkbox->show('', array('value' => strtoupper(substr($daymap[$d], 0, 2)))) . $this->gettext($daymap[$d])) . ' ';
}
$html .= html::div($attrib, html::label(null, $this->gettext('bydays')) . $weekdays);
break;
// monthly recurrence form
// monthly recurrence form
case 'monthly':
$select = $this->interval_selector(array('name' => 'interval', 'class' => 'edit-recurrence-interval', 'id' => 'edit-recurrence-interval-monthly'));
$html = html::div($attrib, html::label('edit-recurrence-interval-monthly', $this->gettext('every')) . $select->show(1) . html::span('label-after', $this->gettext('months')));
$checkbox = new html_checkbox(array('name' => 'bymonthday', 'class' => 'edit-recurrence-monthly-bymonthday'));
for ($monthdays = '', $d = 1; $d <= 31; $d++) {
$monthdays .= html::label(array('class' => 'monthday'), $checkbox->show('', array('value' => $d)) . $d);
$monthdays .= $d % 7 ? ' ' : html::br();
}
// rule selectors
$radio = new html_radiobutton(array('name' => 'repeatmode', 'class' => 'edit-recurrence-monthly-mode'));
$table = new html_table(array('cols' => 2, 'border' => 0, 'cellpadding' => 0, 'class' => 'formtable'));
$table->add('label', html::label(null, $radio->show('BYMONTHDAY', array('value' => 'BYMONTHDAY')) . ' ' . $this->gettext('each')));
$table->add(null, $monthdays);
$table->add('label', html::label(null, $radio->show('', array('value' => 'BYDAY')) . ' ' . $this->gettext('onevery')));
$table->add(null, $this->rrule_selectors($attrib['part']));
$html .= html::div($attrib, $table->show());
break;
// annually recurrence form
// annually recurrence form
case 'yearly':
$select = $this->interval_selector(array('name' => 'interval', 'class' => 'edit-recurrence-interval', 'id' => 'edit-recurrence-interval-yearly'));
$html = html::div($attrib, html::label('edit-recurrence-interval-yearly', $this->gettext('every')) . $select->show(1) . html::span('label-after', $this->gettext('years')));
// month selector
$monthmap = array('', 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec');
$checkbox = new html_checkbox(array('name' => 'bymonth', 'class' => 'edit-recurrence-yearly-bymonth'));
for ($months = '', $m = 1; $m <= 12; $m++) {
$months .= html::label(array('class' => 'month'), $checkbox->show(null, array('value' => $m)) . $this->gettext($monthmap[$m]));
$months .= $m % 4 ? ' ' : html::br();
}
$html .= html::div($attrib + array('id' => 'edit-recurrence-yearly-bymonthblock'), $months);
// day rule selection
$html .= html::div($attrib, html::label(null, $this->gettext('onevery')) . $this->rrule_selectors($attrib['part'], '---'));
break;
// end of recurrence form
// end of recurrence form
case 'until':
$radio = new html_radiobutton(array('name' => 'repeat', 'class' => 'edit-recurrence-until'));
$select = $this->interval_selector(array('name' => 'times', 'id' => 'edit-recurrence-repeat-times'));
$input = new html_inputfield(array('name' => 'untildate', 'id' => 'edit-recurrence-enddate', 'size' => "10"));
$html = html::div('line first', html::label(null, $radio->show('', array('value' => '', 'id' => 'edit-recurrence-repeat-forever')) . ' ' . $this->gettext('forever')));
$forntimes = $this->gettext(array('name' => 'forntimes', 'vars' => array('nr' => '%s')));
$html .= html::div('line', $radio->show('', array('value' => 'count', 'id' => 'edit-recurrence-repeat-count', 'aria-label' => sprintf($forntimes, 'N'))) . ' ' . sprintf($forntimes, $select->show(1)));
$html .= html::div('line', $radio->show('', array('value' => 'until', 'id' => 'edit-recurrence-repeat-until', 'aria-label' => $this->gettext('untilenddate'))) . ' ' . $this->gettext('untildate') . ' ' . $input->show('', array('aria-label' => $this->gettext('untilenddate'))));
$html = html::div($attrib, html::label(null, ucfirst($this->gettext('recurrencend'))) . $html);
break;
case 'rdate':
$ul = html::tag('ul', array('id' => 'edit-recurrence-rdates'), '');
$input = new html_inputfield(array('name' => 'rdate', 'id' => 'edit-recurrence-rdate-input', 'size' => "10"));
$button = new html_inputfield(array('type' => 'button', 'class' => 'button add', 'value' => $this->gettext('addrdate')));
$html .= html::div($attrib, $ul . html::div('inputform', $input->show() . $button->show()));
break;
}
return $html;
}
示例14: _action_row
//.........这里部分代码省略.........
}
} 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']));
$vacs_table = $this->_vacation_table($ext, $rowid, $defaults, $display, $help_icon);
// begin notify action
$notify_table = new html_table(array('class' => 'records-table', 'cellspacing' => '0', 'cols' => 3, 'style' => $defaults['method'] == 'notify' || $defaults['method'] == 'enotify' ? '' : 'display: none;'));
if (count($this->identities)) {
$field_id = 'rcmfd_sievenotifyfrom_' . $rowid;
$select_id = new html_select(array('id' => $field_id, 'name' => "_nfrom[]"));
$select_id->add($this->gettext('autodetect'), "");
foreach ($this->identities as $sql_arr) {
// find currently selected from address
if ($defaults['nfrom'] != '' && $defaults['nfrom'] == rcmail::Q($sql_arr['from']['string'])) {
$defaults['nfrom'] = $sql_arr['identity_id'];
} elseif ($defaults['nfrom'] != '' && $defaults['nfrom'] == $sql_arr['from']['mailto']) {
$defaults['nfrom'] = $sql_arr['identity_id'];
}
$select_id->add($sql_arr['from']['disp_string'], $sql_arr['identity_id']);
}
$notify_table->set_row_attribs(array('class' => 'advanced', 'style' => $display['noteadv']));
$notify_table->add(null, html::label($field_id, rcmail::Q($this->gettext('sievefrom'))));
$notify_table->add(array('colspan' => 2), $select_id->show($defaults['nfrom']));
}
$field_id = 'rcmfd_nmethod_' . $rowid;
$input_method = new html_inputfield(array('id' => $field_id, 'name' => '_nmethod[]'));
$notify_table->add(null, html::label($field_id, rcmail::Q($this->gettext('method'))));
$notify_table->add(array('colspan' => 2), $input_method->show($defaults['nmethod']));
$field_id = 'rcmfd_noption_' . $rowid;
$input_method = new html_inputfield(array('id' => $field_id, 'name' => '_noption[]'));
$notify_table->add(null, html::label($field_id, rcmail::Q($this->gettext('options'))));
$notify_table->add(array('colspan' => 2), $input_method->show($defaults['noptions']));
$notify_table->set_row_attribs(array('style' => 'display: none;'));
$notify_table->add(array('colspan' => 3, 'class' => 'helpmsg'), $this->gettext('nmethodexp'));
$field_id = 'rcmfd_nimpt_' . $rowid;
$input_importance = new html_radiobutton(array('id' => $field_id . '_none', 'name' => '_notify_radio_' . $rowid, 'value' => 'none', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_notify_impt(this, ' . $rowid . ')', 'class' => 'radio'));
$importance_show = $input_importance->show($defaults['nimpt']) . " " . html::label($field_id . '_none', rcmail::Q($this->gettext('importancen')));
$input_importance = new html_radiobutton(array('id' => $field_id . '_1', 'name' => '_notify_radio_' . $rowid, 'value' => '1', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_notify_impt(this, ' . $rowid . ')', 'class' => 'radio'));
$importance_show .= ' ' . $input_importance->show($defaults['nimpt']) . " " . html::label($field_id . '_1', rcmail::Q($this->gettext('importance1')));
$input_importance = new html_radiobutton(array('id' => $field_id . '_2', 'name' => '_notify_radio_' . $rowid, 'value' => '2', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_notify_impt(this, ' . $rowid . ')', 'class' => 'radio'));
$importance_show .= ' ' . $input_importance->show($defaults['nimpt']) . " " . html::label($field_id . '_2', rcmail::Q($this->gettext('importance2')));
$input_importance = new html_radiobutton(array('id' => $field_id . '_3', 'name' => '_notify_radio_' . $rowid, 'value' => '3', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_notify_impt(this, ' . $rowid . ')', 'class' => 'radio'));
$importance_show .= ' ' . $input_importance->show($defaults['nimpt']) . " " . html::label($field_id . '_3', rcmail::Q($this->gettext('importance3')));
$input_importance = new html_hiddenfield(array('id' => 'rcmfd_sievenimpt_' . $rowid, 'name' => '_nimpt[]'));
$notify_table->set_row_attribs(array('class' => 'advanced', 'style' => $display['noteadv']));
$notify_table->add(null, rcmail::Q($this->gettext('flag')));
$notify_table->add(array('colspan' => 2), $importance_show . $input_importance->show($defaults['nimpt']));
$field_id = 'rcmfd_nmsg_' . $rowid;
$input_msg = new html_inputfield(array('id' => $field_id, 'name' => '_nmsg[]'));
$notify_table->add(null, html::label($field_id, rcmail::Q($this->gettext('message'))));
$notify_table->add(array('colspan' => 2), $input_msg->show($defaults['nmsg']));
if (in_array('enotify', $ext)) {
$input_advopts = new html_checkbox(array('id' => 'nadvopts' . $rowid, 'name' => '_nadv_opts[]', 'onclick' => rcmail_output::JS_OBJECT_NAME . '.sieverules_show_adv(this);', 'value' => '1', 'class' => 'checkbox'));
$notify_table->add(array('colspan' => '3', 'style' => 'text-align: right'), html::label('nadvopts' . $rowid, rcmail::Q($this->gettext('advancedoptions'))) . $input_advopts->show($display['noteadv'] == '' ? 1 : 0));
}
示例15: breadcrumb
public static function breadcrumb($items)
{
$divider = html::span('divider', ' / ');
return html::ul('breadcrumb', '<li>' . implode("{$divider}</li><li>", $items) . '</li>');
}