Example #1
0
              </tr>
              <tr>
                <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo TEXT_ATTACH_FILE;
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><div id="extrarows" style="position:relative; padding:0; margin:0"><?php 
    echo tep_draw_file_field('attach_file[0]', 'size="44"');
    ?>
</div></td>
                <td><?php 
    echo '<a href="javascript:void(0)" onclick="addFileRows(document.mail_form.extrarows);">' . tep_image(DIR_WS_ICONS . 'icon_arrow_down.png', 'Add more rows for file attachments') . '</a>';
    ?>
</td>
              </tr>
              <tr>
                <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
Example #2
0
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
     } else {
         $contents[] = array('text' => '<br>' . tep_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_backup.gif', IMAGE_BACKUP) . '&nbsp;<a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'restore':
     $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
     $contents[] = array('text' => tep_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="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a>&nbsp;<a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'restorelocal':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
     $contents = array('form' => tep_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
     $contents[] = array('text' => '<br>' . tep_draw_file_field('sql_file'));
     $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_restore.gif', IMAGE_RESTORE) . '&nbsp;<a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
     $contents = array('form' => tep_draw_form('delete', FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($buInfo) && is_object($buInfo)) {
         $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restore') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
Example #3
0
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>');
     $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $category_inputs_string = '';
     $languages = tep_get_languages();
     //	echo "HIER".DIR_WS_CATALOG_IMAGES . $cInfo->categories_image. $cInfo->categories_name;
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id']));
     }
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $category_short_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('short_description[' . $languages[$i]['id'] . ']', tep_get_category_short_description($cInfo->categories_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
     $contents[] = array('text' => '<br>' . TEXT_EDIT_SHORT_DESCRIPTION . $category_short_inputs_string);
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->categories_image . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('categories_image'));
     $contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
     if ($cInfo->categories_status == 1) {
         $online = true;
         $offline = false;
     } else {
         $online = false;
         $offline = true;
     }
     $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_STATUS . '<br>' . tep_draw_radio_field('categories_status', 1, $online) . ON . '<br>' . tep_draw_radio_field('categories_status', 0, $offline) . OFF);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_category':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</b>');
     $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
Example #4
0
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . tep_draw_input_field('banners_image_local', isset($bInfo->banners_image) ? $bInfo->banners_image : '');
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_BANNERS_IMAGE_TARGET;
    ?>
</td>
            <td class="main"><?php 
Example #5
0
<?php 
    }
    ?>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_CATEGORY_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . tep_draw_file_field('image') . (tep_not_null($cInfo->image) ? '<br><span class="smallText">' . tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . $cInfo->image . ' &nbsp; ' . tep_draw_checkbox_field('image_delete', '1', false) . TEXT_IMAGE_DELETE . '</span>' : '');
    ?>
</td>
          </tr>
		</table>
<?php 
    echo tep_load_blocks($cInfo->categories_id, 'boards_category');
    ?>
		<table border="0" cellspacing="0" cellpadding="1" width="100%">
		  <tr>
			<td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '10', '10');
    ?>
</td>
		  </tr>
<?php 
Example #6
0
        echo '    <th>' . TABLE_HEADING_IMAGE . '</th>' . "\n";
    }
    ?>
              <th class="calign"><?php 
    echo TABLE_HEADING_ORDER;
    ?>
</th>
            </tr>
            <tr>
              <td><div class="rpad"><?php 
    echo tep_draw_input_field('name');
    ?>
</div></td>
<?php 
    if ($name_array['image_status'] == '1') {
        echo '  <td>' . tep_draw_file_field('image') . '</td>' . "\n";
    }
    ?>
              <td class="calign"><?php 
    echo tep_draw_input_field('order', '', 'size="5"');
    ?>
</td>
            </tr>
<?php 
    $buttons = array('<a href="' . tep_href_link($g_script, tep_get_all_get_params('action') . 'action=options_list') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>', tep_image_submit('button_insert.gif', IMAGE_INSERT));
    ?>
          </table><div class="formButtons"><?php 
    echo implode('', $buttons);
    ?>
</div></form></div>
        </div>
Example #7
0
                <tr>
                  <td class="main" valign="top"><?php echo TEXT_BANNERS_GROUP; ?></td>
                  <td class="main"><?php echo tep_draw_pull_down_menu('affiliate_banners_group', $groups_array, $abInfo->affiliate_banners_group) . TEXT_BANNERS_NEW_GROUP . '<br>' . tep_draw_input_field('new_affiliate_banners_group', '', '', ((sizeof($groups_array) > 0) ? false : true)); ?></td>
                </tr>
                <tr>
                  <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
                </tr>
    */
    ?>
            <tr>
              <td class="main" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
              <td class="main"><?php 
    echo tep_draw_file_field('affiliate_banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . 'banners/' . tep_draw_input_field('affiliate_banners_image_local', $abInfo->affiliate_banners_image);
    ?>
</td>
            </tr>
            <tr>
              <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
            </tr>
            <tr>
              <td class="main"><?php 
    echo TEXT_BANNERS_IMAGE_TARGET;
    ?>
</td>
              <td class="main"><?php 
Example #8
0
              </div>
<?php 
        }
        ?>
            </div>
            <div class="bounder inimg vmargin add_field_section">
              <label class="floater"><?php 
        echo TEXT_INFO_ATTACH_FILE . ':';
        ?>
</label>
              <div class="floater rspacer"><?php 
        echo '<a href="' . tep_href_link($g_script, tep_get_all_get_params()) . '" class="add_button">' . tep_image(DIR_WS_ICONS . 'icon_arrow_down.png', TEXT_INFO_ADD_FILES) . '</a>';
        ?>
</div>
              <div class="floater add_field"><?php 
        echo tep_draw_file_field('attach_file[]', 'class="wider"');
        ?>
</div>
            </div>

            <div class="formButtons">
<?php 
        if ($subaction != 'new') {
            $buttons[] = '<a href="' . tep_href_link($g_script, tep_get_all_get_params('he_id', 'ticket_id', 'action', 'subaction') . 'action=view&he_id=' . $entry['helpdesk_entries_id']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
        } else {
            $buttons[] = '<a href="' . tep_href_link($g_script, tep_get_all_get_params('he_id', 'action', 'subaction')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
        }
        $buttons[] = tep_image_submit('button_confirm.gif', IMAGE_CONFIRM, 'class="dflt" name="update"');
        echo implode('', $buttons);
        ?>
            </div>
Example #9
0
    ?>
        </div>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'edit':
            $content_query = $g_db->query("select auto_id, content_id, content_name, content_text, content_type, filename, sort_id, status_id from " . TABLE_DOWNLOAD . " where auto_id = '" . (int) $ddID . "'");
            $content_array = $g_db->fetch_array($content_query);
            $heading[] = array('text' => '<b>' . sprintf(TEXT_HEADING_EDIT_CONTENT, $content_array['content_name']) . '</b>');
            $contents[] = array('form' => tep_draw_form('content_edit', $g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $content_array['auto_id'] . '&action=edit_confirm', 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('auto_id', $content_array['auto_id']));
            $contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'update_entry.png', IMAGE_EDIT));
            $contents[] = array('text' => TEXT_INFO_EDIT_CONTENT_INTRO);
            $contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_NAME . '<br />' . tep_draw_input_field('content_name', $content_array['content_name'], 'class="wider"'));
            $contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_TEXT . '<br />' . tep_draw_textarea_field('content_text', $content_array['content_text'], '', 12));
            $contents[] = array('text' => TEXT_INFO_ATTACH_FILE . '<br />' . tep_draw_file_field('attach_file', 'class="wider"'));
            $contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_FILENAME . '<br />' . tep_draw_input_field('direct_filename', $content_array['filename'], 'class="wider"'));
            $contents[] = array('text' => TEXT_INFO_SORT . '<br />' . tep_draw_input_field('sort_id', $content_array['sort_id'], 'size="2" maxlength="2"'));
            $contents[] = array('text' => tep_draw_hidden_field('content_type', $content_array['content_type']) . tep_draw_hidden_field('content_id', $content_array['content_id']) . tep_draw_checkbox_field('status_id', 'on', $content_array['status_id'] == 1 ? true : false) . '&nbsp;' . TEXT_INFO_ENABLED);
            $buttons = array('<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $content_array['auto_id']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>', tep_image_submit('button_update.gif', IMAGE_UPDATE));
            $contents[] = array('class' => 'calign', 'text' => implode('', $buttons));
            break;
        case 'delete':
            if ($rows > 0 && isset($ddInfo) && is_object($ddInfo)) {
                $content_query = $g_db->query("select auto_id, content_name from " . TABLE_DOWNLOAD . " where auto_id = '" . (int) $ddID . "'");
                $content_array = $g_db->fetch_array($content_query);
                $heading[] = array('text' => '<b>' . sprintf(TEXT_HEADING_DELETE_CONTENT, $content_array['content_name']) . '</b>');
                $contents[] = array('form' => tep_draw_form('form_content', $g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $ddID . '&action=delete_confirm') . tep_draw_hidden_field('auto_id', $content_array['auto_id']));
                $contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'final_notice.png', IMAGE_CONFIRM));
                $contents[] = array('text' => TEXT_INFO_DELETE_CONTENT_INTRO);
                $contents[] = array('text' => TEXT_INFO_NAME . '<br /><b>' . $content_array['content_name'] . '</b>');
                ?>
