|
10 | 10 |
|
11 | 11 | include(__DIR__ . '/includes/header.php'); |
12 | 12 |
|
| 13 | +/* Rating labels for hrperfappraisals.overallrating (INT 1-5) */ |
| 14 | +$RatingLabels = array( |
| 15 | + 5 => __('Outstanding'), |
| 16 | + 4 => __('Exceeds Expectations'), |
| 17 | + 3 => __('Meets Expectations'), |
| 18 | + 2 => __('Needs Improvement'), |
| 19 | + 1 => __('Unsatisfactory'), |
| 20 | +); |
| 21 | + |
13 | 22 | // Get system options |
14 | 23 | $SQL = "SELECT optionname, optionvalue FROM hrsystemoptions WHERE optionname = 'AppraisalFrequency'"; |
15 | 24 | $OptionsResult = DB_query($SQL); |
|
19 | 28 | $AppraisalFrequency = $OptionRow['optionvalue']; |
20 | 29 | } |
21 | 30 |
|
| 31 | +echo '<a class="toplink" href="' . $RootPath . '/HRAppraisalEntry.php">' . __('Create New Appraisal') . '</a>'; |
| 32 | + |
22 | 33 | echo '<p class="page_title_text"> |
23 | 34 | <img alt="" src="' . $RootPath . '/css/' . $Theme . '/images/star.png" title="' . __('Performance Appraisals') . '" /> ' . |
24 | 35 | __('Performance Appraisals Management') . ' |
|
97 | 108 |
|
98 | 109 | $Result = DB_query($SQL); |
99 | 110 |
|
100 | | -echo '<a class="toplink" href="' . $RootPath . '/HRAppraisalEntry.php">' . __('Create New Appraisal') . '</a>'; |
101 | | - |
102 | 111 | echo '<table class="selection"> |
103 | 112 | <thead> |
104 | 113 | <tr> |
|
116 | 125 | <th>' . __('Status') . '</th> |
117 | 126 | <th>' . __('Rating') . '</th> |
118 | 127 | <th>' . __('Manager') . '</th> |
119 | | - <th>' . __('Actions') . '</th> |
| 128 | + <th></th> |
120 | 129 | </tr> |
121 | 130 | </thead> |
122 | 131 | <tbody>'; |
|
136 | 145 | <td>' . ConvertSQLDate($MyRow['reviewperiodstart']) . ' - ' . ConvertSQLDate($MyRow['reviewperiodend']) . '</td> |
137 | 146 | <td>' . ConvertSQLDate($MyRow['duedate']) . '</td> |
138 | 147 | <td>' . htmlspecialchars($MyRow['status'], ENT_QUOTES, 'UTF-8') . '</td> |
139 | | - <td>' . ($MyRow['overallrating'] ? htmlspecialchars($MyRow['overallrating'], ENT_QUOTES, 'UTF-8') : '-') . '</td> |
| 148 | + <td>' . (isset($RatingLabels[$MyRow['overallrating']]) ? htmlspecialchars($RatingLabels[$MyRow['overallrating']], ENT_QUOTES, 'UTF-8') : '-') . '</td> |
140 | 149 | <td>' . htmlspecialchars($MyRow['managername'], ENT_QUOTES, 'UTF-8') . '</td> |
141 | 150 | <td class="centre"> |
142 | | - <a href="' . $RootPath . '/HRAppraisalEntry.php?AppraisalID=' . urlencode($MyRow['appraisalid']) . '">' . __('Edit') . '</a> | |
143 | | - <a href="' . $RootPath . '/HRAppraisalEntry.php?AppraisalID=' . urlencode($MyRow['appraisalid']) . '&View=1">' . __('View') . '</a> |
| 151 | + <a href="' . $RootPath . '/HRAppraisalEntry.php?AppraisalID=' . urlencode($MyRow['appraisalid']) . '">' . __('Edit') . '</a> |
144 | 152 | </td> |
145 | 153 | </tr>'; |
146 | 154 | } |
|
0 commit comments