- CodeIgniter 4 framework setup with SQL Server database config - Models: Control, Test, Dept, Result, Daily/ Monthly entry models - Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints - Views: CRUD pages with modal dialogs, dashboard, reports - Database: Migrations for control test and daily/monthly result tables - Legacy v1 PHP application preserved in /v1 directory - Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
57 lines
1.9 KiB
PHP
57 lines
1.9 KiB
PHP
<?php
|
|
include("config.php");
|
|
if(isset($_GET['p'])) {$part = $_GET['p'];}
|
|
if(isset($_GET['d'])) {$d = $_GET['d'];}
|
|
?>
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>QC APP</title>
|
|
<link rel="stylesheet" href="assets/styles.css?v=<?php echo time(); ?>">
|
|
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
|
</head>
|
|
<body>
|
|
<div id="container">
|
|
<div id="nav">
|
|
<ul>
|
|
<li><a href='index.php'>View</a></li>
|
|
<li><a href='?p=entry'>Monthly Entry</a></li>
|
|
<li><a href='?p=entry_daily'>Daily Entry</a></li>
|
|
<li style="float:right"><a href='?p=test'>Dictionary Test</a></li>
|
|
<li style="float:right"><a href='?p=control'>Dictionary Control</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="content">
|
|
<br/>
|
|
<?php
|
|
if(isset($part)){
|
|
if($part=="control") {
|
|
if(isset($d)){
|
|
if($d=="add") { include("inc/control_add.php"); }
|
|
elseif($d=="lot_add") { include("inc/control_lotadd.php"); }
|
|
elseif($d=="del") { include("inc/control_del.php"); }
|
|
elseif($d=="edit") { include("inc/control_edit.php"); }
|
|
} else { include("inc/control_index.php"); }
|
|
} elseif($part=="ct") {
|
|
if(isset($d)){
|
|
if($d=="add") { include("inc/ct_add.php"); }
|
|
elseif($d=="edit") { include("inc/ct_edit.php"); }
|
|
elseif($d=="del") { include("inc/ct_del.php"); }
|
|
} else { include("inc/ct_view.php"); }
|
|
} elseif($part=="test") {
|
|
if(isset($d)){
|
|
if($d=="add") { include("inc/test_add.php"); }
|
|
elseif($d=="edit") { include("inc/test_edit.php"); }
|
|
elseif($d=="del") { include("inc/test_del.php"); }
|
|
} else { include("inc/test_index.php"); }
|
|
} elseif($part=="entry") {
|
|
if(isset($_GET['cid'])) { include('inc/entry_1.php'); }
|
|
else { include('inc/entry.php'); }
|
|
} elseif($part=="entry_daily") { include('inc/entry_daily.php'); }
|
|
elseif($part=="entry_monthly") { include('inc/entry_monthly.php'); }
|
|
} else { include('inc/view.php'); }
|
|
?>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|