public function parseAddData($postArr, $admin = false) { // Extract dates $postArr['txtLeaveFromDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtLeaveFromDate']); $postArr['txtLeaveToDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtLeaveToDate']); // Extract time $postArr['sltLeaveFromTime'] = LocaleUtil::getInstance()->convertToStandardTimeFormat($postArr['sltLeaveFromTime']); $postArr['sltLeaveToTime'] = LocaleUtil::getInstance()->convertToStandardTimeFormat($postArr['sltLeaveToTime']); if ($admin) { $this->parent_Leave->setEmployeeId($postArr['cmbEmployeeId']); } else { $this->parent_Leave->setEmployeeId($_SESSION['empID']); } $this->parent_Leave->setLeaveTypeId($postArr['sltLeaveType']); $this->parent_Leave->setLeaveFromDate($postArr['txtLeaveFromDate']); if (isset($postArr['txtLeaveToDate']) && !empty($postArr['txtLeaveToDate'])) { $this->parent_Leave->setLeaveToDate($postArr['txtLeaveToDate']); } else { $this->parent_Leave->setLeaveToDate($postArr['txtLeaveFromDate']); } if ($this->parent_Leave->getLeaveFromDate() == $this->parent_Leave->getLeaveToDate() && $this->parent_Leave->getLeaveFromDate() != null) { $lengthHours = $postArr['txtLeaveTotalTime']; if (!empty($postArr['sltLeaveFromTime']) && !empty($postArr['sltLeaveToTime'])) { $this->parent_Leave->setStartTime($postArr['sltLeaveFromTime']); $this->parent_Leave->setEndTime($postArr['sltLeaveToTime']); } $this->parent_Leave->setLeaveLengthHours($lengthHours); } else { $lengthDays = 1; $this->parent_Leave->setLeaveLengthDays($lengthDays); } $this->parent_Leave->setLeaveComments($postArr['txtComments']); return $this->parent_Leave; }
public function getValue($row, $ddList) { $value = ""; switch ($this->type) { case self::FIELD_TYPE_DIRECT: if (isset($row[$this->name])) { $valueFromDb = $row[$this->name]; $value = CSVField::escape($valueFromDb); } break; case self::FIELD_TYPE_DATE: if (isset($row[$this->name])) { $valueFromDb = $row[$this->name]; $value = CSVField::escape(LocaleUtil::getInstance()->formatDate($valueFromDb)); } break; case self::FIELD_TYPE_FROMMAP: if (isset($row[$this->name])) { $valueFromDb = $row[$this->name]; $value = CSVField::escape(CSVField::getValueFromMap($this->map, $valueFromDb)); } break; case self::FIELD_TYPE_DIRECT_DEBIT: $value = CSVField::escape($this->_getDDValue($row, $ddList)); break; } return $value; }
public function parseViewDataWithTimezoneDiff($clientStartDate, $clientEndDate, $timesheetPeriodId) { $this->parent_Timesheet = new Timesheet(); $this->parent_Timesheet->setStartDate(LocaleUtil::getInstance()->convertToStandardDateFormat($clientStartDate)); $this->parent_Timesheet->setEndDate(LocaleUtil::getInstance()->convertToStandardDateFormat($clientEndDate) . " 23:59:59"); $this->parent_Timesheet->setTimesheetPeriodId($timesheetPeriodId); $this->parent_Timesheet->setEmployeeId($_SESSION['empID']); return $this->parent_Timesheet; }
public function reloadData($postArr) { $postArr['ChiDOB'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['ChiDOB']); $this->txtEmpID = $postArr['txtEmpID']; $this->txtDSeqNo = trim($postArr['txtDSeqNo']); $this->txtChiName = trim($postArr['txtChiName']); $this->DOB = self::_handleEmptyDates($postArr['ChiDOB']); return $this; }
public function parseData($postArr) { $postArr['txtEmpLicDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpLicDat']); $postArr['txtEmpreDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpreDat']); $this->emplicen->setEmpId(trim($postArr['txtEmpID'])); $this->emplicen->setEmpLicCode(trim($postArr['cmbLicCode'])); $this->emplicen->setEmpLicDat(self::_handleEmptyDates($postArr['txtEmpLicDat'])); $this->emplicen->setEmpLicrenewalDat(self::_handleEmptyDates($postArr['txtEmpreDat'])); return $this->emplicen; }
function parseData($postArr) { $postArr['txtEmpConExtStartDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpConExtStartDat']); $postArr['txtEmpConExtEndDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpConExtEndDat']); $this->empconext->setEmpId(trim($postArr['txtEmpID'])); $this->empconext->setEmpConExtId(trim($postArr['txtEmpConExtID'])); $this->empconext->setEmpConExtStartDat(trim($postArr['txtEmpConExtStartDat'])); $this->empconext->setEmpConExtEndDat(trim($postArr['txtEmpConExtEndDat'])); return $this->empconext; }
public static function parseEditData($postArr) { $payPeriod = new HspPayPeriod(); $payPeriod->setId($postArr['txtPayPeriodId']); $payPeriod->setStartDate(LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPayPeriodFromDate'])); $payPeriod->setEndDate(LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPayPeriodToDate'])); $payPeriod->setCloseDate(LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPayPeriodCloseDate'])); $payPeriod->setTimesheetAprovalDueDate(LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPayPeriodTimesheetDueDate'])); $payPeriod->setCheckDate(LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPayPeriodCheckDate'])); return $payPeriod; }
public function parseData($postArr) { $postArr['txtEmpEduStartDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpEduStartDate']); $postArr['txtEmpEduEndDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpEduEndDate']); $this->empeducation->setEmpId(trim($postArr['txtEmpID'])); $this->empeducation->setEduCode(trim($postArr['cmbEduCode'])); $this->empeducation->setEduMajor(trim($postArr['txtEmpEduMajor'])); $this->empeducation->setEduYear(empty($postArr['txtEmpEduYear']) ? 'null' : trim($postArr['txtEmpEduYear'])); $this->empeducation->setEduGPA(trim($postArr['txtEmpEduGPA'])); $this->empeducation->setEduStartDate(self::_handleEmptyDates($postArr['txtEmpEduStartDate'])); $this->empeducation->setEduEndDate(self::_handleEmptyDates($postArr['txtEmpEduEndDate'])); return $this->empeducation; }
public function parseData($postArr) { $postArr['txtMemCommDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtMemCommDat']); $postArr['txtMemRenDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtMemRenDat']); $this->empmemship->setEmpId(trim($postArr['txtEmpID'])); $this->empmemship->setEmpMemCode(trim($postArr['cmbMemCode'])); $this->empmemship->setEmpMemTypeCode(trim($postArr['cmbMemTypeCode'])); $this->empmemship->setEmpMemSubOwn(trim($postArr['cmbMemSubOwn'])); $this->empmemship->setEmpMemSubAmount(trim($postArr['txtMemSubAmount']) == "" ? 0 : trim($postArr['txtMemSubAmount'])); $this->empmemship->setEmpMemCommDat(self::_handleEmptyDates($postArr['txtMemCommDat'])); $this->empmemship->setEmpMemRenDat(self::_handleEmptyDates($postArr['txtMemRenDat'])); return $this->empmemship; }
public function parseData($postArr) { $postArr['txtEmpExpFromDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpExpFromDate']); $postArr['txtEmpExpToDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtEmpExpToDate']); $this->empwrkexp->setEmpId(trim($postArr['txtEmpID'])); $this->empwrkexp->setEmpExpSeqNo($postArr['txtEmpExpID']); $this->empwrkexp->setEmpExpEmployer(trim($postArr['txtEmpExpEmployer'])); $this->empwrkexp->setEmpExpJobTitle(trim($postArr['txtEmpExpJobTitle'])); $this->empwrkexp->setEmpExpFromDate(self::_handleEmptyDates($postArr['txtEmpExpFromDate'])); $this->empwrkexp->setEmpExpToDate(self::_handleEmptyDates($postArr['txtEmpExpToDate'])); $this->empwrkexp->setEmpExpComments(trim($postArr['txtEmpExpComments'])); $this->empwrkexp->setEmpExpInternal(isset($postArr['chkEmpExpInternal']) ? 1 : 0); return $this->empwrkexp; }
/** * Parse data from interface and return JobApplicationEvent Object * @param Array $postArr Array containing POST values * @return JobApplicationEvent Job Application Event object */ public function parseAddData($postArr) { $event = new JobApplicationEvent(); $id = $postArr['txtId']; $event->setApplicationId($id); $date = $postArr['txtDate']; $time = $postArr['txtTime']; $dateTime = LocaleUtil::getInstance()->convertToStandardDateTimeFormat($date . ' ' . $time); $event->setEventTime($dateTime); $interviewer = $postArr['cmbInterviewer']; $event->setOwner($interviewer); $notes = $postArr['txtNotes']; $event->setNotes($notes); return $event; }
/** * Pares edit data in the UI form * * @param mixed $postArr * @return Leave[] */ public function parseEditData($postArr) { $postArr['txtDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtDate']); if (isset($_POST['txtId']) && !empty($postArr['txtId'])) { $this->parent_Holidays->setHolidayId($postArr['txtId']); } $this->parent_Holidays->setDescription($postArr['txtDescription']); $this->parent_Holidays->setDate($postArr['txtDate']); if (isset($postArr['chkRecurring'])) { $this->parent_Holidays->setRecurring($postArr['chkRecurring']); } else { $this->parent_Holidays->setRecurring(Holidays::HOLIDAYS_NOT_RECURRING); } $this->parent_Holidays->setLength($postArr['sltLeaveLength']); return $this->parent_Holidays; }
function formatValue($string, $key, $replacements) { if ($string == ReportField::EMPTY_MARKER) { return $string; } if (array_key_exists($key, $replacements)) { $string = $replacements[$key][$string]; } if ($key === 'AGE' || $key === 'SERPIR') { $duration = $string; } elseif ($key === 'CONTRACT') { list($start, $end) = explode(' - ', $string); $string = LocaleUtil::getInstance()->formatDate($start) . ' - ' . LocaleUtil::getInstance()->formatDate($end); } return $string; }
public function parseAddData($postArr) { // Extract dates $postArr['txtLeaveFromDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtLeaveFromDate']); $postArr['txtLeaveToDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtLeaveToDate']); $this->parent_Leave->setEmployeeId($_SESSION['empID']); $this->parent_Leave->setLeaveTypeId($postArr['sltLeaveType']); $this->parent_Leave->setLeaveFromDate($postArr['txtLeaveFromDate']); if (isset($postArr['txtLeaveToDate']) && !empty($postArr['txtLeaveToDate'])) { $this->parent_Leave->setLeaveToDate($postArr['txtLeaveToDate']); } else { $this->parent_Leave->setLeaveToDate($postArr['txtLeaveFromDate']); } $this->parent_Leave->setLeaveLength($postArr['sltLeaveLength']); $this->parent_Leave->setLeaveComments($postArr['txtComments']); return $this->parent_Leave; }
public function reloadData($postArr) { $postArr['txtI9ReviewDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtI9ReviewDat']); $postArr['txtPPIssDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPPIssDat']); $postArr['txtPPExpDat'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtPPExpDat']); $this->txtEmpID = $postArr['txtEmpID']; $this->txtPPSeqNo = trim($postArr['txtPPSeqNo']); $this->txtPPNo = trim($postArr['txtPPNo']); $this->txtPPIssDat = self::_handleEmptyDates($postArr['txtPPIssDat']); $this->txtPPExpDat = self::_handleEmptyDates($postArr['txtPPExpDat']); $this->txtComments = trim($postArr['txtComments']); $this->PPComment = trim($postArr['PPComment']); $this->txtI9status = $postArr['txtI9status']; $this->PPType = $postArr['PPType']; $this->cmbPPCountry = $postArr['cmbPPCountry']; $this->txtI9ReviewDat = self::_handleEmptyDates($postArr['txtI9ReviewDat']); return $this; }
</label> <input name="txtPayPeriodTimesheetDueDate" type="text" id="txtPayPeriodTimesheetDueDate" class="formDateInput" value="<?php echo LocaleUtil::getInstance()->formatDate($payPeriod->getTimesheetAprovalDueDate()); ?> " size="10"/> <input type="button" name="Date" value=" " class="calendarBtn" /> <br class="clear"/> <label for="txtPayPeriodCheckDate"><?php echo $lang_Benefits_CheckDate; ?> </label> <input name="txtPayPeriodCheckDate" type="text" id="txtPayPeriodCheckDate" class="formDateInput" value="<?php echo LocaleUtil::getInstance()->formatDate($payPeriod->getCheckDate()); ?> " size="10"/> <input type="button" name="Date" value=" " class="calendarBtn" /> <br class="clear"/> <div class="formbuttons"> <input type="button" class="savebutton" id="saveBtn" onclick="addPayPeriod();" onmouseover="moverButton(this);" onmouseout="moutButton(this);" value="<?php echo $lang_Common_Save; ?> " /> <input type="reset" class="resetbutton" onmouseover="moverButton(this);" onmouseout="moutButton(this);" value="<?php echo $lang_Common_Reset;
</td> <td ><select id="cmbActivity[<?php echo $row; ?> ]" name="cmbActivity[]" onfocus="looseCurrFocus();"> <option value="-1">- <?php echo $lang_Time_Timesheet_SelectProject; ?> -</option> </select> </td> <td><input type="text" id="txtReportedDate[<?php echo $row; ?> ]" name="txtReportedDate[]" value="<?php echo LocaleUtil::getInstance()->formatDate(date('Y-m-d')); ?> " onfocus="looseCurrFocus();" /></td> <td><input type="text" id="txtDuration[<?php echo $row; ?> ]" name="txtDuration[]" onfocus="looseCurrFocus();" /></td> <td><textarea type="text" id="txtDescription[<?php echo $row; ?> ]" name="txtDescription[]" onfocus="looseCurrFocus();" ></textarea></td> <td class="tableMiddleRight"></td> </tr> </tbody> <tfoot> <tr>
</pre></div><br/> <br /> <div class="txtName"><?php echo $lang_Recruit_JobApplicationDetails_Status; ?> </div> <div class="txtValue" style="white-space:nowrap;"> <?php $status = $statusList[$application->getStatus()]; $statusDate = ''; $latestEvent = $application->getLatestEvent(); if (!empty($latestEvent)) { if ($latestEvent->getEventType() == JobApplicationEvent::EVENT_SCHEDULE_FIRST_INTERVIEW || $latestEvent->getEventType() == JobApplicationEvent::EVENT_SCHEDULE_SECOND_INTERVIEW) { if ($latestEvent->getStatus() != JobApplicationEvent::STATUS_INTERVIEW_FINISHED) { $statusDate = LocaleUtil::getInstance()->formatDateTime($latestEvent->getEventTime()); } else { $statusDate = $lang_Recruit_JobApplicationHistory_StatusFinished; } } } echo $status; if (!empty($statusDate)) { ?> <span class="eventDate">(<?php echo $statusDate; ?> )</span> <?php } ?>
<td class="<?php echo $rowStyle; ?> "><?php echo $request->getStatus() == HspPaymentRequest::HSP_PAYMENT_REQUEST_STATUS_PAID ? $lang_Benefits_Yes : $lang_Benefits_No; ?> </a></td> <td class="<?php echo $rowStyle; ?> "> <a href="?benefitcode=Benefits&action=View_Hsp_Request&id=<?php echo $request->getId(); ?> "><?php echo LocaleUtil::getInstance()->formatDate($request->getDateIncurred()); ?> </a> </td> <td class="<?php echo $rowStyle; ?> "><?php echo $request->getProviderName(); ?> </td> <td class="<?php echo $rowStyle; ?> "><?php echo $request->getExpenseDescription();
" /> <input type="hidden" name="txtLeaveTypeName[]" id="txtLeaveTypeName[]" value="<?php echo $record->getLeaveTypeName(); ?> " /> <input type="hidden" name="sltLeaveLength[]" id="sltLeaveLength[]" value="<?php echo $record->getLeaveLengthHours(); ?> " /> <tr> <td class="tableMiddleLeft"></td> <td class="<?php echo $cssClass; ?> "><?php echo LocaleUtil::getInstance()->formatDate($record->getLeaveDate()); ?> </td> <td class="<?php echo $cssClass; ?> "><?php echo $record->getLeaveTypeName(); ?> </td> <td class="<?php echo $cssClass; ?> "><?php $statusArr = array($record->statusLeaveRejected => $lang_Leave_Common_Rejected, $record->statusLeaveCancelled => $lang_Leave_Common_Cancelled, $record->statusLeavePendingApproval => $lang_Leave_Common_PendingApproval, $record->statusLeaveApproved => $lang_Leave_Common_Approved, $record->statusLeaveTaken => $lang_Leave_Common_Taken); $suprevisorRespArr = array($record->statusLeaveRejected => $lang_Leave_Common_Rejected, $record->statusLeaveApproved => $lang_Leave_Common_Approved, $record->statusLeaveCancelled => $lang_Leave_Common_Cancelled);
<td><?php echo $lang_Benefits_MailingAddress; ?> </td> <td></td> </tr> <tr> <td></td> <td><?php echo $lang_Benefits_DateIncurred; ?> </td> <td> <input name="txtDateIncurred" type="text" id="txtDateIncurred" size="10" value="<?php echo isset($request) ? LocaleUtil::getInstance()->formatDate($request->getDateIncurred()) : ''; ?> " <?php echo $type != 0 ? 'disabled' : ''; ?> /> <input type="button" name="Date" id="btnDate1" value=" " class="calendarBtn" <?php echo $type != 0 ? 'disabled' : ''; ?> style="display:inline;margin:0;float:none;"/> </td> <td rowspan="4"> <textarea name="txtMailAddress" id="txtMailAddress" rows="4" cols="50" <?php
} ?> </select> </td> <td></td> </tr> <tr> <td></td> <td ><?php echo $lang_Time_Timesheet_DateReportedFor; ?> </td> <td ></td> <td > <input type="text" id="txtReportedDate" name="txtReportedDate" value="<?php echo LocaleUtil::getInstance()->formatDate($reportedDate); ?> " size="10"/> <input type="button" id="btnReportedDateSelect" name="btnReportedDateSelect" value=" " class="calendarBtn" style="display:inline;margin:0;float:none;"/> </td> <td></td> </tr> <tr> <td></td> <td ><?php echo $lang_Time_Timesheet_Duration; ?> </td> <td ></td> <td >
</tbody> <tfoot> <tr> <td class="tableBottomLeft"></td> <td class="tableBottomMiddle"></td> <td class="tableBottomMiddle"></td> <td class="tableBottomRight"></td> </tr> </tfoot> </table> <?php if (isset($timeEventId)) { ?> <input type="hidden" name="startTime" id="startTime" value="<?php echo LocaleUtil::getInstance()->formatDateTime($timeEvent->getStartTime()); ?> " /> <input type="hidden" name="timeEventId" id="timeEventId" value="<?php echo $timeEventId; ?> " /> <?php } ?> </form> <div id="punchInfo"> <?php echo $puchInfo; ?> </div>
public function parseEditData($postArr) { $historyItems = array(); $empNum = trim($postArr['txtEmpID']); // Get job title history if (isset($postArr['jobTitleHisId'])) { $jobTitleIds = $postArr['jobTitleHisId']; $jobTitleCodes = $postArr['jobTitleHisCode']; $jobTitleFromDates = $postArr['jobTitleHisFromDate']; $jobTitleToDates = $postArr['jobTitleHisToDate']; for ($i = 0; $i < count($jobTitleIds); $i++) { $history = new JobTitleHistory(); $id = $jobTitleIds[$i]; $code = $jobTitleCodes[$i]; $startDate = LocaleUtil::getInstance()->convertToStandardDateFormat($jobTitleFromDates[$i]); $endDate = LocaleUtil::getInstance()->convertToStandardDateFormat($jobTitleToDates[$i]); $history->setId($id); $history->setCode($code); $history->setEmpNumber($empNum); $history->setStartDate($startDate); $history->setEndDate($endDate); $historyItems[] = $history; } } // Get sub division history if (isset($postArr['subDivHisId'])) { $subDivIds = $postArr['subDivHisId']; $subDivCodes = $postArr['subDivHisCode']; $subDivFromDates = $postArr['subDivHisFromDate']; $subDivToDates = $postArr['subDivHisToDate']; for ($i = 0; $i < count($subDivIds); $i++) { $history = new SubDivisionHistory(); $id = $subDivIds[$i]; $code = $subDivCodes[$i]; $startDate = LocaleUtil::getInstance()->convertToStandardDateFormat($subDivFromDates[$i]); $endDate = LocaleUtil::getInstance()->convertToStandardDateFormat($subDivToDates[$i]); $history->setId($id); $history->setCode($code); $history->setEmpNumber($empNum); $history->setStartDate($startDate); $history->setEndDate($endDate); $historyItems[] = $history; } } // Get location history if (isset($postArr['locHisId'])) { $locIds = $postArr['locHisId']; $locCodes = $postArr['locHisCode']; $locFromDates = $postArr['locHisFromDate']; $locToDates = $postArr['locHisToDate']; for ($i = 0; $i < count($locIds); $i++) { $history = new LocationHistory(); $id = $locIds[$i]; $startDate = LocaleUtil::getInstance()->convertToStandardDateFormat($locFromDates[$i]); $endDate = LocaleUtil::getInstance()->convertToStandardDateFormat($locToDates[$i]); $history->setId($id); $code = $locCodes[$i]; $history->setCode($code); $history->setEmpNumber($empNum); $history->setStartDate($startDate); $history->setEndDate($endDate); $historyItems[] = $history; } } return $historyItems; }
echo isset($criteriaData['JOIDAT'][1]) ? '' : 'style="visibility: hidden;"'; ?> disabled name="Join1" value="<?php echo isset($criteriaData['JOIDAT'][1]) ? LocaleUtil::getInstance()->formatDate($criteriaData['JOIDAT'][1]) : ''; ?> " id="Join1"> <input type="button" class="calendarBtn" value=" " <?php echo isset($criteriaData['JOIDAT'][1]) ? '' : 'style="visibility: hidden;"'; ?> name="Join1Button"/> </td> <td><input type="text" <?php echo isset($criteriaData['JOIDAT'][2]) ? '' : 'style="visibility: hidden;"'; ?> disabled name="Join2" value="<?php echo isset($criteriaData['JOIDAT'][2]) ? LocaleUtil::getInstance()->formatDate($criteriaData['JOIDAT'][2]) : ''; ?> " id="Join2"> <input type="button" class="calendarBtn" value=" " <?php echo isset($criteriaData['JOIDAT'][2]) ? '' : 'style="visibility: hidden;"'; ?> name="Join2Button"/> </td> </tr> <?php // Joined Date Ends ?> <tr> <td><input <?php
echo $rset[$c][1]; ?> '></td> <?php for ($a = 0; count($allLicenlist) > $a; $a++) { if ($rset[$c][1] == $allLicenlist[$a][0]) { $lname = $allLicenlist[$a][1]; } } ?> <td><a href="javascript:viewLicense('<?php echo $rset[$c][1]; ?> ')"><?php echo $lname; ?> </td><?php $str = explode(" ", $rset[$c][2]); echo '<td>' . LocaleUtil::getInstance()->formatDate($str[0]) . '</td>'; $str = explode(" ", $rset[$c][3]); echo '<td>' . LocaleUtil::getInstance()->formatDate($str[0]) . '</td>'; echo '</tr>'; } ?> </table> <?php } } ?> </span>
<td class="<?php echo $rowStyle; ?> "><?php echo LocaleUtil::getInstance()->formatDate($payPeriod->getCloseDate()); ?> </td> <td class="<?php echo $rowStyle; ?> "></td> <td class="<?php echo $rowStyle; ?> "><?php echo LocaleUtil::getInstance()->formatDate($payPeriod->getTimesheetAprovalDueDate()); ?> </td> <td class="tableMiddleRight"></td> </tr> <?php } ?> <?php } ?> </tbody> <tfoot> <tr> <td class="tableBottomLeft"></td> <?php
<td class="tableMiddleLeft"></td> <td><select name="sltLeaveToTime" type="text" id="sltLeaveToTime" onchange="fillTimes();" > <option value="" selected ></option> <?php for ($i = $startTime; $i <= $endTime; $i += $interval) { $timeVal = date('H:i', $i); $selected = $timeVal == $prevToTime ? "selected" : ""; ?> <option <?php echo $selected; ?> value="<?php echo $timeVal; ?> " ><?php echo LocaleUtil::getInstance()->formatTime($timeVal); ?> </option> <?php } ?> </select> </td> <td width="25px"> </td> <td> </td> <td width="25px"> </td> <td class="tableMiddleRight"></td> </tr> <tr> <td class="tableMiddleLeft"></td> <td><?php
* the GNU General Public License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program; * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA * */ require_once ROOT_PATH . '/lib/common/LocaleUtil.php'; $project = $records[0]; $startDate = LocaleUtil::getInstance()->formatDate($records[1]); $endDate = LocaleUtil::getInstance()->formatDate($records[2]); $activityTimeArray = $records[3]; $customerObj = new Customer(); $customerDet = $customerObj->fetchCustomer($project->getCustomerId(), true); ?> <script type="text/javascript"> //<![CDATA[ var initialAction = "?timecode=Time&action="; function viewActivityReport(activityId, time) { action = "Activity_Report"; $('frmActivity').activityId.value = activityId; $('frmActivity').time.value = time; $('frmActivity').action = initialAction+action;
public function testFormatMoney() { $localeUtil = LocaleUtil::getInstance(); $this->assertEquals('1121.12', $localeUtil->formatMoney(1121.12121)); $this->assertEquals('0.12', $localeUtil->formatMoney(0.12121)); $this->assertEquals('1212121212.00', $localeUtil->formatMoney(1212121212)); $this->assertEquals('0.00', $localeUtil->formatMoney(0)); $this->assertEquals('0.00', $localeUtil->formatMoney('abc')); $this->assertEquals('0.00', $localeUtil->formatMoney('')); $this->assertEquals('0.00', $localeUtil->formatMoney(null)); }