• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP EventAction类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: actionCreate

 /**
  * Handle the selection of a booking for creating an op note.
  *
  * (non-phpdoc)
  *
  * @see parent::actionCreate()
  */
 public function actionCreate()
 {
     $errors = array();
     // if we are after the submit we need to check if any event is selected
     if (preg_match('/^biometry([0-9]+)$/', Yii::app()->request->getPost('SelectBiometry'), $m)) {
         $importedEvent = OphInBiometry_Imported_Events::model()->findByPk($m[1]);
         $this->updateImportedEvent(Event::model()->findByPk($importedEvent->event_id), $importedEvent);
         $this->redirect(array('/OphInBiometry/default/view/' . $importedEvent->event_id . '?autosaved=1'));
     }
     $criteria = new CDbCriteria();
     // we are looking for the unlinked imported events in the database
     $criteria->addCondition('patient_id = :patient_id');
     $criteria->addCondition('is_linked = 0');
     $criteria->addCondition('event.deleted = 0');
     $criteria->params = array(':patient_id' => $this->patient->id);
     $unlinkedEvents = OphInBiometry_Imported_Events::model()->with(array('patient', 'event'))->findAll($criteria);
     // if we have 0 unlinked event we follow the manual process
     if (sizeof($unlinkedEvents) == 0 || Yii::app()->request->getQuery('force_manual') == '1') {
         Yii::app()->user->setFlash('issue.formula', $this->flash_message);
         parent::actionCreate();
     } else {
         // if we have more than 1 event we render the selection screen
         $this->title = 'Please Select a Biometry Report';
         $this->event_tabs = array(array('label' => 'The following Biometry reports are available for this patient:', 'active' => true));
         $cancel_url = $this->episode ? '/patient/episode/' . $this->episode->id : '/patient/episodes/' . $this->patient->id;
         $this->event_actions = array(EventAction::link('Cancel', Yii::app()->createUrl($cancel_url), null, array('class' => 'button small warning')));
         $this->render('select_imported_event', array('errors' => $errors, 'imported_events' => $unlinkedEvents));
     }
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:36,代码来源:DefaultController.php


示例2: processEvents

function processEvents()
{
    global $CONFIG;
    $count = 0;
    while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_va_" . $count])) {
        $event = new Event($_POST[POST_INTERN_PROCESS_EVENTS . "_va_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vb_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vc_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vd_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_ve_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vf_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vg_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vh_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vk_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vl_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vm_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vn_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vo_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vp_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vq_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vt_" . $count]);
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENTS . "` WHERE `id`='" . DBManager::RealEscape($event->Id) . "' LIMIT 1;");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_ACTIONS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENTS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTIONS . "`.`eid`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_OVERLAYS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_ACTIONS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTION_OVERLAYS . "`.`action_id`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_RECEIVERS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_ACTIONS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTION_RECEIVERS . "`.`action_id`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_WEBSITE_PUSHS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_ACTIONS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTION_WEBSITE_PUSHS . "`.`action_id`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_URLS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "`.`uid`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENTS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "`.`eid`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_SENDERS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_OVERLAYS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTION_SENDERS . "`.`pid`) AND NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENT_ACTION_WEBSITE_PUSHS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_ACTION_SENDERS . "`.`pid`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_GOALS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_GOALS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_GOALS . "`.`goal_id`)");
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_URLS . "` WHERE NOT EXISTS (SELECT * FROM `" . DB_PREFIX . DATABASE_EVENTS . "` WHERE `id` = `" . DB_PREFIX . DATABASE_EVENT_URLS . "`.`eid`)");
        if (!isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vx_" . $count])) {
            queryDB(true, $event->GetSQL());
            $counturl = 0;
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_a_" . $counturl])) {
                $eventURL = new EventURL($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_f_" . $counturl], $event->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_a_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_b_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_c_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_d_" . $counturl]);
                queryDB(true, $eventURL->GetSQL());
                if (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_e_" . $counturl])) {
                    queryDB(true, "INSERT INTO `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "` (`eid`,`uid`,`ind`) VALUES ('" . DBManager::RealEscape($event->Id) . "','" . DBManager::RealEscape($eventURL->Id) . "','" . DBManager::RealEscape($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_e_" . $counturl]) . "');");
                }
                $counturl++;
            }
            $countgoals = 0;
            queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENT_GOALS . "` WHERE `event_id` = '" . DBManager::RealEscape($event->Id) . "';");
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count . "_a_" . $countgoals])) {
                queryDB(true, "INSERT INTO `" . DB_PREFIX . DATABASE_EVENT_GOALS . "` (`event_id`,`goal_id`) VALUES ('" . DBManager::RealEscape($event->Id) . "','" . DBManager::RealEscape($_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count . "_a_" . $countgoals]) . "');");
                $countgoals++;
            }
            $countaction = 0;
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_a_" . $countaction])) {
                $eventAction = new EventAction($event->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_b_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_c_" . $countaction]);
                queryDB(true, $eventAction->GetSQL());
                if ($eventAction->Type == 2 && isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_a_" . $countaction])) {
                    $invitationSettings = @unserialize(base64_decode($CONFIG["gl_invi"]));
                    array_walk($invitationSettings, "b64dcode");
                    //$invitationHTML = applyReplacements($BROWSER->ChatRequest->CreateInvitationTemplate($invitationSettings[13],$CONFIG["gl_site_name"],$CONFIG["wcl_window_width"],$CONFIG["wcl_window_height"],LIVEZILLA_URL,$INTERNAL[$BROWSER->ChatRequest->SenderSystemId],$invitationSettings[0]));
                    //$BROWSER->ChatRequest->Invitation = new Invitation($invitationHTML,$BROWSER->ChatRequest->Text,$invitationSettings);
                    $eventActionInvitation = new Invitation($eventAction->Id, $invitationSettings);
                    queryDB(true, $eventActionInvitation->GetSQL());
                    $countsender = 0;
                    while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_a_" . $countaction . "_" . $countsender])) {
                        $eventActionInvitationSender = new EventActionSender($eventActionInvitation->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_a_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_b_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_c_" . $countaction . "_" . $countsender]);
                        $eventActionInvitationSender->SaveSender();
                        $countsender++;
                    }
                } else {
                    if ($eventAction->Type == 5 && isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_a_" . $countaction])) {
                        $eventActionOverlayBox = new OverlayElement($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_b_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_c_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_d_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_e_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_f_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_g_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_h_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_i_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_j_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_k_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_l_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_m_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_n_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_o_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_p_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_q_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_r_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_ovb_s_" . $countaction]);
                        queryDB(true, $eventActionOverlayBox->GetSQL());
                    } else {
                        if ($eventAction->Type == 4 && isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_a_" . $countaction])) {
                            $eventActionWebsitePush = new WebsitePush($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_b_" . $countaction]);
                            $eventActionWebsitePush->SaveEventConfiguration();
                            $countsender = 0;
                            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_a_" . $countaction . "_" . $countsender])) {
                                $eventActionWebsitePushSender = new EventActionSender($eventActionWebsitePush->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_a_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_b_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_c_" . $countaction . "_" . $countsender]);
                                $eventActionWebsitePushSender->SaveSender();
                                $countsender++;
                            }
                        } else {
                            if ($eventAction->Type < 2) {
                                $countreceiver = 0;
                                while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_d_" . $countaction . "_" . $countreceiver])) {
                                    $eventActionReceiver = new EventActionReceiver($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_d_" . $countaction . "_" . $countreceiver], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_e_" . $countaction . "_" . $countreceiver]);
                                    queryDB(true, $eventActionReceiver->GetSQL());
                                    $countreceiver++;
                                }
                            }
                        }
                    }
                }
                $countaction++;
            }
        }
        $count++;
    }
    if ($count > 0) {
        CacheManager::SetDataUpdateTime(DATA_UPDATE_KEY_EVENTS);
    }
}
开发者ID:bgabor,项目名称:RenaniaOpencart,代码行数:85,代码来源:functions.internal.process.inc.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

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