';
  var newText<?php 
                echo $i;
                ?>
 = '<?php 
                echo str_replace("'", "\\'", '' . tep_draw_checkbox_field('boards_images_delete[' . $i . ']', '1', true, 'onclick="if (this.checked==false) document.getElementById(\'boards_images' . $i . '\').innerHTML = origText' . $i . ';"') . ' <a href="' . $images_dir . $images[$i] . '" target="_blank" onmouseover="document.getElementById(\'bimages' . $i . '\').style.display = \'\';" onmouseout="document.getElementById(\'bimages' . $i . '\').style.display = \'none\';" id="bimg' . $i . '">' . BOARDS_IMAGE_DELETE . '</a>');
                ?>
';
//--></script>
<?php 
            }
            ?>
		  <tr>
			<td><?php 
            echo '<span style="position: absolute; display: none;" id="bimages' . $i . '">' . tep_image($images_dir . $images[$i], $adv_info['boards_name'], '', '', 'style="border: 1px solid black; margin-left: 30px; margin-top: -100px;"') . '</span>' . tep_draw_file_field('boards_images[' . $i . ']') . tep_draw_hidden_field('boards_existing_images[' . $i . ']', $images[$i]);
            ?>
</td>
			<td width="50%" align="right" id="boards_images<?php 
            echo $i;
            ?>
"><?php 
            if (tep_not_null($images[$i]) && file_exists(DIR_FS_CATALOG . $images_dir . $images[$i])) {
                echo $orig_text;
            } else {
                echo '&nbsp;';
            }
            ?>
</td>
		  </tr>
<?php 
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . 'banners/' . tep_draw_input_field('banners_image_local', isset($bInfo->banners_image) ? preg_replace('/^banners\\//', '', $bInfo->banners_image) : '');
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
    echo TEXT_BANNERS_IMAGE_TARGET;
    ?>
</td>
            <td class="main"><?php 
Example #12
0
    for ($j = 0; $j < 10; $j++) {
        if (isset($pInfo->products_images[$j])) {
            $image = $pInfo->products_images[$j];
        } else {
            $image = array();
        }
        ?>
			  <tr>
				<td colspan="3"><?php 
        echo tep_draw_separator('pixel_trans.gif', '1', '5');
        ?>
</td>
			  </tr>
			  <tr valign="top">
				<td class="smallText"><?php 
        echo tep_draw_file_field('products_images_' . $j);
        if (tep_not_null($image['image']) && file_exists(DIR_FS_CATALOG_IMAGES . $image['image'])) {
            echo '<br />' . "\n" . '<a href="" onMouseOver="document.getElementById(\'p_image_' . $j . '\').style.display = \'\';" onMouseOut="document.getElementById(\'p_image_' . $j . '\').style.display = \'none\';" onClick="return false;"><u>' . $image['image'] . '</u></a> &nbsp; ' . tep_draw_checkbox_field('delete_additional_' . $j, '1', false) . TEXT_DELETE_IMAGE . '<div id="p_image_' . $j . '" style="display: none; position: absolute;">' . tep_image(DIR_WS_CATALOG_IMAGES . $image['image'], '') . '</div>';
        }
        echo tep_draw_hidden_field('products_images_id[' . $j . ']', $image['id']);
        ?>
</td>
				<td>&nbsp;</td>
				<td class="main"><?php 
        for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
            echo tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('products_images_title[' . $j . '][' . $languages[$i]['id'] . ']', isset($products_images_title[$j][$languages[$i]['id']]) ? $products_images_title[$j][$languages[$i]['id']] : tep_get_products_images_title($image['id'], $languages[$i]['id']), 'size="40"') . '<br />';
        }
        ?>
</td>
			  </tr>
<?php 
Example #13
0
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_LINK . '<br>' . tep_draw_input_field('slideshow_link', '', ' size=32'));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TARGET . '<br>' . tep_draw_input_field('slideshow_target'));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_ACTIVE . '<br>' . tep_select_option(array('yes', 'no'), slideshow_active, 'yes'));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_CG_HIDE . '<br>' . tep_draw_input_field('slideshow_cg_hide'));
     $customers_group_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id");
     while ($customers_group = tep_db_fetch_array($customers_group_query)) {
         $contents[] = array('text' => $customers_group['customers_group_id'] . ' = ' . $customers_group['customers_group_name']);
     }
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_SORT_ORDER . '<br>' . tep_draw_input_field('slideshow_sort_order'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . tep_href_link(FILENAME_SLIDESHOW, 'page=' . $_GET['page']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_SLIDESHOW . '</b>');
     $contents = array('form' => tep_draw_form('links', FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&amp;tID=' . $trInfo->slideshow_id . '&amp;action=save', 'POST', ' enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_IMAGE . '<br>' . tep_draw_file_field('slideshow_image') . '<br>' . $trInfo->slideshow_image);
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TITLE . '<br>' . tep_draw_input_field('slideshow_title', $trInfo->slideshow_title, ' size=32'));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_LINK . '<br>' . tep_draw_input_field('slideshow_link', $trInfo->slideshow_link, ' size=32'));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TARGET . '<br>' . tep_draw_input_field('slideshow_target', $trInfo->slideshow_target));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_ACTIVE . '<br>' . tep_select_option(array('yes', 'no'), slideshow_active, $trInfo->slideshow_active));
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_CG_HIDE . '<br>' . tep_draw_input_field('slideshow_cg_hide', $trInfo->slideshow_cg_hide));
     $customers_group_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id");
     while ($customers_group = tep_db_fetch_array($customers_group_query)) {
         $contents[] = array('text' => $customers_group['customers_group_id'] . ' = ' . $customers_group['customers_group_name']);
     }
     $contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_SORT_ORDER . '<br>' . tep_draw_input_field('slideshow_sort_order', $trInfo->slideshow_sort_order));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&amp;tID=' . $trInfo->slideshow_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SLIDESHOW . '</b>');
     $contents = array('form' => tep_draw_form('links', FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&amp;tID=' . $trInfo->slideshow_id . '&amp;action=deleteconfirm'));
                <?php 
for ($img = 1; $img <= NO_OF_DYNAMIC_MOPICS; $img++) {
    $next = $img;
    $next++;
    if (!file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext) && file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $next . $ext)) {
        echo '<tr class="messageStackError">';
    } else {
        echo '<tr bgcolor="#eeeeee">';
    }
    ?>
                  <td class="main"><?php 
    echo TEXT_EXTRA_IMAGE . ' (' . $img . ')';
    ?>
</td>
                  <td class="main"><?php 
    echo '&nbsp;' . tep_draw_file_field('products_image_' . $img);
    ?>
</td>
                  <td class="main">
                  <?php 
    if (file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext)) {
        echo '&nbsp;' . $base_image . '_' . $img . $ext . '</a';
    }
    ?>
</td>
                  <td class="main" align="center">
                  <?php 
    if (file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext)) {
        echo tep_draw_checkbox_field('delete_image' . $img);
    }
    ?>
Example #15
0
        reset($boards_conditions_array);
        while (list($condition_id, $condition_descr) = each($boards_conditions_array)) {
            echo tep_draw_radio_field('boards_condition', $condition_id, $condition_id == $adv_info['boards_condition']) . ' ' . $condition_descr . '<br />' . "\n";
        }
        ?>
</td>
	  </tr>
	  <tr>
		<td width="200"><?php 
        echo BOARDS_ENTRY_IMAGES;
        ?>
</td>
		<td id="b_images"><script language="javascript" type="text/javascript"><!--
  var k = 0;
  var newField = '<?php 
        echo tep_draw_input_field('', '+', 'style="width: 30px; text-align: center;" onclick="if (this.value!=\\\'&ndash;\\\') { this.value = \\\'&ndash;\\\'; if (k < 10) { document.getElementById(\\\'b_images\\\').innerHTML += newField; k ++; } }"', 'button', false) . ' ' . tep_draw_file_field('boards_images[]') . '<br />';
        ?>
';
  document.write(newField);
//--></script></td>
	  </tr>
	</table>
	</fieldset>
	<fieldset>
	<legend><?php 
        echo BOARDS_SETTINGS_TITLE;
        ?>
</legend>
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
	  <tr>
		<td width="200"><?php 
Example #16
0
     $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'action=insert', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_file_field('image'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order'));
     $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default', 'on') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $HTTP_GET_VARS['lID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</strong>');
     $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name', $lInfo->name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code', $lInfo->code));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_file_field('image') . (tep_not_null($lInfo->image) ? '<br>' . DIR_WS_CATALOG_IMAGES . '<strong>' . $lInfo->image . '</strong>' : ''));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $lInfo->sort_order, 'size="3"'));
     if ($lInfo->default_status == '0') {
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default', 'on') . ' ' . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</strong>');
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><strong>' . $lInfo->name . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array('text' => '<strong>' . $lInfo->name . '</strong>');
Example #17
0
				</table></td>
			  </tr>
			  <tr>
				<td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="2">
				  <tr>
<?php 
    if (SHOP_ID == 1) {
        echo tep_draw_form('download', FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=upload', 'post', 'enctype="multipart/form-data"');
        $amazon_shops = array(array('id' => '', 'text' => TEXT_UPLOAD_ORDERS_CHOOSE_SHOP));
        $amazon_shops_query = tep_db_query("select shops_id, shops_name from " . TABLE_SHOPS . " where shops_name like '%amazon%' or shops_name like '%barnes%' order by sort_order, shops_name");
        while ($amazon_shops_row = tep_db_fetch_array($amazon_shops_query)) {
            $amazon_shops[] = array('id' => $amazon_shops_row['shops_id'], 'text' => $amazon_shops_row['shops_name']);
        }
        ?>
					<td class="smallText"><?php 
        echo tep_draw_file_field('amazon_file', false, 'size="8"');
        ?>
<br /><?php 
        echo tep_draw_checkbox_field('upload_file_back', '1', false);
        ?>
загрузка файла-подтверждения</td>
					<td class="smallText"><?php 
        echo tep_draw_pull_down_menu('amazon_shop_id', $amazon_shops);
        ?>
<br /><a href="<?php 
        echo tep_href_link(FILENAME_ORDERS, 'action=download_bn_file');
        ?>
">Скачать файл заказов B&N</a></td>
					<td class="smallText"><?php 
        echo tep_image_submit('button_upload.gif', IMAGE_UPLOAD);
        ?>
Example #18
0
?>
<div id="upload_result"></div>
<?php 
if (empty($action)) {
    ?>
    <div class="comboHeading" style="border: 1px solid #777;">
      <?php 
    echo tep_draw_form("insert", $g_script, 'action=insert', 'post', 'id="core_upload_form" enctype="multipart/form-data"');
    ?>
        <div><?php 
    echo TEXT_FILE_UPLOAD_FOLDER . '&nbsp;' . basename(DIR_WS_CATALOG_IMAGES) . '/' . $sub_folder;
    ?>
</div>
        <div style="padding: 8px 0px 8px 0px;">
<?php 
    echo TEXT_FILE_UPLOAD . '&nbsp;' . tep_draw_file_field('image');
    echo tep_draw_hidden_field('module', 'image_upload');
    if (!empty($sub_folder)) {
        echo tep_draw_hidden_field('sub_path', $sub_folder);
    }
    ?>
        </div>
        <div style="display: none;"><?php 
    echo tep_image_submit('button_insert.gif', IMAGE_INSERT, 'class="upload_button"');
    ?>
</div>
      </form>
      <div style="clear: both; padding: 8px 0px 4px 0px;"><hr /></div>
      <div id="#image_list">
<?php 
    $j = count($subdirs_array);
Example #19
0
    } else {
        if (DEBUG_MODE == 'on') {
            ?>
          <tr>
            <td colspan="2"><?php 
            echo tep_draw_separator('pixel_trans.gif', '1', '10');
            ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
            echo TEXT_TEMPLATE_FILENAME;
            ?>
</td>
            <td class="main"><?php 
            echo tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . tep_draw_file_field('templates_filename') . (tep_not_null($tInfo->templates_filename) ? '<br>' . tep_draw_separator('pixel_trans.gif', '18', '1') . '&nbsp;<small>' . (!file_exists(DIR_FS_CATALOG_TEMPLATES . basename($tInfo->templates_filename)) ? TEXT_FILE_NOT_FOUND . ' ' : '') . DIR_WS_CATALOG_TEMPLATES . '<strong>' . basename($tInfo->templates_filename) . '</strong></small>' : '');
            ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
            echo tep_draw_separator('pixel_trans.gif', '1', '10');
            ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
            echo TEXT_TEMPLATE_FILENAME_CONTENT;
            ?>
</td>
            <td class="main"><?php 
Example #20
0
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_PAGES_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_file_field('pages_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . $pInfo->pages_image . tep_draw_hidden_field('pages_previous_image', $pInfo->pages_image);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
<?php 
    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
        ?>
          <tr>
            <td class="main"><?php 
        if ($i == 0) {
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete_product':
            $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_PRODUCT . '</strong>');
            $contents = array('form' => tep_draw_form('products', FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . '&action=delete_product_confirm') . tep_draw_hidden_field('products_id', $pInfo->products_id));
            $contents[] = array('text' => TEXT_DELETE_PRODUCT_INTRO);
            $contents[] = array('text' => '<br><strong>' . $pInfo->products_name . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . '&pID=' . $pInfo->products_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'upload':
            $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_PRODUCT . '</strong>');
            $contents = array('form' => tep_draw_form('products', FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . '&action=upload_confirm', 'post', 'enctype="multipart/form-data"'));
            $contents[] = array('text' => TEXT_UPLOAD_PRODUCTS_INTRO);
            $contents[] = array('text' => '<br>' . tep_draw_file_field('products_file'));
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_upload.gif', IMAGE_UPLOAD) . ' <a href="' . tep_href_link(FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if ($rows > 0) {
                if (isset($pInfo) && is_object($pInfo)) {
                    // product info box contents
                    $heading[] = array('text' => '<strong>' . $pInfo->products_name . '</strong>');
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . '&pID=' . $pInfo->products_id . '&action=edit_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_FOREIGN_PRODUCTS, 'page=' . $page . '&pID=' . $pInfo->products_id . '&action=delete_product') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                    $contents[] = array('text' => '<br>' . TEXT_AUTHOR . ' ' . $pInfo->products_author);
                    $contents[] = array('text' => TEXT_MANUFACTURER . ' ' . $pInfo->products_manufacturer);
                    if (tep_not_null($pInfo->products_date_available)) {
                        $contents[] = array('text' => TEXT_DATE_AVAILABLE . ' ' . tep_date_short($pInfo->products_date_available));
                    }
                    if (tep_not_null($pInfo->products_available_in)) {
                        $contents[] = array('text' => sprintf(TEXT_AVAILABLE_IN, $pInfo->products_available_in));
Example #22
0
     echo '<table width="100%">' . "\n";
     foreach ($messages as $message) {
         echo '<tr><td ' . ($error ? 'class="messageStackError"' : 'class="messageStackWarning"') . '>' . $message . "</td></tr>\n";
     }
     echo "</table>\n";
 }
 echo tep_draw_form('value_entry', FILENAME_EXTRA_VALUES, 'action=' . ($action == 'new' ? 'insert' : 'update') . '&amp;vid=' . $vid . '&amp;list_id=' . $list_id . '&amp;parent=' . $parent_id . ($confirmation_needed ? '&amp;confirm=yes' : ''), 'post', 'enctype="multipart/form-data"');
 echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">' . "\n";
 echo '  <tr>' . "\n";
 echo '    <td width="130" class="main">' . ENTRY_ORDER . '</td><td>' . tep_draw_input_field('sort_order', $value['sort_order']) . "</td>\n";
 echo '  </tr>' . "\n";
 echo '  <tr>' . "\n";
 echo '    <td class="main">' . ENTRY_VALUE . '</td><td>' . tep_draw_input_field('value', $value['epf_value'], 'size=64 maxlength=64') . "</td>\n";
 echo '  </tr>' . "\n";
 echo '  <tr>' . "\n";
 echo '    <td class="main">' . ENTRY_IMAGE . '</td><td>' . tep_draw_file_field('values_image') . '<br>' . $value['value_image'] . "</td>\n";
 echo '  </tr>' . "\n";
 echo '</table><br>' . "\n";
 if ($field_info['epf_multi_select']) {
     if ($field_info['epf_has_linked_field']) {
         $link_query = tep_db_query("select * from " . TABLE_EPF . " where epf_id = " . (int) $field_info['epf_links_to']);
         $linked_field_info = tep_db_fetch_array($link_query);
         $link_values = tep_build_epf_pulldown($field_info['epf_links_to'], $lid, array(array('id' => 0, 'text' => ENTRY_NO_VALUE_REQUIRED)));
         echo '<p>' . ENTRY_VALUE_REQUIREMENT . '<br>';
         if ($linked_field_info['epf_checked_entry']) {
             $col = 0;
             echo '<table><tr>';
             foreach ($link_values as $lval) {
                 $col++;
                 if ($col > $linked_field_info['epf_num_columns']) {
                     echo '</tr><tr>';
Example #23
0
                      <td class="main"><?php 
        echo TEXT_MANUFACTURERS_NAME;
        ?>
</td>
                      <td><?php 
        echo tep_draw_input_field('manufacturers_name', $mInfo->manufacturers_name);
        ?>
</td>
                    </tr>
                    <tr>
                      <td class="main"><?php 
        echo TEXT_MANUFACTURERS_IMAGE;
        ?>
</td>
                      <td class="main"><?php 
        echo tep_draw_file_field('manufacturers_image') . '<br>' . $mInfo->manufacturers_image;
        ?>
</td>
                    </tr>
                    <tr>
                      <td class="main"><br><?php 
        echo TEXT_MANUFACTURERS_FEATURED;
        echo '&nbsp;<span title="' . MANUFACTURERS_FEATURED_HELP . '|' . MANUFACTURERS_FEATURED_HELP_TEXT . '">' . tep_image(DIR_WS_ICONS . 'help.png', '');
        ?>
</span></td>
                      <td class="main"><br><?php 
        echo tep_draw_radio_field('manufacturers_featured', '1', $in_fms_status) . '&nbsp;' . TEXT_MANUFACTURERS_YES . '&nbsp;' . tep_draw_radio_field('manufacturers_featured', '0', $out_fms_status) . '&nbsp;' . TEXT_MANUFACTURERS_NO;
        ?>
</td>
                    </tr>
                    <tr>
Example #24
0
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_NEWS_CATEGORIES . '</b>');
     $contents = array('form' => tep_draw_form('newnewscategories', FILENAME_NEWS, 'action=insert_news_categories&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_NEW_NEWS_CATEGORIES_INTRO);
     $news_categories_inputs_string = '';
     $contents[] = array('text' => '<br>' . TEXT_NEWS_CATEGORIES_NAME . '<br>' . tep_draw_input_field('news_categories_name'));
     $contents[] = array('text' => '<br>' . TEXT_NEWS_CATEGORIES_ICON . '<br>' . tep_draw_file_field('icon'));
     $contents[] = array('text' => '<br>' . TEXT_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', '', 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_NEWS, 'cPath=' . $cPath) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit_news_categories':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_NEWS_CATEGORIES . '</b>');
     $contents = array('form' => tep_draw_form('news_categories', FILENAME_NEWS, 'action=update_news_categories&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('news_categories_id', $cInfo->news_categories_id));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_EDIT_NEWS_CATEGORIES_NAME . '<br>' . tep_draw_input_field('news_categories_name', tep_get_news_categories_name($cInfo->news_categories_id)));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $cInfo->icon, $cInfo->news_categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->icon . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_EDIT_NEWS_CATEGORIES_ICON . '<br>' . tep_draw_file_field('icon'));
     $contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_NEWS, 'cPath=' . $cPath . '&cID=' . $cInfo->news_categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_news_categories':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_NEWS_CATEGORIES . '</b>');
     $contents = array('form' => tep_draw_form('news_categories', FILENAME_NEWS, 'action=delete_news_categories_confirm&cPath=' . $cPath) . tep_draw_hidden_field('news_categories_id', $cInfo->news_categories_id));
     $contents[] = array('text' => TEXT_DELETE_NEWS_CATEGORIES_INTRO);
     $contents[] = array('text' => '<br><b>' . $cInfo->news_categories_name . '</b>');
     if ($cInfo->childs_count > 0) {
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count));
     }
     if ($cInfo->news_count > 0) {
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->news_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_NEWS, 'cPath=' . $cPath . '&cID=' . $cInfo->news_categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
Example #25
0
    echo tep_load_blocks($aInfo->authors_id, 'author');
    ?>
		<table border="0" cellspacing="0" cellpadding="1" width="100%">
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td width="250" class="main"><?php 
    echo TEXT_AUTHORS_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . tep_draw_file_field('authors_image') . (tep_not_null($aInfo->authors_image) ? '<br><span class="smallText">' . tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . $aInfo->authors_image : '') . '</span>';
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
<?php 
    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
        ?>
          <tr valign="top">
            <td class="main" width="250"><?php 
        if ($i == 0) {
Example #26
0
</h1></div>
          </div>
          <div class="formArea"><?php 
    echo tep_draw_form('form_template_text', $g_script, $form_action, 'post', 'enctype="multipart/form-data"');
    ?>
<fieldset><legend><?php 
    echo HEADING_TITLE_UPLOAD;
    ?>
</legend>
            <div class="bounder infile vmargin">
              <label class="floater"><?php 
    echo TEXT_INFO_TEMPLATE_FILE;
    ?>
</label>
              <div class="floater lspacer"><?php 
    echo tep_draw_file_field('template_file');
    ?>
</div>
            </div>
            <div class="formButtons"><?php 
    echo tep_image_submit('button_upload.gif', IMAGE_UPLOAD);
    ?>
</div>
          </fieldset></form></div>
<?php 
    if (!empty($tID)) {
        $form_action = 'tID=' . $tID . '&action=update_template';
    } else {
        $form_action = 'action=insert_template_text';
    }
    ?>
Example #27
0
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
      </tr>
      <tr>
        <td><?php 
echo tep_draw_form('logo', FILENAME_STORE_LOGO, 'action=save', 'post', 'enctype="multipart/form-data"');
?>
          <table border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td class="main" valign="top"><?php 
echo TEXT_LOGO_IMAGE;
?>
</td>
              <td class="main"><?php 
echo tep_draw_file_field('store_logo');
?>
</td>
              <td class="smallText"><?php 
echo tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary');
?>
</td>
            </tr>
          </table>
        </form></td>
      </tr>
      <tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_FILE_MANAGER, tep_not_null($fInfo->name) ? 'info=' . urlencode($fInfo->name) : '') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'new_folder':
     $heading[] = array('text' => '<b>' . TEXT_NEW_FOLDER . '</b>');
     $contents = array('form' => tep_draw_form('folder', FILENAME_FILE_MANAGER, 'action=insert'));
     $contents[] = array('text' => TEXT_NEW_FOLDER_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_FILE_NAME . '<br>' . tep_draw_input_field('folder_name'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable == true ? tep_image_submit('button_save.gif', IMAGE_SAVE) : '') . ' <a href="' . tep_href_link(FILENAME_FILE_MANAGER, isset($HTTP_GET_VARS['info']) ? 'info=' . urlencode($HTTP_GET_VARS['info']) : '') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'upload':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
     $contents = array('form' => tep_draw_form('file', FILENAME_FILE_MANAGER, 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_UPLOAD_INTRO);
     $file_upload = '';
     for ($i = 1; $i < 6; $i++) {
         $file_upload .= tep_draw_file_field('file_' . $i) . '<br>';
     }
     $contents[] = array('text' => '<br>' . $file_upload);
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable == true ? tep_image_submit('button_upload.gif', IMAGE_UPLOAD) : '') . ' <a href="' . tep_href_link(FILENAME_FILE_MANAGER, isset($HTTP_GET_VARS['info']) ? 'info=' . urlencode($HTTP_GET_VARS['info']) : '') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($fInfo) && is_object($fInfo)) {
         $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'info=' . urlencode($fInfo->name) . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
         }
         $contents[] = array('text' => '<br>' . TEXT_FILE_NAME . ' <b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
             $contents[] = array('text' => '<br>' . TEXT_FILE_SIZE . ' <b>' . $fInfo->size . '</b>');
         }
         $contents[] = array('text' => '<br>' . TEXT_LAST_MODIFIED . ' ' . $fInfo->last_modified);
Example #29
0
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_NAME . '<br>' . tep_draw_input_field('manufacturers_name'));
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_IMAGE . '<br>' . tep_draw_file_field('manufacturers_image'));
     $manufacturer_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $HTTP_GET_VARS['mID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_NAME . '<br>' . tep_draw_input_field('manufacturers_name', $mInfo->manufacturers_name));
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_IMAGE . '<br>' . tep_draw_file_field('manufacturers_image') . '<br>' . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', tep_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
Example #30
0
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_NAME . '<br>' . tep_draw_input_field('name', $aInfo->room_type_name));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES_HOTEL . $aInfo->room_type_image, $aInfo->room_type_name, '200', '150') . '<br>' . DIR_WS_CATALOG_IMAGES_HOTEL . '<br><b>' . $aInfo->room_type_image . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_INFO_IMAGE . '<br>' . tep_draw_file_field('roomtype_image'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_DESCRIPTION . '<br>' . tep_draw_textarea_field('description', 'soft', '40', '20', $aInfo->room_type_description));
     $contents[] = array('text' => '<br>' . TEXT_INFO_COUNT . '<br>' . tep_draw_input_field('count', $aInfo->room_type_count));
     $contents[] = array('text' => '<br>' . TEXT_INFO_PRICE . '<br>' . tep_draw_input_field('price', $aInfo->room_type_price) . 'VND');
     //$contents[] = array('text' => '<br>' . TEXT_INFO_CATEGORIES . '<br>' . tep_draw_input_field('catogories'));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES_HOTEL . $aInfo->image1, $aInfo->room_type_name, '200', '150') . '<br>' . DIR_WS_CATALOG_IMAGES_HOTEL . '<br><b>' . $aInfo->image1 . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_INFO_IMAGE1 . '<br>' . tep_draw_file_field('image1'));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES_HOTEL . $aInfo->image2, $aInfo->room_type_name, '200', '150') . '<br>' . DIR_WS_CATALOG_IMAGES_HOTEL . '<br><b>' . $aInfo->image2 . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_INFO_IMAGE2 . '<br>' . tep_draw_file_field('image2'));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES_HOTEL . $aInfo->image3, $aInfo->room_type_name, '200', '150') . '<br>' . DIR_WS_CATALOG_IMAGES_HOTEL . '<br><b>' . $aInfo->image3 . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_INFO_IMAGE3 . '<br>' . tep_draw_file_field('image3'));
     $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES_HOTEL . $aInfo->image4, $aInfo->room_type_name, '200', '150') . '<br>' . DIR_WS_CATALOG_IMAGES_HOTEL . '<br><b>' . $aInfo->image4 . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_INFO_IMAGE4 . '<br>' . tep_draw_file_field('image4'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_ROOMTYPE, 'aID=' . $aInfo->room_type_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . $aInfo->user_name . '</b>');
     $contents = array('form' => tep_draw_form('room_type', FILENAME_ROOMTYPE, 'aID=' . $aInfo->room_type_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $aInfo->room_type_name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_ROOMTYPE, 'aID=' . $aInfo->room_type_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($aInfo) && is_object($aInfo)) {
         $heading[] = array('text' => '<b>' . $aInfo->room_type_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ROOMTYPE, 'aID=' . $aInfo->room_type_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ROOMTYPE, 'aID=' . $aInfo->room_type_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
     }
     break;