// ------------------------------------------------
// Javascript für frontend
// ------------------------------------------------

// frontend-Klasse
function frontendClass() {
  // Feldnamen und Eigenschaften
  this.id= 0;                   // Primärschlüssel
  this.schueler_id= 0;          // Long
  this.von= '0000-00-00';       // Datum
  this.bis= '0000-00-00';       // Datum
  this.praktikum= false;        // Boolean
  this.status_id= 0;            // Long
  this.grund= '';               // varchar (255)
  this.fehltage= 0;             // Double
  this.klasse= '';              // Klasse
  this.klassleiter= '';         // Klassleiter
  this.gesamt= 0;               // Fehltage Summe:Schule
  this.sumpraktikum= 0;         // Fehltage Summe:Praktikum
  this.befreit= 0;              // Fehltage befreit(SchL)
  this.unent= 0;                // Fehltage unentschuldigt
  this.entsch= 0;               // Fehltage entschuldigt
  this.attvor= 0;               // Fehltage gesamt
  this.attestpflicht= 'Nein';   // Fehltage attestpflicht
}

frontendObj = new frontendClass();
var primkey = 'id';
var jumps = '';

// Kalender Control initialisieren
calendar1 = new CalCtrl('calendar1', 'von');
calendar2 = new CalCtrl('calendar2', 'bis');

// picoAjax Engine starten
pico.phpscript = 'frontend.php';
pico.paramobj = frontendObj;
pico.quickfilter = false;



