• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • Beta-testers gezocht voor Crypto-oefenplatform

    Syntax 29 januari 2026 om 16:11
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Syntax 19 januari 2026 om 09:34
  • Developer Gezocht

    Mikevdk 10 januari 2026 om 18:57
  • Op zoek naar de legends

    Syntax 5 januari 2026 om 13:50
  • [FREE] WeFact Hosting module

    Jeroen.G 13 oktober 2025 om 14:09
  • Help testers nodig voor android app Urgent

    urgentotservices 26 september 2025 om 10:21
  • Versio vervanger

    Jeroen.G 25 augustus 2025 om 15:56
  • Afspraken systeem met planbeperking

    Lijno 1 augustus 2025 om 23:04

Marktplaats

  • 321 Nieuwe Domeinnamen December 2025

    shiga 1 januari 2026 om 10:26
  • Meerdere mafia game template te koop

    Syntax 26 december 2025 om 00:07
  • Van een pixelige afbeelding naar een strakke, moderne website

    Syntax 21 december 2025 om 17:05

Scripter

  • Starohosting
  • 6 november 2011 om 16:54
  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 6 november 2011 om 16:54
    • #1

    Beste leden,

    Ik heb de volgende code ingebouwd in me layout alleen kom ik nu steeds tot een 500 intern server error.
    Zou iemand die ervaring heeft met php het eens willen proberen.
    Misschien dat het dan wel lukt:

    PHP
    <?PHP
    $query = "SELECT id, name FROM $table_sections WHERE invisible != 'yes' ORDER BY sort"; 
    $result = mysql_query($query);
    while ($sectionmenu = mysql_fetch_array($result))
    {
    if($sectionmenu[0] == $section)
    	{
         print "<li><a class=\"active\" href=\"index.php?section=$sectionmenu[0]\">$sectionmenu[1]</a></li>";
        }
    else
    	{
    	print "<li><a href=\"index.php?section=$sectionmenu[0]\">$sectionmenu[1]</a></li>";
        }
    }
    ?>
    
    
    Dit stukje moet in de ul id nav
    -------------------------------------------------
    <?PHP
    $query1 = "SELECT id, name FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
    $result1 = mysql_query($query1) or die_script(mysql_error());
    while ($pagemenu = mysql_fetch_array($result1))
    {
    	if($pagemenu[0] == $page)
    	{
    		print "<li><i><b><a class=\"more\" href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></b></i><li>";
    	}
    	else
    	{
    		print "<li><a class=\"more\" href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></li>";
    	}
    }
    ?>
    
    
    Dit stukje moet in de subarrow
    --------------------------------------------------
    <div id="topUserBar">
    <div class="centerContainer">
    <ul id="nav">
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    
    
    <ul class="sub">
    <span class="subArrow">&nbsp;</span>
    
    
    <li><a href="#">Onbetaalde facturen</a></li>
    <li><a href="#">Betaalde facturen</a></li>
    <li><a href="#">Volledig overzicht</a></li>
    <li><a href="#" class="last">Aanmanningen</a></li>
    
    
    </ul>
    </li>
    </div>
    
    
    Orginele versie waarin het ingebouwd moet worden
    --------------------------------------------------
    Toon Meer

    Mijn eigen versie hoe ik het heb gedaan:

    PHP
    <?PHP
    if ( !defined('IN_SAS') )
    {
    	die("Hacking attempt");
    }
    ?>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    
    <?PHP
      print "<title>$sitename - $pagetitle</title>";
    ?>
    
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/jquery-ui-personalized-1.5.3.packed.js" type="text/javascript"></script>
    <script src="js/jquery-ui-personalized-1.5.3.packed.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="<?PHP echo $cmsdir ?>/themes/<?PHP echo $themelocation ?>/css/include.css" />
    </head>
    
    
    <body>
    
    
    
    
    
    
    <div id="wrapper">
    <div id="topUserBar">
    <div class="centerContainer">
    <ul id="nav">
    
    
    <?PHP
    $query = "SELECT id, name FROM $table_sections WHERE invisible != 'yes' ORDER BY sort"; 
    $result = mysql_query($query);
    while ($sectionmenu = mysql_fetch_array($result))
    {
    if($sectionmenu[0] == $section)
    	{
         print "<li class="top"><a href="index.php?section=$sectionmenu[0]\" id="products" class="top_link"><span class="down">$sectionmenu[1]</span></a>";
        }
    else
    	{
    	print "<li class="top"><a href="index.php?section=$sectionmenu[0]\" id="products" class="top_link"><span class="down">$sectionmenu[1]</span></a>";
        }
    }
    ?>
    
    
    
    
    <ul class="sub">
    <span class="subArrow">&nbsp;</span>
    
    
    <?PHP
    $query1 = "SELECT id, name FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
    $result1 = mysql_query($query1) or die_script(mysql_error());
    while ($pagemenu = mysql_fetch_array($result1))
    {
    	if($pagemenu[0] == $page)
    	{
    		print "<li><a href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a><li>";
    	}
    	else
    	{
    		print "<li><a href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></li>";
    	}
    }
    ?>
    
    
    </ul>
    </li>
    </div>
    
    
    <div id="header">
    <div id="header-img">
    </div>
    </div>
    
    
    <div id="content">
    <div class="contop">
    <div class="contitle">
    <div class="t-content">
    
    
    
    
    
    
    </div>
    </div>
    </div>
        
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="concenter">
    <div class="context"> 
    
    
    </br>
    
    
    <?PHP
    $query = "SELECT module FROM $table_pages WHERE id='$page'";
    $result = mysql_query($query);
    $module = mysql_result($result,0);
    unset($query);
    unset($result);
    if($module != '')
    {
     include($cmsdir."/modules/".$module);
    }
    else
    {
     $query = "SELECT content FROM $table_pages WHERE id='$page'";
     $result = mysql_query($query);
     $content = mysql_result($result,0);
     unset($query);
     unset($result);
     $content = str_replace("../","",$content);
     print $content;
    }
    
    
    ?>
    </div>
    </div>
    
    
    <div class="conbottom"></div>
    </div>
    
    
    
    
    <div id="footer">
    <div class="copyright">
    <div class="copytext"> 
    <a href="http://rvko.nl" target=_"blank">Een school van de RVKO </a> | Alle rechten voorbehouden | Gemaakt door: <a href="http://starohosting.nl">Starohosting.nl </a>
    
    
    </div>
    </div>
    </div>
    
    
    </body>
    </html>
    Toon Meer

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Fijne feestdagen

    tcbhome 28 december 2025 om 13:55
  • Kritieke update voor Really Simple Security-plug-in

    K.Rens 16 november 2024 om 16:12
  • ING Nederland streeft naar ondersteuning van Google Pay tegen eind februari

    K.Rens 2 november 2024 om 16:09

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design