本文整理汇总了PHP中zen_draw_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_input_field函数的具体用法?PHP zen_draw_input_field怎么用?PHP zen_draw_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_draw_input_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: credit_selection
function credit_selection()
{
global $discount_coupon;
global $db;
// note the placement of the redeem code can be moved within the array on the instructions or the title
$selection = array('id' => $this->code, 'module' => $this->title, 'redeem_instructions' => MODULE_ORDER_TOTAL_COUPON_REDEEM_INSTRUCTIONS . ($discount_coupon->fields['coupon_code'] != '' ? MODULE_ORDER_TOTAL_COUPON_REMOVE_INSTRUCTIONS : ''), 'fields' => array(array('title' => ($discount_coupon->fields['coupon_code'] != '' ? MODULE_ORDER_TOTAL_COUPON_TEXT_CURRENT_CODE . '<a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">' . $discount_coupon->fields['coupon_code'] . '</a><br />' : '') . MODULE_ORDER_TOTAL_COUPON_TEXT_ENTER_CODE, 'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-' . $this->code . '" onchange="submitFunction(0,0)"'), 'tag' => 'disc-' . $this->code)));
return $selection;
}
示例2: selection
public function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B - (%m)', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 15; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$onFocus = ' onfocus="methodSelect(\'pmt-' . $this->code . '\')"';
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_OWNER, 'field' => zen_draw_input_field('checkoutapipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'id="' . $this->code . '-cc-owner"' . $onFocus . ' autocomplete="off"'), 'tag' => $this->code . '-cc-owner'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_NUMBER, 'field' => zen_draw_input_field('checkoutapipayment_cc_number', $ccnum, 'id="' . $this->code . '-cc-number"' . $onFocus . ' autocomplete="off"'), 'tag' => $this->code . '-cc-number'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_EXPIRY, 'field' => zen_draw_pull_down_menu('checkoutapipayment_cc_expires_month', $expires_month, strftime('%m'), 'id="' . $this->code . '-cc-expires-month"' . $onFocus) . ' ' . zen_draw_pull_down_menu('checkoutapipayment_cc_expires_year', $expires_year, '', 'id="' . $this->code . '-cc-expires-year"' . $onFocus), 'tag' => $this->code . '-cc-expires-month'), array('title' => MODULE_PAYMENT_CHECKOUTAPIPAYMENT_CREDITCARD_CVC, 'field' => zen_draw_input_field('checkoutapipayment_cc_cvv', '', 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"' . $onFocus . ' autocomplete="off"') . ' ' . '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . MODULE_PAYMENT_CHECKOUTAPIPAYMENT_TEXT_POPUP_CVV_LINK . '</a>', 'tag' => $this->code . '-cc-cvv')));
return $selection;
}
示例3: selection
function selection()
{
$mobile_base[] = array('id' => '@docomo.ne.jp', 'text' => '@docomo.ne.jp');
$mobile_base[] = array('id' => '@ezweb.ne.jp', 'text' => '@ezweb.ne.jp');
$mobile_base[] = array('id' => '@softbank.ne.jp', 'text' => '@softbank.ne.jp');
$mobile_base[] = array('id' => '@d.vodafone.ne.jp', 'text' => '@d.vodafone.ne.jp');
$mobile_base[] = array('id' => '@h.vodafone.ne.jp', 'text' => '@h.vodafone.ne.jp');
$mobile_base[] = array('id' => '@t.vodafone.ne.jp', 'text' => '@t.vodafone.ne.jp');
$mobile_base[] = array('id' => '@c.vodafone.ne.jp', 'text' => '@c.vodafone.ne.jp');
$mobile_base[] = array('id' => '@r.vodafone.ne.jp', 'text' => '@r.vodafone.ne.jp');
$mobile_base[] = array('id' => '@k.vodafone.ne.jp', 'text' => '@k.vodafone.ne.jp');
$mobile_base[] = array('id' => '@n.vodafone.ne.jp', 'text' => '@n.vodafone.ne.jp');
$mobile_base[] = array('id' => '@s.vodafone.ne.jp', 'text' => '@s.vodafone.ne.jp');
$mobile_base[] = array('id' => '@q.vodafone.ne.jp', 'text' => '@q.vodafone.ne.jp');
return array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_DIGITALCHECK_EDY_TEXT_MOBILE_EMAIL, 'field' => zen_draw_input_field('digitalcheck_edy_mobile_email', $_SESSION[$this->code . '-mobile-email'], 'id="' . $this->code . '-mobile-email" size="10"') . zen_draw_pull_down_menu('digitalcheck_edy_mobile_base', $mobile_base, $_SESSION[$this->code . '-mobile-base'], 'id="' . $this->code . '-mobile-base"'), 'tag' => $this->code . '-mobile-email')));
}
示例4: selection
function selection()
{
global $order;
if (MODULE_PAYMENT_GOFPAY_MODE == "Api") {
$expires_month[] = array("id" => "", "text" => MODULE_PAYMENT_GOFPAY_TEXT_MONTH);
$expires_year[] = array("id" => "", "text" => MODULE_PAYMENT_GOFPAY_TEXT_YEAR);
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%m', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 24; $i++) {
$expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$onFocus = ' onfocus="methodSelect(\'pmt-' . $this->code . '\')"';
$selection = array('id' => $this->code, 'module' => str_replace('*', rtrim(MODULE_PAYMENT_GOFPAY_HANDLER, '/') . '/tools/logos?websiteid=' . MODULE_PAYMENT_GOFPAY_WEBSITE_ID . '&size=middle&transparent=true', MODULE_PAYMENT_GOFPAY_TEXT_CATALOG_LOGO), 'fields' => array(array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_NUMBER, 'field' => zen_draw_input_field('cardNo', '', 'id="' . $this->code . '-cardNo" maxlength="16"' . $onFocus), 'tag' => $this->code . '-cardNo'), array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_EXPIRES, 'field' => zen_draw_pull_down_menu('expires_month', $expires_month, '-------', 'id="' . $this->code . '-expires-month"' . $onFocus) . zen_draw_pull_down_menu('expires_year', $expires_year, '-------', 'id="' . $this->code . '-expires-year"' . $onFocus) . zen_draw_hidden_field('mypretime', '0'), 'tag' => $this->code . '-expires-month'), array('title' => MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_CVV, 'field' => zen_draw_input_field('cvv', '', ' id="' . $this->code . '-cvv" size="3" maxlength="3"' . $onFocus) . MODULE_PAYMENT_GOFPAY_TEXT_CREDIT_CARD_EXPIRES_WHATISTHIS, 'tag' => $this->code . '-cvv')));
return $selection;
} else {
return array('id' => $this->code, 'module' => str_replace('*', rtrim(MODULE_PAYMENT_GOFPAY_HANDLER, '/') . '/tools/logos?websiteid=' . MODULE_PAYMENT_GOFPAY_WEBSITE_ID . '&size=middle&transparent=true', MODULE_PAYMENT_GOFPAY_TEXT_CATALOG_LOGO), 'icon' => MODULE_PAYMENT_GUFPAY_TEXT_CATALOG_LOGO);
}
}
示例5: selection
function selection()
{
global $order;
$expireMonths = array();
for ($i = 1; $i < 13; $i++) {
$expireMonths[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
$expireYears = array();
for ($i = $today['year']; $i < $today['year'] + 15; $i++) {
$expireYears[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => tra('Name On Card'), 'field' => zen_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('field' => '<div class="row"><div class="col-xs-8 col-sm-8"><label class="control-label">' . tra('Card Number') . '</label>' . zen_draw_input_field('cc_number', BitBase::getParameter($_SESSION, 'cc_number'), NULL, 'number') . '</div><div class="col-xs-4 col-sm-4"><label class="control-label"><i class="icon-credit-card"></i> ' . tra('CVV Number') . '</label>' . zen_draw_input_field('cc_cvv', BitBase::getParameter($_SESSION, 'cc_cvv'), NULL, 'number') . '</div></div>'), array('title' => tra('Expiration Date'), 'field' => '<div class="row"><div class="col-xs-7 col-sm-9">' . zen_draw_pull_down_menu('cc_expires_month', $expireMonths, BitBase::getParameter($_SESSION, 'cc_expires_month'), ' class="input-small" ') . '</div><div class="col-xs-5 col-sm-3">' . zen_draw_pull_down_menu('cc_expires_year', $expireYears, substr(BitBase::getParameter($_SESSION, 'cc_expires_year', date('Y') + 1), -2), ' class="input-small" ') . '</div></div>')));
if (!empty($_SESSION[$this->code . '_error']['name'])) {
$selection['fields'][0]['error'] = $_SESSION[$this->code . '_error']['name'];
}
if (!empty($_SESSION[$this->code . '_error']['number'])) {
$selection['fields'][1]['error'] = $_SESSION[$this->code . '_error']['number'];
}
if (!empty($_SESSION[$this->code . '_error']['date'])) {
$selection['fields'][2]['error'] = $_SESSION[$this->code . '_error']['date'];
}
return $selection;
}
示例6: zen_draw_checkbox_field
// 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;
// debug
示例7: zen_draw_input_field
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<th><?php
echo MODULE_EASY_ADMIN_PRODUCTS_CATEGORIES_SEARCH_CATEGORIES_NAME;
?>
</th>
<td><?php
echo zen_draw_input_field('search_name', $_REQUEST['search_name']);
?>
</td>
<th><?php
echo MODULE_EASY_ADMIN_PRODUCTS_CATEGORIES_SEARCH_CATEGORIES_DESCRIPTION;
?>
</th>
<td><?php
echo zen_draw_input_field('search_description', $_REQUEST['search_description']);
?>
</td>
</tr>
<tr>
<td colspan="4" class="submit"><input type="image" src="<?php
echo MODULE_EASY_ADMIN_PRODUCTS_SEARCH_BTN;
?>
" alt="<?php
echo MODULE_EASY_ADMIN_PRODUCTS_SEARCH;
?>
" /></td>
</tr>
</table>
</div>
</form>
示例8: zen_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_SORT_ORDER;
?>
</td>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_sort_order', $pInfo->products_sort_order);
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo zen_draw_hidden_field('products_date_added', zen_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d')) . (isset($_GET['search']) && !empty($_GET['search']) ? zen_draw_hidden_field('search', $_GET['search']) : '') . (isset($_POST['search']) && !empty($_POST['search']) && empty($_GET['search']) ? zen_draw_hidden_field('search', $_POST['search']) : '') . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . (isset($_GET['search']) && !empty($_GET['search']) ? '&search=' . $_GET['search'] : '') . (isset($_POST['search']) && !empty($_POST['search']) && empty($_GET['search']) ? '&search=' . $_POST['search'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?>
示例9: zen_draw_file_field
function zen_draw_file_field($name, $required = false)
{
$field = zen_draw_input_field($name, '', ' size="50" ', 'file');
return $field;
}
示例10: zen_draw_input_field
?>
</label>
<?php
echo zen_draw_input_field('state', $selectedState, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"') . ' <span class="alert" id="stText"> </span>';
?>
<br class="clearBoth" />
<?php
if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") {
?>
<label class="inputLabel"><?php
echo ENTRY_POST_CODE;
?>
</label>
<?php
echo zen_draw_input_field('zip_code', $zip_code, 'size="7"');
?>
<br class="clearBoth" />
<?php
}
?>
<div class="buttonRow forward"><?php
echo zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT);
?>
</div>
<br class="clearBoth" />
<?php
}
}
if ($_SESSION['cart']->get_content_type() == 'virtual') {
echo CART_SHIPPING_METHOD_FREE_TEXT . ' ' . CART_SHIPPING_METHOD_ALL_DOWNLOADS;
示例11: zen_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_SORT_ORDER;
?>
</td>
<td class="main"><?php
echo zen_draw_input_field('products_sort_order', $pInfo->products_sort_order);
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo zen_draw_hidden_field('products_date_added', zen_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d')) . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . zen_href_link_admin(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?>
示例12: zen_draw_form
</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" />
<label class="inputLabel" for="login-password"><?php
echo ENTRY_PASSWORD;
?>
</label>
<!-- modified by zen-cart.cn //-->
<?php
echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '40') . ' id="login-password"');
?>
<br class="clearBoth" />
<?php
echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
?>
示例13: zen_image
<td><table border="3" cellspacing="4" cellpadding="6">
<tr>
<td class="main" colspan="2">
<?php
echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . ' ' . zen_get_products_name($_GET['pID'], $languages[$i]['id']) . ' <strong>' . TEXT_PRODUCTS_MODEL . '</strong> ' . $pInfo->products_model . ' <strong>' . TEXT_PRODUCTS_PRICE_INFO . '</strong> ' . $currencies->format($pInfo->products_price_sorter);
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_TITLE;
?>
</td>
<td class="main">
<?php
echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false));
//,'id="'.'metatags_title' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_KEYWORDS;
?>
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', isset($metatags_keywords[$languages[$i]['id']]) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']));
//,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"');
?>
</td>
示例14: empty
<?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') {
?>
<h1 id="unsubDefaultHeading"><?php
echo HEADING_TITLE;
?>
示例15: array
$contents = array();
switch ($action) {
case 'new':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert'));
$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));