Subversion Repositories computer_asset_manager_v1

Rev

Rev 38 | Rev 53 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 52
Line 4... Line 4...
4
    * 20161217 RWR
4
    * 20161217 RWR
5
    * Added cleanLineReturn, removeBlanLines and getDOMUDOM0
5
    * Added cleanLineReturn, removeBlanLines and getDOMUDOM0
6
    */
6
    */
7
    
7
    
8
   include_once( './maintenance_database.php' );
8
   include_once( './maintenance_database.php' );
-
 
9
   include_once( './database.php' );
9
   
10
   
10
   /* function will take all eoln ("\n") and convert to <br /> if $makeHTML
11
   /* function will take all eoln ("\n") and convert to <br /> if $makeHTML
11
    * is true, otherwise will replace all <br /> with \n.
12
    * is true, otherwise will replace all <br /> with \n.
12
    * Will then remove duplicates IF THEY ARE EXACTLY NEXT TO EACH OTHER
13
    * Will then remove duplicates IF THEY ARE EXACTLY NEXT TO EACH OTHER
13
    * ie, with no intervening spaces.
14
    * ie, with no intervening spaces.
Line 74... Line 75...
74
     return array($sql, implode ( ' and ', $whereClause ), ' order by ');
75
     return array($sql, implode ( ' and ', $whereClause ), ' order by ');
75
   }
76
   }
76
 
77
 
77
   function EditMaintenanceRecord( $id ) {
78
   function EditMaintenanceRecord( $id ) {
78
      global $DATABASE_DEFINITION;
79
      global $DATABASE_DEFINITION;
-
 
80
      print "<pre>\nInside EditMaintenanceRecord id = $id\n</pre>";
79
      print $id == -1 ? addData( $DATABASE_DEFINITION['maintenance_schedule'] ) : editData( $DATABASE_DEFINITION['maintenance_schedule'], $id );
81
      print $id == -1 ? addData( $DATABASE_DEFINITION['maintenance_schedule'] ) : editData( $DATABASE_DEFINITION['maintenance_schedule'], $id );
80
   }
82
   }
81
   
83
   
82
   function postChanges( $id = '' ) {
84
   function postChanges( $id = '' ) {
83
      global $DATABASE_DEFINITION;
85
      global $DATABASE_DEFINITION;