示例5: AddTabAction

 /**
  * Constructor
  * @param $targetSelector string Selector for target to receive event.
  */
 function AddTabAction($targetSelector, $url, $title)
 {
     parent::EventAction($targetSelector, 'addTab', array('url' => $url, 'title' => $title));
 }
开发者ID:mczirfusz,项目名称:pkp-lib,代码行数:8,代码来源:AddTabAction.inc.php


示例6: array

					<td><?php 
    echo $firm->consultant ? $firm->consultant->fullName : 'None';
    ?>
</td>
					<td><?php 
    echo $firm->active ? 'Active' : 'Inactive';
    ?>
</td>
				</tr>
			<?php 
}
?>
			</tbody>
			<tfoot class="pagination-container">
			<tr>
				<td colspan="6">
					<?php 
echo EventAction::button('Add', 'add', array(), array('class' => 'small'))->toHtml();
?>
					<?php 
echo EventAction::button('Delete', 'delete', array(), array('class' => 'small'))->toHtml();
?>
					<?php 
echo $this->renderPartial('_pagination', array('pagination' => $pagination));
?>
				</td>
			</tr>
			</tfoot>
		</table>
	</form>
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:firms.php


示例7: 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 <[email protected]>
 * @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


示例8: 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


示例9: appendEvents

