Subversion Repositories computer_asset_manager_v2

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php 
5 rodolico 2
   include_once( 'header.php' );
3
   // added a comment
1 rodolico 4
   include_once( 'DBDatabase.class.php' );
5
?>
6
<?xml version="1.0" encoding="utf-8"?>
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8
<html xmlns="http://www.w3.org/1999/xhtml">
9
<head>
10
  <title>Daily Data - Computer Asset Management Program</title>
11
  <link rel="stylesheet" type="text/css" href="camp.css">
12
</head>
13
<body>
14
<?php 
15
 
16
  include_once('menu.php'); 
17
?>
18
<div id="content">
19
<?php
20
  global $DATABASE_DEFINITION;
21
  $camp = new DBDatabase( 'camp', $DATABASE_DEFINITION );
22
  if ( isset( $_REQUEST['table'] ) ) {
23
     $table = $camp->getTable($_REQUEST['table']);
24
     if ( $_REQUEST['id'] ) {
25
        $record = new DBRecord( $table, array( 'id' => $_REQUEST['id'] ) );
26
        $record->loadFromDatabase();
27
        print $record->toHTML();
28
        //print "<pre>" . print_r($record, true) . "</pre>";
29
     } else {
30
        print $table->toHTML(  );
31
     }
32
   }  else {
33
     print $camp->toHTML();
34
  }
35
?>
36
</div>
37
</body>
38
</html>
39