예제 #1
0
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: faq_manager.php 001 2005-03-27 dave@open-operations.com
//
// only display when more than 1
if ($faqs_ids->RecordCount() > 0) {
    ?>
<ul class="b margin_t">
<?php 
    if ($fcPath == '') {
        $fcPath = zen_get_faq_path((int) $_GET['faqs_id']);
    }
    if ($module_show_faq_categories != '0') {
        $fcPath_new = zen_get_path_faq(zen_get_faqs_faq_category_id((int) $_GET['faqs_id']));
    }
    ?>
  	<?php 
    //echo (PREV_NEXT_FAQ);
    //echo ($position+1 . "/" . $counter);
    ?>
  	<?php 
    if ($position == 0) {
        ?>
    <li class="fl"><?php 
        echo TEXT_NO_PREV_PAGE;
        ?>
</li>
  	<?php 
    } else {
예제 #2
0
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: faq_manager.php 001 2005-03-27 dave@open-operations.com
//
$rows = 0;
while (!$faq_categories->EOF) {
    $rows++;
    $fcPath_new = zen_get_path_faq($faq_categories->fields['faq_categories_id']);
    // strio out 0_ from top level
    $fcPath_new = str_replace('=0_', '=', $fcPath_new);
    $width = (int) (100 / MAX_DISPLAY_FAQ_CATEGORIES_PER_ROW) . '%';
    $newrow = false;
    if ($rows / MAX_DISPLAY_FAQ_CATEGORIES_PER_ROW == floor($rows / MAX_DISPLAY_FAQ_CATEGORIES_PER_ROW) && $rows != $number_of_faq_categories) {
        $newrow = true;
    }
    if (!$faq_categories->fields['faq_categories_image']) {
        !($faq_categories->fields['faq_categories_image'] = 'pixel_trans.gif');
    }
    require $template->get_template_dir('tpl_index_faq_category_row.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/' . 'tpl_index_faq_category_row.php';
    $faq_categories->MoveNext();
}