function appendEvents()
{
    global $VISITOR;
    $count = 0;
    while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_va_" . $count])) {
        $event = new Event($_POST[POST_INTERN_PROCESS_EVENTS . "_va_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vb_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vc_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vd_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_ve_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vf_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vg_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vh_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vk_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vl_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vm_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vn_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vo_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vp_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vq_" . $count], $_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count]);
        queryDB(true, "DELETE FROM `" . DB_PREFIX . DATABASE_EVENTS . "` WHERE `id`='" . @mysql_real_escape_string($event->Id) . "' LIMIT 1;");
        if (!isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vx_" . $count])) {
            queryDB(true, $event->GetSQL());
            $counturl = 0;
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_a_" . $counturl])) {
                $eventURL = new EventURL($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_f_" . $counturl], $event->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_a_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_b_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_c_" . $counturl], $_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_d_" . $counturl]);
                queryDB(true, $eventURL->GetSQL());
                if (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_e_" . $counturl])) {
                    queryDB(true, "INSERT INTO `" . DB_PREFIX . DATABASE_EVENT_FUNNELS . "` (`eid`,`uid`,`ind`) VALUES ('" . @mysql_real_escape_string($event->Id) . "','" . @mysql_real_escape_string($eventURL->Id) . "','" . @mysql_real_escape_string($_POST[POST_INTERN_PROCESS_EVENTS . "_vi_" . $count . "_e_" . $counturl]) . "');");
                }
                $counturl++;
            }
            $countgoals = 0;
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count . "_a_" . $countgoals])) {
                queryDB(true, "INSERT INTO `" . DB_PREFIX . DATABASE_EVENT_GOALS . "` (`event_id`,`goal_id`) VALUES ('" . @mysql_real_escape_string($event->Id) . "','" . @mysql_real_escape_string($_POST[POST_INTERN_PROCESS_EVENTS . "_vs_" . $count . "_a_" . $countgoals]) . "');");
                $countgoals++;
            }
            $countaction = 0;
            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_a_" . $countaction])) {
                $eventAction = new EventAction($event->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_b_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_c_" . $countaction]);
                queryDB(true, $eventAction->GetSQL());
                if ($eventAction->Type == 2 && isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_a_" . $countaction])) {
                    $eventActionInvitation = new Invitation($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_b_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_c_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_d_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_e_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_f_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_g_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_h_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_" . $countaction]);
                    queryDB(true, $eventActionInvitation->GetSQL());
                    $countsender = 0;
                    while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_a_" . $countaction . "_" . $countsender])) {
                        $eventActionInvitationSender = new EventActionSender($eventActionInvitation->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_a_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_b_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_inv_i_c_" . $countaction . "_" . $countsender]);
                        $eventActionInvitationSender->SaveSender();
                        $countsender++;
                    }
                } else {
                    if ($eventAction->Type == 4 && isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_a_" . $countaction])) {
                        $eventActionWebsitePush = new WebsitePush($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_a_" . $countaction], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_b_" . $countaction]);
                        $eventActionWebsitePush->SaveEventConfiguration();
                        $countsender = 0;
                        while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_a_" . $countaction . "_" . $countsender])) {
                            $eventActionWebsitePushSender = new EventActionSender($eventActionWebsitePush->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_a_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_b_" . $countaction . "_" . $countsender], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_wp_c_c_" . $countaction . "_" . $countsender]);
                            $eventActionWebsitePushSender->SaveSender();
                            $countsender++;
                        }
                    } else {
                        if ($eventAction->Type < 2) {
                            $countreceiver = 0;
                            while (isset($_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_d_" . $countaction . "_" . $countreceiver])) {
                                $eventActionReceiver = new EventActionReceiver($eventAction->Id, $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_d_" . $countaction . "_" . $countreceiver], $_POST[POST_INTERN_PROCESS_EVENTS . "_vj_" . $count . "_e_" . $countaction . "_" . $countreceiver]);
                                queryDB(true, $eventActionReceiver->GetSQL());
                                $countreceiver++;
                            }
                        }
                    }
                }
                $countaction++;
            }
        }
        $count++;
    }
}
开发者ID:beardon,项目名称:stillwaterlife-web,代码行数:63,代码来源:functions.internal.process.inc.php


示例10: array

    ?>
" /></td>
						<td><?php 
    echo $incisionLength->value;
    ?>
</td>
						<td><?php 
    echo $incisionLength->firm->getNameAndSubspecialty();
    ?>
</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/incisionLengthDefaultAddForm'))->toHtml();
?>
						<?php 
