Changeset 64 for trunk/admin.php


Ignore:
Timestamp:
Jan 1, 2016, 2:05:17 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Basic application related code moved from Global.php to separate file Application.php.
  • Modified: Main index page converted to PHP class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r63 r64  
    11<?php
    22include('Global.php');
     3
     4$Application = new Application();
     5$Application->Start();
    36
    47if(array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = '';
     
    69{
    710  case 'Add':
    8     $Output = ShowAdd(); 
     11    $Output = ShowAdd();
    912    break;
    1013  case 'Delete':
    11     $Output = ShowDelete(); 
     14    $Output = ShowDelete();
    1215    break;
    1316  case 'Edit':
    14     $Output = ShowEdit(); 
     17    $Output = ShowEdit();
    1518    break;
    1619  case 'RebuildCache':
    17     $Output = ShowRebuildCache(); 
     20    $Output = ShowRebuildCache();
    1821    break;
    1922  default:
    20     $Output = ShowNone(); 
     23    $Output = ShowNone();
    2124}
    2225ShowPage($Output);
     
    3639  }
    3740  $Output = '<h3>Seznam měření</h3>'.Table($Table).MakeLink('?Operation=Add', 'Přidat');
    38   return($Output); 
     41  return($Output);
    3942}
    4043
     
    6265  $Measure = $DbResult->fetch_array();
    6366
    64   RebuildMeasureCache($Measure); 
    65   echo('Dokončeno<br>');         
     67  RebuildMeasureCache($Measure);
     68  echo('Dokončeno<br>');
    6669}
Note: See TracChangeset for help on using the changeset viewer.