Advertisement
TBotNik

menus.php

Jun 14th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1.    include('em_dio.php');
  2.  
  3.    class em_menu() {
  4.     public $b_men = "";
  5.     public $l_men = "";
  6.     public $r_men = "";
  7.     public $t_men = "";
  8.     var $foot     = 'no';           // Set Bottom Menu Display
  9.     var $left     = 'yes';          // Set Left Menu Display
  10.     var $right    = 'no';           // Set Right Menu Display
  11.     var $top      = 'yes';          // Set Top Menu Display
  12.     include('dblib.php');
  13.  
  14.     $link = new dio;
  15.     $dio->dbname  = 'accounts';     // Set DB name
  16.     $dio->engine  = 'mysql';        // Set DB engine
  17.     $dio->uid     = 'ndavis';       // Set DB UID
  18.     $dio->pwd     = 'nomened1497';      // Set DB PWD
  19.     $dio->table   = 'pg_menu';      // Set DB table
  20.     $link = dio->dbConnect();       // Connect the DB
  21.     $dio->sql_str = "SELECT * FROM pg_menu WHERE `ptm_prc`='Accounts';"
  22.     $result = dio->dbQuery();       // Run the Query
  23.  
  24.  
  25.     function get_mfoot() {
  26.        if ($foot=='yes' {
  27.  
  28.        }  // end if $dio->foot
  29.         }     // end function get_mfoot
  30.    
  31.     function get_mleft() {
  32.        if ($left=='yes' {
  33.  
  34.        }  // end if $dio->left
  35.         }     // end function get_mleft
  36.    
  37.     function get_mright() {
  38.        if ($right=='yes' {
  39.  
  40.        }  // end if $dio->right
  41.         }     // end function get_mright
  42.    
  43.     function get_mtop() {
  44.        if ($top=='yes' {
  45.  
  46.        }  // end if $dio->top
  47.         }     // end function get_mtop
  48.    
  49.  
  50.     }   // end class oo_menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement