- 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
33 lines
766 B
PHP
33 lines
766 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Models\DictDeptModel;
|
|
|
|
class Entry extends BaseController
|
|
{
|
|
public function index()
|
|
{
|
|
$dictDeptModel = new \App\Models\DictDeptModel();
|
|
|
|
return view('entry/monthly', [
|
|
'title' => 'Monthly Entry',
|
|
'depts' => $dictDeptModel->findAll(),
|
|
'active_menu' => 'entry',
|
|
'page_title' => 'Monthly Entry'
|
|
]);
|
|
}
|
|
|
|
public function daily()
|
|
{
|
|
$dictDeptModel = new \App\Models\DictDeptModel();
|
|
|
|
return view('entry/daily', [
|
|
'title' => 'Daily Entry',
|
|
'depts' => $dictDeptModel->findAll(),
|
|
'active_menu' => 'entry_daily',
|
|
'page_title' => 'Daily Entry'
|
|
]);
|
|
}
|
|
}
|