Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
99707ac9
Commit
99707ac9
authored
Oct 28, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #33 - TIMESHEET FORM & TIMESHEET VIEWER - Tambah paparan ‘Year’ ( DISPLAY CURRENT YEAR )
parent
1f7d0ea7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
25 deletions
+16
-25
packages/portal/timesheet/resources/views/layouts/filtermonthphase.blade.php
+15
-10
packages/portal/timesheet/src/Http/Controllers/FormController.php
+1
-15
No files found.
packages/portal/timesheet/resources/views/layouts/filtermonthphase.blade.php
View file @
99707ac9
...
...
@@ -10,16 +10,6 @@
{
{csrf_field()}
}
<div class="
@
if
(
$currmonth
==
1
)
three
fields
@
else
two
fields
@
endif
">
@if(
$currmonth
== 1)
<div class="
three
wide
field
">
<label>Year</label>
<select name="
year
" class="
ui
fluid
dropdown
" required="
required
">
<option value="
{{
$curryear
-
1
}}
">{{
$curryear
-1 }}</option>
<option value="
{{
$curryear
}}
">{{
$curryear
}}</option>
</select>
</div>
@endif
<div class="
three
wide
field
">
<label>Month</label>
...
...
@@ -38,6 +28,21 @@
</select>
</div>
@if(
$currmonth
== 1)
<div class="
three
wide
field
">
<label>Year</label>
<select name="
year
" class="
ui
fluid
dropdown
" required="
required
">
<option value="
{{
$curryear
-
1
}}
">{{
$curryear
-1 }}</option>
<option value="
{{
$curryear
}}
">{{
$curryear
}}</option>
</select>
</div>
@else
<div class="
three
wide
field
">
<label>Year</label>
<input type="
text
" name="
year
" class="
ui
fluid
dropdown
" value="
{{
$curryear
}}
" readonly="
readonly
">
</div>
@endif
</div>
<button class="
ui
green
button
" type="
submit
">Open Form</button>
</form>
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
99707ac9
...
...
@@ -32,7 +32,7 @@ class FormController extends Controller
public
function
filterChargeable
()
{
$currmonth
=
date
(
'n'
);
// $currmonth = 1;
$currmonth
=
1
;
$curryear
=
date
(
'Y'
);
...
...
@@ -45,20 +45,6 @@ class FormController extends Controller
return
view
(
'timesheet::form.filterChargeable'
,
compact
(
'month'
,
'currmonth'
,
'curryear'
));
}
// public function filterNonChargeable()
// {
// $currmonth = date('n');
// $curryear = date('Y');
// $month = [];
// for ($m=1; $m<=12; $m++) {
// $month[] = date('F', mktime(0,0,0,$m, 1, date('Y')));
// }
// return view('timesheet::form.filterNonChargeable', compact('month', 'currmonth', 'curryear'));
// }
public
function
filterOverhead
()
{
$currmonth
=
date
(
'n'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment