Location: PHPKode > scripts > phpMyAccess > phpmyaccess-1.5.3/phpmyaccess/menu_pages.php
<?php

function MyHeader ($header) {
echo("<?xml version=\"1.0\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
    \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
  <title>$header</title>
</head>
<body bgcolor=\"#ffeb10\">
  <div class=\"main\">
  <h3>$header</h3>
");
}

//   MySQL host name, user name, password, database, and table to edit
include 'dbaccess.php';
$tb='menu_pages';
$header="Menu Pages Edit";
//  Name of field which is the unique key
$key='menu_page_ID';
//  Type of key field (int/real/string/date etc)
$key_type='int';
//   Number of records to display on the screen
$inc = 15;
//   Options you wish to give the users - A(dd) C(hange) D(elete) F(ilter)
$options = 'ACDFPZ';
//   Should authentication be used, "0" if no, anything else is minimum
//   user level needed to be allowed access
$auth = '999';
$debug = 0;
//
//
//
$fdd['menu_page_ID']['name'] = 'Menu Page ID';
$fdd['menu_page_ID']['sort'] = true;
$fdd['menu_page_ID']['select'] = 'T';
//$fdd['menu_page_ID']['required'] = true;
$fdd['menu_page_ID']['auto'] = true;
//$fdd['menu_page_ID']['listview'] = false;
$fdd['Menu_page_name']['name'] = 'Menu Page Name';
$fdd['Menu_page_name']['sort'] = true;
$fdd['Menu_page_name']['select'] = 'T';
//$fdd['Menu_page_name']['required'] = true;
$fdd['Menu_page_name']['length'] = 20;
//$fdd['Menu_page_name']['listview'] = false;
$fdd['menu_page_long']['name'] = 'Menu Page';
$fdd['menu_page_long']['sort'] = true;
$fdd['menu_page_long']['select'] = 'T';
//$fdd['menu_page_long']['required'] = true;
$fdd['menu_page_long']['length'] = 50;
//  and now the all-important call to PHPMyEdit
//  warning - beware of case-sensitive operating systems!
include 'PHPMyEdit.php';

function Post_Run() {
echo "  </div>
  <p></p>
  <hr  width=\"30%\" >
  <table>
   <tr>
     <td><a href=\"index.php\" name=\"link\">Main Page</a></td>
     <td> &nbsp;&nbsp;&nbsp; </td>
     <td><a href=\"index.php?page=menus\" name=\"link\">Menus Maintenance Page</a></td>
   </tr>
  </table>
  <br><b> User : ".$GLOBALS['auth_user']." </b><br>
";
}

function footer () {
   echo "  </body>\n</html>\n";
}

?>
Return current item: phpMyAccess