"; echo ""; echo "
"; die("Could not connect to the database."); } if($myrow=faqe_db_fetch_array($result)) { if($navframe==1) $action_url=$url_faqengine."/faqframe.php"; else $action_url=$act_script_url; echo "
"; if(isset($layout)) echo ""; if($navframe==1) echo ""; if(isset($limitprog)) echo ""; if(is_konqueror()) echo "
"; echo ""; echo "$l_program: "; echo ""; echo ""; echo ""; echo "  "; echo " "; echo "
"; } } ?> "; echo ""; if($proginfoavail==1) { echo ""; } ?>
"; die("Calling error"); } $sql = "select * from ".$tableprefix."_programm where (progid='$prog') and (language='$act_lang')"; if(!$result = faqe_db_query($sql, $db)) { echo "
"; die("Could not connect to the database."); } if($myrow=faqe_db_fetch_array($result)) { $prognr=$myrow["prognr"]; $progname=display_encoded($myrow["programmname"]); if($myrow["description"]) $proginfoavail=1; else $proginfoavail=0; } else { $proginfoavail=0; $prognr=0; $progname=$l_undefined; } echo "
"; echo "$l_catlist: $progname"; echo ""; echo "\"$l_proginfo\"
0) && ($faqnewdisplaymethod==0)) $sql = "select cat.* from ".$tableprefix."_category cat, ".$tableprefix."_data dat where (cat.programm=$prognr) and cat.catnr=dat.category and dat.editdate >= DATE_SUB('$actdate', INTERVAL $onlynewfaq DAY) group by cat.catnr order by cat.displaypos asc"; else $sql = "select * from ".$tableprefix."_category where (programm=$prognr) order by displaypos asc"; if(!$result = faqe_db_query($sql, $db)) { echo ""; } else { do { $actcat++; if(($maxentries>0) && (($actcat-1 >= ($start+$maxentries)) )) continue; $displayedcat++; if($actcat-1<$start) continue; $act_id=$myrow["catnr"]; $catbgcolor=$row_bgcolor; $catfontcolor=$FontColor; if(isset($onlynewfaq) && ($onlynewfaq>0)) { $numsql = "select count(faqnr) as numfaqs from ".$tableprefix."_data where (category=$act_id) and (editdate >= DATE_SUB('$actdate', INTERVAL $onlynewfaq DAY))"; if(!$numresult = faqe_db_query($numsql, $db)) die("Could not connect to the database."); if($numrow=faqe_db_fetch_array($numresult)) { if($numrow["numfaqs"]>0) $numfaqs=$numrow["numfaqs"]."/".$myrow["numfaqs"]; else $numfaqs=$myrow["numfaqs"]; } else $numfaqs=$myrow["numfaqs"]; if($numrow["numfaqs"]>0) { $catbgcolor=$faqnewdisplaybgcolor; $catfontcolor=$faqnewdisplayfontcolor; } } else $numfaqs=$myrow["numfaqs"]; echo ""; echo ""; if($numfaqs>0) { if($altlinkmethod==0) { if($navframe==1) $link=$url_faqengine."/faqframe.php"; else $link=$act_script_url; if(isset($onlynewfaq)) $link.="?list=category&catnr=$act_id&prog=$prog&$langvar=$act_lang&onlynewfaq=$onlynewfaq"; else $link.="?list=category&catnr=$act_id&prog=$prog&$langvar=$act_lang"; if(isset($layout)) $link.="&layout=$layout"; if(isset($limitprog)) $link.="&limitprog=$limitprog"; } else { $link="listcat.php?id=$act_id|$act_lang|$layout"; } echo ""; echo ""; } while($myrow = faqe_db_fetch_array($result)); } if($allowquestions==1) { $sql = "select * from ".$tableprefix."_questions where prognr=$prognr and publish=1 and language='$act_lang' and faqref=0"; if(!$result = faqe_db_query($sql, $db)) { echo ""; echo ""; if($numquestions>0) { if($altlinkmethod==0) { if($navframe==1) $link=$url_faqengine."/faqframe.php"; else $link=$act_script_url; if(isset($onlynewfaq)) $link.="?list=questions&prog=$prog&$langvar=$act_lang&onlynewfaq=$onlynewfaq"; else $link.="?list=questions&prog=$prog&$langvar=$act_lang"; if(isset($layout)) $link.="&layout=$layout"; if(isset($limitprog)) $link.="&limitprog=$limitprog"; } else $link="listqes.php?id=$prog|$act_lang|$layout"; echo ""; echo ""; } } if(($maxentries>0) && ($totalcats>$maxentries)) { $url_start="$act_script_url?$langvar=$act_lang&list=categories&prog=$prog&onlynewfaq=$onlynewfaq"; if(isset($layout)) $url_start.="&layout=$layout"; if($navframe==1) { $url_start.="&navframe=1"; if(isset($limitprog)) $url_start.="&limitprog=$limitprog"; } echo ""; } ?>
"; die("Could not connect to the database."); } if($maxentries>0) { include_once("./includes/faq_pagenav.inc"); $totalcats=faqe_db_num_rows($result); if($allowquestions==1) { $sql2 = "select * from ".$tableprefix."_questions where prognr=$prognr and publish=1 and language='$act_lang' and faqref=0"; if(!$result2 = faqe_db_query($sql2, $db)) { echo "
"; die("Could not connect to the database.".faqe_db_error()); } $numquestions=faqe_db_num_rows($result2); if ($numquestions>0) $totalcats++; } } else $totalcats=0; if (!$myrow = faqe_db_fetch_array($result)) { echo "
"; echo ""; if(isset($onlynewfaq) && ($onlynewfaq>0) && ($faqnewdisplaymethod==0)) echo $l_nonewentries; else echo $l_nocategories; echo "
"; if($newtime>0) { $sql2 = "select * from ".$tableprefix."_data where (category=$act_id) and (editdate >= '$newdate')"; if(!$result2 = faqe_db_query($sql2, $db)) die("Could not connect to the database."); if(faqe_db_num_rows($result2)>0) echo "\"$l_newfaq2\""; else echo " "; } else echo " "; echo ""; echo ""; echo ""; } else { echo ""; echo ""; } echo display_encoded($myrow["categoryname"]); if($numfaqs>0) echo ""; echo""; echo ""; echo $numfaqs; echo "
"; die("Could not connect to the database.".faqe_db_error()); } $numquestions=faqe_db_num_rows($result); if (($numquestions>0) && (($maxentries<=0) || (($maxentries>0) && ($actcat<$start+$maxentries)))) { $catbgcolor=$row_bgcolor; $catfontcolor=$FontColor; if(isset($onlynewfaq) && ($onlynewfaq>0)) { $numsql = "select count(questionnr) as newquestions from ".$tableprefix."_questions where prognr=$prognr and publish=1 and language='$act_lang' and (enterdate >= DATE_SUB('$actdate', INTERVAL $onlynewfaq DAY)) and faqref=0"; if(!$numresult = faqe_db_query($numsql, $db)) die("Could not connect to the database."); if($numrow=faqe_db_fetch_array($numresult)) { if($numrow["newquestions"]>0) $numquestions=$numrow["newquestions"]."/".$numquestions; } if($numrow["newquestions"]>0) { $catbgcolor=$faqnewdisplaybgcolor; $catfontcolor=$faqnewdisplayfontcolor; } } echo "
"; if($newtime>0) { $sql2 = "select * from ".$tableprefix."_questions where prognr=$prognr and publish=1 and language='$act_lang' and (enterdate >= '$newdate') and faqref=0"; if(!$result2 = faqe_db_query($sql2, $db)) die("Could not connect to the database."); if(faqe_db_num_rows($result2)>0) echo "\"$l_newfaq2\""; else echo " "; } else echo " "; echo ""; echo ""; echo ""; } else { echo ""; echo ""; } echo $l_userquestions; if($numquestions>0) echo ""; echo""; echo ""; echo $numquestions; echo "
"; faq_pagenav($start, $maxentries, $totalcats, $displayedcat, $url_start); echo "
0) { ?>
$l_listall"; if($show_proglist==1) { if($altlinkmethod==0) { if($navframe==1) $linkurl=$url_faqengine."/faqframe.php"; else $linkurl=$act_script_url; $linkurl.="?list=progs&$langvar=$act_lang"; if(isset($onlynewfaq)) $linkurl.="&onlynewfaq=$onlynewfaq"; if(isset($layout)) $linkurl.="&layout=$layout"; if(isset($limitprog)) $link.="&limitprog=$limitprog"; } else { $linkurl="listprogs.php?id=$act_lang|$layout"; } echo "| $l_listprogs"; } ?> <?php echo $l_top?>
<?php echo $l_newfaq2?> =
"; if($navframe==1) $action_url=$url_faqengine."/faqframe.php"; else $action_url=$act_script_url; echo "
"; echo ""; if($navframe==1) echo ""; if(isset($layout)) echo ""; if(isset($onlynewfaq)) echo ""; if(isset($limitprog)) echo ""; echo ""; echo ""; echo ""; echo "$l_changelang: ".language_select($act_lang,$langvar,"./language","langselect"); echo "   "; echo "
"; } if($enablefaqnewdisplay==1) { echo ""; if($navframe==1) $action_url=$url_faqengine."/faqframe.php"; else $action_url=$act_script_url; echo ""; echo "
"; if($navframe==1) echo ""; if(isset($layout)) echo ""; if(isset($limitprog)) echo ""; echo ""; echo ""; echo ""; echo ""; echo "$l_onlynewwithin "; echo ""; echo " $l_days"; echo "   "; echo "
"; } ?>