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); } }
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; }
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; }
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'))); }
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; }
// 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
<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>
?> </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>'; ?>
function zen_draw_file_field($name, $required = false) { $field = zen_draw_input_field($name, '', ' size="50" ', 'file'); return $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;
?> </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>'; ?>
</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']); ?>
<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>
<?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; ?>
$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));
</label></th> <td><?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"'); ?> </td> </tr> <tr class="email"> <th scope="row"><span class="required"><?php echo TEXT_REQUIRED; ?> </span><label><?php echo ENTRY_EMAIL; ?> </label></th> <td><?php echo zen_draw_input_field('email', $error ? $_POST['email'] : $email, ' size="40" id="email-address"'); ?> </td> </tr> <tr> <th scope="row"><span class="required"><?php echo TEXT_REQUIRED; ?> </span><label><?php echo ENTRY_ENQUIRY; ?> </label></th> <td><?php echo zen_draw_textarea_field('enquiry', '30', '7', '', 'id="enquiry"'); ?> </td>
$attrArray[$option]['options_values_price'] = $attributes_values->fields['options_values_price']; $attrArray[$option]['price_prefix'] = $attributes_values->fields['price_prefix']; } } //end foreach [attributes] if (STOCK_CHECK == 'true') { $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']); if ($flagStockCheck == true) { $flagAnyOutOfStock = true; } } $linkProductsImage = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']); $linkProductsName = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']); $productsImage = IMAGE_SHOPPING_CART_STATUS == 1 ? zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) : ''; $show_products_quantity_max = zen_get_products_quantity_order_max($products[$i]['id']); $showFixedQuantity = ($show_products_quantity_max == 1 or zen_get_products_qty_box_status($products[$i]['id']) == 0) ? true : false; // $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('products_id[]', $products[$i]['id']) . zen_draw_hidden_field('cart_quantity[]', 1); // $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', 1); $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']); $showMinUnits = zen_get_products_quantity_min_units_display($products[$i]['id']); $quantityField = zen_draw_input_field('cart_quantity[]', $products[$i]['quantity'], ' size="4" onfocus="set_update_count(this);" onbeforepaste="clipboardData.setData(\'text\',clipboardData.getData(\'text\').replace(/[^\\d]/g,\'\'));update_count(this);" onkeyup="value=value.replace(/[^\\d]/g,\'\');update_count(this);" class="check_input_num" id="cart_quantity[]"'); $buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) ? zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT) : '') . zen_draw_hidden_field('products_id[]', $products[$i]['id']); $productsPrice = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : ''); $productsPriceEach = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : ''); $productArray[$i] = array('attributeHiddenField' => $attributeHiddenField, 'flagStockCheck' => $flagStockCheck, 'flagShowFixedQuantity' => $showFixedQuantity, 'linkProductsImage' => $linkProductsImage, 'linkProductsName' => $linkProductsName, 'productsImage' => $productsImage, 'productsName' => $productsName, 'showFixedQuantity' => $showFixedQuantity, 'showFixedQuantityAmount' => $showFixedQuantityAmount, 'showMinUnits' => $showMinUnits, 'quantityField' => $quantityField, 'buttonUpdate' => $buttonUpdate, 'productsPrice' => $productsPrice, 'productsPriceEach' => $productsPriceEach, 'rowClass' => $rowClass, 'buttonDelete' => $buttonDelete, 'checkBoxDelete' => $checkBoxDelete, 'id' => $products[$i]['id'], 'attributes' => $attrArray); } // end FOR loop $flag_disable_footer = TRUE; $flag_disable_header = TRUE; // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_SHOPPING_CART');
} $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . zen_draw_file_field('categories_image')); $dir = @dir(DIR_FS_CATALOG_IMAGES); $dir_info[] = array('id' => '', 'text' => "Main Directory"); while ($file = $dir->read()) { if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") { $dir_info[] = array('id' => $file . '/', 'text' => $file); } } $dir->close(); $default_directory = substr($cInfo->categories_image, 0, strpos($cInfo->categories_image, '/') + 1); $contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR . ' ' . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory)); $contents[] = array('text' => '<br>' . zen_info_image($cInfo->categories_image, $cInfo->categories_name)); $contents[] = array('text' => '<br>' . $cInfo->categories_image); $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . zen_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"')); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete_product': if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_delete_product.php')) { require DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_delete_product.php'; } else { require DIR_WS_MODULES . 'sidebox_delete_product.php'; } break; case 'move_product': if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_move_product.php')) { require DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/sidebox_move_product.php'; } else { require DIR_WS_MODULES . 'sidebox_move_product.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) . ' <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 . '¤t_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); $contents[] = array('text' => TEXT_INFO_MAX_COUNT . $padInfo->products_attributes_maxcount); } break; } if (zen_not_null($heading) && zen_not_null($contents)) {
<td colspan="2"><br /><table border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="4" class="main" align="left" valign="middle"><?php echo TEXT_ALL_FILES_CONSTANT; ?> </td> </tr> <tr><form name = "locate_all_files" action="<?php echo zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, 'action=locate_all_files', 'NONSSL'); ?> " method="post"><?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> <td class="main" align="left" valign="bottom"><?php echo '<strong>' . TEXT_CONFIGURATION_KEY . '</strong>' . '<br />' . zen_draw_input_field('configuration_key', '', ' size="40" '); ?> </td> <td class="main" align="left" valign="middle"> <?php $za_lookup = array(array('id' => '0', 'text' => TEXT_LOOKUP_NONE), array('id' => '1', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT), array('id' => '2', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT_CATALOG), array('id' => '3', 'text' => TEXT_ALL_FILES_LOOKUP_CURRENT_ADMIN)); echo '<strong>' . TEXT_ALL_FILES_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_files', $za_lookup, '0'); ?> </td> <td class="main" align="left" valign="middle"> <?php $za_lookup_filetype = array(array('id' => '1', 'text' => TEXT_ALL_FILES_LOOKUP_PHP), array('id' => '2', 'text' => TEXT_ALL_FILES_LOOKUP_PHPCSS), array('id' => '3', 'text' => TEXT_ALL_FILES_LOOKUP_CSS), array('id' => '4', 'text' => TEXT_ALL_FILES_LOOKUP_HTMLTXT), array('id' => '5', 'text' => TEXT_ALL_FILES_LOOKUP_JS)); echo '<strong>' . TEXT_ALL_FILESTYPE_LOOKUPS . '</strong>' . '<br />' . zen_draw_pull_down_menu('zv_filestype', $za_lookup_filetype, '0'); echo '<strong>' . TEXT_CASE_SENSITIVE . '</strong>' . zen_draw_checkbox_field('case_sensitive', true); ?> </td>
// future cat specific if ($cInfo->products_count > 0) { $contents[] = array('text' => '<br />' . TEXT_PRODUCTS_LINKED_INFO . '<br />' . zen_draw_radio_field('delete_linked', 'delete_linked_yes') . ' ' . TEXT_PRODUCTS_DELETE_LINKED_YES . '<br />' . zen_draw_radio_field('delete_linked', 'delete_linked_no', true) . ' ' . TEXT_PRODUCTS_DELETE_LINKED_NO); } $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; // bof: categories meta tags // bof: categories meta tags case 'edit_category_meta_tags': $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_CATEGORY_META_TAGS . '</strong>'); $contents = array('form' => zen_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category_meta_tags&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . zen_draw_hidden_field('categories_id', $cInfo->categories_id)); $contents[] = array('text' => TEXT_EDIT_CATEGORIES_META_TAGS_INTRO . ' - <strong>' . $cInfo->categories_id . ' ' . $cInfo->categories_name . '</strong>'); $languages = zen_get_languages(); $category_inputs_string_metatags_title = ''; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string_metatags_title .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['metatags_title']) . ' ' . zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', zen_get_category_metatags_title($cInfo->categories_id, $languages[$i]['id']), zen_set_field_length(TABLE_METATAGS_CATEGORIES_DESCRIPTION, 'metatags_title')); } $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_META_TAGS_TITLE . $category_inputs_string_metatags_title); $category_inputs_string_metatags_keywords = ''; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string_metatags_keywords .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['metatags_keywords']) . ' '; $category_inputs_string_metatags_keywords .= zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', zen_get_category_metatags_keywords($cInfo->categories_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_META_TAGS_KEYWORDS . $category_inputs_string_metatags_keywords); $category_inputs_string_metatags_description = ''; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string_metatags_description .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' '; $category_inputs_string_metatags_description .= zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_META_TAGS_DESCRIPTION . $category_inputs_string_metatags_description); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
<tr> <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_BANNERS_EXPIRES_ON; ?> </td> <td class="main"><script language="javascript">dateExpires.writeControl();dateExpires.dateFormat="<?php echo DATE_FORMAT_SPIFFYCAL; ?> ";</script><?php echo TEXT_BANNERS_OR_AT . '<br>' . zen_draw_input_field('expires_impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . ' ' . TEXT_BANNERS_IMPRESSIONS; ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php
$parameters = 'size="6"'; $parameters .= ' onKeyUp="updateNet(' . $products->fields['products_id'] . '); updateMargin(' . $products->fields['products_id'] . ');"'; // $taxprice needs the $currencies->currencies[DEFAULT_CURRENCY]['decimal_places'] to be set (done at top of file) // an alternative might be to use $price (i.s.o. $taxprice) and update it with updatGross('$products->fields['products_id']') for each product ?) $tax_price = zen_add_tax($price, $tax_rate->fields['tax_rate']); $tax_price = sprintf("%01.2f", round($tax_price, 4)); echo '</td>' . "\n"; echo '<td class="smallText">' . zen_draw_input_field('quick_updates_new[products_taxprice][' . $products->fields['products_id'] . ']', $tax_price, $parameters); //echo zen_draw_hidden_field('update_taxprice['.$products->fields['products_id'].']','yes'); echo zen_draw_hidden_field('quick_updates_old[products_tax_value][' . $products->fields['products_id'] . ']', $tax_rate->fields['tax_rate']); } echo zen_draw_hidden_field('quick_updates_old[products_price][' . $products->fields['products_id'] . ']', $products->fields['products_price']); echo '<a target="_blank" href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'products_filter=' . $products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_products_price_manager.gif', QUICKUPDATES_PPM_LINK_ALT) . '</a>'; echo '</td>' . "\n"; if (QUICKUPDATES_MODIFY_WEIGHT == 'true') { echo '<td class="smallText">' . zen_draw_input_field('quick_updates_new[products_weight][' . $products->fields['products_id'] . ']', $products->fields['products_weight'], 'size="4"') . zen_draw_hidden_field('quick_updates_old[products_weight][' . $products->fields['products_id'] . ']', $products->fields['products_weight']) . '</td>' . "\n"; } if (QUICKUPDATES_MODIFY_TAX == 'true') { echo '<td class="smallText">' . zen_draw_pull_down_menu('quick_updates_new[products_tax_class_id][' . $products->fields['products_id'] . ']', $tax_class_array, $products->fields['products_tax_class_id'], 'style="width: 5em;"') . zen_draw_hidden_field('quick_updates_old[products_tax_class_id][' . $products->fields['products_id'] . ']', $products->fields['products_tax_class_id']) . '</td>' . "\n"; } if (QUICKUPDATES_MODIFY_CATEGORY == 'true') { //products_to_categories.php?products_filter=198 $zen_get_master_categories_pulldown = zen_get_master_categories_pulldown($products->fields['products_id']); /* if(!in_array($products->fields['categories_id'], $zen_get_master_categories_pulldown)){ //exit('error'); } */ $multilinked = false; if (count($zen_get_master_categories_pulldown) > 2) { $multilinked = true;
?> </td> <td class="pageHeading"><?php echo HEADING_TITLE_ORDERS_LISTING; ?> </td> <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?> </td> <td align="right"><table border="0" cellspacing="0" cellpadding="0"> <tr><?php echo zen_draw_form('orders', FILENAME_SUPER_ORDERS, '', 'get', '', true); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . zen_draw_input_field('oID', '', 'size="12"') . zen_draw_hidden_field('action', 'edit'); ?> </td> </form><?php echo zen_draw_form('status', FILENAME_SUPER_ORDERS, '', 'get', '', true); ?> <td class="smallText" align="right"> <?php echo HEADING_TITLE_STATUS . ' ' . zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> </table></td> </tr> <tr>
$contents[] = array('text' => '<input type="hidden" name="module" value="' . (isset($_GET['module']) ? $_GET['module'] : "") . '"/>'); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_remove.gif', IMAGE_DELETE, 'name="removeButton"') . ' <a href="' . zen_href_link(FILENAME_MODULES, 'set=' . $set . ($_GET['module'] != '' ? '&module=' . $_GET['module'] : ''), 'NONSSL') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL, 'name="cancelButton"') . '</a>'); break; case 'edit': if (!$is_ssl_protected && in_array($_GET['module'], array('paypaldp', 'linkpoint_api', 'authorizenet_aim', 'authorizenet_echeck'))) { break; } $keys = ''; reset($mInfo->keys); while (list($key, $value) = each($mInfo->keys)) { $keys .= '<b>' . $value['title'] . '</b><br>' . $value['description'] . '<br>'; if ($value['set_function']) { eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= zen_draw_input_field('configuration[' . $key . ']', htmlspecialchars($value['value'], ENT_COMPAT, CHARSET, TRUE)); } $keys .= '<br><br>'; } $keys = substr($keys, 0, strrpos($keys, '<br><br>')); $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); $contents = array('form' => zen_draw_form('modules', FILENAME_MODULES, 'set=' . $set . ($_GET['module'] != '' ? '&module=' . $_GET['module'] : '') . '&action=save', 'post', '', true)); if (ADMIN_CONFIGURATION_KEY_ON == 1) { $contents[] = array('text' => '<strong>Key: ' . $mInfo->code . '</strong><br />'); } $contents[] = array('text' => $keys); $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE, 'name="saveButton"') . ' <a href="' . zen_href_link(FILENAME_MODULES, 'set=' . $set . ($_GET['module'] != '' ? '&module=' . $_GET['module'] : ''), 'NONSSL') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL, 'name="cancelButton"') . '</a>'); break; default: $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); if ($mInfo->status == '1') {
</td> <td><?php echo zen_draw_file_field('links_image_url', '', 'size="18" class="l_input"'); ?> </td> </tr> <?php if (SUBMIT_LINK_REQUIRE_RECIPROCAL == 'true') { ?> <tr> <td align="right"><?php echo ENTRY_LINKS_RECIPROCAL_URL . '<span class="red">' . ENTRY_LINKS_RECIPROCAL_URL_TEXT . '</span>'; ?> </td> <td><?php echo zen_draw_input_field('links_reciprocal_url', 'http://', 'size="18" id="links_reciprocal_url" class="l_input"'); ?> </td> </tr> <?php } ?> <tr> <td colspan="2" align="center"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_LINK, BUTTON_SUBMIT_LINK_ALT); ?> </td> </tr> </table> </div>
$contents = array(); switch ($action) { case 'new': $heading[] = array('text' => '<b>' . TEXT_HEADING_NEW_PRICING_GROUP . '</b>'); $contents = array('form' => zen_draw_form('group_pricing', FILENAME_GROUP_PRICING, 'action=insert', 'post')); $contents[] = array('text' => TEXT_NEW_INTRO); $contents[] = array('text' => '<br>' . TEXT_GROUP_PRICING_NAME . '<br>' . zen_draw_input_field('group_name', '', zen_set_field_length(TABLE_GROUP_PRICING, 'group_name'))); $contents[] = array('text' => '<br>' . TEXT_GROUP_PRICING_AMOUNT . '<br>' . zen_draw_input_field('group_percentage', '')); $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $_GET['gID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_PRICING_GROUP . '</b>'); $contents = array('form' => zen_draw_form('group_pricing', FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=save', 'post')); $contents[] = array('text' => TEXT_EDIT_INTRO); $contents[] = array('text' => '<br />' . TEXT_GROUP_PRICING_NAME . '<br>' . zen_draw_input_field('group_name', $gInfo->group_name, zen_set_field_length(TABLE_GROUP_PRICING, 'group_name'))); $contents[] = array('text' => '<br>' . TEXT_GROUP_PRICING_AMOUNT . '<br>' . zen_draw_input_field('group_percentage', $gInfo->group_percentage)); $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_PRICING_GROUP . '</b>'); $contents = array('form' => zen_draw_form('group_pricing', FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $gInfo->group_name . '</b>'); if ($gInfo->customer_count > 0) { $contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_customers') . ' ' . TEXT_DELETE_PRICING_GROUP); $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_GROUP_MEMBERS, $gInfo->customer_count)); } $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($gInfo) && is_object($gInfo)) {
function credit_selection() { global $db, $currencies; $gv_query = $db->Execute("select coupon_id from " . TABLE_COUPONS . " where coupon_type = 'G' and coupon_active='Y'"); if ($gv_query->RecordCount() > 0 || $this->use_credit_amount()) { $selection = array('id' => $this->code, 'module' => $this->title, 'redeem_instructions' => MODULE_ORDER_TOTAL_GV_REDEEM_INSTRUCTIONS, 'checkbox' => $this->use_credit_amount(), 'fields' => array(array('title' => MODULE_ORDER_TOTAL_GV_TEXT_ENTER_CODE, 'field' => zen_draw_input_field('gv_redeem_code', '', 'id="disc-' . $this->code . '" onchange="submitFunction(0,0)"'), 'tag' => 'disc-' . $this->code))); } return $selection; }
/** * Display Credit Card Information Submission Fields on the Checkout Payment Page */ function selection() { global $order; $this->cc_type_check = 'var value = document.checkout_payment.paypalec_cc_type.value;' . 'if (value == "Switch" || value == "Solo") {' . ' document.checkout_payment.paypalec_cc_issue_month.disabled = false;' . ' document.checkout_payment.paypalec_cc_issue_year.disabled = false;' . ' document.checkout_payment.paypalec_cc_checkcode.disabled = true;' . ' if (document.checkout_payment.paypalec_cc_issuenumber) document.checkout_payment.paypalec_cc_issuenumber.disabled = true;' . '} else if (value == "Maestro") {' . ' document.checkout_payment.paypalec_cc_issuenumber.disabled = false;' . ' if (document.checkout_payment.paypalec_cc_issue_month) document.checkout_payment.paypalec_cc_issue_month.disabled = true;' . ' if (document.checkout_payment.paypalec_cc_issue_year) document.checkout_payment.paypalec_cc_issue_year.disabled = true;' . ' document.checkout_payment.paypalec_cc_checkcode.disabled = false;' . '} else {' . ' if (document.checkout_payment.paypalec_cc_issuenumber) document.checkout_payment.paypalec_cc_issuenumber.disabled = true;' . ' document.checkout_payment.paypalec_cc_checkcode.disabled = false;' . '}'; if (sizeof($this->cards) == 0 || $this->enableDirectPayment == false) { $this->cc_type_check = ''; } /** * if we are NOT processing via the gateway, we will only display MarkFlow payment option, and no CC fields */ if ($this->enableDirectPayment == false) { return array('id' => $this->code, 'module' => '<img src="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG . '" alt="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '" /><span style="font-size:11px; font-family: Arial, Verdana;"> ' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '</span>'); } /** * if we ARE processing via the gateway, prepare and display both the CC fields and the PP option */ $expires_month = array(); $expires_year = array(); $issue_year = array(); 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'] + 10; $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 . '\')"'; $fieldsArray = array(); $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_FIRSTNAME, 'field' => zen_draw_input_field('paypalec_cc_firstname', $order->billing['firstname'], 'id="' . $this->code . '-cc-ownerf"' . $onFocus) . '<script type="text/javascript">function paypalec_cc_type_check() { ' . $this->cc_type_check . ' } </script>', 'tag' => $this->code . '-cc-ownerf'); $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_LASTNAME, 'field' => zen_draw_input_field('paypalec_cc_lastname', $order->billing['lastname'], 'id="' . $this->code . '-cc-ownerl"' . $onFocus), 'tag' => $this->code . '-cc-ownerl'); if (sizeof($this->cards) > 0) { $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_TYPE, 'field' => zen_draw_pull_down_menu('paypalec_cc_type', $this->cards, '', 'onchange="paypalec_cc_type_check();" onblur="paypalec_cc_type_check();"' . 'id="' . $this->code . '-cc-type"' . $onFocus), 'tag' => $this->code . '-cc-type'); } $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_NUMBER, 'field' => zen_draw_input_field('paypalec_cc_number', $ccnum, 'id="' . $this->code . '-cc-number"' . $onFocus), 'tag' => $this->code . '-cc-number'); $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_EXPIRES, 'field' => zen_draw_pull_down_menu('paypalec_cc_expires_month', $expires_month, '', 'id="' . $this->code . '-cc-expires-month"' . $onFocus) . ' ' . zen_draw_pull_down_menu('paypalec_cc_expires_year', $expires_year, '', 'id="' . $this->code . '-cc-expires-year"' . $onFocus), 'tag' => $this->code . '-cc-expires-month'); $fieldsArray[] = array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => zen_draw_input_field('paypalec_cc_checkcode', '', 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"' . $onFocus) . ' <small>' . MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small><script type="text/javascript">paypalec_cc_type_check();</script>', 'tag' => $this->code . '-cc-cvv'); if (MODULE_PAYMENT_PAYPALWPP_MODULE_MODE == 'PayPal') { $fieldsArray[] = array('title' => '<br /><img src="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG . '" alt="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '" /><span style="font-size:11px; font-family: Arial, Verdana;"> ' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '</span>'); } $selection = array('id' => $this->code, 'module' => MODULE_PAYMENT_PAYPALWPP_TEXT_TITLE, 'fields' => $fieldsArray); if (MODULE_PAYMENT_PAYPALWPP_MODULE_MODE == 'Payflow-UK' && (CC_ENABLED_SOLO == '1' || CC_ENABLED_SWITCH == '1')) { // add extra fields for Switch/Solo cards for ($i = $today['year'] - 10; $i <= $today['year']; $i++) { $issue_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } array_splice($selection['fields'], 4, 0, array(array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_ISSUE, 'field' => zen_draw_pull_down_menu('paypalec_cc_issue_month', $expires_month, '', 'id="' . $this->code . '-cc-issue-month"' . $onFocus) . ' ' . zen_draw_pull_down_menu('paypalec_cc_issue_year', $issue_year, '', 'id="' . $this->code . '-cc-issue-year"' . $onFocus), 'tag' => $this->code . '-cc-issue-month'))); } /* @TODO -- convert this to handle Issue Number if (MODULE_PAYMENT_PAYPALWPP_MODULE_MODE == 'Payflow-UK' && CC_ENABLED_MAESTRO=='1') { // add extra field for Maestro cards array_splice($selection['fields'], 4, 0, array(array('title' => MODULE_PAYMENT_PAYPALWPP_TEXT_CREDIT_CARD_MAESTRO_ISSUENUMBER, 'field' => zen_draw_pull_down_menu('paypalec_cc_issuenumber', $expires_month, '', 'id="'.$this->code.'-cc-issue-month"' . $onFocus ), 'tag' => $this->code.'-cc-issue-month'))); } */ return $selection; }
echo zen_draw_pull_down_menu('format', $available_export_formats, $format); ?> </td> </tr> <tr> <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><strong><?php echo TEXT_ACTIVITY_EXPORT_FILENAME; ?> </strong><br /><?php echo zen_draw_input_field('filename', htmlspecialchars($file, ENT_COMPAT, CHARSET, TRUE), ' size="60"'); ?> </td> </tr> <tr> <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo zen_draw_checkbox_field('savetofile', '1', $save_to_file_checked); ?> <strong><?php echo TEXT_ACTIVITY_EXPORT_SAVETOFILE;