• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_draw_form函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中zen_draw_form函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_form函数的具体用法?PHP zen_draw_form怎么用?PHP zen_draw_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了zen_draw_form函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:7,代码来源:easy_admin_products_html.php


示例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>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $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 .= '&nbsp;&nbsp;<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 .= '&nbsp;&nbsp;' . 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;
 }
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:54,代码来源:split_page_results.php


示例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;
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:linkpoint_api_admin_notification.php


示例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>
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:modules.php


示例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
     */
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:tpl_document_product_info_display.php


示例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>
开发者ID:happyxlq,项目名称:zencart_svn,代码行数:31,代码来源:quick_updates.php


示例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;
            ?>
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_modules_shipping_estimator.php


示例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>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:tpl_account_newsletters_default.php


示例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>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:collect_info_metatags.php


示例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";
开发者ID:ZenMagick,项目名称:zc-base,代码行数:31,代码来源:option_values.php


示例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>&nbsp;</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%">&nbsp;</td>
				    <td width="79%">&nbsp;</td>
				</tr>
				<tr>
				    <td><span class="inputLabel"><?php 
echo TEXT_CURRENT_PASSWORD;
?>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:tpl_account_password_default.php


示例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 .= '&nbsp;' . zen_image_submit(BUTTON_IMAGE_UNSUBSCRIBE, BUTTON_UNSUBSCRIBE) . '&nbsp;&nbsp;';
    echo $content;
    ?>
  </form>
</div>
<?php 
    // END newsletter subscribe mod 1/1
    ?>

<?php 
} elseif (isset($_GET['action']) && $_GET['action'] == 'unsubscribe') {
    ?>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:tpl_unsubscribe_default.php


示例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) . '&nbsp;<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) . '&nbsp;<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) . '&nbsp;<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)) {
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:tax_classes.php


示例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 
开发者ID:retched,项目名称:zen_SuperOrders,代码行数:31,代码来源:super_report_cash.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"');
}
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:31,代码来源:product_listing.php


示例16: zen_href_link

</td>
            <td class="main" align="right" valign="middle"><?php 
    echo '<a href="' . zen_href_link(FILENAME_ADMIN_ACTIVITY, 'action=clean_admin_activity_log') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a>';
    ?>
</td>
          </tr>
        </table></td>
      </tr>
<!-- eof: reset admin_activity_log -->

<?php 
} elseif ($confirmation_needed) {
    ?>
  <tr><td><?php 
    echo TEXT_ADMIN_LOG_PLEASE_CONFIRM_ERASE;
    echo zen_draw_form('admin_activity_erase', FILENAME_ADMIN_ACTIVITY, 'action=clean_admin_activity_log');
    echo zen_image_submit('button_reset.gif', IMAGE_RESET);
    ?>
<input type="hidden" name="confirm" value="yes" /></form></td></tr>

<?php 
}
?>
				<!-- body_text_eof //-->
		</table>
		<!-- body_eof //--> <!-- footer //-->
<?php 
require DIR_WS_INCLUDES . 'footer.php';
?>
<!-- footer_eof //--> <br />
开发者ID:zenmagick,项目名称:zencart,代码行数:30,代码来源:admin_activity.php


示例17: nl2br

    if (CONTACT_US_STORE_NAME_ADDRESS == '1') {
        ?>
<address><?php 
        echo nl2br(STORE_NAME_ADDRESS);
        ?>
</address>
<?php 
    }
    ?>

