当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper::convertDate2NHS方法代码示例

本文整理汇总了PHP中Helper::convertDate2NHS方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::convertDate2NHS方法的具体用法?PHP Helper::convertDate2NHS怎么用?PHP Helper::convertDate2NHS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helper的用法示例。


在下文中一共展示了Helper::convertDate2NHS方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    ?>
			<span id="<?php 
    echo $side;
    ?>
_sft_history_icon" class="sft-history-icon">
				<img src="<?php 
    echo $this->assetPath;
    ?>
/img/icon_info.png" style="height:20px" />
			</span>
			<div class="quicklook sft-history" style="display: none;">
				<?php 
    echo '<b>Previous SFT Measurements</b><br />';
    echo '<dl style="margin-top: 0px; margin-bottom: 2px;">';
    foreach ($past_sft as $previous) {
        echo '<dt>' . Helper::convertDate2NHS($previous['date']) . ' - ' . $previous['sft'] . '&micro;m</dt>';
    }
    echo '</dl>';
    ?>
			</div>
		<?php 
}
?>
	</div>
</div>

<?php 
echo $form->radioBoolean($element, $side . '_thickness_increase', array(), array('label' => 4, 'field' => 8));
echo $form->radioBoolean($element, $side . '_dry', array(), array('label' => 4, 'field' => 8));
?>
开发者ID:across-health,项目名称:OphCiExamination,代码行数:30,代码来源:form_Element_OphCiExamination_OCT_fields.php

示例2: array

<tr>
    <td class="priority">
        <?php 
echo $message->urgent ? "!!" : "";
?>
    </td>
    <td>
        <a href="<?php 
echo Yii::app()->createURL("/OphCoMessaging/default/view/", array('id' => $message->event_id));
?>
"><?php 
echo Helper::convertDate2NHS($message->getMessageDate());
?>
 </a>
    </td>
    <td>
        <?php 
echo $message->event->episode->patient->hos_num;
?>
    </td>
    <td>
        <?php 
echo $message->event->episode->patient->getHSCICName();
?>
    </td>
    <td>
        <?php 
echo $message->event->episode->patient->NHSDate('dob');
?>
    </td>
    <td>
开发者ID:across-health,项目名称:OphCoMessaging,代码行数:31,代码来源:message_row.php

示例3:

 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
?>

<tr class="history" data-ticket-id="<?php 
echo $ass->ticket->id;
?>
">
	<td><?php 
echo $ass->queue->name;
?>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><?php 
echo Helper::convertDate2NHS($ass->assignment_date);
?>
</td>
<td><?php 
echo $ass->assignment_firm->getNameAndSubspecialty();
?>
</td>
<td><?php 
echo $ass->assignment_user->getFullName();
?>
</td>
<td><?php 
echo $ass->report;
?>
</td>
<td><?php 
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:_ticketlist_history_row.php

