public function getCreatedAtLocalized($sFormat = ' %e. %B %Y')
 {
     if (Session::language() === 'en') {
         $sFormat = ' %e %B %Y';
     }
     return LocaleUtil::localizeDate($this->created_at, null, $sFormat);
 }
 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;
 }
Exemple #3
0
 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;
 }
 /** send()
  * Description:
  * • This method is called when NewsletterMailer is instanciated
  * • All newsletter, sender and recipient info are ready
  *
  * @return boolean has_invalid email addresses
  */
 public function send()
 {
     // Get newsletter email main template and template body and css by template name
     $oEmailTemplate = new Template('main', array(DIRNAME_TEMPLATES, 'newsletter'));
     $oEmailTemplate->replaceIdentifier('newsletter_template_css', new Template("{$this->oNewsletter->getTemplateName()}.css", array(DIRNAME_TEMPLATES, 'newsletter')));
     // Parse links differently in text
     RichtextUtil::$USE_ABSOLUTE_LINKS = LinkUtil::isSSL();
     $oEMailContent = RichtextUtil::parseStorageForFrontendOutput(stream_get_contents($this->oNewsletter->getNewsletterBody()));
     RichtextUtil::$USE_ABSOLUTE_LINKS = null;
     // Replace add surrounding (body.tmpl) before content if exists. Template needs to contain a newsletter_content identifier
     if (ResourceFinder::findResource(array(DIRNAME_TEMPLATES, NewsletterDetailWidgetModule::NEWSLETTER_DIRNAME, "{$this->oNewsletter->getTemplateName()}.body.tmpl")) !== null) {
         $oEmailTemplate->replaceIdentifier('newsletter_content', new Template("{$this->oNewsletter->getTemplateName()}.body", array(DIRNAME_TEMPLATES, NewsletterDetailWidgetModule::NEWSLETTER_DIRNAME)), null, Template::LEAVE_IDENTIFIERS);
     }
     $oEmailTemplate->replaceIdentifier('newsletter_content', $oEMailContent, null, Template::LEAVE_IDENTIFIERS);
     $oEmailTemplate->replaceIdentifier('subject', $this->oNewsletter->getSubject());
     $oEmailTemplate->replaceIdentifier('language', $this->oNewsletter->getLanguageId());
     $oEmailTemplate->replaceIdentifier('newsletter_link', LinkUtil::absoluteLink($this->oNewsletter->getDisplayLink()));
     $oEmailTemplate->replaceIdentifier('newsletter_date', LocaleUtil::localizeDate(null, $this->oNewsletter->getLanguageId()));
     $oEmailTemplate->replaceIdentifier('newsletter_timestamp', time());
     // Process templates with each recipient, depending on whether recipient is object and object of Subscriber or string
     foreach ($this->aRecipients as $mRecipient) {
         $this->sendNewsletter($mRecipient, clone $oEmailTemplate);
     }
     return count($this->aInvalidEmails) === 0;
 }
 public function getLastSentLocalized($sFormat = 'x')
 {
     if ($this->getLastSent() != null) {
         return LocaleUtil::localizeDate($this->getLastSent(), null, $sFormat);
     }
     return null;
 }
 public function getPublishAtFormatted($sLanguageId = null, $sFormatString = 'x')
 {
     if ($this->publish_at === null) {
         return null;
     }
     return LocaleUtil::localizeDate($this->publish_at, $sLanguageId, $sFormatString);
 }
 public function getDateSentFormatted($sAddTimeFormat = null)
 {
     $sTime = LocaleUtil::localizeDate($this->date_sent);
     if ($sAddTimeFormat) {
         $sTime .= ' ' . $this->getDateSent($sAddTimeFormat);
     }
     return $sTime;
 }
 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 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 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['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['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['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;
}
Exemple #19
0
 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;
 }
 /**
  * renderFile()
  * @return string xhtml output
  */
 public function renderFile()
 {
     $oOutput = new XHTMLOutput(XHTMLOutput::SETTING_HTML_4_TRANSITIONAL, true, null, $this->oNewsletter->getLanguageId());
     $oOutput->render();
     $oNewsletterTemplate = new Template('main_display', array(DIRNAME_TEMPLATES, 'newsletter'), false, true);
     $oNewsletterTemplate->replaceIdentifier('newsletter_template_css', new Template("{$this->oNewsletter->getTemplateName()}.css", array(DIRNAME_TEMPLATES, 'newsletter')));
     $oNewsletterContent = RichtextUtil::parseStorageForFrontendOutput(stream_get_contents($this->oNewsletter->getNewsletterBody()));
     if (ResourceFinder::findResource(array(DIRNAME_TEMPLATES, NewsletterDetailWidgetModule::NEWSLETTER_DIRNAME, "{$this->oNewsletter->getTemplateName()}.body.tmpl")) !== null) {
         $oNewsletterTemplate->replaceIdentifier('newsletter_content', new Template("{$this->oNewsletter->getTemplateName()}.body", array(DIRNAME_TEMPLATES, NewsletterDetailWidgetModule::NEWSLETTER_DIRNAME)), null, Template::LEAVE_IDENTIFIERS);
     }
     $oNewsletterTemplate->replaceIdentifier('newsletter_content', $oNewsletterContent, null, Template::LEAVE_IDENTIFIERS);
     $oNewsletterTemplate->replaceIdentifier('language', $this->oNewsletter->getLanguageId());
     if ($this->oMailing !== null) {
         $oNewsletterTemplate->replaceIdentifier('newsletter_date', LocaleUtil::localizeDate($this->oMailing->getDateSent(null)->getTimestamp(), $this->oNewsletter->getLanguageId()));
         $oNewsletterTemplate->replaceIdentifier('newsletter_timestamp', $this->oMailing->getDateSent(null)->getTimestamp());
     } else {
         $oNewsletterTemplate->replaceIdentifier('newsletter_date', LocaleUtil::localizeDate($this->oNewsletter->getCreatedAt(null)->getTimestamp(), $this->oNewsletter->getLanguageId()));
         $oNewsletterTemplate->replaceIdentifier('newsletter_timestamp', $this->oNewsletter->getCreatedAt(null)->getTimestamp());
     }
     $oNewsletterTemplate->replaceIdentifier('recipient', TranslationPeer::getString('wns.newsletter.recipient', $this->oNewsletter->getLanguageId()));
     $oNewsletterTemplate->replaceIdentifier('subject', $this->oNewsletter->getSubject());
     $oNewsletterTemplate->render();
 }
 * 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;
Exemple #23
0
" />
	<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);
Exemple #24
0
					<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="<?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();
Exemple #26
0
        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 
Exemple #27
0
  	</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>
</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><?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 
</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;