function renderCustomizationFieldsList() { global $toC_Customization_Fields; $output = '<ul>'; foreach ($this->getCustomizations() as $field) { $tmp = $toC_Customization_Fields->getCustomizationField($this->getID(), $field['customization_fields_id']); $value = $tmp === false ? null : $tmp['customization_value']; if ($field['type'] == 0) { $output .= '<li>' . osc_draw_label($field['name'], 'customizations_' . $field['customization_fields_id'], $value, $field['is_required'] == '1' ? true : false) . osc_draw_file_field('customizations_' . $field['customization_fields_id'], true) . '<br /><span>' . $value . '</span></li>'; } else { $output .= '<li>' . osc_draw_label($field['name'], 'customizations[' . $field['customization_fields_id'] . ']', null, $field['is_required'] == '1' ? true : false) . osc_draw_input_field('customizations[' . $field['customization_fields_id'] . ']', $value, 'size="30"') . '</li>'; } } $output .= '</ul>'; return $output; }
<div class="infoBoxHeading"><?php echo tep_image('templates/' . $template . '/images/icons/16x16/new.png', IMAGE_INSERT, '16', '16') . ' ' . TEXT_INFO_HEADING_RESTORE_LOCAL; ?> </div> <div class="infoBoxContent"> <?php echo tep_draw_form('bRestoreLocal', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'); ?> <p><?php echo TEXT_INFO_RESTORE_LOCAL; ?> </p> <p><?php echo osc_draw_file_field('sql_file'); ?> </p> <p><?php echo TEXT_INFO_RESTORE_LOCAL_RAW_FILE; ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_RESTORE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'bDefault\');" class="operationButton">'; ?> </p> </form> </div>
<td class="smallText" width="40%"><?php echo '<b>' . TEXT_BANNERS_GROUP . '</b>'; ?> </td> <td class="smallText" width="60%"><?php echo osc_draw_pull_down_menu('banners_group', $groups_array, $bInfo->banners_group) . TEXT_BANNERS_NEW_GROUP . '<br>' . osc_draw_input_field('new_banners_group', '', 'style="width: 100%;"'); ?> </td> </tr> <tr> <td class="smallText" width="40%"><?php echo '<b>' . TEXT_BANNERS_IMAGE . '</b>'; ?> </td> <td class="smallText" width="60%"><?php echo osc_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . realpath('../images/') . '/' . osc_draw_input_field('banners_image_local', $bInfo->banners_image); ?> </td> </tr> <tr> <td class="smallText" width="40%"><?php echo '<b>' . TEXT_BANNERS_IMAGE_TARGET . '</b>'; ?> </td> <td class="smallText" width="60%"><?php echo realpath('../images') . '/' . osc_draw_input_field('banners_image_target'); ?> </td> </tr> <tr> <td class="smallText" width="40%"><?php
?> <div><p><?php echo osc_image('../' . DIR_WS_IMAGES . 'categories/' . $osC_ObjectInfo->get('categories_image'), $osC_ObjectInfo->get('categories_name'), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br />' . DIR_WS_CATALOG . 'images/categories/' . $osC_ObjectInfo->getProtected('categories_image'); ?> </p></div> <?php } ?> <div><label for="categories_image"><?php echo $osC_Language->get('field_image'); ?> </label><?php echo osc_draw_file_field('categories_image', true); ?> </div> <div><label for="sort_order"><?php echo $osC_Language->get('field_sort_order'); ?> </label><?php echo osc_draw_input_field('sort_order', $osC_ObjectInfo->get('sort_order')); ?> </div> </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() . '=' . $_GET[$osC_Template->getModule()]) . '\';" class="operationButton" />'; ?> </p>
<p><?php echo $osC_Language->get('introduction_edit_manufacturer'); ?> </p> <p><?php echo $osC_Language->get('field_name') . '<br />' . osc_draw_input_field('manufacturers_name', $osC_ObjectInfo->get('manufacturers_name')); ?> </p> <p><?php echo osc_image('../' . DIR_WS_IMAGES . 'manufacturers/' . $osC_ObjectInfo->get('manufacturers_image'), $osC_ObjectInfo->get('manufacturers_name')) . '<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . 'manufacturers/<br /><b>' . $osC_ObjectInfo->get('manufacturers_image') . '</b>'; ?> </p> <p><?php echo $osC_Language->get('field_image') . '<br />' . osc_draw_file_field('manufacturers_image', true); ?> </p> <p> <?php echo $osC_Language->get('field_url'); $manufacturers_array = array(); $Qmanufacturer = $osC_Database->query('select manufacturers_url, languages_id from :table_manufacturers_info where manufacturers_id = :manufacturers_id'); $Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO); $Qmanufacturer->bindInt(':manufacturers_id', $osC_ObjectInfo->get('manufacturers_id')); $Qmanufacturer->execute(); while ($Qmanufacturer->next()) { $manufacturers_array[$Qmanufacturer->valueInt('languages_id')] = $Qmanufacturer->value('manufacturers_url'); }
<td width="40%"><?php echo '<b>' . $osC_Language->get('field_group') . '</b>'; ?> </td> <td width="60%"><?php echo osc_draw_pull_down_menu('group', $groups_array, $osC_ObjectInfo->get('banners_group')) . $osC_Language->get('field_group_new') . '<br />' . osc_draw_input_field('group_new', null, 'style="width: 100%;"'); ?> </td> </tr> <tr> <td width="40%"><?php echo '<b>' . $osC_Language->get('field_image') . '</b>'; ?> </td> <td width="60%"><?php echo osc_draw_file_field('image', true) . ' ' . $osC_Language->get('field_image_local') . '<br />' . realpath('../images/') . '/' . osc_draw_input_field('image_local', $osC_ObjectInfo->get('banners_image')); ?> </td> </tr> <tr> <td width="40%"><?php echo '<b>' . $osC_Language->get('field_image_target') . '</b>'; ?> </td> <td width="60%"><?php echo realpath('../images') . '/' . osc_draw_input_field('image_target'); ?> </td> </tr> <tr> <td width="40%"><?php
echo $osC_Language->get('image_remote_upload'); ?> </a> | <a href="#" id="localFilesLink" onclick="switchImageFilesView('local');"><?php echo $osC_Language->get('image_local_files'); ?> </a> </div> <div id="remoteFiles"> <span id="fileUploadField"></span> <?php if (isset($osC_ObjectInfo)) { echo '<input type="button" id="uploadFile" value="' . $osC_Language->get('button_send_to_server') . '" class="operationButton" /><div id="showProgress" style="display: none; padding-left: 10px;">' . osc_icon('progress_ani.gif') . ' ' . $osC_Language->get('image_upload_progress') . '</div>'; } else { echo osc_draw_file_field('products_image'); } ?> </div> <?php if (isset($osC_ObjectInfo)) { ?> <script type="text/javascript"><!-- $('#uploadFile').upload( { name: 'products_image', method: 'post', enctype: 'multipart/form-data', action: '<?php echo osc_href_link_admin('rpc.php', $osC_Template->getModule() . '=' . $osC_ObjectInfo->getInt('products_id') . '&action=fileUpload');
} ?> <div class="infoBoxHeading"><?php echo osc_icon('new.png') . ' ' . $osC_Language->get('action_heading_restore_local_file'); ?> </div> <div class="infoBoxContent"> <form name="bRestoreLocal" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&action=restoreLocal'); ?> " method="post" enctype="multipart/form-data"> <p><?php echo $osC_Language->get('introduction_restore_local_file'); ?> </p> <p><?php echo osc_draw_file_field('sql_file', true); ?> </p> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_restore') . '" 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>
<p><?php echo TEXT_UPLOAD_INTRO; ?> </p> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php for ($i = 0; $i < 10; $i++) { ?> <tr> <td class="smallText" width="40%"><?php echo '<b>' . TEXT_FILE_NAME . '</b>'; ?> </td> <td class="smallText" width="60%"><?php echo osc_draw_file_field('file_' . $i); ?> </td> </tr> <?php } ?> </table> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_UPLOAD . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'fmDefault\');" class="operationButton">'; ?> </p> </form>
?> <p><?php echo TEXT_EDIT_INTRO; ?> </p> <p><?php echo TEXT_MANUFACTURERS_NAME . '<br>' . osc_draw_input_field('manufacturers_name', $mInfo->manufacturers_name); ?> </p> <p><?php echo tep_image('../images/' . $mInfo->manufacturers_image, $mInfo->manufacturers_name) . '<br>' . DIR_WS_CATALOG . 'images/<br><b>' . $mInfo->manufacturers_image . '</b>'; ?> </p> <p><?php echo TEXT_MANUFACTURERS_IMAGE . '<br>' . osc_draw_file_field('manufacturers_image'); ?> </p> <p> <?php echo TEXT_MANUFACTURERS_URL; foreach ($osC_Language->getAll() as $l) { echo '<br>' . tep_image('../includes/languages/' . $l['directory'] . '/images/' . $l['image'], $l['name']) . ' ' . osc_draw_input_field('manufacturers_url[' . $l['id'] . ']', tep_get_manufacturer_url($mInfo->manufacturers_id, $l['id'])); } ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_SAVE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'mDefault\');" class="operationButton">'; ?> </p>
$Qcd->execute(); $categories_name = array(); while ($Qcd->next()) { $categories_name[$Qcd->valueInt('language_id')] = $Qcd->value('categories_name'); } foreach ($osC_Language->getAll() as $l) { echo '<br>' . tep_image('../includes/languages/' . $l['directory'] . '/images/' . $l['image'], $l['name']) . ' ' . osc_draw_input_field('categories_name[' . $l['id'] . ']', isset($categories_name[$l['id']]) ? $categories_name[$l['id']] : ''); } ?> </p> <p><?php echo tep_image('../images/' . $cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . DIR_WS_CATALOG . 'images/<br><b>' . $cInfo->categories_image . '</b>'; ?> </p> <p><?php echo TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . osc_draw_file_field('categories_image'); ?> </p> <p><?php echo TEXT_EDIT_SORT_ORDER . '<br>' . osc_draw_input_field('sort_order', $cInfo->sort_order); ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_UPDATE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton">'; ?> </p> </form> </div> </div>
?> </p> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php for ($i = 0; $i < 10; $i++) { ?> <tr> <td width="40%"><?php echo '<b>' . $osC_Language->get('field_file') . '</b>'; ?> </td> <td width="60%"><?php echo osc_draw_file_field('file_' . $i, true); ?> </td> </tr> <?php } ?> </table> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_upload') . '" 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>
<td width="40%"><?php echo '<b>' . $osC_Language->get('field_group') . '</b>'; ?> </td> <td width="60%"><?php echo osc_draw_pull_down_menu('group', $groups_array) . $osC_Language->get('field_group_new') . '<br />' . osc_draw_input_field('group_new', null, 'style="width: 100%;"'); ?> </td> </tr> <tr> <td width="40%"><?php echo '<b>' . $osC_Language->get('field_image') . '</b>'; ?> </td> <td width="60%"><?php echo osc_draw_file_field('image', true) . ' ' . $osC_Language->get('field_image_local') . '<br />' . realpath('../images/') . '/' . osc_draw_input_field('image_local'); ?> </td> </tr> <tr> <td width="40%"><?php echo '<b>' . $osC_Language->get('field_image_target') . '</b>'; ?> </td> <td width="60%"><?php echo realpath('../images') . '/' . osc_draw_input_field('image_target'); ?> </td> </tr> <tr> <td width="40%"><?php