protected function renderDate($field, $makeLinks, $textOnly, $encode) { $fieldName = $field->fieldName; if (empty($this->owner->{$fieldName})) { return ' '; } elseif (is_numeric($this->owner->{$fieldName})) { return Formatter::formatLongDate($this->owner->{$fieldName}); } else { return $this->render($this->owner->{$fieldName}, $encode); } }
</th> </tr> <tr> <td> <?php echo Formatter::formatLongDate($quote->createDate); ?> </td> <td> <?php echo Formatter::formatLongDate($quote->lastUpdated); ?> </td> <td> <?php echo Formatter::formatLongDate($quote->expirationDate); ?> </td> </tr> <tr> <th><?php echo Yii::t('quotes', 'Created By'); ?> </th> <th><?php echo Yii::t('quotes', 'Updated By'); ?> </th> <th><?php echo Yii::t('quotes', 'Status'); ?>
echo Yii::t('actions', 'Due:') . " </span>" . Actions::parseStatus($data->dueDate) . '</b>'; } elseif (!empty($data->createDate)) { echo Yii::t('actions', 'Created:') . " </span>" . Formatter::formatLongDateTime($data->createDate) . '</b>'; } else { echo " "; } } } elseif ($data->type == 'workflow') { // $actionData = explode(':',$data->actionDescription); echo Yii::t('workflow', 'Process:') . '<b> ' . $data->workflow->name . '/' . $data->workflowStage->name . '</b> '; } elseif ($data->type == 'event') { echo '<b>' . CHtml::link(Yii::t('calendar', 'Event') . ': ', '#', array('class' => 'action-frame-link', 'data-action-id' => $data->id)); if ($data->allDay) { echo Formatter::formatLongDate($data->dueDate); if ($data->completeDate) { echo ' - ' . Formatter::formatLongDate($data->completeDate); } } else { echo Formatter::formatLongDateTime($data->dueDate); if ($data->completeDate) { echo ' - ' . Formatter::formatLongDateTime($data->completeDate); } } echo '</b>'; } elseif ($data->type == 'call') { echo Yii::t('actions', 'Call:') . ' ' . ($data->completeDate == $data->dueDate ? Formatter::formatCompleteDate($data->completeDate) : Formatter::formatTimeInterval($data->dueDate, $data->completeDate, '{start}; {decHours} ' . Yii::t('app', 'hours'))); } elseif ($data->type == 'webactivity') { echo Yii::t('actions', 'This contact visited your website'); } elseif ($data->type == 'time') { echo Formatter::formatTimeInterval($data->dueDate, $data->dueDate + $data->timeSpent); } else {
<strong><?php echo $contact->renderAttribute('dealvalue'); ?> </strong><br /> <?php } ?> <?php if (isset($contact->closedate) && $contact->closedate != "") { ?> <?php echo Yii::t('contacts', 'Close Date') . ": "; ?> <strong><?php echo Formatter::formatLongDate($contact->closedate); ?> </strong><br /> <?php } ?> <?php if (isset($contact->dealstatus) && $contact->dealstatus != "") { ?> <?php echo Yii::t('contacts', 'Deal Status') . ": "; ?> <strong><?php echo $contact->renderAttribute('dealstatus'); ?>