public static function parse($data) { $default_value = null; foreach ($data['data'] as $variant) { if ($variant['default'] === true) { $default_value = (string) $variant['id']; break; } } $string = '<table border="0" cellspacing="0" cellpadding="2">' . ' <tr>' . ' <td width="100">' . $data['title'] . ':</td>' . ' <td>' . osc_draw_radio_field('variants[' . $data['group_id'] . ']', $data['data'], $default_value, 'onchange="refreshVariants();" id="variants_' . $data['group_id'] . '"') . '</td>' . ' </tr>' . '</table>'; return $string; }
function initialize() { global $osC_Database, $osC_Language, $osC_Template; $Qpoll = $osC_Database->query('select p.polls_id, p.polls_type, pd.polls_title from :table_polls p, :table_polls_description pd where p.polls_status = 1 and p.polls_id = pd.polls_id and pd.languages_id = :languages_id'); $Qpoll->bindTable(':table_polls', TABLE_POLLS); $Qpoll->bindTable(':table_polls_description', TABLE_POLLS_DESCRIPTION); $Qpoll->bindInt(':languages_id', $osC_Language->getID()); $Qpoll->executeRandomMulti(); $this->_content = '<div id="polls"><form name="frmPolls" id="frmPolls" action="' . osc_href_link(FILENAME_JSON) . '" method="get">' . osc_draw_hidden_field('polls_id', $Qpoll->valueInt('polls_id')); if ($Qpoll->numberOfRows() > 0) { $this->_content .= '<h6>' . $Qpoll->value('polls_title') . '</h6>'; $Qanswers = $osC_Database->query('select pa.polls_id, pa.polls_answers_id, pa.votes_count, pa.sort_order, pad.answers_title from :table_polls_answers pa, :table_polls_answers_description pad where pa.polls_id = :polls_id and pa.polls_answers_id = pad.polls_answers_id and pad.languages_id = :languages_id order by pa.sort_order desc'); $Qanswers->bindTable(':table_polls_answers', TABLE_POLLS_ANSWERS); $Qanswers->bindTable(':table_polls_answers_description', TABLE_POLLS_ANSWERS_DESCRIPTION); $Qanswers->bindInt(':polls_id', $Qpoll->valueInt('polls_id')); $Qanswers->bindInt(':languages_id', $osC_Language->getID()); $Qanswers->execute(); if ($Qanswers->numberOfRows() > 0) { $this->_content .= '<ul>'; while ($Qanswers->next()) { if ($Qpoll->valueInt('polls_type')) { $this->_content .= '<li>' . osc_draw_checkbox_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>'; } else { $this->_content .= '<li>' . osc_draw_radio_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>'; } } $this->_content .= '</ul>'; $this->_content .= '<span style="float: right;">' . osc_draw_image_button('button_vote.png', $osC_Language->get('button_vote'), 'class="button" id="btnPollVote"') . '</span>'; $this->_content .= osc_draw_image_button('button_result.png', $osC_Language->get('button_result'), 'class="button" id="btnPollResult"'); $Qanswers->freeResult(); } } $Qpoll->freeResult(); $this->_content .= '</form></div>'; $osC_Template->addJavascriptFilename('includes/javascript/polls.js'); $js .= '<script type="text/javascript"> window.addEvent(\'domready\',function(){ var polls = new Polls(); }); </script>'; $this->_content .= $js . "\n"; }
</div> <div class="content"> <table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => MALE), array('id' => 'f', 'text' => FEMALE)); ?> <tr> <td><?php echo ENTRY_GENDER; ?> </td> <td><?php echo osc_draw_radio_field('gender', $gender_array, $Qaccount->value('customers_gender'), '', ACCOUNT_GENDER > 0); ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <?php } ?> <tr> <td><?php echo ENTRY_FIRST_NAME; ?> </td>
defaults: {anchor: '97%'}, labelWidth: 160, items: [ { border: false, html: '<?php $compression_array = array(array("id" => "none", "text" => $osC_Language->get("field_compression_none"))); if (!osc_empty(CFG_APP_GZIP) && file_exists(CFG_APP_GZIP)) { $compression_array[] = array("id" => "gzip", "text" => $osC_Language->get("field_compression_gzip")); } if (!osc_empty(CFG_APP_ZIP) && file_exists(CFG_APP_ZIP)) { $compression_array[] = array("id" => "zip", "text" => $osC_Language->get("field_compression_zip")); } echo '<p class="form-info">' . $osC_Language->get("introduction_new_backup") . '</p>'; echo '<p>' . osc_draw_radio_field("compression", $compression_array, "none", null, "<br />") . '</p>'; ?> ' } ] }); return this.frmBackup; }, submitForm: function () { this.frmBackup.form.submit({ waitMsg: TocLanguage.formSubmitWaitMsg, success: function (form, action) { this.fireEvent('saveSuccess', action.result.feedback); this.close();
if (file_exists(LOCAL_EXE_GZIP)) { $compress_array[] = array('id' => 'gzip', 'text' => TEXT_INFO_USE_GZIP); } if (file_exists(LOCAL_EXE_ZIP)) { $compress_array[] = array('id' => 'zip', 'text' => TEXT_INFO_USE_ZIP); } echo osc_draw_radio_field('compress', $compress_array, 'no', '', false, '<br>'); ?> </p> <p> <?php if ($dir_ok === true) { echo osc_draw_checkbox_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY))) . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS; } else { echo osc_draw_radio_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY)), true) . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS; } ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_BACKUP . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'bDefault\');" class="operationButton">'; ?> </p> </form> </div> </div> <div id="infoBox_bRestoreLocal" <?php if ($action != 'bRestoreLocal') {
<h6><?php echo $osC_Language->get('my_account_title'); ?> </h6> <div class="content"> <ol> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_gender'), 'fake', null, ACCOUNT_GENDER > 0) . osc_draw_radio_field('gender', $gender_array, $Qaccount->value('customers_gender')); ?> </li> <?php } ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_first_name'), 'firstname', null, true) . ' ' . osc_draw_input_field('firstname', $Qaccount->value('customers_firstname')); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_last_name'), 'lastname', null, true) . ' ' . osc_draw_input_field('lastname', $Qaccount->value('customers_lastname')); ?> </li>
<?php if ($Qaddresses->valueInt('address_book_id') == $osC_ShoppingCart->getBillingAddress('id')) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"> </td> <td colspan="2"><b><?php echo $Qaddresses->valueProtected('firstname') . ' ' . $Qaddresses->valueProtected('lastname'); ?> </b></td> <td align="right"><?php echo osc_draw_radio_field('address', $Qaddresses->valueInt('address_book_id'), $osC_ShoppingCart->getBillingAddress('id')); ?> </td> <td width="10"> </td> </tr> <tr> <td width="10"> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"> </td> <td><?php echo osC_Address::format($Qaddresses->toArray(), ', '); ?> </td> <td width="10"> </td> </tr>
?> </td> <td><?php echo osc_draw_radio_field('rating_' . $key, 2, null, ' title="radio' . $i . '" '); ?> </td> <td><?php echo osc_draw_radio_field('rating_' . $key, 3, null, ' title="radio' . $i . '" '); ?> </td> <td><?php echo osc_draw_radio_field('rating_' . $key, 4, null, ' title="radio' . $i . '" '); ?> </td> <td><?php echo osc_draw_radio_field('rating_' . $key, 5, null, ' title="radio' . $i . '" '); ?> </td> </tr> <?php $i++; } ?> </tbody> </table> <?php } ?> <h6><?php echo $osC_Language->get('field_review');
$Qproducts->bindRaw(':products_id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qproducts->bindInt(':language_id', $osC_Language->getID()); $Qproducts->execute(); $names_string = ''; while ($Qproducts->next()) { $names_string .= osc_draw_hidden_field('batch[]', $Qproducts->valueInt('products_id')) . '<b>' . $Qproducts->value('products_name') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2) . osc_draw_hidden_field('subaction', 'confirm'); } echo '<p>' . $names_string . '</p>'; ?> <p><?php echo '<b>' . $osC_Language->get('field_categories') . '</b><br />' . osc_draw_pull_down_menu('new_category_id', $categories_array); ?> </p> <p><?php echo '<b>' . $osC_Language->get('field_copy_method') . '</b><br />' . osc_draw_radio_field('copy_as', array(array('id' => 'link', 'text' => $osC_Language->get('copy_method_link')), array('id' => 'duplicate', 'text' => $osC_Language->get('copy_method_duplicate'))), 'link', null, '<br />'); ?> </p> <p align="center"><?php echo '<input type="submit" value="' . $osC_Language->get('button_copy') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&cID=' . $_GET['cID']) . '\';" class="operationButton" />'; ?> </p> </form> </div>
if ($n == 1 || $selection[$i]['id'] == $osC_Session->value('payment')) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?> </b></td> <td class="main" align="right"><?php echo osc_draw_radio_field('payment', $selection[$i]['id'], $osC_Session->value('payment')); ?> </td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td>
if ($Qaddresses->valueInt('address_book_id') == $osC_Session->value('billto')) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" colspan="2"><b><?php echo $Qaddresses->valueProtected('firstname') . ' ' . $Qaddresses->valueProtected('lastname'); ?> </b></td> <td class="main" align="right"><?php echo osc_draw_radio_field('address', $Qaddresses->valueInt('address_book_id'), $osC_Session->value('billto')); ?> </td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php
" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <tr> <td width="30%"><?php echo $osC_Language->get('field_gender'); ?> </td> <td width="70%"><?php echo osc_draw_radio_field('ab_gender', $gender_array, $osC_ObjectInfo->get('customers_gender')); ?> </td> </tr> <?php } ?> <tr> <td width="30%"><?php echo $osC_Language->get('field_first_name'); ?> </td> <td width="70%"><?php echo osc_draw_input_field('ab_firstname', $osC_ObjectInfo->get('customers_firstname'));
echo CATEGORY_ADDRESS; ?> </p> <div class="formArea"> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER > -1) { ?> <tr> <td class="main" width="30%"><?php echo ENTRY_GENDER; ?> </td> <td class="main" width="70%"><?php echo osc_draw_radio_field('ab_gender', $gender_array, isset($Qab) ? $Qab->value('entry_gender') : '', '', ACCOUNT_GENDER > 0); ?> </td> </tr> <?php } ?> <tr> <td class="main" width="30%"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main" width="70%"><?php echo osc_draw_input_field('ab_firstname', isset($Qab) ? $Qab->value('entry_firstname') : '', '', true); ?> </td>
<p><?php echo $osC_Language->get('introduction_import_language'); ?> </p> <fieldset> <div><label for="language_import"><?php echo $osC_Language->get('field_language_selection'); ?> </label><?php echo osc_draw_pull_down_menu('language_import', $languages_array); ?> </div> <div><label for="import_type"><?php echo $osC_Language->get('field_import_type'); ?> </label><?php echo osc_draw_radio_field('import_type', array(array('id' => 'add', 'text' => $osC_Language->get('only_add_new_records')), array('id' => 'update', 'text' => $osC_Language->get('only_update_existing_records')), array('id' => 'replace', 'text' => $osC_Language->get('replace_all'))), 'add', null, '<br />'); ?> </div> </fieldset> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_import') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?> </p> </form> </div>
?> </li> <?php } ?> <div id="billingAddressDetails" style="display: <?php echo $osC_Customer->isLoggedOn() & $create_billing_address == false ? 'none' : ''; ?> "> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_gender'), null, 'fake', ACCOUNT_GENDER > 0) . osc_draw_radio_field('billing_gender', $gender_array, $gender); ?> </li> <?php } ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_first_name'), null, 'billing_firstname', true) . osc_draw_input_field('billing_firstname', $firstname); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_last_name'), null, 'billing_lastname', true) . osc_draw_input_field('billing_lastname', $lastname); ?> </li>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ ?> <ol> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_gender'), null, 'fake', ACCOUNT_GENDER > 0) . osc_draw_radio_field('gender', $gender_array, isset($Qentry) ? $Qentry->value('entry_gender') : (!$osC_Customer->hasDefaultAddress() ? $osC_Customer->getGender() : null)); ?> </li> <?php } ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_first_name'), null, 'firstname', true) . osc_draw_input_field('firstname', isset($Qentry) ? $Qentry->value('entry_firstname') : (!$osC_Customer->hasDefaultAddress() ? $osC_Customer->getFirstName() : null)); ?> </tli> <li><?php echo osc_draw_label($osC_Language->get('field_customer_last_name'), null, 'lastname', true) . osc_draw_input_field('lastname', isset($Qentry) ? $Qentry->value('entry_lastname') : (!$osC_Customer->hasDefaultAddress() ? $osC_Customer->getLastName() : null)); ?> </li>
?> <p><?php echo TEXT_INFO_COPY_TO_INTRO; ?> </p> <p><?php echo TEXT_INFO_CURRENT_CATEGORIES . '<br>' . tep_output_generated_category_path($pInfo->products_id, 'product'); ?> </p> <p><?php echo TEXT_CATEGORIES . '<br>' . osc_draw_pull_down_menu('categories_id', $categories_array, $cPath); ?> </p> <p><?php echo TEXT_HOW_TO_COPY . '<br>' . osc_draw_radio_field('copy_as', array(array('id' => 'link', 'text' => TEXT_COPY_AS_LINK), array('id' => 'duplicate', 'text' => TEXT_COPY_AS_DUPLICATE)), 'link', '', false, '<br>'); ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_COPY . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton">'; ?> </p> </form> </div> </div> <div id="infoBox_pDelete" <?php if ($action != 'pDelete') { echo 'style="display: none;"';
$Qadmins->bindTable(':table_administrators', TABLE_ADMINISTRATORS); $Qadmins->bindRaw(':id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qadmins->execute(); $names_string = ''; while ($Qadmins->next()) { $names_string .= osc_draw_hidden_field('batch[]', $Qadmins->valueInt('id')) . '<b>' . $Qadmins->valueProtected('user_name') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; ?> <fieldset> <div><?php echo osc_draw_radio_field('mode', array(array('id' => osC_Administrators_Admin::ACCESS_MODE_ADD, 'text' => $osC_Language->get('add_to')), array('id' => osC_Administrators_Admin::ACCESS_MODE_REMOVE, 'text' => $osC_Language->get('remove_from')), array('id' => osC_Administrators_Admin::ACCESS_MODE_SET, 'text' => $osC_Language->get('set_to'))), osC_Administrators_Admin::ACCESS_MODE_ADD); ?> </div> <div><select name="accessModules" id="modulesList"><option value="-1" disabled="disabled">-- Access Modules --</option><option value="0"><?php echo $osC_Language->get('global_access'); ?> </option></select></div> <ul id="accessToModules" class="modulesListing"></ul> </fieldset> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?> </p>
" method="post"> <p><?php echo $osC_Language->get('introduction_batch_edit_cards'); ?> </p> <?php $Qcc = $osC_Database->query('select id, credit_card_name from :table_credit_cards where id in (":id") order by credit_card_name'); $Qcc->bindTable(':table_credit_cards', TABLE_CREDIT_CARDS); $Qcc->bindRaw(':id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qcc->execute(); $names_string = ''; while ($Qcc->next()) { $names_string .= osc_draw_hidden_field('batch[]', $Qcc->valueInt('id')) . '<b>' . $Qcc->valueProtected('credit_card_name') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2) . osc_draw_hidden_field('subaction', 'confirm'); } echo '<p>' . $names_string . '</p>'; echo '<p>' . osc_draw_radio_field('type', array(array('id' => 'activate', 'text' => $osC_Language->get('activate')), array('id' => 'deactivate', 'text' => $osC_Language->get('deactivate'))), 'activate') . '</p>'; ?> <p align="center"><?php echo '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />'; ?> </p> </form> </div>
$Qadmins = $OSCOM_Database->query('select id, user_name from :table_administrators where id in (":id") order by user_name'); $Qadmins->bindRaw(':id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qadmins->execute(); $names_string = ''; while ($Qadmins->next()) { $names_string .= osc_draw_hidden_field('batch[]', $Qadmins->valueInt('id')) . '<b>' . $Qadmins->valueProtected('user_name') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; ?> <fieldset> <p><?php echo osc_draw_radio_field('mode', array(array('id' => Administrators::ACCESS_MODE_ADD, 'text' => OSCOM::getDef('add_to')), array('id' => Administrators::ACCESS_MODE_REMOVE, 'text' => OSCOM::getDef('remove_from')), array('id' => Administrators::ACCESS_MODE_SET, 'text' => OSCOM::getDef('set_to'))), Administrators::ACCESS_MODE_ADD); ?> </p> <p><select name="accessModules" id="modulesList"><option value="-1" disabled="disabled">-- Access Modules --</option><option value="0"><?php echo OSCOM::getDef('global_access'); ?> </option></select></p> <ul id="accessToModules" class="modulesListing"></ul> </fieldset> <p><?php echo osc_draw_button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p>
</tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => MALE), array('id' => 'f', 'text' => FEMALE)); ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <td class="main"><?php echo osc_draw_radio_field('gender', $gender_array, '', '', ACCOUNT_GENDER > 0); ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"><?php echo osc_draw_input_field('firstname', '', '', true); ?> </td>
" method="post"> <p><?php echo '<b>' . $osC_Language->get('field_product') . '</b><br />' . $osC_ObjectInfo->get('products_name'); ?> </p> <p><?php echo '<b>' . $osC_Language->get('field_author') . '</b><br />' . osc_output_string_protected($osC_ObjectInfo->get('customers_name')); ?> </p> <p><?php echo '<b>' . $osC_Language->get('field_date_added') . '</b><br />' . osC_DateTime::getShort($osC_ObjectInfo->get('date_added')); ?> </p> <p><?php echo '<b>' . $osC_Language->get('field_review') . '</b><br />' . osc_draw_textarea_field('reviews_text', $osC_ObjectInfo->get('reviews_text')); ?> </p> <p><?php echo '<b>' . $osC_Language->get('field_rating') . '</b><br />' . $osC_Language->get('rating_bad') . ' ' . osc_draw_radio_field('reviews_rating', $rating_array, $osC_ObjectInfo->get('reviews_rating')) . ' ' . $osC_Language->get('rating_good'); ?> </p> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />'; ?> </p> </form> </div>
<?php echo osc_draw_checkbox_field('USE_PCONNECT', 'true'); ?> <img src="images/layout/help_icon.gif" onClick="toggleBox('dbConn');"><br> <div id="dbConnSD"></div> <div id="dbConn" class="longDescription">Enable persistent database connections.<br><br>Note: Persistent connections should be disabled for shared servers.</div> </td> </tr> <tr> <td width="30%" valign="top">Session Storage:</td> <td width="70%" class="smallDesc"> <?php echo osc_draw_radio_field('STORE_SESSIONS', 'files', true); ?> Files <?php echo osc_draw_radio_field('STORE_SESSIONS', 'mysql'); ?> Database <img src="images/layout/help_icon.gif" onClick="toggleBox('dbSess');"><br> <div id="dbSessSD"></div> <div id="dbSess" class="longDescription">Store user session data as files on the server, or in the database.<br><br>Note: Due to security related issues, database session storage is recommended for shared servers.</td></div> </td> </tr> </table> <p> </p> <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"><a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel"></a></td> <td align="center"><input type="image" src="images/button_continue.gif" border="0" alt="Continue"></td>
" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <tr> <td width="30%"><?php echo $osC_Language->get('field_gender'); ?> </td> <td width="70%"><?php echo osc_draw_radio_field('gender', $gender_array); ?> </td> </tr> <?php } ?> <tr> <td width="30%"><?php echo $osC_Language->get('field_first_name'); ?> </td> <td width="70%"><?php echo osc_draw_input_field('firstname');
?> </em><?php echo $osC_Language->get('my_account_title'); ?> </h6> <div class="content"> <ol> <?php if (ACCOUNT_GENDER > -1) { $gender_array = array(array('id' => 'm', 'text' => $osC_Language->get('gender_male')), array('id' => 'f', 'text' => $osC_Language->get('gender_female'))); ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_gender'), 'gender1', null, ACCOUNT_GENDER > 0) . osc_draw_radio_field('gender', $gender_array); ?> </li> <?php } ?> <li><?php echo osc_draw_label($osC_Language->get('field_customer_first_name'), 'firstname', null, true) . osc_draw_input_field('firstname', null); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_last_name'), 'lastname', null, true) . osc_draw_input_field('lastname', null); ?> </li>
</li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_email_address'), null, 'customer_email_address') . osc_draw_input_field('customer_email_address'); ?> </li> <?php } ?> <li><?php echo osc_draw_textarea_field('review', null, null, 15, 'style="width: 98%;"'); ?> </li> <li><?php echo $osC_Language->get('field_review_rating') . ' ' . $osC_Language->get('review_lowest_rating_title') . ' ' . osc_draw_radio_field('rating', array('1', '2', '3', '4', '5')) . ' ' . $osC_Language->get('review_highest_rating_title'); ?> </li> </ol> </div> </div> <div class="submitFormButtons"> <span style="float: left;"><?php echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue')); ?> </span> <?php echo osc_link_object(osc_href_link(FILENAME_PRODUCTS, 'reviews&' . $osC_Product->getID()), osc_draw_image_button('button_back.gif', $osC_Language->get('button_back'))); ?>
} ?> <td width="10"> </td> <td width="75%"><?php echo $methods['title']; ?> </td> <?php if ($osC_Shipping->numberOfQuotes() > 1 || sizeof($quotes['methods']) > 1) { ?> <td><?php echo $osC_Currencies->displayPrice($methods['cost'], $quotes['tax_class_id']); ?> </td> <td align="right"><?php echo osc_draw_radio_field('shipping_mod_sel', $quotes['id'] . '_' . $methods['id'], $osC_ShoppingCart->getShippingMethod('id')); ?> </td> <?php } else { ?> <td align="right" colspan="2"><?php echo $osC_Currencies->displayPrice($methods['cost'], $quotes['tax_class_id']) . osc_draw_hidden_field('shipping_mod_sel', $quotes['id'] . '_' . $methods['id']); ?> </td> <?php } ?> <td width="10"> </td> </tr> <?php
<td><table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo osc_draw_textarea_field('review', '', 60, 15); ?> </td> </tr> <tr> <td class="smallText" align="right"><?php echo TEXT_NO_HTML; ?> </td> </tr> <tr> <td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . osc_draw_radio_field('rating', array('1', '2', '3', '4', '5')) . ' ' . TEXT_GOOD; ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(\'checkout_payment\', this)">' . "\n"; } ?> <td width="10"> </td> <?php if ($n > 1) { ?> <td colspan="3"><?php echo '<b>' . $selection[$i]['module'] . '</b>'; ?> </td> <td align="right"><?php echo osc_draw_radio_field('payment_method', $selection[$i]['id'], $osC_ShoppingCart->hasBillingMethod() ? $osC_ShoppingCart->getBillingMethod('id') : null); ?> </td> <?php } else { ?> <td colspan="4"><?php echo '<b>' . $selection[$i]['module'] . '</b>' . osc_draw_hidden_field('payment_method', $selection[$i]['id']); ?> </td> <?php } ?>
?> " method="post"> <p><?php echo OSCOM::getDef('introduction_batch_edit_cards'); ?> </p> <?php $Qcc = $OSCOM_Database->query('select id, credit_card_name from :table_credit_cards where id in (":id") order by credit_card_name'); $Qcc->bindRaw(':id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qcc->execute(); $names_string = ''; while ($Qcc->next()) { $names_string .= osc_draw_hidden_field('batch[]', $Qcc->valueInt('id')) . '<b>' . $Qcc->valueProtected('credit_card_name') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; echo '<p>' . osc_draw_radio_field('type', array(array('id' => 'activate', 'text' => OSCOM::getDef('activate')), array('id' => 'deactivate', 'text' => OSCOM::getDef('deactivate'))), 'activate') . '</p>'; ?> <p><?php echo osc_draw_button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>