$useTranslation ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : ''; $useLanguage ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : ''; $useId ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : ''; $useSticky ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : ''; $useTitle ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : ''; $useCreationDate ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_creation_date']) : ''; $useOwner ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : ''; $useLastModified ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_last_modified_person']) : ''; $useUrl ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : ''; $useVisits ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : ''; ?> </tr> </thead> <tbody> <?php $report = new PMF_Report($faqConfig); foreach ($report->getReportingData() as $data) { echo '<tr>'; if ($useCategory) { if (0 != $data['category_parent']) { printf('<td>%s</td>', $data['category_parent']); } else { printf('<td>%s</td>', $data['category_name']); } } if ($useSubcategory) { if (0 != $data['category_parent']) { printf('<td>%s</td>', $data['category_name']); } else { echo '<td>n/a</td>'; }
$useVisits = PMF_Filter::filterInput(INPUT_POST, 'report_visits', FILTER_VALIDATE_INT); $text = array(); $text[0] = array(); $useCategory ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; $useSubcategory ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; $useTranslation ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; $useLanguage ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; $useId ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; $useSticky ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; $useTitle ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; $useCreationDate ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : ''; $useOwner ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; $useLastModified ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : ''; $useUrl ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; $useVisits ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; $report = new PMF_Report($faqConfig); foreach ($report->getReportingData() as $data) { $i = $data['faq_id']; if ($useCategory) { if (0 != $data['category_parent']) { $text[$i][] = $data['category_parent']; } else { $text[$i][] = $report->convertEncoding($data['category_name']); } } if ($useSubcategory) { if (0 != $data['category_parent']) { $text[$i][] = $report->convertEncoding($data['category_name']); } else { $text[$i][] = 'n/a'; }
$useVisits = PMF_Filter::filterInput(INPUT_POST, 'report_visits', FILTER_VALIDATE_INT); $text = array(); $text[0] = array(); $useCategory ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; $useSubcategory ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; $useTranslation ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; $useLanguage ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; $useId ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; $useSticky ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; $useTitle ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; $useCreationDate ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : ''; $useOwner ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; $useLastModified ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : ''; $useUrl ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; $useVisits ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; $report = new PMF_Report($db, $language); foreach ($report->getReportingData() as $data) { $i = $data['faq_id']; if ($useCategory) { if (0 != $data['category_parent']) { $text[$i][] = $data['category_parent']; } else { $text[$i][] = $report->convertEncoding($data['category_name']); } } if ($useSubcategory) { if (0 != $data['category_parent']) { $text[$i][] = $report->convertEncoding($data['category_name']); } else { $text[$i][] = 'n/a'; }