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