Changeset 29 for branches/3/functions.php
- Timestamp:
- Oct 14, 2008, 6:18:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/functions.php
r28 r29 1 1 <?php 2 2 3 function ShowHeader() 4 { // BEGIN function ShowHeader 5 global $Config,$menu,$user; 6 echo '<?xml version="1.0" encoding="'.$Config['Charset'].'"?'.'> 7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 8 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 9 <head> 10 <link href="style.css" rel="stylesheet" type="text/css" /> 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 12 <title>'.HEAD_TITLE.'</title> 13 </head> 14 <body> 15 16 <div id="container"> 17 <div id="banner"> 18 <div id="banner1"><div id="banner2"></div><div id="bannertitle">'.HEAD_TITLE.'</div></div> 19 20 </div> 3 //naètení objektù 4 function __autoload($class_name) { 5 require_once 'class/'.$class_name . '.php'; 6 } 21 7 22 <div id="outer">23 <div id="inner">24 <div id="left">25 <div class="verticalmenu">26 <ul>';27 foreach ($menu as $key=>$value) {28 echo '<li><a href="'.$value[2].'" title="'.$value[1].'">'.$value[0].'</a></li>';29 };30 31 echo '</ul>';32 if ($user->Permission() > 0) {33 echo $user->Role();34 } else {35 $user->WriteLogin();36 }37 echo '38 </div>39 </div>40 ';41 } // END function ShowHeader42 43 function ShowFoodter()44 { // BEGIN function ShowFoodter45 echo ' </div><!-- end inner -->46 </div><!-- end outer -->47 <div id="footer"><h1>'.FOOD_TEXT.'</h1></div>48 </div><!-- end container -->49 </body></html>';50 } // END function ShowFoodter51 8 52 9
Note:
See TracChangeset
for help on using the changeset viewer.