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


PHP EventAction::button方法代码示例

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


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

示例1: array

 * 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/>.
 *
 * @package OpenEyes
 * @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
 */
?>

<?php 
$this->beginContent('//patient/event_container');
?>
	<?php 
$this->event_actions[] = EventAction::button('Save', 'save', array('level' => 'save'), array('form' => 'examination-create'));
?>

	<?php 
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'examination-create', 'enableAjaxValidation' => false, 'layoutColumns' => array('label' => 4, 'field' => 8)));
?>

      <?php 
if (!empty($errors)) {
}
?>
		 <script type='text/javascript'>
            $(document).ready( function(){
                 window.formHasChanged = true;
            });
         </script>
开发者ID:across-health,项目名称:OphCiExamination,代码行数:31,代码来源:create.php

示例2: array

 />
					</td>
					<td><?php 
    echo $sessionunavailablereason->name;
    ?>
</td>
				</tr>
			<?php 
}
?>
			</tbody>
			<tfoot>
			<tr>
				<td colspan="2">
					<?php 
echo EventAction::button('Add', 'add', null, array('class' => 'button small', 'data-uri' => '/OphTrOperationbooking/admin/Addsessionunavailablereason'))->toHtml();
?>
				</td>
			</tr>
			</tfoot>
		</table>
	</form>
</div>

