示例#1
0
	    </ul>
      <!-- // PREVIEW TAB HEADER LOOP END //-->

    <?php 
    $languages = tep_get_languages();
    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
        // Language loop starts
        if (isset($_GET['read']) && $_GET['read'] == 'only') {
            $pInfo->products_name = tep_get_products_name($pInfo->products_id, $languages[$i]['id']);
            // BOF Open Featured Sets
            $pInfo->products_short = tep_get_products_short($pInfo->products_id, $languages[$i]['id']);
            // EOF Open Featured Sets
            $pInfo->products_description = tep_get_products_description($pInfo->products_id, $languages[$i]['id']);
            // BOF: Tabs by PGM
            $pInfo->tab1 = tep_get_tab1($pInfo->products_id, $languages[$i]['id']);
            $pInfo->tab2 = tep_get_tab2($pInfo->products_id, $languages[$i]['id']);
            $pInfo->tab3 = tep_get_tab3($pInfo->products_id, $languages[$i]['id']);
            $pInfo->tab4 = tep_get_tab4($pInfo->products_id, $languages[$i]['id']);
            $pInfo->tab5 = tep_get_tab5($pInfo->products_id, $languages[$i]['id']);
            $pInfo->tab6 = tep_get_tab6($pInfo->products_id, $languages[$i]['id']);
            // EOF: Tabs by PGM
            $pInfo->products_url = tep_get_products_url($pInfo->products_id, $languages[$i]['id']);
        } else {
            $pInfo->products_name = tep_db_prepare_input($products_name[$languages[$i]['id']]);
            // BOF Open Featured Sets
            $pInfo->products_short = tep_db_prepare_input($products_short[$languages[$i]['id']]);
            // EOF Open Featured Sets
            $pInfo->products_description = tep_db_prepare_input($products_description[$languages[$i]['id']]);
            // BOF: Tabs by PGM
            $pInfo->tab1 = tep_db_prepare_input($tab1[$languages[$i]['id']]);
            $pInfo->tab2 = tep_db_prepare_input($tab2[$languages[$i]['id']]);
示例#2
0
        echo tep_draw_textarea_field('tab1[' . $languages[$i]['id'] . ']', '70', '10', isset($tab1[$languages[$i]['id']]) ? stripslashes($tab1[$languages[$i]['id']]) : tep_get_tab1($pInfo->products_id, $languages[$i]['id']), 'id = tab1[' . $languages[$i]['id'] . '] class="ckeditor"');
    } else {
        echo tep_draw_textarea_field('tab1[' . $languages[$i]['id'] . ']', '70', '10', isset($tab1[$languages[$i]['id']]) ? stripslashes($tab1[$languages[$i]['id']]) : tep_get_tab1($pInfo->products_id, $languages[$i]['id']));
    }
    ?>
	</div>

	<div id="descriptiontabs<?php 
    echo $i;
    ?>
-2">
      <?php 
    if (HTML_AREA_WYSIWYG_DISABLE == 'Enable') {
        echo tep_draw_textarea_field('tab2[' . $languages[$i]['id'] . ']', '70', '10', isset($tab2[$languages[$i]['id']]) ? stripslashes($tab2[$languages[$i]['id']]) : tep_get_tab2($pInfo->products_id, $languages[$i]['id']), 'id = tab2[' . $languages[$i]['id'] . '] class="ckeditor"');
    } else {
        echo tep_draw_textarea_field('tab2[' . $languages[$i]['id'] . ']', '70', '10', isset($tab2[$languages[$i]['id']]) ? stripslashes($tab2[$languages[$i]['id']]) : tep_get_tab2($pInfo->products_id, $languages[$i]['id']));
    }
    ?>
	</div>

	<div id="descriptiontabs<?php 
    echo $i;
    ?>
-3">
      <?php 
    if (HTML_AREA_WYSIWYG_DISABLE == 'Enable') {
        echo tep_draw_textarea_field('tab3[' . $languages[$i]['id'] . ']', '70', '10', isset($tab3[$languages[$i]['id']]) ? stripslashes($tab3[$languages[$i]['id']]) : tep_get_tab3($pInfo->products_id, $languages[$i]['id']), 'id = tab3[' . $languages[$i]['id'] . '] class="ckeditor"');
    } else {
        echo tep_draw_textarea_field('tab3[' . $languages[$i]['id'] . ']', '70', '10', isset($tab3[$languages[$i]['id']]) ? stripslashes($tab3[$languages[$i]['id']]) : tep_get_tab3($pInfo->products_id, $languages[$i]['id']));
    }
    ?>