Exemplo n.º 1
0
// | 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
//
// 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;
        ?>
Exemplo n.º 2
0
// | 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
//
?>
<div class="margin_t">
<?php 
$group_id = zen_get_configuration_key_value('FAQ_LISTS_GROUP_ID_ALL');
if ($faqs_all_split->number_of_rows > 0) {
    $faqs_all = $db->Execute($faqs_all_split->sql_query);
    $category_displayed = '';
    while (!$faqs_all->EOF) {
        $fcPath = zen_get_faq_path($faqs_all->fields['faqs_id']);
        if (FAQ_ALL_DISPLAY_CATEGORY != '0' && $category_displayed != $faqs_all->fields['faq_categories_name']) {
            $category_displayed = $faqs_all->fields['faq_categories_name'];
            echo '<h3>' . $category_displayed . '</h3>';
        }
        echo '<div class="margin_t">';
        if (FAQ_ALL_LIST_NAME != '0') {
            $display_faqs_name = '<a class="u" href="' . zen_href_link(zen_get_info_faq_page($faqs_all->fields['faqs_id']), 'fcPath=' . $fcPath . '&faqs_id=' . $faqs_all->fields['faqs_id']) . '">' . $faqs_all->fields['faqs_name'] . '</a>' . str_repeat('<br clear="all" />', substr(FAQ_ALL_LIST_NAME, 3, 1));
        } else {
            $display_faqs_name = '';
        }
        $link = '<a href="' . zen_href_link(zen_get_info_faq_page($faqs_all->fields['faqs_id']), 'fcPath=' . $fcPath . '&faqs_id=' . $faqs_all->fields['faqs_id']) . '">' . MORE_INFO_TEXT . '</a>';
        $the_button = $link;
        $faqs_link = '<a href="' . zen_href_link(zen_get_info_faq_page($faqs_all->fields['faqs_id']), 'fcPath=' . $fcPath . '&faqs_id=' . $faqs_all->fields['faqs_id']) . '">' . MORE_INFO_TEXT . '</a>';
        if (FAQ_ALL_LIST_DESCRIPTION != '0') {
            $disp_text = zen_get_faqs_description($faqs_all->fields['faqs_id']);