<script type="text/javascript">
	$(document).ready(function() {
		$('.sessionunavailablereasons-enabled').on('change', function() {
			var checkbox = $(this);
			var id = $(this).val();
			var action = 'disabled';
			if ($(this).is(':checked')) {
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:sessionunavailablereasons.php

示例3: array

					<label class="inline"><input type="checkbox" name="inline_week1" value="1" /> 1st</label>
					<input type="hidden" name="inline_week2" value="0" />
					<label class="inline"><input type="checkbox" name="inline_week2" value="1" /> 2nd</label>
					<input type="hidden" name="inline_week3" value="0" />
					<label class="inline"><input type="checkbox" name="inline_week3" value="1" /> 3rd</label>
					<input type="hidden" name="inline_week4" value="0" />
					<label class="inline"><input type="checkbox" name="inline_week4" value="1" /> 4th</label>
					<input type="hidden" name="inline_week5" value="0" />
					<label class="inline"><input type="checkbox" name="inline_week5" value="1" /> 5th</label>
				</fieldset>
			</div>
		</div>
		<div class="row field-row">
			<div class="large-10 large-offset-2 column">
				<?php 
echo EventAction::button('Update', 'update_inline', array('colour' => 'green'))->toHtml();
?>
				<img class="loader" src="<?php 
echo Yii::app()->assetManager->createUrl('img/ajax-loader.gif');
?>
" alt="loading..." style="display: none;" />
			</div>
		</div>
	<?php 
$this->endWidget();
?>
</div>

<div id="confirm_delete_sequences" title="Confirm delete sequence" style="display: none;">
	<div id="delete_sequences">
		<div class="alert-box alert with-icon">
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:sequences.php

示例4: array

 * 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
 */
?>

<?php 
$this->beginContent('//patient/event_container');
?>
	<?php 
$this->event_actions[] = EventAction::button('Save', 'save', array('level' => 'save'), array('form' => 'clinical-create'));
$this->title .= ' (' . $this->getNextStep()->name . ')';
?>
	<?php 
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'clinical-create', 'enableAjaxValidation' => false, 'layoutColumns' => array('label' => 4, 'field' => 8)));
?>
		<?php 
$this->displayErrors($errors);
?>
		<?php 
$this->renderPartial('//patient/event_elements', array('form' => $form));
?>
		<?php 
$this->displayErrors($errors, true);
?>
开发者ID:openeyes,项目名称:openeyes,代码行数:30,代码来源:step.php

示例5: array

 * 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
 */
$this->beginContent('//patient/event_container');
?>

	<?php 
// Event actions
if ($this->checkPrintAccess()) {
    $this->event_actions[] = EventAction::button('Print', 'print', null, array('id' => 'et_print', 'class' => 'button small'));
}
?>

	<?php 
$this->renderPartial('//base/_messages');
?>

	<?php 
if ($this->event->delete_pending) {
    ?>
		<div class="alert-box alert with-icon">
			This event is pending deletion and has been locked.
		</div>
	<?php 
} elseif (Element_OphDrPrescription_Details::model()->find('event_id=?', array($this->event->id))->draft) {
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:view.php

示例6: array

    echo $step->position;
    ?>
</td>
						<td><?php 
    echo $step->name;
    ?>
</td>
						<td><a href="#" class="removeElementSet" rel="<?php 
    echo $step->id;
    ?>
">Remove</a></td>
					</tr>
				<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
				<tr>
					<td colspan="3">
						<?php 
echo EventAction::button('Add step', 'add_step', null, array('class' => 'small'))->toHtml();
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
<div class="box_admin" id="step_element_types">
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:30,代码来源:update_Workflow_ElementSets.php

示例7: array

					<td>
						<a href="/admin/editAnaestheticAgent/<?php 
    echo $anaestheticAgent->id;
    ?>
">Edit</a>
						&nbsp;|&nbsp;
						<a href="/admin/deleteAnaestheticAgent/<?php 
    echo $anaestheticAgent->id;
    ?>
">Delete</a>
					</td>
				</tr>
			<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
			<tr>
				<td colspan="3">
					<?php 
echo EventAction::button('Add', 'add', null, array('class' => 'small', 'data-uri' => '/OphTrOperationnote/admin/addPostOpDrug'))->toHtml();
?>
					<?php 
echo EventAction::button('Delete', 'delete', null, array('class' => 'small', 'data-uri' => '/OphTrOperationnote/admin/deletePostOpDrugs', 'data-object' => 'drug'))->toHtml();
?>
				</td>
			</tr>
			</tfoot>
		</table>
	</form>
</div>
开发者ID:code-4-england,项目名称:OpenEyes,代码行数:31,代码来源:anaestheticagent.php

示例8: array

    echo $model->recipient_email;
    ?>
						</td>
					</tr>
				<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
				<tr>
					<td colspan="5">
						<?php 
echo EventAction::button('Add', 'add', null, array('class' => 'small', 'data-uri' => '/OphCoTherapyapplication/admin/addEmailRecipient'))->toHtml();
?>
						<?php 
echo EventAction::button('Delete', 'delete', null, array('class' => 'small', 'data-uri' => '/OphCoTherapyapplication/admin/deleteEmailRecipients', 'data-object' => 'email_recipients'))->toHtml();
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
	<h3>How the rules are applied</h3>
	<p>
		Rules set for a specific site override rules set for "All sites", so for example you could set a rule for "All sites" and then override it for a few sites that need different rules.
	</p>
	<p>
		If any rules are found that match the current site AND the letter type (compliant/non-compliant), they are ALL used.  So for example if you have three email addresses associated with St Georges and non-compliant, and the letter being sent is non-compliant, they will all be processed and all three recipients will receive the emails.
	</p>
	<p>
		If there are rules that match the current site but not the letter type, or no rules for the current site at all, it will fall back to looking for rules for "All sites" which do match the letter type.  In this case all rules found for "All sites" which match the letter type of the letter being sent will be processed and all recipients defined in these rules will receive the emails.
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:list_OphCoTherapyapplication_Email_Recipient.php

示例9: array

    echo $site->remote_id;
    ?>
</td>
						<td><?php 
    echo $site->name;
    ?>
</td>
						<td><?php 
    echo $site->getLetterAddress(array('delimiter' => ', '));
    ?>
</td>
					</tr>
				<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
				<tr>
					<td colspan="4">
						<?php 
echo EventAction::button('Add', 'add', array(), array('class' => 'small'))->toHtml();
?>
						<?php 
echo $this->renderPartial('_pagination', array('pagination' => $pagination));
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
开发者ID:openeyeswales,项目名称:OpenEyes,代码行数:31,代码来源:sites.php

示例10: array

 and its descendants<?php 
}
?>
?</strong></p>
		</div>
	</div>
</div>
<?php 
echo $this->renderPartial('//admin/_form_errors', array('errors' => $errors));
?>
<div>
	<?php 
echo EventAction::button('Delete', 'delete', array('colour' => 'green'))->toHtml();
?>
	<?php 
echo EventAction::button('Cancel', 'cancel', array('level' => 'cancel'))->toHtml();
?>
	<img class="loader" src="<?php 
echo Yii::app()->assetManager->createUrl('img/ajax-loader.gif');
?>
" alt="loading..." style="display: none;" />
</div>
<script type="text/javascript">
	handleButton($('#et_cancel'),function() {
		window.location.href = baseUrl+'/OphTrOperationbooking/admin/edit'+OE_rule_model+'/<?php 
echo $rule->id;
?>
';
	});
	handleButton($('#et_delete'),function() {
		$('#lcr_deleteform').submit();
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:deletewaitinglistcontactrule.php

示例11: array

">
						<td><input type="checkbox" name="workflows[]" value="<?php 
    echo $model->id;
    ?>
" /></td>
						<td>
							<?php 
    echo $model->name;
    ?>
						</td>
					</tr>
				<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
				<tr>
					<td colspan="5">
						<?php 
echo EventAction::button('Add', 'add', null, array('class' => 'small', 'data-uri' => '/OphCiExamination/admin/addWorkflow'))->toHtml();
?>
						<?php 
echo EventAction::button('Delete', 'delete', null, array('class' => 'small', 'data-uri' => '/OphCiExamination/admin/deleteWorkflows', 'data-object' => 'email_recipients'))->toHtml();
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:30,代码来源:list_OphCiExamination_Workflow.php

示例12: array

						<td><a href="<?php 
    echo Yii::app()->createUrl('/' . $event->eventType->class_name . '/default/view/' . $event->id);
    ?>
"><?php 
    echo $event->eventType->name;
    ?>
 <?php 
    echo $event->id;
    ?>
</a></td>
						<td><?php 
    echo $event->delete_reason;
    ?>
</td>
						<td>
							<?php 
    echo EventAction::button('Approve', 'approve', null, array('class' => 'small'))->toHtml();
    ?>
							<?php 
    echo EventAction::button('Reject', 'reject', null, array('class' => 'small'))->toHtml();
    ?>
						</td>
					</tr>
				<?php 
}
?>
			</tbody>
		</table>
	</form>
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:30,代码来源:event_deletion_requests.php

示例13: array

 * @copyright Copyright (c) 2011-2013, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
$this->beginContent('//patient/event_container');
$assetAliasPath = 'application.modules.OphInBiometry.assets';
$this->moduleNameCssClass .= ' edit';
?>

	<div class="row">
		<div class="large-12 column">

			<section class="element">
				<?php 
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'biometry-event-select', 'enableAjaxValidation' => false));
// Event actions
$this->event_actions[] = EventAction::button('Continue', 'save', array('level' => 'secondary'), array('form' => 'biometry-event-select', 'class' => 'button small'));
?>
					<?php 
$this->displayErrors($errors);
?>

					<header class="element-header">
						<h3 class="element-title">Select Biometry Report</h3>
					</header>

					<div class="element-fields">

						<div class="field-row">
							<div class="field-info">
								<?php 
if (count($imported_events) > 0) {
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:select_imported_event.php

示例14: array

 * 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 class="box admin">
	<header class="box-header">
		<h2 class="box-title">Waiting list contact rules</h2>
		<div class="box-actions">
			<?php 
echo EventAction::button('Add', 'add_letter_contact_rule', null, array('class' => 'button small'))->toHtml();
?>
		</div>
	</header>

	<form id="rulestest" class="panel">
		<fieldset class="row field-row">
			<legend class="large-1 column align">
				Test:
			</legend>
			<div class="large-2 column">
				<?php 
echo CHtml::dropDownList('lcr_site_id', '', Site::model()->getListForCurrentInstitution('name'), array('empty' => '- Site -'));
?>
			</div>
			<div class="large-2 column">
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:waitinglistcontactrules.php

示例15: array

 * (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
 */
// Event actions
$this->event_actions[] = EventAction::link('Cancel', Yii::app()->createUrl('/patient/episode/' . $episode->id), array('level' => 'cancel'));
$this->event_actions[] = EventAction::button('Save', 'save', array('id' => 'episode_save', 'level' => 'save'));
if ($episode->diagnosis) {
    $eye = $episode->eye ? $episode->eye->name : 'None';
    $diagnosis = $episode->diagnosis ? $episode->diagnosis->term : 'none';
} else {
    $eye = 'No diagnosis';
    $diagnosis = 'No diagnosis';
}
$episode->audit('episode summary', 'view');
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'update-episode', 'enableAjaxValidation' => false, 'action' => array('patient/updateepisode/' . $episode->id)));
?>

	<div class="element-data">
		<h2>Summary</h2>
		<h3><?php 
echo $episode->firm->serviceSubspecialtyAssignment->subspecialty->name;
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:updateEpisode.php


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