<?php 
} else {
    ?>

<?php 
    echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL'));
    ?>

<?php 
    if (CONTACT_US_STORE_NAME_ADDRESS == '1') {
        ?>
<address><?php 
        echo nl2br(STORE_NAME_ADDRESS);
        ?>
</address>
<?php 
    }
    ?>

<?php 
    if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') {
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:tpl_contact_us_default.php


示例18: zen_draw_form

    ?>
</div>
<?php 
} else {
    ?>
<h1 id="timeoutDefaultHeading"><?php 
    echo HEADING_TITLE;
    ?>
</h1>

<div id="timeoutDefaultContent" class="content"><?php 
    echo TEXT_INFORMATION;
    ?>
</div>
<?php 
    echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
    ?>
<fieldset>
<legend><?php 
    echo HEADING_RETURNING_CUSTOMER;
    ?>
</legend>

<label class="inputLabel" for="login-email-address"><?php 
    echo ENTRY_EMAIL_ADDRESS;
    ?>
</label>
<?php 
    echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"');
    ?>
<br class="clearBoth" />
开发者ID:dalinhuang,项目名称:cameras,代码行数:31,代码来源:tpl_time_out_default.php


示例19: array

}
?>
                </table></td>
              </tr>
<?php 
// eof: split page control
?>
            </table></td>

<?php 
$heading = array();
$contents = array();
switch ($action) {
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_PRODUCTS_DOWNLOAD . '</b>');
        $contents = array('form' => zen_draw_form('products_downloads_edit', FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&action=save' . '&page=' . $_GET['page']));
        $contents[] = array('text' => '<b>' . TEXT_PRODUCTS_NAME . $padInfo->products_name . '<br />' . TEXT_PRODUCTS_MODEL . $padInfo->products_model . '</b>');
        $contents[] = array('text' => '<br />' . TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br />' . TEXT_INFO_FILENAME . '<br />' . zen_draw_input_field('products_attributes_filename', $padInfo->products_attributes_filename));
        $contents[] = array('text' => '<br />' . TEXT_INFO_MAX_DAYS . '<br />' . zen_draw_input_field('products_attributes_maxdays', $padInfo->products_attributes_maxdays));
        $contents[] = array('text' => '<br />' . TEXT_INFO_MAX_COUNT . '<br />' . zen_draw_input_field('products_attributes_maxcount', $padInfo->products_attributes_maxcount));
        $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . zen_href_link(FILENAME_DOWNLOADS_MANAGER, 'padID=' . $padInfo->products_attributes_id) . '&page=' . $_GET['page'] . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($padInfo) && is_object($padInfo)) {
            $heading[] = array('text' => '<b>' . $padInfo->products_attributes_id . ' ' . $padInfo->products_attributes_filename . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_DOWNLOADS_MANAGER, zen_get_all_get_params(array('padID', 'action')) . 'padID=' . $padInfo->products_attributes_id . '&page=' . $_GET['page'] . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>' . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $padInfo->products_id . '&current_categories_id=' . $padInfo->master_categories_id) . '">' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_PRODUCTS_NAME . $padInfo->products_name);
            $contents[] = array('text' => TEXT_PRODUCTS_MODEL . $padInfo->products_model);
            $contents[] = array('text' => TEXT_INFO_FILENAME . $padInfo->products_attributes_filename);
            $contents[] = array('text' => TEXT_INFO_MAX_DAYS . $padInfo->products_attributes_maxdays);
开发者ID:ygeneration666,项目名称:ec,代码行数:31,代码来源:downloads_manager.php


示例20: zen_draw_form

  <tr>
<!-- body_text //-->
    <td width="100%" valign="top"><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 HEADING_TITLE . ' ' . $template_dir;
?>
</td>
          </tr>
          <tr>
            <td class="main">
<?php 
echo zen_draw_form('form_add_page', FILENAME_LAYOUT_CONTROLLER_ADD_PAGE, '', 'get');
echo zen_draw_hidden_field('action', 'add');
echo zen_draw_hidden_field('template_dir', $template_dir);
// draw not setuped layout page drop down
$not_setuped_pages = zen_get_not_setuped_layout_pages($template_dir);
echo HEADING_TITLE_SELECT_ADD_LAYOUT_PAGE . ' ' . zen_draw_pull_down_menu('layout_page', $not_setuped_pages);
echo zen_image_submit('button_insert.gif');
?>
              </form>
            </td>
          </tr>
        </table></td>
      </tr>
    </td>
  </tr>
</table>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:layout_controller_add_page.php



注:本文中的zen_draw_form函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_draw_form_admin函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_draw_file_field函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap