本文整理汇总了PHP中box::infoBox方法的典型用法代码示例。如果您正苦于以下问题:PHP box::infoBox方法的具体用法?PHP box::infoBox怎么用?PHP box::infoBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类box
的用法示例。
在下文中一共展示了box::infoBox方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
function display_right_box()
{
extract(tep_load('defs', 'database'));
$html_string = '';
if (!$this->is_top_level()) {
return $html_string;
}
$heading = array();
$contents = array();
switch ($this->m_action) {
case 'list':
break;
case 'new_zone':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_ZONE . '</b>');
$azone_array = array();
$azone_query = "select at.abstract_types_id as id, at.abstract_types_name as text from " . TABLE_ABSTRACT_TYPES . " at where at.abstract_types_status = '1' order by at.sort_order";
$azone_array = $db->query_to_array($azone_query);
$contents[] = array('form' => tep_draw_form('zones', $cDefs->script, tep_get_all_get_params('action') . 'action=insert_zone'));
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'new_entry.png', IMAGE_NEW));
$contents[] = array('text' => TEXT_INFO_NEW_ZONE_INTRO);
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_ZONE_NAME . '<br />' . tep_draw_input_field('abstract_zone_name'));
$contents[] = array('text' => TEXT_INFO_ZONE_TYPE . '<br />' . tep_draw_pull_down_menu('abstract_types_id', $azone_array));
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_ZONE_DESC . '<br />' . tep_draw_textarea_field('abstract_zone_desc', '', 5));
$contents[] = array('text' => TEXT_INFO_ZONE_ORDER . '<br />' . tep_draw_input_field('sort_id', $this->m_zInfo['sort_id'], 'size="3"'));
$contents[] = array('text' => tep_draw_checkbox_field('status_id', 'on', false) . ' ' . TEXT_INFO_ZONE_VISIBLE);
$contents[] = array('class' => 'infoBoxSection', 'section' => '<div>');
$contents[] = array('text' => '<b>' . TEXT_SEO_SECTION . '</b>');
$contents[] = array('class' => 'rpad', 'text' => TEXT_SEO_NAME . '<br />' . tep_draw_input_field('seo_name'));
$contents[] = array('text' => tep_draw_checkbox_field('seo_name_force', 'on') . ' ' . TEXT_SEO_NAME_FORCE);
$contents[] = array('class' => 'heavy', 'text' => TEXT_METAG);
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_TITLE . '<br />' . tep_draw_input_field('meta_title'));
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_KEYWORDS . '<br />' . tep_draw_textarea_field('meta_keywords', '', '', '2'));
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_TEXT . '<br />' . tep_draw_textarea_field('meta_text', '', '', '2'));
$contents[] = array('section' => '</div>');
$contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_insert.gif', IMAGE_INSERT) . '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zID) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit_zone':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ZONE . '</b>');
$contents[] = array('form' => tep_draw_form('zones', $cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zInfo->abstract_zone_id . '&action=save_zone'));
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'update_entry.png', IMAGE_EDIT));
$contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO);
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_ZONE_NAME . '<br />' . tep_draw_input_field('abstract_zone_name', $this->m_zInfo->abstract_zone_name));
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_ZONE_DESC . '<br />' . tep_draw_textarea_field('abstract_zone_desc', $this->m_zInfo->abstract_zone_desc, '', 8));
$contents[] = array('text' => TEXT_INFO_ZONE_ORDER . '<br />' . tep_draw_input_field('sort_id', $this->m_zInfo->sort_id, 'size="3"'));
$contents[] = array('text' => tep_draw_checkbox_field('status_id', 'on', $this->m_zInfo->status_id == 1 ? true : false) . ' ' . TEXT_INFO_ZONE_VISIBLE);
$contents[] = array('class' => 'infoBoxSection', 'section' => '<div>');
$seog_array = array('seo_name' => '');
$seog_query = $db->query("select seo_name from " . TABLE_SEO_TO_ABSTRACT . " where abstract_zone_id = '" . (int) $this->m_zInfo->abstract_zone_id . "'");
if ($db->num_rows($seog_query)) {
$seog_array = $db->fetch_array($seog_query);
}
$contents[] = array('class' => 'heavy', 'text' => TEXT_SEO_SECTION);
$contents[] = array('class' => 'rpad', 'text' => TEXT_SEO_NAME . '<br />' . tep_draw_input_field('seo_name', $seog_array['seo_name']));
$contents[] = array('text' => tep_draw_checkbox_field('seo_name_force', 'on') . ' ' . TEXT_SEO_NAME_FORCE);
$metag_title = '';
$metag_keywords = '';
$metag_text = '';
$metag_query = $db->query("select meta_title, meta_keywords, meta_text from " . TABLE_META_ABSTRACT . " where abstract_zone_id = '" . (int) $this->m_zInfo->abstract_zone_id . "'");
if ($db->num_rows($metag_query)) {
$metag_array = $db->fetch_array($metag_query);
$metag_title = stripslashes($metag_array['meta_title']);
$metag_keywords = stripslashes($metag_array['meta_keywords']);
$metag_text = stripslashes($metag_array['meta_text']);
}
$contents[] = array('class' => 'heavy', 'text' => TEXT_METAG);
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_TITLE . '<br />' . tep_draw_input_field('meta_title', $metag_title));
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_KEYWORDS . '<br />' . tep_draw_textarea_field('meta_keywords', $metag_keywords, '', '2'));
$contents[] = array('class' => 'rpad', 'text' => TEXT_META_TEXT . '<br />' . tep_draw_textarea_field('meta_text', $metag_text, '', '2'));
$contents[] = array('section' => '</div>');
$contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zInfo->abstract_zone_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete_zone':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ZONE . '</b>');
$contents[] = array('form' => tep_draw_form('zones', $cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zInfo->abstract_zone_id . '&action=deleteconfirm_zone'));
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'final_notice.png', IMAGE_CONFIRM));
$contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO);
$contents[] = array('text' => '<b>' . $this->m_zInfo->abstract_zone_name . '</b>');
$contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_delete.gif', IMAGE_DELETE) . '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zInfo->abstract_zone_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($this->m_zInfo) && is_object($this->m_zInfo) && !empty($this->m_zID)) {
$heading[] = array('text' => '<b>' . $this->m_zInfo->abstract_zone_name . '</b>');
$buttons = array('<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zID . '&action=edit_zone') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>', '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zID . '&action=delete_zone') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>', '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zID . '&action=new_zone') . '">' . tep_image_button('button_new.gif', IMAGE_INSERT) . '</a>', '<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'zID') . 'zID=' . $this->m_zID . '&action=list') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
$contents[] = array('class' => 'calign', 'text' => implode('', $buttons));
$contents[] = array('text' => TEXT_INFO_ZONE_TYPE . '<br /><b>' . $this->m_zInfo->abstract_types_name . '</b>');
$contents[] = array('text' => TEXT_INFO_ZONE_CLASS . '<br /><b>' . $this->m_zInfo->abstract_types_class . '.php</b>');
$contents[] = array('text' => TEXT_INFO_ZONE_TABLE . '<br /><b>' . $this->m_zInfo->abstract_types_table . '</b>');
$contents[] = array('text' => TEXT_INFO_ZONE_VISIBILITY . '<br /><b>' . ($this->m_zInfo->status_id == 1 ? TEXT_INFO_ZONE_VISIBLE : TEXT_INFO_ZONE_HIDDEN) . '</b>');
$contents[] = array('text' => TEXT_INFO_ZONE_DESC . '<br />' . $this->m_zInfo->abstract_zone_desc);
$contents[] = array('text' => TEXT_INFO_ZONE_ORDER . '<br />' . $this->m_zInfo->sort_id);
$contents[] = array('text' => TEXT_INFO_DATE_ADDED . '<br />' . tep_date_short($this->m_zInfo->date_added));
if (tep_not_null($this->m_zInfo->last_modified)) {
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . '<br />' . tep_date_short($this->m_zInfo->last_modified));
}
} else {
// create generic_text dummy info
$heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>');
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'invalid_entry.png', TEXT_ERROR));
$contents[] = array('text' => TEXT_NO_GENERIC);
}
//.........这里部分代码省略.........
示例2: array
if ($nInfo->locked > 0) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
} else {
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->affiliate_newsletters_id . '&action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
}
$contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));
if ($nInfo->status == '1') {
$contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));
}
}
break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
示例3: array
$contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . BLANK . olc_format_price($cart->show_total(), true, true));
} else {
$contents[] = array('text' => HTML_NBSP);
}
}
}
if (olc_not_null($contents)) {
$main_content .= '
<tr>
<td>
<table border="0">
<tr>
<td classe="dataTableRowOver" width="50%" valign="top">
';
$box = new box();
$main_content .= $box->infoBox($heading, $contents);
$main_content .= '
</td>
</tr>
</table>
</td>
</tr>
';
}
}
}
if ($session_change) {
// restore old session data
$_SESSION = array();
$_SESSION = $old_session;
}
示例4: extract
function display_right_box()
{
extract(tep_load('defs'));
$html_string = '';
if (!$this->is_top_level()) {
return $html_string;
}
$heading = array();
$contents = array();
switch ($this->m_action) {
case 'list':
break;
default:
if (isset($this->m_zInfo) && is_object($this->m_zInfo) && tep_not_null($this->m_zID)) {
$heading[] = array('text' => '<b>' . $this->m_zInfo->meta_types_name . '</b>');
//$contents[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($cDefs->script, 'zpage=' . $this->m_zpage . '&spage=1' . '&zID=' . $this->m_zInfo->meta_types_id . '&action=validate') . '">' . tep_image_button('button_validate.gif', 'Validate Entries for this type') . '</a> <a href="' . tep_href_link($cDefs->script, 'zpage=' . $this->m_zpage . '&spage=1' . '&zID=' . $this->m_zInfo->meta_types_id . '&action=list') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
$contents[] = array('class' => 'infoBoxSection', 'section' => '<div>');
$contents[] = array('text' => TEXT_INFO_ZONE_TYPE . '<br /><b>' . $this->m_zInfo->meta_types_name . '</b>');
$contents[] = array('text' => TEXT_INFO_ZONE_CLASS . '<br /><b>' . $this->m_zInfo->meta_types_class . '.php</b>');
$contents[] = array('section' => '</div>');
$contents[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($cDefs->script, 'zpage=' . $this->m_zpage . '&spage=1' . '&zID=' . $this->m_zInfo->meta_types_id . '&action=list') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
} else {
// create generic_text dummy info
$heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>');
$contents[] = array('text' => TEXT_NO_GENERIC);
}
break;
}
if (!empty($heading) && !empty($contents)) {
$html_string .= ' <div class="rightcell">' . "\n";
$box = new box();
$html_string .= $box->infoBox($heading, $contents);
$html_string .= ' </div>' . "\n";
}
return $html_string;
}
示例5: array
//an item is selected, so make the side box
$heading[] = array('text' => '<b>' . $selected_item['module_subscribers'] . '</b>');
$headers[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_EXTRA_INFOS, 'latest_news_id=' . $selected_item['news_id'] . '&action=new_latest_news') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
$headers[] = array('text' => '<br>' . $selected_item['header']);
}
} else {
// create category/product info
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
$headers[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, $parent_categories_name));
}
break;
}
if (tep_not_null($heading) && tep_not_null($headers)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $headers);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
示例6: array
function draw_info()
{
global $fInfo, $message, $cip;
$heading = array();
$contents = array();
switch ($this->action) {
case 'upload':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
$contents = array('form' => vam_draw_form('file', $this->script_name(), 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_UPLOAD_INTRO);
$contents[] = array('text' => TEXT_UPLOAD_LIMITS);
$file_upload = '';
for ($i = 1; $i < 11; $i++) {
$file_upload .= $i . ($i > 9 ? ' ' : ' ') . vam_draw_input_field('cip_' . $i, '', 'size="50"', false, 'file') . '<br>';
}
$contents[] = array('text' => '<br>' . $file_upload);
$contents[] = array('align' => 'left', 'text' => '<br>' . ($this->upload_directory_writeable() ? '<span class="button"><button type="submit" value=" ' . BUTTON_UPLOAD . ' ">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . ' ' . BUTTON_UPLOAD . '</button></span>' : '') . ' <a class="button" href="' . vam_href_link($this->script_name(), isset($this->cip) ? 'cip=' . urlencode($this->cip) : '') . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . ' ' . BUTTON_CANCEL . '</span></a><br /><br />');
break;
default:
//This is 'info':
if (isset($fInfo) && is_object($fInfo)) {
$heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
// Prints a contrib info:
$cip = new CIP($fInfo->name);
$cip->read_xml();
if ($cip->get_count_php_tags()) {
$message->add(CIP_USES . ' <<b>php</b>> (' . $cip->get_count_php_tags() . ')!', 'notice');
}
//Print description:
$description = $cip->get_data($cip->get_description_id());
if ($description) {
$array = $this->cip_description($description->data);
foreach ($array as $value) {
$contents[] = $value;
}
} else {
$contents[] = array('text' => '<font style="color:red;">' . CONFIG_FILENAME . TEXT_DOESNT_EXISTS . '!!!</font>');
}
}
}
//Prints an error message at the right column
// if ($message->size>0) array_unshift($contents, array('text' => $message->output()."<br>"));
//Prints an error message at the right column
//if (!$heading) $heading[]=array('text' => '<b>Error</b>');
if (vam_not_null($heading) or vam_not_null($contents)) {
$box = new box();
return '<td width="30%" valign="top">' . "\n" . $box->infoBox($heading, $contents) . '</td>' . "\n";
}
}
示例7: array
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
$contents[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, xtc_get_categories_name($current_category_id, $_SESSION['languages_id'])));
$buttons_new_elements = '<br /><a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>';
if ($cPath != '0') {
$buttons_new_elements .= ' ';
$buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a><br /><br />';
}
$contents[] = array('align' => 'center', 'text' => $buttons_new_elements);
}
break;
}
//end switch
if (xtc_not_null($heading) && xtc_not_null($contents)) {
//display info box
echo '<div class="col-md-3 col-sm-12 col-xs-12 pull-right edit-box-class">' . "\n";
echo box::infoBox($heading, $contents);
// cYbercOsmOnauT - 2011-02-05 - Changed methods of the classes box and tableBox to static
echo '</div>' . "\n";
?>
<script>
//responsive_table
$('#responsive_table').addClass('col-md-9');
</script>
<?php
}
?>
</div>
<div class="smallText" align="center" style="padding:5px;">
<span style="padding-right:50px;"><?php
echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_LIST_PRODUCTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS);
示例8: array
}
break;
default:
if ($rows > 0 && isset($nInfo) && is_object($nInfo)) {
$heading[] = array('text' => '<b>' . $nInfo->template_subject . '</b>');
$buttons = array('<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'nID=' . $nInfo->template_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>', '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'nID=' . $nInfo->template_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>', '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'nID=' . $nInfo->template_id . '&action=copy') . '">' . tep_image_button('button_copy.gif', IMAGE_COPY) . '</a>', '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'nID=' . $nInfo->template_id . '&action=reset') . '">' . tep_image_button('button_reset.gif', IMAGE_RESET) . '</a>', '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'nID=' . $nInfo->template_id . '&action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a>');
$newsletters[] = array('class' => 'calign', 'text' => implode('', $buttons));
$newsletters[] = array('text' => TEXT_INFO_NAME . '<br /><b>' . $nInfo->template_subject . '</b>');
$newsletters[] = array('text' => TEXT_INFO_HITS . '<br />' . $nInfo->newsletter_hits);
$newsletters[] = array('text' => TEXT_INFO_SENT . '<br />' . $nInfo->times_sent);
$date_sent = TEXT_INFO_NOT_SENT;
if (!empty($nInfo->date_sent)) {
tep_date_short($nInfo->date_sent);
}
$newsletters[] = array('text' => TEXT_INFO_DATE . '<br />' . $date_sent);
} else {
// create content dummy info
$heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>');
$newsletters[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'nID') . 'action=edit') . '">' . tep_image(DIR_WS_IMAGES . 'invalid_entry.png', IMAGE_NEW) . '</a>');
$newsletters[] = array('text' => TEXT_INFO_NO_ENTRIES);
}
break;
}
if (!empty($heading) && !empty($newsletters)) {
echo ' <div class="rightcell">';
$box = new box();
echo $box->infoBox($heading, $newsletters);
echo ' </div>';
}
}
require DIR_FS_OBJECTS . 'html_end.php';
示例9: array
/* END magnalister */
$content_multi_order_status[] = array('text' => xtc_draw_checkbox_field('gm_notify', 'on') . ENTRY_NOTIFY_CUSTOMER);
$content_multi_order_status[] = array('text' => xtc_draw_checkbox_field('gm_notify_comments', 'on') . ENTRY_NOTIFY_COMMENTS);
$content_multi_order_status[] = array('text' => TABLE_HEADING_COMMENTS . '<br>' . xtc_draw_textarea_field('gm_comments', '', 24, 5, $_GET['comments'], '', false) . '<br>');
$content_multi_order_status[] = array('align' => 'left', 'text' => '<div align="center"><input type="submit" class="button" value="' . BUTTON_CONFIRM . '"></form></div>');
$content_multi_order_status[] = array('align' => 'left', 'text' => '<br />');
// eof gm
break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
echo ' <td width="25%" valign="top" id="gm_orders">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo "<br />";
$box = new box();
echo $box->infoBox($gm_heading_multi_status, $content_multi_order_status);
echo ' </td>' . "\n";
}
?>
</tr>
</table>
<!-- bof gambio -->
<table border="0" cellspacing="3" cellpadding="3">
<tr>
<td class="smallText" valign="middle" align="right"><?php
echo $orders_split->display_count($orders_query_numrows, '20', $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS);
?>
</td>
<td class="smallText" valign="middle" align="right"><?php
echo $orders_split->display_links($orders_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page'], xtc_get_all_get_params(array('page', 'oID', 'action')));
?>