Code Search for Developers
 
 
  

FAQD.php from pointcarre at Krugle


Show FAQD.php syntax highlighted

<html>
<body>
<?php

//-----------als er WEL een vraag is geselecteerd-----------

if ($vraagnummer)
{
   $db = mysql_connect("server", "login","passwd");
   mysql_select_db("koen",$db);
   $result = mysql_query("select vraag,vraag_e,nummer,antwoord,antwoord_e from FAQ where nummer=$vraagnummer;",$db);
   if ($myrow = mysql_fetch_array($result))
	{
		if ($languageInterface == 'dutch')
		{
			$tekst="<p><a href='".$PHP_SELF."?show_faqd=true'>Terug naar de FAQ</a></p><p><b>Vraag:</b><br>".$myrow["vraag"]."</p><p><b>Antwoord:</b><br>".$myrow["antwoord"]."</p><p><a href='".$PHP_SELF."?show_faqd=true'>Terug naar de FAQ</a></p>";
		}
		else
		{
			$tekst="<p><a href='".$PHP_SELF."?show_faqd=true'>Back to the FAQ</a></p><p><b>Question:</b><br>".$myrow["vraag_e"]."</p><p><b>Answer:</b><br>".$myrow["antwoord_e"]."</p><p><a href='".$PHP_SELF."?show_faqd=true'>Back to the FAQ</a></p>";
		}
		
		echo(str_replace("XXXXX",$PHP_SELF."?show_faqd=true&vraagnummer=",$tekst));

   }   else {echo "bij dit vraagnummer hoort geen antwoord...<br>";};
}


//-----------als er GEEN vraag geselecteerd is-----------

else
{
   $db = mysql_connect("server", "login","passwd");
   mysql_select_db("koen",$db);
   $result = mysql_query("select nummer,vraag,vraag_e from FAQ where doelgroep like '%D%' order by nummer;",$db);
	if ($myrow = mysql_fetch_array($result)) {
		printf("<ul>");
		do
		{
			if ($languageInterface == 'dutch')
				printf("<li><a href='%s?show_faqd=true&vraagnummer=%s'>%s</a></li>", $PHP_SELF ,$myrow["nummer"], $myrow["vraag"]);
			else
				printf("<li><a href='%s?show_faqd=true&vraagnummer=%s'>%s</a></li>", $PHP_SELF ,$myrow["nummer"], $myrow["vraag_e"]);
			
		} while ($myrow = mysql_fetch_array($result));
		printf("</ul>");
	} else {
	echo "Er zijn geen FAQ's gevonden.<br>";	
	};
}
	 
?>

</body>
</html>



See more files for this project here

pointcarre

Pointcarre - a learning management system based on the Dokeos community releases. No fork, but containing locally developed extensions, features not (yet) in the standard release, integrated plugins...

Project homepage: http://sourceforge.net/projects/pointcarre
Programming language(s): PHP
License: other

  archive/
    .htaccess
  claroline/
    admin/
      nightly_update/
        nightly_update.php
      class_add.php
      class_edit.php
      class_information.php
      class_list.php
      configure_homepage.php
      course_add.php
      course_category.php
      course_create_content.php
      course_edit.php
      course_information.php
      course_list.php
      course_virtual.php
      curriculum_complete_update.php
      exemple.csv
      exemple.xml
      index.php
      languages.php
      manage_course_tools.php
      manage_official_classes.php
      manage_official_communities.php
      manage_official_personnel.php
      manage_official_students.php
      manage_official_teachers.php
      manage_special_options.php
      official_update_titles_teachers.php
      settings.php
      statistics.php
      subscribe_class2course.php
      subscribe_user2class.php
      subscribe_user2course.php
      system_announcements.php
      user_add.php
      user_edit.php
      user_export.php
      user_import.php
      user_information.php
      user_list.php
      veco_manage_official_data.php
    announcements/
      announcements.inc.php
      announcements.php
      index.html
      messages.php
    auth/
      curl/
      ldap/
      courses.php
      index.html
      inscription.php
      inscription_second.php
      lostPassword.php
      lost_password.lib.php
    calendar/
    chat/
    course_description/
    course_home/
    course_info/
    coursecopy/
    create_course/
    css/
    curriculum/
    document/
    dropbox/
    exercice/
    external_module/
    forum_admin/
    group/
    help/
    img/
    inc/
    install/
    lang/
    learnpath/
    license/
    link/
    metadata/
    online/
    phpbb/
    plugin/
    reservation/
    resourcelinker/
    scorm/
    tracking/
    user/
    wiki/
    work/
    index.html
  courses/
  home/
  CREDITS.txt
  FAQD.php
  FAQS.php
  INSTALL.txt
  README.txt
  favicon.ico
  index.php
  installation_guide.html
  license.txt
  showfaq.php
  shownews.inc.php
  webchatdeny.php
  whoisonline.php