Subversion Repositories computer_asset_manager_v1

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 84
Line 7... Line 7...
7
  <div id="boxtitle">
7
  <div id="boxtitle">
8
     Menu 
8
     Menu 
9
  </div>
9
  </div>
10
  <?php 
10
  <?php 
11
     include_once("hierarchical.php");
11
     include_once("hierarchical.php");
12
     $menu = new DBMenu( 'menu', 'menu_id' );
12
     $menu = new DBMenu( 'menu', 'menu_id', 'parent_id', $_SESSION['menu items'] );
-
 
13
/*
-
 
14
     print "<pre>" . print_r( $menu ) . "</pre>";
-
 
15
     die;
-
 
16
*/
13
     print $menu->DBMenu2String($_SESSION['html root']);
17
     print $menu->DBMenu2String($_SESSION['html root']);
14
  ?>
18
  ?>
15
  <div id="boxtitle">
19
  <div id="boxtitle">
16
     Contact 
20
     Contact 
17
  </div>
21
  </div>
18
  <p>
22
  <p>
19
    <?php print $_SESSION['email']; 
23
    <?php print $_SESSION['email']; 
20
    ?>
24
    ?>
21
  </p>
25
  </p>
22
  <?php 
26
  <?php 
23
     if ($_SESSION['where_clause'] == 'ADMINISTRATOR') {
27
     if ($_SESSION['where_clause'] == '1=1') {
24
        print "<p><a href='admin.php' target='_blank'>Edit Tables Directly</a></p>";
28
        print "<p><a href='admin.php' target='_blank'>Edit Tables Directly</a></p>";
25
     }
29
     }
26
  ?>
30
  ?>
27
  <p>
31
  <p>
28
    <a href='<?php print $_SESSION['html root']; ?>/logout.php'>Log out</a>
32
    <a href='<?php print $_SESSION['html root']; ?>/logout.php'>Log out</a>
29
  </p>
33
  </p>
30
  <p>
34
  <p>
31
    <?php print ($_SESSION['where_clause'] == 'ADMINISTRATOR') ? 'Administrator' : ''; 
35
    <?php print ($_SESSION['where_clause'] == '1=1') ? 'Administrator' : ''; 
32
    ?>
36
    ?>
33
  </p>
37
  </p>
34
</div>
38
</div>