echo EventAction::button('Delete', 'delete', null, array('class' => 'small', 'data-uri' => '/OphTrOperationnote/admin/deleteIncisionLengthDefaults', 'data-object' => 'incisionLength'))->toHtml();
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:30,代码来源:incisionlengthdefaults.php


示例11: array

<?php

/**
 * OpenEyes.
 *
 * (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2013
 * (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 <[email protected]>
 * @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', array());
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'update-form', 'enableAjaxValidation' => false, 'layoutColumns' => array('label' => 2, 'field' => 10)));
$this->event_actions[] = EventAction::button('Save', 'save', array('level' => 'save'), array('form' => 'update-form'));
$this->displayErrors($errors);
$this->renderPartial('//patient/event_elements', array('form' => $form, 'disableOptionalElementActions' => true));
$this->displayErrors($errors, true);
$this->endWidget();
$this->endContent();
开发者ID:openeyes,项目名称:openeyes,代码行数:27,代码来源:update.php


示例12: array

 *
 * @author OpenEyes <[email protected]>
 * @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('class' => 'button small'));
}
if ($this->editable && ($next_step = $this->getNextStep())) {
    $this->event_actions[] = EventAction::link($next_step->name, Yii::app()->createUrl($this->event->eventType->class_name . '/default/step/' . $this->event->id), null, array('class' => 'button small'));
}
?>

<?php 
if ($this->event->delete_pending) {
    ?>
	<div class="alert-box alert with-icon">
		This event is pending deletion and has been locked.
	</div>
<?php 
}
?>

<?php 
$this->renderOpenElements($this->action->id);
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:view.php


示例13: array

    echo $cb->address ? $cb->address->address1 : 'None';
    ?>
</td>
					</tr>
				<?php 
}
?>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="5">
						<?php 
echo EventAction::button('Add', 'add_commissioning_body', array(), array('class' => 'small'))->toHtml();
?>
						<?php 
echo EventAction::button('Delete', 'delete_commissioning_body', array(), array('class' => 'small'))->toHtml();
?>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
<div id="confirm_delete_commissioning_bodies" title="Confirm delete commissioning_body" style="display: none;">
	<div>
		<div id="delete_commissioning_bodies">
			<div class="alertBox" style="margin-top: 10px; margin-bottom: 15px;">
				<strong>WARNING: This will remove the commissioning bodies from the system.<br/>This action cannot be undone.</strong>
			</div>
			<p>
				<strong>Are you sure you want to proceed?</strong>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:commissioning_bodies.php


示例14: 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


示例15: array

 *
 * (C) OpenEyes Foundation, 2016
 * 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 <[email protected]>
 * @copyright Copyright (c) 2016, OpenEyes Foundation
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
?>

<div class="admin box">
    <h2>Worklist Patients: <?php 
echo $worklist->name;
?>
 (<?php 
echo $worklist->worklist_definition->name;
?>
)</h2>
<?php 
echo EventAction::link('All Instances', '/worklistAdmin/definitionWorklists/' . $worklist->worklist_definition_id, array('level' => 'secondary'), array('class' => 'button small'))->toHtml();
?>
&nbsp;<?php 
echo EventAction::link('Definition Mappings', '/worklistAdmin/definitionMappings/' . $worklist->worklist_definition_id, array('level' => 'secondary'), array('class' => 'button small'))->toHtml();
echo $this->manager->renderWorklistForDashboard($worklist);
?>
</div>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:worklist_patients.php


示例16: 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


示例17: array

 *
 * @link http://www.openeyes.org.uk
 *
 * @author OpenEyes <[email protected]>
 * @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 
$form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'correspondence-create', 'enableAjaxValidation' => false, 'layoutColumns' => array('label' => 2, 'field' => 10)));
// Event actions
$this->event_actions[] = EventAction::button('Save draft', 'savedraft', array('level' => 'secondary'), array('id' => 'et_save_draft', 'class' => 'button small', 'form' => 'correspondence-create'));
$this->event_actions[] = EventAction::button('Save and print', 'saveprint', array('level' => 'secondary'), array('id' => 'et_save_print', 'class' => 'button small', 'form' => 'correspondence-create'));
?>

		<?php 
if (!$this->patient->practice || !$this->patient->practice->contact->address) {
    ?>
			<div id="no-practice-address" class="alert-box alert with-icon">
				Patient has no GP practice address, please correct in PAS before creating GP letter.
			</div>
		<?php 
}
?>

		<?php 
$this->displayErrors($errors);
?>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:create.php


示例18: array


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP EventLog类代码示例发布时间:2022-05-23
下一篇:
PHP Event类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap