function _draw_stocked_attributes() { global $languages_id; $out = ''; $attributes = $this->_build_attributes_array(true, false); if (sizeof($attributes) > 0) { $combinations = array(); $selected_combination = 0; $this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination); $combname = ''; foreach ($attributes as $attrib) { $combname .= ', ' . $attrib['oname']; } $combname = substr($combname, 2) . ':'; for ($i = 0; $i < sizeof($combinations); $i++) { if (isset($_GET['products_id']) && $_SESSION['cart']->contents[$_GET['products_id']]) { if ($combinations[$i]['comb'] == $_SESSION['cart']->contents[$_GET['products_id']]['attributes']) { $selected_combination = $i; break; } } } foreach ($combinations as $combindex => $comb) { $out .= "<tr>\n"; $out .= ' <td align="right" class=main><b>' . $combname . "</b></td>\n <td class=main>"; $out .= zen_draw_radio_field('attrcomb', $combinations[$combindex]['id'], $combindex == $selected_combination) . $comb['text']; $out .= "</td>\n"; $out .= "</tr>\n"; $combname = ''; } } $out .= $this->_draw_out_of_stock_message_js($attributes); return $out; }
echo HEADING_REPORT_TYPE; ?> </td> <td width="50"> </td> </td> </tr> <tr> <td class="main"> <?php echo zen_draw_radio_field('report_type', 'out_po') . OUT_PO . '<br />'; ?> <?php echo zen_draw_radio_field('report_type', 'out_payment') . OUT_PAYMENTS . '<br />'; ?> <?php echo zen_draw_radio_field('report_type', 'out_refund') . OUT_REFUNDS . '<br />'; ?> </td> <td width="50"> </td> <td class="smallText" valign="top"><?php echo zen_draw_checkbox_field('within_limit', 1) . HEADING_WITHIN_LIMIT; ?> </td> </tr> <tr> <td class="main" align="right" colspan="3"><input class="submit_button button" type="submit" value="<?php echo BUTTON_SEARCH; ?> "></td> <?php if ($report_type) {
echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?> </td> <td class="main" valign="top"><?php echo TEXT_IMAGES_DELETE . ' ' . zen_draw_radio_field('image_delete', '0', $off_image_delete) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . ' ' . TABLE_HEADING_YES; ?> </td> </tr> <tr> <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?> </td> <td colspan="3" class="main" valign="top"><?php echo TEXT_IMAGES_OVERWRITE . ' ' . zen_draw_radio_field('overwrite', '0', $off_overwrite) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('overwrite', '1', $on_overwrite) . ' ' . TABLE_HEADING_YES; ?> <?php echo '<br />' . TEXT_PRODUCTS_IMAGE_MANUAL . ' ' . zen_draw_input_field('products_image_manual'); ?> </td> </tr> </table></td> </tr> <tr> <td colspan="2"><?php echo zen_draw_separator('pixel_black.gif', '100%', '3'); ?> </td> </tr>
echo TEXT_PRODUCTS_QUANTITY_UNITS_RETAIL; ?> </td> <td class="main"><?php echo zen_draw_input_field('products_quantity_order_units', $pInfo->products_quantity_order_units == 0 ? 1 : $pInfo->products_quantity_order_units); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_MIXED; ?> </td> <td class="main"><?php echo zen_draw_radio_field('products_quantity_mixed', '1', $in_products_quantity_mixed) . ' ' . 'Yes' . ' ' . zen_draw_radio_field('products_quantity_mixed', '0', $out_products_quantity_mixed) . ' ' . 'No'; ?> </td> </tr> <tr> <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <script type="text/javascript"><!-- updateGross(); //--></script> <?php
echo TEXT_PRODUCTS_METATAGS_TITLE_STATUS . '<br />' . zen_draw_radio_field('metatags_title_status', '1', $is_metatags_title_status) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('metatags_title_status', '0', $not_metatags_title_status) . ' ' . TEXT_NO; ?> </td> <td class="main" align="center"> <?php echo TEXT_PRODUCTS_METATAGS_MODEL_STATUS . '<br />' . zen_draw_radio_field('metatags_model_status', '1', $is_metatags_model_status) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('metatags_model_status', '0', $not_metatags_model_status) . ' ' . TEXT_NO; ?> </td> <td class="main" align="center"> <?php echo TEXT_PRODUCTS_METATAGS_PRICE_STATUS . '<br />' . zen_draw_radio_field('metatags_price_status', '1', $is_metatags_price_status) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('metatags_price_status', '0', $not_metatags_price_status) . ' ' . TEXT_NO; ?> </td> <td class="main" align="center"> <?php echo TEXT_PRODUCTS_METATAGS_TITLE_TAGLINE_STATUS . '<br />' . zen_draw_radio_field('metatags_title_tagline_status', '1', $is_metatags_title_tagline_status) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('metatags_title_tagline_status', '0', $not_metatags_title_tagline_status) . ' ' . TEXT_NO; ?> </td> </tr> </table> </td> </tr> <?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?> <tr> <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);
/** Echoes out a complete address form, returns nothing. * * You are required to manually put the `form-horizontal` class in the * surrounding `<form>` element. */ public static function echo_shipping_address_form() { global $entry, $zone_name, $zone_id, $flag_show_pulldown_states, $selected_country; ?> <p class="text-danger"><strong><?php echo FORM_REQUIRED_INFORMATION; ?> </strong></p> <?php if (ACCOUNT_GENDER == 'true') { $male = (isset($gender) ? $gender : $entry->fields['entry_gender']) == 'male'; echo '<label class="radio-inline">' . zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . MALE . '</label>' . '<label class="radio-inline">' . zen_draw_radio_field('gender', 'f', !$male, 'id="gender-female"') . FEMALE . '</label>' . self::required_text(ENTRY_GENDER_TEXT); } ?> <div class='form-group'> <label class="control-label col-sm-4" for="firstname"><?php echo self::required_text(ENTRY_FIRST_NAME_TEXT) . ENTRY_FIRST_NAME; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' class="form-control" id="firstname"'); ?> </div> </div> <div class='form-group'> <label class="control-label col-sm-4" for="lastname"><?php echo self::required_text(ENTRY_LAST_NAME_TEXT) . ENTRY_LAST_NAME; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('lastname', $entry->fields['entry_lastname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' class="form-control" id="lastname"'); ?> </div> </div> <?php if (ACCOUNT_COMPANY == 'true') { ?> <div class='form-group'> <label class="control-label col-sm-4" for="lastname"><?php echo self::required_text(ENTRY_COMPANY_TEXT) . ENTRY_COMPANY; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' class="form-control" id="company"'); ?> </div> </div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="street-address"><?php echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"'); ?> </div> </div> <?php if (ACCOUNT_SUBURB == 'true') { ?> <div class='form-group'> <label class="control-label col-sm-4" for="suburb"><?php echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"'); ?> </div> </div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="city"><?php echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"'); ?> </div></div> <?php if (ACCOUNT_STATE == 'true') { if ($flag_show_pulldown_states == true) { ?> <div class='form-group'> <label class="control-label col-sm-4" for="stateZone" class="form-control" id="zoneLabel"> <?php echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'class="form-control" id="stateZone"'); echo '</div></div>'; } ?> <div class='form-group' id='stateLabel'> <label class="control-label col-sm-4" for="state"><?php echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE; ?> </label> <!-- Elements with ids of `stText` & `stBreak` are required by Zencart, leaving them out breaks the auto-populating of the State dropdown when editing an address. --> <span id='stText'></span><span id='stBreak'></span> <div class='col-sm-8'> <?php echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' class="form-control" id="state"'); if ($flag_show_pulldown_states == false) { echo zen_draw_hidden_field('zone_id', $zone_name, ' '); } ?> </div></div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="postcode"><?php echo self::required_text(ENTRY_POST_CODE_TEXT) . ENTRY_POST_CODE; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="form-control" id="postcode"'); ?> </div></div> <div class='form-group'> <label class="control-label col-sm-4" for="country"><?php echo self::required_text(ENTRY_COUNTRY_TEXT) . ENTRY_COUNTRY; ?> </label> <div class='col-sm-8'> <?php echo zen_get_country_list('zone_country_id', isset($entry->fields['entry_country_id']) ? $entry->fields['entry_country_id'] : $selected_country, 'class="form-control" id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')); ?> </div></div><?php }
<?php echo TABLE_HEADING_CHAPTER_PREV_NEXT; ?> </strong> <?php echo zen_draw_input_field('toc_chapter', $ezInfo->toc_chapter, zen_set_field_length(TABLE_EZPAGES, 'toc_chapter', '6'), false); ?> </td> <td class="main" align="left" valign="top"><strong> <?php echo TABLE_HEADING_STATUS_TOC; ?> </strong><br /> <?php echo zen_draw_radio_field('status_toc', '1', $is_status_toc) . ' ' . TEXT_YES . '<br />' . zen_draw_radio_field('status_toc', '0', $not_status_toc) . ' ' . TEXT_NO; ?> </td> <td class="main" align="center" valign="bottom"> <?php echo TEXT_TOC_SORT_ORDER; ?> <br /> <?php echo zen_draw_input_field('toc_sort_order', $ezInfo->toc_sort_order, zen_set_field_length(TABLE_EZPAGES, 'toc_sort_order'), false); ?> </td> </tr> </table></td> </tr>
<tr> <td class="main" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_file_field('products_image') . ' ' . ($pInfo->products_image !='' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . ' ' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> <td valign = "center" class="main"><?php echo TEXT_PRODUCTS_IMAGE_DIR; ?> <?php echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory); ?></td> </tr> <tr> <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?></td> <td class="main" valign="top"><?php echo TEXT_IMAGES_DELETE . ' ' . zen_draw_radio_field('image_delete', '0', $off_image_delete) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . ' ' . TABLE_HEADING_YES; ?></td> </tr> <tr> <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?></td> <td colspan="3" class="main" valign="top"><?php echo TEXT_IMAGES_OVERWRITE . ' ' . zen_draw_radio_field('overwrite', '0', $off_overwrite) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('overwrite', '1', $on_overwrite) . ' ' . TABLE_HEADING_YES; ?> <?php echo '<br />' . TEXT_PRODUCTS_IMAGE_MANUAL . ' ' . zen_draw_input_field('products_image_manual'); ?></td> </tr> </table></td> </tr> <tr> <td colspan="2"><?php echo zen_draw_separator('pixel_black.gif', '100%', '3'); ?></td> </tr> <!--BOF Products Family --> <tr> <td class="main"><?php echo TEXT_PRODUCTS_FAMILY;?></td> <td class="main"><?php echo zen_draw_input_field('products_family', $pInfo->products_family, 'id="products_family"');?></td> </tr> <tr>
</h4> <div class="alert-text forward"><?php echo FORM_REQUIRED_INFORMATION; ?> </div> <?php if (ACCOUNT_GENDER == 'true') { if (isset($gender)) { $male = $gender == 'm' ? true : false; } else { $male = $entry->fields['entry_gender'] == 'm' ? true : false; } $female = !$male; ?> <?php echo zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', $female, 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert-text">' . ENTRY_GENDER_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php } ?> <label class="inputLabel" for="firstname"> <?php echo ENTRY_FIRST_NAME; ?> <?php echo zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert-text">' . ENTRY_FIRST_NAME_TEXT . '</span>' : ''; ?> </label> <?php echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"');
$contents[] = array('text' => TEXT_INFO_BOX_NAME . ' <strong>' . $box_names[$bInfo->block] . '</strong> (' . $bInfo->block . ')'); $contents[] = array('text' => TEXT_INFO_BOX_STATUS . ' ' . ($bInfo->status == '1' ? TEXT_ON : TEXT_OFF)); $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_LOCATION . '<br />' . zen_draw_pull_down_menu('location', $location_options, $bInfo->location)); $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_SORT_ORDER . '<br />' . zen_draw_pull_down_menu('sort_order', $sort_order_options, $bInfo->sort_order)); $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_VISIBLE . '<br /><label for="visible-1">' . zen_draw_radio_field('visible', '1', $in_visible, '', 'id="visible-1"') . TEXT_VISIBLE_PAGES . '</label><br /><label for="visible-0">' . zen_draw_radio_field('visible', '0', $out_visible, '', 'id="visible-0"') . TEXT_INVISIBLE_PAGES . '</label>'); $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_PAGES . ' ' . $pages_inputs_string); } else { $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_BLOCK . '</b>'); $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=save' . '&block=' . $bInfo->block)); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => TEXT_INFO_MODULE_NAME . ' ' . $bInfo->module); $contents[] = array('text' => TEXT_INFO_BLOCK_NAME . ' <strong>' . $block_names[$bInfo->module . '#' . $bInfo->block] . '</strong> (' . $bInfo->block . ')'); $contents[] = array('text' => TEXT_INFO_BLOCK_STATUS . ' ' . ($bInfo->status == '1' ? TEXT_ON : TEXT_OFF)); $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_LOCATION . '<br />' . zen_draw_pull_down_menu('location', $location_options, $bInfo->location)); $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_SORT_ORDER . '<br />' . zen_draw_pull_down_menu('sort_order', $sort_order_options, $bInfo->sort_order)); $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_VISIBLE . '<br /><label for="visible-1">' . zen_draw_radio_field('visible', '1', $in_visible, '', 'id="visible-1"') . TEXT_VISIBLE_PAGES . '</label><br /><label for="visible-0">' . zen_draw_radio_field('visible', '0', $out_visible, '', 'id="visible-0"') . TEXT_INVISIBLE_PAGES . '</label>'); $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_PAGES . ' ' . $pages_inputs_string); } $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&block=' . $bInfo->block) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': if ($bInfo->module == 'sideboxes') { $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_BOX . '</b>'); $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=deleteconfirm' . '&block=' . $bInfo->block)); $contents[] = array('text' => TEXT_INFO_DELETE_BOX_INTRO); $contents[] = array('text' => '<br /><b>' . $bInfo->block . '</b>'); } else { $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_BLOCK . '</b>'); $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=deleteconfirm' . '&block=' . $bInfo->block)); $contents[] = array('text' => TEXT_INFO_DELETE_BLOCK_INTRO); $contents[] = array('text' => '<br /><b>' . $bInfo->module . '#' . $bInfo->block . '</b>');
<tr> <td class="main"><?php echo ENTRY_EMAIL_PREFERENCE; ?> </td> <td class="main"> <?php if ($processed == true) { if ($cInfo->customers_email_format) { echo $customers_email_format . zen_draw_hidden_field('customers_email_format'); } } else { $email_pref_text = $cInfo->customers_email_format == 'TEXT' ? true : false; $email_pref_html = !$email_pref_text; echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . ' ' . ENTRY_EMAIL_HTML_DISPLAY . ' ' . zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_text) . ' ' . ENTRY_EMAIL_TEXT_DISPLAY; } ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_NEWSLETTER; ?> </td> <td class="main"> <?php if ($processed == true) { if ($cInfo->customers_newsletter == '1') { echo ENTRY_NEWSLETTER_YES; } else {
?> <p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?> </p> <?php } ?> <?php $radio_buttons = 0; for ($i = 0, $n = sizeof($selection); $i < $n; $i++) { if (sizeof($selection) > 1) { if (empty($selection[$i]['noradio'])) { echo zen_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $_SESSION['payment'] ? true : false, 'id="pmt-' . $selection[$i]['id'] . '"'); } } else { echo zen_draw_hidden_field('payment', $selection[$i]['id']); } ?> <label for="pmt-<?php echo $selection[$i]['id']; ?> " class="radioButtonLabel"><?php echo $selection[$i]['module']; ?> </label> <?php if (defined('MODULE_ORDER_TOTAL_COD_STATUS') && MODULE_ORDER_TOTAL_COD_STATUS == 'true' and $selection[$i]['id'] == 'cod') {
} } $contents[] = array('text' => '<br /><strong>' . TEXT_INFO_BASE_DIR . '</strong><br />' . TEXT_INFO_NEW_DIR); $contents[] = array('text' => TEXT_INFO_IMAGE_DIR . zen_draw_pull_down_menu('imgBaseDir', $dir_info, "")); $contents[] = array('text' => TEXT_INFO_OR . ' ' . zen_draw_input_field('imgNewBaseDir', '', 20)); } else { if ($action != 'layout_edit') { $contents[] = array('text' => '<strong>' . TEXT_INFO_IMAGE_SUFFIX . '</strong><br />' . TEXT_INFO_USE_AUTO_SUFFIX . '<br />'); $contents[] = array('text' => zen_draw_input_field('imgSuffix', $selected_image_suffix, 10)); } } // Image fields $contents[] = array('text' => '<br /><strong>' . TEXT_INFO_DEFAULT_IMAGE . '</strong><br />' . TEXT_INFO_DEFAULT_IMAGE_HELP . '<br />' . zen_draw_input_field('default_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->default_image); if ($action == 'layout_edit') { if ($selected_image_name == $products_image_match_array[0]) { $contents[] = array('text' => zen_draw_radio_field('imgNaming', 'new_discard', true) . IH_NEW_NAME_DISCARD_IMAGES . '<br />' . zen_draw_radio_field('imgNaming', 'keep_name', false) . IH_KEEP_NAME); } } $contents[] = array('text' => '<br /><strong>' . 'Medium image file (optional)' . '</strong><br />' . zen_draw_input_field('medium_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->medium_image); $contents[] = array('text' => '<br /><strong>' . 'Large image file (optional)' . '</strong><br />' . zen_draw_input_field('large_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->large_image); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE)); break; case 'layout_delete': $imgStr = "&imgBase=" . $products_image_base . "&imgSuffix=" . $selected_image_suffix . "&imgBaseDir=" . $products_image_directory . "&imgExtension=" . $selected_image_extension; // show new button $heading[] = array('text' => '<strong>' . TEXT_INFO_CONFIRM_DELETE . '</strong>'); $contents[] = array('text' => '<br />' . $products_image_directory . $products_image_base . $selected_image_suffix . $selected_image_extension); $contents[] = array('text' => '<br />' . TEXT_INFO_CONFIRM_DELETE_SURE); if ($selected_image_suffix == '') { $contents[] = array('text' => zen_draw_checkbox_field('delete_from_database_only', 'Y', false) . IH_DELETE_FROM_DB_ONLY); }
switch ($demo_status) { case '0': $on_status = false; $off_status = true; break; case '1': $on_status = true; $off_status = false; break; default: $on_status = false; $off_status = true; break; } $contents[] = array('text' => '<br>' . TEXT_ADMIN_DEMO); $contents[] = array('text' => '<strong>' . TEXT_DEMO_STATUS . '</strong><br>' . zen_draw_radio_field('demo_status', '1', $on_status) . ' ' . TEXT_DEMO_ON . ' ' . zen_draw_radio_field('demo_status', '0', $off_status) . ' ' . TEXT_DEMO_OFF); } $contents[] = array('align' => 'center', 'text' => ' <br> ' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> '); break; // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- case 'resetpassword': // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- $heading[] = array('text' => '<b>' . TEXT_HEADING_RESET_PASSWORD . '</b>'); $contents = array('form' => zen_draw_form('reset_password', FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=reset', 'post', 'enctype="multipart/form-data"') . zen_draw_hidden_field('admin_name', $adminInfo->admin_name) . zen_draw_hidden_field('admin_email', $adminInfo->admin_email) . zen_draw_hidden_field('admin_level', $adminInfo->admin_level));
// Dual Pricing end $discounts_qty->MoveNext(); } ?> <?php if ($discounts_qty->RecordCount() > 0) { ?> <tr> // Dual Pricing start <td colspan="8" class="main" valign="top"><?php echo TEXT_PRODUCTS_MIXED_DISCOUNT_QUANTITY; ?> <?php echo zen_draw_radio_field('products_mixed_discount_quantity', '1', $in_products_mixed_discount_quantity == 1) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('products_mixed_discount_quantity', '0', $out_products_mixed_discount_quantity) . ' ' . TEXT_NO; ?> </td> </tr> <tr> <td colspan="8" class="main" align="center"> // Dual Pricing end <?php if ($action != '') { echo TEXT_ADD_ADDITIONAL_DISCOUNT . '<br />'; echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'products_filter=' . $products_filter . '¤t_category_id=' . $current_category_id . '&action=add_discount_qty_id') . '">' . zen_image_button('button_blank_discounts.gif', IMAGE_ADD_BLANK_DISCOUNTS) . '</a>' . '<br />'; echo TEXT_BLANKS_INFO; } else { echo $action == '' ? '<span class="alert">' . TEXT_INFO_PREVIEW_ONLY . '</span>' : ''; } ?>
<tr> <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php echo ENTRY_RATING; ?> </b> <?php echo TEXT_BAD; ?> <?php for ($i = 1; $i <= 5; $i++) { echo zen_draw_radio_field('reviews_rating', $i, '', $rInfo->reviews_rating) . ' '; } echo TEXT_GOOD; ?> </td> </tr> <tr> <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td align="right" class="main"><?php echo zen_draw_hidden_field('reviews_id', $rInfo->reviews_id) . zen_draw_hidden_field('products_id', $rInfo->products_id) . zen_draw_hidden_field('customers_name', $rInfo->customers_name) . zen_draw_hidden_field('products_name', $rInfo->products_name) . zen_draw_hidden_field('products_image', $rInfo->products_image) . zen_draw_hidden_field('date_added', $rInfo->date_added) . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $_GET['rID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?>
if ($holiday_year > 0 && $holiday_month > 0 && $holiday_day) { $date = zen_date_short(sprintf("%04d-%02d-%02d 00:00:00", $holiday_year, $holiday_month, $holiday_day)); } else { $date = ""; } echo '<script language="javascript">' . "\n"; echo 'var selectDate = new ctlSpiffyCalendarBox("selectDate", "calendar", "selectDateText", "btnDate1", "' . $date . '",scBTNMODE_CUSTOMBLUE);' . "\n"; echo 'selectDate.writeControl();' . "\n"; echo 'selectDate.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";' . "\n"; echo '</script>' . "\n"; echo '</td>' . "\n"; echo '</tr>' . "\n"; // 休日、営業日 echo '<tr>' . "\n"; echo '<td colspan="2" class="infoBoxContent">' . "\n"; echo sprintf(TEXT_RADIO_DESCRIPTION, zen_draw_radio_field("holiday_open", 0, $holiday_open == 0) . TEXT_RADIO_HOLIDAY . zen_draw_radio_field("holiday_open", 1, $holiday_open == 1) . TEXT_RADIO_OPENDAY); echo '</td>' . "\n"; echo '</tr>' . "\n"; // 更新 echo '<tr>' . "\n"; echo '<td colspan="2" class="infoBoxContent" align="center">' . "\n"; if ($action == "add") { echo '<input type="submit" value="' . TEXT_ACTION_ADD . '">' . "\n"; } else { echo '<input type="submit" value="' . TEXT_ACTION_UPDATE . '">' . "\n"; } echo '</td>' . "\n"; echo '</tr>' . "\n"; echo '</form>' . "\n"; echo '<tr>' . "\n"; }
<td class="current_status"><strong><?php echo ENTRY_STATUS; ?> </strong> <?php echo zen_draw_pull_down_menu('status', $orders_statuses, $orders_history_query->fields['orders_status_id']); ?> </td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?> </strong> [<?php echo zen_draw_radio_field('notify', '1', true) . '-' . TEXT_EMAIL . ' ' . zen_draw_radio_field('notify', '0', FALSE) . '-' . TEXT_NOEMAIL . ' ' . zen_draw_radio_field('notify', '-1', FALSE) . '-' . TEXT_HIDE; ?> ] </td> <td class="main"><strong><?php echo ENTRY_NOTIFY_COMMENTS; ?> </strong> <?php echo zen_draw_checkbox_field('notify_comments', '', true); ?> </td> </tr> <?php /* } */ ?> </table></td> </tr>
} ?> <fieldset> <legend><?php echo HEADING_TITLE; ?> </legend> <div class="text-danger"><strong><?php echo FORM_REQUIRED_INFORMATION; ?> </strong></div><?php if (ACCOUNT_GENDER == 'true') { ?> <div class='form-group'><?php echo BootstrapForms::required_text(ENTRY_GENDER_TEXT) . zen_draw_radio_field('gender', 'm', $male, 'id="gender-male" class="form-control"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', $female, 'id="gender-female" class="form-control"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>'; ?> </div><?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="firstname"> <?php echo BootstrapForms::required_text(ENTRY_FIRST_NAME_TEXT) . ENTRY_FIRST_NAME; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('firstname', $account->fields['customers_firstname'], 'id="firstname" class="form-control"'); ?>
"> <td class="dataTableHeadingContent" valign="top"> <?php echo TEXT_SELECT_OPTION_FROM_ADD . '<br />' . $option_from_dropdown . ' <br />' . TEXT_SELECT_OPTION_VALUES_FROM_ADD . '<br />' . $option_values_from_dropdown . ' <br /><br />' . $options_id_from_products_id; ?> </td> <td class="dataTableHeadingContent" valign="top"> <?php echo TEXT_SELECT_OPTION_TO_ADD_TO . '<br />' . $option_to_dropdown; ?> </td> <td class="dataTableHeadingContent" valign="top"> <?php echo $to_categories_id . '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore', true) . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE; ?> </td> <td align="center" class="dataTableHeadingContent" valign="top"> <?php echo zen_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td> </form> </tr> </table></td> </tr> <!-- eof: copy all option values to another Option Name --> <?php } // show copier features ?>
} ?> </table> <h3 class="headline"><?php echo ENTRY_GENDER; ?> </h3> <table class="border fit account" id="birth"> <?php if (ACCOUNT_GENDER == 'true') { ?> <tr class="gender"> <th scope="row"><span class="required"><?php echo TEXT_REQUIRED; ?> </span><?php echo ENTRY_GENDER; ?> </th> <td><?php echo zen_draw_radio_field('gender', 'm', '', 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', '', 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>'; ?> </td> </tr> <?php } ?> </table> </div>
// READONLY case $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY: $options_name[] = $products_options_names->fields['products_options_name']; $options_menu[] = $tmp_html . "\n"; $options_comment[] = $products_options_names->fields['products_options_comment']; $options_comment_position[] = $products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0'; break; // dropdown menu auto switch to selected radio button display // dropdown menu auto switch to selected radio button display case $products_options->RecordCount() == 1: if ($show_attributes_qty_prices_icon == 'true') { $options_name[] = '<label class="switchedLabel ONE" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . ATTRIBUTES_QTY_PRICE_SYMBOL . $products_options_names->fields['products_options_name'] . '</label>'; } else { $options_name[] = $products_options_names->fields['products_options_name']; } $options_menu[] = zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, 'selected', 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . $products_options_details . '</label>' . "\n"; $options_comment[] = $products_options_names->fields['products_options_comment']; $options_comment_position[] = $products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0'; break; default: // normal dropdown menu display if (isset($_SESSION['cart']->contents[$prod_id]['attributes'][$products_options_names->fields['products_options_id']])) { $selected_attribute = $_SESSION['cart']->contents[$prod_id]['attributes'][$products_options_names->fields['products_options_id']]; } else { // use customer-selected values if ($_POST['id'] != '') { reset($_POST['id']); foreach ($_POST['id'] as $key => $value) { if ($key == $products_options_names->fields['products_options_id']) { $selected_attribute = $value; break;
<td valign="top"><table border="0" cellspacing="2" cellpadding="0"> <tr> <td class="main" valign="top"><?php echo zen_draw_radio_field('target', 'payments') . TEXT_PAYMENTS; ?> </td> </tr> <tr> <td class="main" valign="top"><?php echo zen_draw_radio_field('target', 'refunds') . TEXT_REFUNDS; ?> </td> </tr> <tr> <td class="main" valign="top"><?php echo zen_draw_radio_field('target', 'both') . TEXT_BOTH; ?> </td> </tr> </table></td> <td><table border="0" cellspacing="2" cellpadding="0"> <tr> <td class="smallText" align="left"> <?php echo HEADING_START_DATE . '<br />'; ?> <script language="javascript"> StartDate.writeControl(); StartDate.dateFormat="<?php echo DATE_FORMAT_SPIFFYCAL; ?> ";
echo $customers_referral; zen_draw_hidden_field('customers_referral', $customers_referral, 'id="customers-referral-readonly"'); ?> <br class="clearBoth" /> <?php } ?> </fieldset> <fieldset> <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?> </legend> <?php echo zen_draw_radio_field('email_format', 'HTML', $email_pref_html, 'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', $email_pref_text, 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?> <br class="clearBoth" /> </fieldset> <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> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT); ?> </div> <br class="clearBoth" /> </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_BANNERS_ON_SSL; ?> </td> <td class="main"><?php echo zen_draw_radio_field('banners_on_ssl', '1', $is_banners_on_ssl) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('banners_on_ssl', '0', $not_banners_on_ssl) . ' ' . TEXT_NO . '<br />' . TEXT_INFO_BANNER_ON_SSL; ?> </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_BANNERS_TITLE; ?> </td> <td class="main"><?php
</tr> <tr> <td class="smallText" colspan="2"><?php echo TEXT_NO_HTML . (REVIEWS_APPROVAL == '1' ? '<br />' . TEXT_APPROVAL_REQUIRED : ''); ?> </td> </tr> <tr> <td class="main" colspan="2"><?php echo zen_draw_separator(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_SILVER_SEPARATOR, '100%', '1'); ?> </td> </tr> <tr> <td class="main" colspan="2" align="center" valign="top"><?php echo SUB_TITLE_RATING . '<br />' . TEXT_BAD . ' ' . zen_draw_radio_field('rating', '1') . ' ' . zen_draw_radio_field('rating', '2') . ' ' . zen_draw_radio_field('rating', '3') . ' ' . zen_draw_radio_field('rating', '4') . ' ' . zen_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?> </td> </tr> <tr> <td class="main" colspan="2"><?php echo zen_draw_separator(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_SILVER_SEPARATOR, '100%', '1'); ?> </td> </tr> <tr> <td class="main"><?php echo '<a href="' . zen_href_link(FILENAME_FAQ_REVIEWS, zen_get_all_get_params(array('reviews_id', 'action'))) . '">' . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?> </td> <td class="main" align="right"><?php
$_GET['products_update_id'] = ''; // excluded current product from the pull down menu of products $products_exclude_array = array(); $products_exclude_array[] = $pInfo->products_id; $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>'); $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_product&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('products_update_id', $_GET['products_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes'])); $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down('products_update_id', '', $products_exclude_array, true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; // attribute copier to product // attribute copier to product case 'attribute_features_copy_to_category': $_GET['categories_update_id'] = ''; $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>'); $contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_category&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('categories_update_id', $_GET['categories_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes'])); $contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down_categories('categories_update_id', '', '', true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; } // switch if (zen_not_null($heading) && zen_not_null($contents)) { echo ' <td valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> <tr> <td class="alert" colspan="3" width="100%" align="center">
// READONLY case $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY: $options_name[] = $products_options_names->fields['products_options_name']; $options_menu[] = $tmp_html; $options_comment[] = $products_options_names->fields['products_options_comment']; $options_comment_position[] = $products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0'; break; // dropdownmenu auto switch to selected radio button display // dropdownmenu auto switch to selected radio button display case $products_options->RecordCount() == 1: if ($show_attributes_qty_prices_icon == 'true') { $options_name[] = ATTRIBUTES_QTY_PRICE_SYMBOL . $products_options_names->fields['products_options_name']; } else { $options_name[] = $products_options_names->fields['products_options_name']; } $options_menu[] = zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, 'selected') . $products_options_details; $options_comment[] = $products_options_names->fields['products_options_comment']; $options_comment_position[] = $products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0'; break; default: // normal dropdown menu display if (isset($gBitCustomer->mCart->contents[$prod_id]['attributes'][$products_options_names->fields['products_options_id']])) { $selected_attribute = $gBitCustomer->mCart->contents[$prod_id]['attributes'][$products_options_names->fields['products_options_id']]; } else { // selected set above // echo 'Type ' . $products_options_names->fields['products_options_type'] . '<br />'; } if ($show_attributes_qty_prices_icon == 'true') { $options_name[] = ATTRIBUTES_QTY_PRICE_SYMBOL . $products_options_names->fields['products_options_name']; } else { $options_name[] = $products_options_names->fields['products_options_name'];
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_NEW_BACKUP . '</strong>'); $contents = array('form' => zen_draw_form('backup', FILENAME_BACKUP_MYSQL, 'action=backupnow' . ($debug == 'ON' ? '&debug=ON' : '') . ($tables_to_export != '' ? '&tables=' . str_replace(' ', ',', $tables_to_export) : ''))); $contents[] = array('text' => TEXT_INFO_NEW_BACKUP); $contents[] = array('text' => '<br />' . zen_draw_radio_field('compress', 'no', !@file_exists(LOCAL_EXE_GZIP) && !$compress_override ? true : false) . ' ' . TEXT_INFO_USE_NO_COMPRESSION); if (@file_exists(LOCAL_EXE_GZIP) || $compress_override) { $contents[] = array('text' => '<br />' . zen_draw_radio_field('compress', 'gzip', true) . ' ' . TEXT_INFO_USE_GZIP); } if (@file_exists(LOCAL_EXE_ZIP)) { $contents[] = array('text' => zen_draw_radio_field('compress', 'zip', !@file_exists(LOCAL_EXE_GZIP) ? true : false) . ' ' . TEXT_INFO_USE_ZIP); } $contents[] = array('text' => '<br />' . zen_draw_radio_field('skiplocks', 'yes', false) . ' ' . TEXT_INFO_SKIP_LOCKS); // Download to file --- Should only be done if SSL is active, otherwise database is exposed as clear text if ($dir_ok == true) { $contents[] = array('text' => '<br />' . zen_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br /><span class="errorText">*' . TEXT_INFO_BEST_THROUGH_HTTPS . '</span>'); } else { $contents[] = array('text' => '<br />' . zen_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br /><span class="errorText">*' . TEXT_INFO_BEST_THROUGH_HTTPS . '</span>'); } // display backup button $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . zen_href_link(FILENAME_BACKUP_MYSQL, $debug == 'ON' ? 'debug=ON' : '') . ($tables_to_export != '' ? '&tables=' . str_replace(' ', ',', $tables_to_export) : '') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'restore': $heading[] = array('text' => '<strong>' . $buInfo->date . '</strong>'); $contents[] = array('text' => zen_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' ')); $contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_BACKUP_MYSQL, 'file=' . $buInfo->file . '&action=restorenow' . ($debug == 'ON' ? '&debug=ON' : '')) . '">' . zen_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . zen_href_link(FILENAME_BACKUP_MYSQL, 'file=' . $buInfo->file . ($debug == 'ON' ? '&debug=ON' : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'restorelocal': $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</strong>'); $contents = array('form' => zen_draw_form('restore', FILENAME_BACKUP_MYSQL, 'action=restorelocalnow' . ($debug == 'ON' ? '&debug=ON' : ''), 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br /><br />' . TEXT_INFO_BEST_THROUGH_HTTPS); $contents[] = array('text' => '<br />' . zen_draw_file_field('sql_file')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
$in_status_single = true; $out_status_single = false; break; default: $in_status_single = true; $out_status_single = false; } $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_BOX . '</b>'); $contents = array('form' => zen_draw_form('column_controller', FILENAME_LAYOUT_CONTROLLER, 'page=' . $_GET['page'] . '&cID=' . $bInfo->layout_id . '&action=save' . '&layout_box_name=' . $bInfo->layout_box_name . '&template_dir=' . $template_dir . '&layout_page=' . $layout_page)); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => TEXT_INFO_LAYOUT_BOX_NAME . ' ' . $bInfo->layout_box_name); $contents[] = array('text' => '<br />' . TEXT_INFO_LAYOUT_BOX_STATUS . '<br />' . zen_draw_radio_field('layout_box_status', '1', $in_status) . TEXT_ON . zen_draw_radio_field('layout_box_status', '0', $out_status) . TEXT_OFF); $contents[] = array('text' => '<br />' . TEXT_INFO_LAYOUT_BOX_LOCATION . '<br />' . zen_draw_radio_field('layout_box_location', '0', $left_status) . TEXT_LEFT . zen_draw_radio_field('layout_box_location', '1', $right_status) . TEXT_RIGHT); $contents[] = array('text' => '<br />' . TEXT_INFO_LAYOUT_BOX_SORT_ORDER . '<br />' . zen_draw_input_field('layout_box_sort_order', $bInfo->layout_box_sort_order, 'size="4"')); $contents[] = array('text' => '<br />' . TEXT_INFO_LAYOUT_BOX_SORT_ORDER_SINGLE . '<br />' . zen_draw_input_field('layout_box_sort_order_single', $bInfo->layout_box_sort_order_single, 'size="4"')); $contents[] = array('text' => '<br />' . TEXT_INFO_LAYOUT_BOX_STATUS_SINGLE . '<br />' . zen_draw_radio_field('layout_box_status_single', '1', $in_status_single) . TEXT_ON . zen_draw_radio_field('layout_box_status_single', '0', $out_status_single) . TEXT_OFF); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_LAYOUT_CONTROLLER, 'page=' . $_GET['page'] . '&cID=' . $bInfo->layout_id . '&layout_box_name=' . $bInfo->layout_box_name . '&template_dir=' . $template_dir . '&layout_page=' . $layout_page) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_BOX . '</b>'); $contents = array('form' => zen_draw_form('column_controller', FILENAME_LAYOUT_CONTROLLER, 'page=' . $_GET['page'] . '&cID=' . $bInfo->layout_id . '&action=deleteconfirm' . '&layout_box_name=' . $bInfo->layout_box_name . '&template_dir=' . $template_dir . '&layout_page=' . $layout_page)); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $bInfo->layout_box_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_LAYOUT_CONTROLLER, 'page=' . $_GET['page'] . '&cID=' . $bInfo->layout_id . '&template_dir=' . $template_dir . '&layout_page=' . $layout_page) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($bInfo)) { $heading[] = array('text' => '<strong>' . TEXT_INFO_LAYOUT_BOX . $bInfo->layout_box_name . '</strong>'); $contents[] = array('align' => 'left', 'text' => '<a href="' . zen_href_link(FILENAME_LAYOUT_CONTROLLER, 'page=' . $_GET['page'] . '&cID=' . $bInfo->layout_id . '&action=edit&template_dir=' . $template_dir . '&layout_page=' . $layout_page) . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>'); $contents[] = array('text' => '<strong>' . TEXT_INFO_BOX_DETAILS . '<strong>'); $contents[] = array('text' => TEXT_INFO_LAYOUT_BOX_NAME . ' ' . $bInfo->layout_box_name);