<?php
session_start();
include "root.class.php";
new root_styles();
$roots = new root();
$roots->OnPageScripts();
new login_system();
new online_check();

$navbar = new navbar();

$navbar->add_logo();

$navbar->open_group("add");
$navbar->add_button("batch", "batch/add_batch.php", "batch", "batch");
$navbar->add_button("variety", "add/variety_home.php", "variety", "variety");
$navbar->add_button("equipment", "equipment/equipment_home.php", "equipment", "equipment");
$navbar->add_button("product sample point", "add/sample_point_home.php", "product sample point", "product sample point");
$navbar->add_button("user", "add/user_home.php", "user", "user");
$navbar->end_group();

$navbar->open_group("processing");
$navbar->add_button("cracking", "cracking/home.php", "cracking", "cracking");
$navbar->add_button("sorting", "sorting/sorting_home.php", "sorting", "sorting");
$navbar->add_button("lop rooms", "lop/lop_home.php", "lop rooms", "lop rooms");
$navbar->add_button("final sorting", "sorting/final_sorting_home.php", "final sorting", "final sorting");
$navbar->end_group();

$navbar->open_group("reports");
$navbar->add_button("cracking", "reports/cracking.php", "cracking", "cracking");
$navbar->add_button("sorting", "reports/sorting.php", "sorting", "sorting");
$navbar->add_button("lop", "reports/lop.php", "lop", "lop");
$navbar->add_button("final sorting", "reports/final_sorting.php", "final sorting", "final sorting");
$navbar->add_button("batch", "reports/batch.php", "batch", "batch");
// $navbar->add_button("equipment", "reports/equipment.php", "equipment", "equipment");
// $navbar->add_button("food saftey", "reports/food_saftey.php", "food saftey", "food saftey");
// $navbar->add_button("quality control", "reports/quality_control.php", "quality control", "quality control");
$navbar->end_group();

$navbar->add_logout_button();
$navbar->navbar_end();
$roots->Main_iframe();
?>