tinyqc/app/Controllers/Entry.php

33 lines
766 B
PHP
Raw Normal View History

<?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'
]);
}
}