Example #1
0
    $ar = explode("/", $type);
    $a = $ar[0];
    $b = $ar[1];
    if ($type == "residence/friends") {
        $b = "profile";
    }
    $m = select("select m1.MenuID as Name from en_menu m1 left outer join en_menu m2 on (m1.Parent=m2.MenuID)\nwhere m1.Title='{$b}' and m2.Title='{$a}' and m2.Parent=2");
    if ($m[0]) {
        $menu = Drawmenu($m[0], 3);
    }
    if ($a == "main" || !$a) {
        $q[0] = 9;
    } else {
        $q = select("select MenuID from en_menu where Title='{$a}' and Parent=2");
    }
    $ar = DrawMenu($q[0], $TypeLevel[1], '', '');
    foreach ($ar as $a) {
        print "<td width=\"18\"><img src=\"" . $site_url . "images/marker3.gif\" alt=\"\" width=\"11\" height=\"11\" border=\"0\"></td>\n                <td>{$a}</td><td width=50px></td>";
    }
    ?>
              </tr>
            </table></td>
          <td>&nbsp;</td>
        </tr>

      </table></td>

		<?php 
    if ($auth->user && $enableChat) {
        require "chatcontent.php";
    }
Example #2
0
function getMenu()
{
    DrawMenu(currentPageDirectory() . "sub_menu.txt");
}
Example #3
0
<h2>Навигация по сайту</h2>
<?php 
$menu = array();
$menu[] = array('link' => 'Домой', 'href' => 'index.php');
$menu[] = array('link' => 'О нас', 'href' => 'index.php?id=about');
$menu[] = array('link' => 'Контакты', 'href' => 'index.php?id=contact');
$menu[] = array('link' => 'Таблица умножения', 'href' => 'index.php?id=table');
$menu[] = array('link' => 'Калькулятор', 'href' => 'index.php?id=calc');
include_once 'functions.inc.php';
if (!DrawMenu($menu)) {
    echo "Извините, ошибка";
}