Commit 50e259b2 authored by Phạm Duy Phi's avatar Phạm Duy Phi

no message

parent c489c098
<script> <!--<!DOCTYPE html>-->
function showAddTimeSheetFunction() { <!--<html lang="en" ng-app="myApp" ng-controller="timesheetController">-->
var x = document.getElementById("addDivTS"); <!--<head>-->
var n = document.getElementById("addTimeSheet"); <!-- <meta charset="UTF-8">-->
if (x.style.display === "none") { <!-- <title>Time Sheet</title>-->
x.style.display = "block"; <!-- <meta name="viewport" content="width=device-width, initial-scale=1">-->
n.value = "Close"; <!-- <script src="//unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>-->
} else { <!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"-->
x.style.display = "none"; <!-- integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"-->
n.value = "Add TimeSheet"; <!-- crossorigin="anonymous"></script>-->
} <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"-->
} <!-- integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">-->
</script> <!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>-->
<!-- <script src="timeSheetController.js"></script>-->
<!--</head>-->
<!--<body>-->
<!--</body>-->
<!--</html>-->
<div class="container"> <div class="container">
<div class="table-wrapper"> <div class="table-wrapper">
<div class="table-title"> <div class="table-title">
...@@ -18,11 +25,11 @@ ...@@ -18,11 +25,11 @@
<div class="col-sm-6"> <div class="col-sm-6">
<h2><b>TimeSheet</b></h2> <h2><b>TimeSheet</b></h2>
<label> <label>
Search: <input type="text" ng-model="search" placeholder="Search" style="color: black; margin: 10px"/> <input type="text" ng-model="search" placeholder="Search" style="color: black"/>
</label> </label>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<input id="addTimeSheet" class="btn btn-success" data-toggle="modal" type="submit" name="addTS" value="Add TimeSheet" onclick="showAddTimeSheetFunction()"/> <input id="addTimeSheet" class="btn btn-success" data-toggle="modal" type="submit" name="addTS" value="Add" onclick="showAddTimeSheetFunction()"/>
</div> </div>
</div> </div>
</div> </div>
...@@ -52,15 +59,21 @@ ...@@ -52,15 +59,21 @@
</tr> </tr>
<tr> <tr>
<td><label>Employee Project Id</label></td> <td><label>Employee Project Id</label></td>
<!-- <td>-->
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- </td>-->
<td> <td>
<input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/> <select ng-model="tsdto.eprojectId">
<option value="">Select Project</option>
<option ng-repeat="ep in eProjectList" value="{{ep.id}}">{{ep.project.name}}</option>
</select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><label>Employee Id</label></td> <td><label>Employee Id</label></td>
<td> <td>
<input type="text" maxlength="10" value="" ng-model="tsdto.employeeId" style="width: 100%;"/> <input type="text" maxlength="10" value="" ng-model="tsdto.employeeId"/>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -119,7 +132,7 @@ ...@@ -119,7 +132,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr class="tss" ng-repeat="ts in myTimeSheets | limitTo:numLimit:start"> <tr class="tss" ng-repeat="ts in myTimeSheets | limitTo:numLimit:start | filter: search">
<td>{{$index + 1}}</td> <td>{{$index + 1}}</td>
<td>{{ts.title}}</td> <td>{{ts.title}}</td>
<td>{{ts.content}}</td> <td>{{ts.content}}</td>
...@@ -131,11 +144,10 @@ ...@@ -131,11 +144,10 @@
<td><a ui-sref="timeSheet" ng-click="getTs(ts);" onclick="document.getElementById('updateDivTS').style.display = 'block'"class="edit" data-toggle="modal"><i class="material-icons" data-toggle="tooltip" title="Edit">&#xE254;</i></a></td> <td><a ui-sref="timeSheet" ng-click="getTs(ts);" onclick="document.getElementById('updateDivTS').style.display = 'block'"class="edit" data-toggle="modal"><i class="material-icons" data-toggle="tooltip" title="Edit">&#xE254;</i></a></td>
<td><a ui-sref="timeSheet" ng-click="delete(ts);"class="delete" data-toggle="modal"><i class="material-icons" data-toggle="tooltip" title="Delete">&#xE872;</i></a></td> <td><a ui-sref="timeSheet" ng-click="delete(ts);"class="delete" data-toggle="modal"><i class="material-icons" data-toggle="tooltip" title="Delete">&#xE872;</i></a></td>
</tr> </tr>
<tr> <!-- <tr>-->
<td colspan="9" style='text-align: center'><span>Page# {{currentPage}} of {{pages}}</span> <!-- <h6><code>rotate</code> defaulted to <code>true</code> and <code>force-ellipses</code> set to <code>true</code>:</h6>-->
<span style="float:left;padding:5px"><a ng-hide="hidePrev()" href="" ng-click="PrevPage()">Prev</a></span> <!-- <ul uib-pagination total-items="getAllTimesheet()" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-link-number="true" ng-change ="pageChangedIndex()" items-per-page = "timesheetPerPage" ></ul>-->
<span style="float:right;padding:5px"><a ng-hide="hideNext()" href="" ng-click="nextPage()">Next</a></span></td> <!-- </tr>-->
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
......
<script> <!--<!DOCTYPE html>-->
function showAddTimeSheetFunction() { <!--<html lang="en" ng-app="myApp" ng-controller="timesheetController">-->
var x = document.getElementById("addDivTS"); <!--<head>-->
var n = document.getElementById("addTimeSheet"); <!-- <meta charset="UTF-8">-->
if (x.style.display === "none") { <!-- <title>Time Sheet</title>-->
x.style.display = "block"; <!-- <meta name="viewport" content="width=device-width, initial-scale=1">-->
n.value = "Close"; <!-- <script src="//unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>-->
} else { <!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"-->
x.style.display = "none"; <!-- integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"-->
n.value = "Add TimeSheet"; <!-- crossorigin="anonymous"></script>-->
} <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"-->
} <!-- integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">-->
</script> <!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>-->
<!-- <script src="timeSheetController.js"></script>-->
<!--</head>-->
<!--<body>-->
<!--</body>-->
<!--</html>-->
<div class="container"> <div class="container">
<div class="table-wrapper"> <div class="table-wrapper">
<div class="table-title"> <div class="table-title">
...@@ -18,11 +25,11 @@ ...@@ -18,11 +25,11 @@
<div class="col-sm-6"> <div class="col-sm-6">
<h2><b>TimeSheet</b></h2> <h2><b>TimeSheet</b></h2>
<label> <label>
Search: <input type="text" ng-model="search" placeholder="Search" style="color: black; margin: 10px"/> <input type="text" ng-model="search" placeholder="Search" style="color: black"/>
</label> </label>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<input id="addTimeSheet" class="btn btn-success" data-toggle="modal" type="submit" name="addTS" value="Add TimeSheet" onclick="showAddTimeSheetFunction()"/> <input id="addTimeSheet" class="btn btn-success" data-toggle="modal" type="submit" name="addTS" value="Add" onclick="showAddTimeSheetFunction()"/>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment