//$cInfo_array = array_merge($faq_categories->fields, $faq_category_childs, $faq_category_faqs);
        $cInfo = new objectInfo($faq_categories->fields);
    }
    if (isset($cInfo) && is_object($cInfo) && $faq_categories->fields['faq_categories_id'] == $cInfo->faq_categories_id) {
        echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_FAQ_CATEGORIES, zen_get_faq_category_path($faq_categories->fields['faq_categories_id'])) . '\'">' . "\n";
    } else {
        echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_FAQ_CATEGORIES, zen_get_faq_category_path($faq_categories->fields['faq_categories_id'])) . '\'">' . "\n";
    }
    if ($action == '') {
        ?>
                <td class="dataTableContent" width="20" align="right"><?php 
        echo $faq_categories->fields['faq_categories_id'];
        ?>
</td>
                <td class="dataTableContent"><?php 
        echo '<a href="' . zen_href_link(FILENAME_FAQ_CATEGORIES, zen_get_faq_category_path($faq_categories->fields['faq_categories_id'])) . '">' . zen_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '</a>&nbsp;<b>' . $faq_categories->fields['faq_categories_name'] . '</b>';
        ?>
</td>
                <td class="dataTableContent" align="center">&nbsp;</td>
                <td class="dataTableContent" align="right">&nbsp;<?php 
        // echo zen_get_faqs_sale_discount('', $faq_categories->fields['faq_categories_id'], true);
        ?>
</td>
                <td class="dataTableContent" align="center">&nbsp;</td>
                <td class="dataTableContent" align="right" valign="bottom">
                  <?php 
        if (SHOW_COUNTS_ADMIN == 'false') {
            // don't show counts
        } else {
            // show counts
            $total_faqs = zen_get_faqs_to_faq_categories($faq_categories->fields['faq_categories_id'], true);
Beispiel #2
0
$faq_index = $db->Execute("SELECT f.`faqs_id`,f.`faqs_date_added`, ft.`faq_categories_id`, fd.`faqs_name` FROM faqs f, faqs_description fd, faqs_to_faq_categories ft\n                             WHERE fd.faqs_id=f.faqs_id AND ft.faqs_id=f.faqs_id AND f.`faqs_status` = 2\n                             ORDER BY f.`faqs_date_added` limit 10");
if ($faq_index->RecordCount() > 0) {
    ?>
	<div class="indexheader"><a href="<?php 
    echo zen_href_link(FILENAME_FAQ_CATEGORIES);
    ?>
" style="float:right; font-weight:normal;"><span style="color:#327bc0;">At present there are <?php 
    echo $faq_index->RecordCount();
    ?>
 questions</span></a><?php 
    echo BOX_ENTRY_NEW_FAQS;
    ?>
 </div>
	<?php 
    while (!$faq_index->EOF) {
        echo '<div class="row"><span><a href="' . zen_href_link('faq', zen_get_faq_category_path($faq_index->fields['faq_categories_id']) . '&pID=' . $faq_index->fields['faqs_id'] . '&faq_type=1&action=new_faq') . '" class="contentlink"> ' . $faq_index->fields['faqs_name'] . '</a></span><span class="right">' . zen_date_short($faq_index->fields['faqs_date_added']) . '</span><br/>';
        echo '<span>' . zen_get_faq_categories_name_from_faq($faq_index->fields['faqs_id']) . '</span></div>' . "\n";
        $faq_index->MoveNext();
    }
}
?>
</div>

</div>
</div>
<!-- The following copyright announcement is in compliance
to section 2c of the GNU General Public License, and
thus can not be removed, or can only be modified
appropriately.

Please leave this comment intact together with the