Пример #1
0
	<div class="wrapper">
    	<div id="logo">
        <a href="http://slimdx.org/"><img src="../images/logoblackbg.jpg" alt="SlimDX" /></a>
        </div>
        
        <div style="padding-left:415px; height:60px;"></div>

        <ul class="menu">
<?php 
function WriteMenuItem($itemName, $url)
{
    global $g_pageName;
    if ($g_pageName == $itemName) {
        echo '<li class="current">';
    } else {
        echo '<li>';
    }
    echo "<a href=\"{$url}\">{$itemName}</a></li>\n";
}
WriteMenuItem("Home", "../index.php");
WriteMenuItem("Features", "../features.php");
WriteMenuItem("Download", "../download.php");
WriteMenuItem("Documentation", "/docs");
WriteMenuItem("Tutorials", "../tutorials.php");
WriteMenuItem("Licensing", "../license.php");
WriteMenuItem("Support", "../support.php");
?>
            
        </ul>
    </div>
</div>
Пример #2
0
<div id="top1">
	<div class="wrapper">
    	<div id="logo">
        <a href="http://slimdx.org/"><img src="/images/logoblackbg.jpg" alt="SlimDX" /></a>
        </div>
        <div style="padding-left:415px; height:60px;"></div>
        
        <ul class="menu">
<?php 
function WriteMenuItem($itemName, $url)
{
    global $g_pageName;
    if ($g_pageName == $itemName) {
        echo '<li class="current">';
    } else {
        echo '<li>';
    }
    echo "<a href=\"{$url}\">{$itemName}</a></li>\n";
}
WriteMenuItem("Home", "/index.php");
WriteMenuItem("Features", "/features.php");
WriteMenuItem("Download", "/download.php");
WriteMenuItem("Documentation", "/docs/");
WriteMenuItem("Tutorials", "/tutorials.php");
WriteMenuItem("Licensing", "/license.php");
WriteMenuItem("Consulting", "/consulting.php");
?>
            
        </ul>
    </div>
</div>