本文整理汇总了PHP中zen_draw_form函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_form函数的具体用法?PHP zen_draw_form怎么用?PHP zen_draw_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_draw_form函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form
function form($name, $sub = "", $option = "")
{
if ($sub != "") {
$sub = "/" . $sub;
}
return zen_draw_form($name, FILENAME_ADDON_MODULES_ADMIN, 'module=easy_admin_products' . $sub, 'post', $option);
}
示例2: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
global $PHP_SELF;
$current_page_number = (int) $current_page_number;
if (zen_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
if ($max_rows_per_page == 0) {
$max_rows_per_page = 20;
}
if ($query_numrows == 0) {
return '';
}
// calculate number of pages needing links
if ($max_rows_per_page == '' || $max_rows_per_page == 0) {
$max_rows_per_page = $query_numrows;
}
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = zen_draw_form('pages', basename($PHP_SELF), '', 'get');
if ($current_page_number > 1) {
$display_links .= '<a href="' . zen_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, zen_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . zen_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= zen_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= zen_draw_hidden_field(zen_session_name(), zen_session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
示例3: zen_draw_input_field
$outputCapt .= MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_TRANS_ID . zen_draw_input_field('captauthid', MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_DEFAULT_TEXT, 'length="32"') . '<br />';
// confirm checkbox
$outputCapt .= MODULE_PAYMENT_LINKPOINT_API_TEXT_CAPTURE_CONFIRM_CHECK . zen_draw_checkbox_field('captconfirm', '', false) . '<br />';
// comment field
$outputCapt .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('captnote', 'soft', '50', '2', MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_DEFAULT_MESSAGE);
// message text
$outputCapt .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_SUFFIX;
$outputCapt .= '<br /><input type="submit" name="btndocapture" value="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_BUTTON_TEXT . '" />';
$outputCapt .= '</form>';
$outputCapt .= '</td></tr></table></td>' . "\n";
}
if (method_exists($this, '_doVoid')) {
$outputVoid .= '<td valign="top"><table class="noprint">' . "\n";
$outputVoid .= '<tr style="background-color : #dddddd; border-style : dotted;">' . "\n";
$outputVoid .= '<td class="main">' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_TITLE . '<br />' . "\n";
$outputVoid .= zen_draw_form('lpapivoid', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doVoid', 'post', '', true) . zen_hide_session_id();
$outputVoid .= MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID . zen_draw_input_field('voidauthid', MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_DEFAULT_TEXT, 'length="32"');
$outputVoid .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_TEXT_VOID_CONFIRM_CHECK . zen_draw_checkbox_field('voidconfirm', '', false);
// comment field
$outputVoid .= '<br /><br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('voidnote', 'soft', '50', '3', MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_DEFAULT_MESSAGE);
// message text
$outputVoid .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_SUFFIX;
// confirm checkbox
$outputVoid .= '<br /><input type="submit" name="ordervoid" value="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_BUTTON_TEXT . '" />';
$outputVoid .= '</form>';
$outputVoid .= '</td></tr></table></td>' . "\n";
}
// prepare output based on suitable content components
if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS != '') {
$output = '<!-- BOF: lpapi admin transaction processing tools -->';
$output .= $outputStartBlock;
示例4: array
}
if (ADMIN_CONFIGURATION_KEY_ON == 1) {
$contents[] = array('text' => '<strong>Key: ' . $mInfo->code . '</strong><br />');
}
$keys = substr($keys, 0, strrpos($keys, '<br><br>'));
if (!(!$is_ssl_protected && in_array($mInfo->code, array('paypaldp', 'linkpoint_api', 'authorizenet_aim', 'authorizenet_echeck')))) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_MODULES, 'set=' . $set . (isset($_GET['module']) ? '&module=' . $_GET['module'] : '') . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT, 'name="editButton"') . '</a>');
} else {
$contents[] = array('align' => 'center', 'text' => TEXT_WARNING_SSL_EDIT);
}
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove', 'NONSSL') . '">' . zen_image_button('button_module_remove.gif', IMAGE_MODULE_REMOVE, 'name="removeButton"') . '</a>');
$contents[] = array('text' => '<br>' . $mInfo->description);
$contents[] = array('text' => '<br>' . $keys);
} else {
if (!(!$is_ssl_protected && in_array($mInfo->code, array('paypaldp', 'linkpoint_api', 'authorizenet_aim', 'authorizenet_echeck')))) {
$contents[] = array('align' => 'center', 'text' => zen_draw_form('install_module', FILENAME_MODULES, 'set=' . $set . '&action=install') . '<input type="hidden" name="module" value="' . $mInfo->code . '" />' . zen_image_submit('button_module_install.gif', IMAGE_MODULE_INSTALL, 'name="installButton"') . '</form>');
} else {
$contents[] = array('align' => 'center', 'text' => TEXT_WARNING_SSL_INSTALL);
}
$contents[] = array('text' => '<br>' . $mInfo->description);
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
</tr>
示例5: zen_draw_form
*
* Loaded automatically by index.php?main_page=document_product_info.<br />
* Displays template according to "document-product" product-type needs
*
* @package templateSystem
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_document_product_info_display.php 19690 2011-10-04 16:41:45Z drbyte $
*/
?>
<div class="centerColumn" id="docProductDisplay">
<!--bof Form start-->
<?php
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n";
?>
<!--eof Form start-->
<?php
if ($messageStack->size('product_info') > 0) {
echo $messageStack->output('product_info');
}
?>
<!--bof Category Icon -->
<?php
if ($module_show_categories != 0) {
/**
* display the category icons
*/
示例6: array
</td>
<td>
<!-- // bof quick copy form -->
<?php
$quick_copy_from_array = array();
//export_products[$products->fields['products_id']]['products_model']
if (zen_products_id_valid(QUICKUPDATES_COPY_PRODUCT_ID_DEFAULT)) {
$quick_copy_from_array[] = array('id' => QUICKUPDATES_COPY_PRODUCT_ID_DEFAULT, 'text' => 'id:' . QUICKUPDATES_COPY_PRODUCT_ID_DEFAULT . ' (' . TEXT_QUICK_COPY_PRODUCT_ID_DEFAULT . ')');
}
foreach ((array) $export_products as $key => $value) {
if (!empty($value['products_model'])) {
$text = ' (' . $value['products_model'] . ')';
}
$quick_copy_from_array[] = array('id' => $key, 'text' => 'id:' . $key . $text);
}
echo zen_draw_form('quickcopyfrom', FILENAME_QUICK_UPDATES);
echo zen_draw_pull_down_menu('quick_copy_from_id', $quick_copy_from_array, $_SESSION['quick_updates']['quick_copy_from_id']);
$array = array();
//$array[] = array('id' => $_SESSION['quick_updates']['quick_copy_number'],'text' => $_SESSION['quick_updates']['quick_copy_number'] . 'x');
$array[] = array('id' => 0, 'text' => '0x');
$array[] = array('id' => 1, 'text' => '1x');
$array[] = array('id' => 10, 'text' => '10x');
echo zen_draw_pull_down_menu('quick_copy_number', $array, $_SESSION['quick_updates']['quick_copy_number']);
echo zen_draw_hidden_field('quick_updates_copy', 1) . "\n";
echo zen_image_submit('button_copy.gif', BUTTON_TEXT_QUICK_COPY) . "\n";
?>
</form>
<!-- // eof quick copy form -->
</td>
</tr>
</table>
示例7: zen_draw_form
<?php
/**
* Module Template - for shipping-estimator display
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_shipping_estimator.php 15881 2010-04-11 16:32:39Z wilt $
*/
?>
<div id="shippingEstimatorContent">
<?php
echo zen_draw_form('estimator', zen_href_link($show_in, '', $request_type), 'post');
echo zen_draw_hidden_field('scid', $selected_shipping['id']);
if ($_SESSION['cart']->count_contents()) {
if ($_SESSION['customer_id']) {
?>
<h2><?php
echo CART_SHIPPING_OPTIONS;
?>
</h2>
<?php
if (!empty($totalsDisplay)) {
?>
<div class="cartTotalsDisplay important"><?php
echo $totalsDisplay;
?>
示例8: zen_draw_form
* Page Template
*
* Loaded automatically by index.php?main_page=account_newsletters.<br />
* Subscribe/Unsubscribe from General Newsletter
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_account_newsletters_default.php 2896 2006-01-26 19:10:56Z birdbrain $
*/
echo "<font color=red>" . $mobile->view_securepage_notice() . "</font>";
?>
<div class="centerColumn" id="acctNewslettersDefault">
<?php
echo zen_draw_form('account_newsletter', zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL')) . zen_draw_hidden_field('action', 'process');
echo TEXT_SQUARE . HEADING_TITLE;
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER;
echo "<br>";
echo zen_draw_checkbox_field('newsletter_general', '1', $newsletter->fields['customers_newsletter'] == '1' ? true : false, 'id="newsletter"');
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION;
?>
<div class="buttonRow forward"><?php
echo zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT);
?>
</div>
<div class="buttonRow back"><?php
echo '<a href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>';
?>
</div>
示例9: zen_draw_form
case '0':
$is_metatags_title_tagline_status = false;
$not_metatags_title_tagline_status = true;
break;
case '1':
$is_metatags_title_tagline_status = true;
$not_metatags_title_tagline_status = false;
break;
default:
$is_metatags_title_tagline_status = true;
$not_metatags_title_tagline_status = false;
}
?>
<?php
// echo $type_admin_handler;
echo zen_draw_form('new_product_meta_tags', $type_admin_handler, 'cPath=' . $cPath . (isset($_GET['product_type']) ? '&product_type=' . $_GET['product_type'] : '') . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . '&action=new_product_preview_meta_tags' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'post', 'enctype="multipart/form-data"');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo sprintf(TEXT_NEW_PRODUCT, zen_output_generated_category_path($current_category_id));
?>
</td>
<td class="pageHeading" align="right"><?php
echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
</tr>
</table></td>
示例10: zen_options_name
<?php
} else {
?>
<table border="1" cellspacing="3" cellpadding="2" bordercolor="gray">
<tr class="dataTableHeadingRow">
<td colspan="3" class="dataTableHeadingContent" align="center"><?php
echo TEXT_EDIT_OPTION_NAME;
?>
<?php
echo zen_options_name($_GET['options_id']);
?>
</td>
</tr>
<?php
// echo zen_draw_form('update', zen_href_link(FILENAME_PRODUCTS_OPTIONS_VALUES, 'action=update_sort_order&options_id=' . $_GET['options_id'], 'NONSSL'), '', 'post');
echo zen_draw_form('update', FILENAME_PRODUCTS_OPTIONS_VALUES, 'action=update_sort_order&options_id=' . $_GET['options_id'], 'post');
echo ' <tr class="dataTableHeadingRow"><td class="dataTableHeadingContent">Option ID</td><td class="dataTableHeadingContent">Option Value Name</td><td class="dataTableHeadingContent">Sort Order</td></tr><tr>';
$row = $db->Execute("SELECT * FROM " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " povtpo WHERE povtpo.products_options_values_id = pov.products_options_values_id and povtpo.products_options_id='" . $_GET['options_id'] . "' and pov.language_id = '" . $_SESSION['languages_id'] . "' ORDER BY pov.products_options_values_sort_order, pov.products_options_values_id");
if (!$row->EOF) {
$option_values_exist = true;
while (!$row->EOF) {
echo ' <td align="right" class="dataTableContent">' . $row->fields["products_options_values_id"] . '</td>' . "\n";
echo ' <td class="dataTableContent">' . $row->fields["products_options_values_name"] . '</td>' . "\n";
echo ' <td class="dataTableContent" align="center">' . "<input type=\"text\" name=\"options_values_new_sort_order[" . $row->fields['products_options_values_id'] . "]\" value={$row->fields['products_options_values_sort_order']} size=\"4\">" . '</td>' . "\n";
echo ' </tr>' . "\n";
$row->MoveNext();
}
// while($row = mysql_fetch_array($result));
} else {
$option_values_exist = false;
echo ' <td colspan="3" height="50" align="center" valign="middle" class="dataTableContent">' . TEXT_NO_OPTION_VALUE . zen_options_name($_GET['options_id']) . '</td>' . "\n";
示例11: zen_draw_form
<tr>
<td width="100%" class="td_b_t indent_10">
<?php
echo TEXT_ACCOUNT_PASSWORD_TITLE;
echo TEXT_DATA_REQUIRED;
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<?php
echo zen_draw_form('account_password_form', zen_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'), 'post', ' id="account_password_form" onsubmit="return check_account_pwd_form();"') . zen_draw_hidden_field('action', 'process');
?>
<table width="80%" cellpadding="3" cellspacing="0" align="center" >
<tbody>
<tr>
<td colspan="2"><span class="red">* Required information</span></td>
</tr>
<tr>
<td width="21%"> </td>
<td width="79%"> </td>
</tr>
<tr>
<td><span class="inputLabel"><?php
echo TEXT_CURRENT_PASSWORD;
?>
示例12: empty
?>
</h1>
<?php
// BEGIN newsletter subscribe mod 1/1
$addr = empty($_REQUEST['addr']) ? '' : $_REQUEST['addr'];
if ($definedpage && file_exists($definedpage)) {
require $definedpage;
} else {
echo $unsubscribe_address == '' ? UNSUBSCRIBE_TEXT_NO_ADDRESS_GIVEN : UNSUBSCRIBE_TEXT_INFORMATION;
}
?>
<div class="buttonRow forward">
<?php
$content = '';
$content .= zen_draw_form(FILENAME_UNSUBSCRIBE, zen_href_link(FILENAME_UNSUBSCRIBE, '', 'SSL'), 'get', '');
$content .= zen_draw_hidden_field('action', 'unsubscribe');
$content .= zen_draw_hidden_field('main_page', FILENAME_UNSUBSCRIBE);
$content .= zen_draw_input_field('addr', $addr, 'style="width:20em;"');
$content .= ' ' . zen_image_submit(BUTTON_IMAGE_UNSUBSCRIBE, BUTTON_UNSUBSCRIBE) . ' ';
echo $content;
?>
</form>
</div>
<?php
// END newsletter subscribe mod 1/1
?>
<?php
} elseif (isset($_GET['action']) && $_GET['action'] == 'unsubscribe') {
?>
示例13: array
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . zen_draw_input_field('tax_class_title', '', zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_title')));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', '', zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . zen_draw_input_field('tax_class_title', $tcInfo->tax_class_title, zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_title')));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', $tcInfo->tax_class_description, zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($tcInfo) && is_object($tcInfo)) {
$heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($tcInfo->date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($tcInfo->last_modified));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
}
break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
示例14: zen_draw_separator
?>
<!-- Display Header -->
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
</tr>
<tr>
<?php
echo zen_draw_form('search', FILENAME_SUPER_REPORT_CASH, '', 'get');
?>
<tr>
<td class="main"><?php
echo HEADING_SELECT_TARGET;
?>
</td>
<td class="main"><?php
echo HEADING_DATE_RANGE;
?>
</td>
</tr>
<tr>
<td valign="top"><table border="0" cellspacing="2" cellpadding="0">
<tr>
<td class="main" valign="top"><?php
示例15: array
// $extra_row=0;
// } else {
// $list_box_description = "productListing-data-description-odd";
// $extra_row=1;
// }
// $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',
// 'text' => zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION));
//}
$listing->MoveNext();
}
$error_categories = false;
} else {
$list_box_contents = array();
$list_box_contents[0] = array('params' => 'class="productListing-odd"');
$list_box_contents[0][] = array('params' => 'id="noproducts"', 'text' => TEXT_NO_PRODUCTS);
$error_categories = true;
}
if ($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0 and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3)) {
$show_top_submit_button = true;
} else {
$show_top_submit_button = false;
}
if ($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0 and PRODUCT_LISTING_MULTIPLE_ADD_TO_CART >= 2) {
$show_bottom_submit_button = true;
} else {
$show_bottom_submit_button = false;
}
if ($how_many > 0 && PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) {
// bof: multiple products
echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"');
}