示例4: appendSubmissionValues

 /**
  * Appends information about the submission of the application to the $record.
  *
  * @param array $record
  * @param int   $event_id
  */
 protected function appendSubmissionValues(&$record, $event_id)
 {
     if (@$_GET['submission']) {
         $event = Event::model()->findByPk($event_id);
         $svc = new OphCoTherapyapplication_Processor($event);
         $record['submission_status'] = $svc->getApplicationStatus();
         if ($record['submission_status'] == OphCoTherapyapplication_Processor::STATUS_SENT) {
             $most_recent = OphCoTherapyapplication_Email::model()->forEvent($event)->unarchived()->findAll(array('limit' => 1));
             $record['submission_date'] = Helper::convertDate2NHS($most_recent[0]->created_date);
         } else {
             $record['submission_date'] = 'N/A';
         }
     }
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:20,代码来源:ReportController.php

示例5: getAllergiesString

 /**
  * returns a standard allergy string for the patient
  *
  * @return string
  */
 public function getAllergiesString()
 {
     if (!$this->hasAllergyStatus()) {
         return 'Patient allergy status is not known';
     }
     if ($this->no_allergies_date) {
         return 'Patient has no known allergies (as of ' . Helper::convertDate2NHS($this->no_allergies_date) . ')';
     }
     $allergies = array();
     foreach ($this->allergies as $allergy) {
         $allergies[] = $allergy->name;
     }
     return 'Patient is allergic to: ' . implode(', ', $allergies);
 }
开发者ID:openeyeswales,项目名称:OpenEyes,代码行数:19,代码来源:Patient.php

示例6: foreach

								<th>Intervention</th>
								<th>Reason for stopping / Response acheived</th>
								<th>Comments</th>
							</tr>
							</thead>
							<tbody>
							<?php 
    foreach ($exceptional->{$side . '_relevantinterventions'} as $relevantintervention) {
        ?>
								<tr>
									<td><?php 
        echo Helper::convertDate2NHS($relevantintervention->start_date);
        ?>
</td>
									<td><?php 
        echo Helper::convertDate2NHS($relevantintervention->end_date);
        ?>
</td>
									<td><?php 
        echo $relevantintervention->getTreatmentName();
        ?>
</td>
									<td><?php 
        echo Yii::app()->format->Ntext($relevantintervention->getStopReasonText());
        ?>
</td>
									<td><?php 
        echo 'Start VA: ' . $relevantintervention->start_va . '<br />';
        echo 'End VA: ' . $relevantintervention->end_va . '<br />';
        if ($relevantintervention->comments) {
            echo Yii::app()->format->Ntext($relevantintervention->comments);
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:pdf_noncompliant.php

示例7:

			<br>
			<?php 
}
?>
			Service: <strong><?php 
echo $this->event->episode->firm->getSubspecialtyText();
?>
</strong>
		</div>

		<!-- Event dates -->
		<div class="large-4 column dates">
			<?php 
echo $event_type;
?>
 Created: <strong><?php 
echo Helper::convertDate2NHS($this->event->created_date);
?>
</strong>
			<br />
			<?php 
echo $event_type;
?>
 Printed: <strong><?php 
echo Helper::convertDate2NHS(date('Y-m-d'));
?>
</strong>
		</div>

	</div>
</header>
开发者ID:openeyeswales,项目名称:OpenEyes,代码行数:31,代码来源:event_header.php

示例8: getRisksString

 /**
  * returns a standard risk string for the patient
  *
  * @return string
  */
 public function getRisksString()
 {
     if (!$this->hasRiskStatus()) {
         return 'Patient risk status is not known';
     }
     if ($this->no_risks_date) {
         return 'Patient has no known risks (as of ' . Helper::convertDate2NHS($this->no_risks_date) . ')';
     }
     $risks = array();
     foreach ($this->risks as $risk) {
         $risks[] = $risk->name;
     }
     return 'Patient has risks: ' . implode(', ', $risks);
 }
开发者ID:4Xerneas,项目名称:OpenEyes,代码行数:19,代码来源:Patient.php

示例9:

</a></td>
	<td <?php 
if ($ticket->priority) {
    ?>
style="color: <?php 
    echo $ticket->priority->colour;
    ?>
"<?php 
}
?>
><?php 
echo $ticket->priority ? $ticket->priority->name : '-';
?>
</td>
	<td><?php 
echo Helper::convertDate2NHS($ticket->created_date);
?>
</td>
	<td><?php 
echo $ticket->getTicketFirm();
?>
</td>
	<td><?php 
echo $ticket->user->getFullName();
?>
</td>
	<td><?php 
echo $ticket->report ? $ticket->report : '-';
?>
</td>
	<td class="forceNoWrap"><?php 
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:_ticketlist_row.php

示例10: foreach

		<div class="large-6 column">
			<h3 class="data-title"><?php 
echo $element->getAttributeLabel('patient_unavailables');
?>
</h3>
			<div class="data-value">
				<?php 
if ($element->patient_unavailables) {
    foreach ($element->patient_unavailables as $unavailable) {
        ?>
						<div class="data-row">
							<?php 
        echo Helper::convertDate2NHS($unavailable->start_date);
        ?>
 to <?php 
        echo Helper::convertDate2NHS($unavailable->end_date);
        ?>
 (<?php 
        echo $unavailable->reason->name;
        ?>
).
						</div>
					<?php 
    }
} else {
    ?>
					No known availability restrictions.
				<?php 
}
?>
			</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:view_Element_OphTrOperationbooking_ScheduleOperation.php

示例11: array

             <div class="large-2 column">
                 <?php 
 echo CHtml::label('<strong>' . $operation->getAttributeLabel('referral_id') . ':</strong>', 'referral_id');
 ?>
             </div>
             <?php 
 if ($operation->canChangeReferral()) {
     ?>
                 <div class="large-4 column ">
                     <?php 
     $html_options = array('options' => array(), 'empty' => '- No valid referral available -', 'nowrapper' => true);
     $choices = $this->getReferralChoices();
     foreach ($choices as $choice) {
         if ($active_rtt = $choice->getActiveRTT()) {
             if (count($active_rtt) == 1) {
                 $html_options['options'][(string) $choice->id] = array('data-clock-start' => Helper::convertDate2NHS($active_rtt[0]->clock_start), 'data-breach' => Helper::convertDate2NHS($active_rtt[0]->breach));
             }
         }
     }
     echo CHtml::activedropDownList($operation, 'referral_id', CHtml::listData($this->getReferralChoices(), 'id', 'description'), $html_options, false, array('field' => 2));
     ?>
                 </div>
                 <div class="large-4 column end">
                     <span id="rtt-info" class="rtt-info" style="display: none">Clock start - <span
                             id="rtt-clock-start"></span> Breach - <span id="rtt-breach"></span></span>
                 </div>
                 <?php 
 } else {
     ?>
                 <div class="large-4 column end">
                     <?php 
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:schedule.php

示例12: htmlspecialchars

						<td>NHS</td>
					</tr>
				</tbody>
			</table>
			<table class="d_overview">
				<tbody>
					<tr>
						<td>SURGICAL FIRM:<?php 
        echo htmlspecialchars($session->firmName, ENT_QUOTES);
        ?>
</td>
						<td>ANAESTHETIST:</td>
						<td>&nbsp;</td>
						<td>DATE:</td>
						<td><?php 
        echo Helper::convertDate2NHS($session->date);
        ?>
</td>
					</tr>
					<tr>
						<td>COMMENTS: <?php 
        echo CHtml::encode($session->comments);
        ?>
</td>
					</tr>
				</tbody>
			</table>
			<table class="d_data">
				<tbody>
					<tr>
						<th>HOSPT NO</th>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:_print_diary.php

示例13: FromAddress

 /**
  * Render sender address
  * @param string $address Lines delimited with \n
  */
 public function FromAddress($address, $hide_date = false)
 {
     $this->setY(35);
     $this->MultiCell(0, 20, $address, 0, 'R');
     if (!$hide_date) {
         $this->Cell(0, 10, Helper::convertDate2NHS(date('Y-m-d')), 0, 2, 'R');
     }
     if ($this->body_start < $this->getY()) {
         $this->body_start = $this->getY();
     }
 }
开发者ID:openeyeswales,项目名称:OpenEyes,代码行数:15,代码来源:OETCPDF.php

示例14: foreach

 * (C) OpenEyes Foundation, 2011-2013
 * This file is part of OpenEyes.
 * OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 * OpenEyes 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 OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>.
 *
 * @link http://www.openeyes.org.uk
 *
 * @author OpenEyes <info@openeyes.org.uk>
 * @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust
 * @copyright Copyright (c) 2011-2013, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
?>

<div>Already booked for this patient:</div>
<ul class="duplicate-procedures">
	<?php 
foreach ($matched_procedures as $id => $ops) {
    foreach ($ops as $op) {
        ?>
			<li><?php 
        echo $op->eye->adjective . ' ' . $procs_by_id[$id]->term . ' - ' . Helper::convertDate2NHS($op->event->event_date);
        ?>
</li>
		<?php 
    }
}
?>
</ul>
<div>Do you wish to continue?</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:previous_procedures.php

示例15: substr

			</div>
			<div class="large-5 column end">
				<textarea id="operation_comments" name="Operation[comments_rtt]" rows=3 cols=50><?php 
    echo CHtml::encode($_POST['Operation']['comments_rtt']);
    ?>
</textarea>
			</div>
		</div>
	</div>

	<div class="field-row" style="margin-top: 1em">
		<span id="dateSelected">
			Date/Time currently selected: 
			<span class="highlighted">
				<?php 
    echo Helper::convertDate2NHS($session['date']);
    ?>
, <?php 
    echo substr($session['start_time'], 0, 5) . ' - ' . substr($session['end_time'], 0, 5);
    ?>
			</span>
		</span>
	</div>

	<div class="field-row">
		<button type="submit" class="secondary" id="confirm_slot">Confirm slot</button>
		<button type="button" class="warning" id="cancel_scheduling"><?php 
    echo 'Cancel ' . ($reschedule ? 're-' : '') . 'scheduling';
    ?>
</button>
	</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:_list.php


注:本文中的Helper::convertDate2NHS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。