public function run() { if ($this->element) { $this->class = CHTML::modelName($this->element); } else { $this->class = get_class($this); } if (empty($_POST) || !array_key_exists($this->class, $_POST)) { if (empty($this->element->event_id)) { if ($this->default) { // It's a new event so fetch the most recent element_diagnosis $firmId = Yii::app()->session['selected_firm_id']; $firm = Firm::model()->findByPk($firmId); if (isset(Yii::app()->getController()->patient)) { $patientId = Yii::app()->getController()->patient->id; $episode = Episode::getCurrentEpisodeByFirm($patientId, $firm, true); if ($episode && ($disorder = $episode->diagnosis)) { // There is a diagnosis for this episode $this->value = $disorder->id; $this->label = $disorder->term; } } } } else { if (isset($this->element->disorder)) { $this->value = $this->element->disorder->id; $this->label = $this->element->disorder->term; } } } elseif (array_key_exists($this->field, $_POST[$this->class])) { if (preg_match('/[^\\d]/', $_POST[$this->class][$this->field])) { if ($disorder = Disorder::model()->find('term=? and specialty_id is not null', array($_POST[$this->class][$this->field]))) { $this->value = $disorder->id; $this->label = $disorder->term; } } else { $this->value = $_POST[$this->class][$this->field]; if ($disorder = Disorder::model()->findByPk($this->value)) { $this->label = $disorder->term; } } } parent::run(); }
<?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'instructor-grid', 'ajaxUpdate' => false, 'dataProvider' => new KArrayDataProvider($model->instructors), 'selectionChanged' => ZHtml::clickableRow('Instructor/view'), 'columns' => array('full_name:text:Instructor', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Instructor', 'template' => '{view}{delete}', 'returnTo' => Yii::app()->request->requestUri)))); ?> <?php echo CHTML::link(CHtml::encode("Add New Instructor"), array("Instructor/create", 'company_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri));
<?php echo CHTML::link(CHtml::encode("Add Instructor to " . $model->summary), array("InstructorAssignment/create", 'class_id' => $model->id, 'company_id' => $model->company_id, 'returnTo' => Yii::app()->request->requestUri)); $un = $model->instructor_discrepancy; if ($un == 0) { echo "<br /><div>Instructors completely assigned, no instructor percentage remaining.</div>"; } ?> </div> <div class="span-9 last"> <b><?php echo CHtml::encode($model->getAttributeLabel('company')); ?> :</b> <?php echo CHtml::encode($model->company->name); echo CHTML::link("(Change)", array('update', 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); ?> </div> </div> <div class="clear"></div> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'instructorassignment-grid', 'ajaxUpdate' => false, 'summaryText' => $this->instructorSplitSummary(), 'dataProvider' => new KArrayDataProvider($model->instructor_assignments), 'columns' => array('instructor.full_name:text:Instructor', 'percentage:percent:Percentage', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'InstructorAssignment', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri)))); ?>
<?php Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('instructor-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <h1>Manage Instructors</h1> <p> You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. </p> <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button')); ?> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'instructor-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('style' => 'cursor: pointer;'), 'selectionChanged' => ZHtml::clickableRow('Instructor/view'), 'columns' => array('first_name', 'last_name', 'alias', 'instructor_type.description:text:Type', 'company.name:text:Company', 'email:email', 'cell_phone', 'other_phone', 'note', array('class' => 'CButtonColumn', 'template' => '{view}{delete}')))); echo CHTML::link("Add New Instructor", array("Instructor/create", 'returnTo' => Yii::app()->request->requestUri));
?> " /> <input type="hidden" name="equipments_type" value="<?php echo $model->equipments_type; ?> " /> <?php echo $form->labelEx($model, 'requirements_id'); ?> <?php //echo $form->textField($model,'requirements_id',array('size'=>10,'maxlength'=>10)); ?> <?php //echo $form->dropDownList('EquipmentRequirements', $model->requirements_id, CHTML::listData(Requirements::model()->findAll(), 'id', 'name' )); echo $form->dropDownList($model, 'requirements_id', CHTML::listData(Requirements::model()->findAll(), 'id', 'name')); ?> <?php echo $form->error($model, 'requirements_id'); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> </div> <?php $this->endWidget(); ?>
<!-- Responses --> <div class="form-group"> <br/> <?php echo CHTML::checkBox('converty', false, array('value' => 'Y', 'id' => 'converty')); echo ' ' . CHTML::label(gT("Convert Y to:"), 'converty'); ?> <?php echo CHTML::textField('convertyto', '1', array('id' => 'convertyto', 'size' => '3', 'maxlength' => '1')); ?> <?php echo CHTML::checkBox('convertn', false, array('value' => 'Y', 'id' => 'convertn')); echo ' ' . CHTML::label(gT("Convert N to:"), 'convertn'); ?> <?php echo CHTML::textField('convertnto', '2', array('id' => 'convertnto', 'size' => '3', 'maxlength' => '1')); ?> </div> </div> </div> </div> <div class="col-sm-12 col-md-6"> <!-- Column control --> <div class="panel panel-primary" id="pannel-6"> <div class="panel-heading"> <h4 class="panel-title"> <?php eT("Columns");
<?php $attributes = array('first_name', 'last_name', 'alias', 'email:email', 'cell_phone', 'other_phone', 'note:ntext', 'instructor_type.description:ntext:Instructor Type'); if ($model->is_company) { $attributes[] = 'company.name:ntext:Company'; } $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $attributes)); echo CHTML::link("Edit " . $model->full_name, array('update', 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); ?> <?php echo CHTML::link("Delete " . $model->full_name, array('#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'))); ?>
<?php $model = new ValidationTestForm(); $vdtModel = new VdtForm(); $form = $this->beginWidget('CActiveForm', array('id' => 'valid-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true), 'action' => $this->createUrl('validationTest/ss'))); ?> <div class="row"> <?php echo $form->textField($model, 'vdName'); ?> <?php echo $form->error($model, 'vdName'); ?> </div> <div class="row"> <?php echo CHTML::submitButton('提交'); ?> </div> <?php $this->endWidget(); ?> </div> fjskjkjsdfjsdfsk <div class="form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'create-folder-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true))); ?> <!-- 这里少了一个div --> <div class="input-group margin"> <?php echo $form->textField($vdtModel, 'newFolderName', array('placeholder' => "新文件夹名"));
<?php // TODO: replace this with a stat query $c = Yii::app()->db->createCommand(); $c->text = "select count(school_day) as count from school_calendar where school_year_id = :schoolyearid;"; $r = $c->queryRow(true, array('schoolyearid' => $model->id)); if ($r['count'] < 1) { echo CHTML::link("Auto-Populate School Days for " . $model->description, array('populate', 'id' => $model->id)); echo "<br />"; } echo CHTML::link("Add Date to " . $model->description, array("SchoolCalendar/create", 'school_year_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'schoolcalendar-grid', 'dataProvider' => new KArrayDataProvider($model->school_calendars), 'columns' => array('school_day:date:Date', 'minimum:boolean:Minimum', 'day_off:boolean:Day Off', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'SchoolCalendar', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri)))); ?>
), )); ?> <?php /*$form=$this->beginWidget('CActiveForm', array( 'id'=>'editquote', 'enableAjaxValidation'=>false, 'htmlOptions'=>array( 'onsubmit'=>"return false;", 'onkeypress'=>" if(event.keyCode == 13){ editJobQuote(); } " ), )); */?> <input type="hidden" id="editJob" value="<?php echo $book->id;?>" name="book"> <?php echo CHtml::textField('CleaningTime[PostCode]',$book->companyRequests[0]['postcode'],array('placeholder'=>'Property Post Code or Area' ,'class'=>'required','id'=>'code'));?> <?php echo CHTML::textField('CleaningTime[CleaningDate]',date('m/d/Y',strtotime($book->companyRequests[0]['cleaningdate'])),array('id'=>'datepicker' ,));?> <?php foreach($list as $l) { ?> <?php $t[]=$l->time; $res=array_combine($t,$t); ?> <?php } ?> <?php echo $form->dropDownList($mod,'time',$res,array('options'=>array($book->companyRequests[0]['cleaningtime']=>array('selected'=>true)))); ?> <?php/* foreach($serName as $l) { ?>
</div> </div> <div class="panel-footer"> <div id="regstep1footer" style="text-align:center"> <?php $this->renderPartial('/site/_BSCheckBoxWidget', array('form' => $form, 'fieldName' => 'isTermAccepted', 'model' => $model, 'explanationText' => '我已清楚並同意上述服務條款')); ?> <div> <?php echo CHTML::htmlButton('同意並繼續', array("id" => "regtermcontinuebtn", "class" => "btn btn-success", "style" => "width:49%", "disabled" => "disabled")); ?> <?php echo CHTML::htmlButton('不同意', array("onclick" => "javscript:history.back(-1)", "class" => "btn btn-danger", "style" => "width:49%")); ?> </div> </div> <div id="regstep2footer" style="display:none"> <?php echo CHtml::submitButton('建立帳戶', array('class' => "btn btn-primary btn-lg btn-block")); ?> <!--<span class="pull-right"><a href="#">Register</a></span><span><a href="#">Need help?</a></span>--> </div> </div> <?php $this->endWidget(); ?>
<input type="hidden" name="project_id" value="<?php // echo $_GET['project_id']; ?> " id="ytYumUserdocuments_name"> <input type="file" id="YumUserdocuments_name" name="YumUserdocuments[name]" class="form-control"> <input type="submit" value="submit" name="yt0" id="upload-documents" class="btn btn-primary right_button"> </form> --> <?php Yii::import('userdocuments.controllers.YumUserdocumentsController'); Yii::import('userdocuments.models.YumUserdocuments'); Yii::import('userdocuments.models.YumUserdocumentsprojects'); $userDocumentmodel = new YumUserdocuments(); echo CHtml::beginForm(array('//userdocuments/userdocuments/uploaddocuments'), 'POST', array('enctype' => 'multipart/form-data'), $htmlOptions = array('class' => 'form-group')); echo CHtml::activeFileField($userDocumentmodel, 'name', $htmlOptions = array('class' => 'form-control')); echo CHTML::hiddenField('project_id', $_GET['project_id']); echo CHtml::submitButton(Yum::t('submit'), array('class' => 'btn btn-primary right_button', 'id' => 'upload-documents')); echo CHtml::endForm(); ?> <h6>DOCS, VIDEOS, JPG & OTHER</h6> </div> </div> <div role="tabpanel" class="tab-pane fade" id="dropdown2" aria-labelledby="dropdown2-tab"> <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p> </div> </div> </div> </div>
echo $model->id; ?> </h1> <div id="patientMergeWrapper" class="container content"> <div class="row"> <div class="large-4 column large-centered text-right large-offset-8"> <section class="box dashboard"> <?php echo CHtml::link('Back to Patient Merge list', array('patientMergeRequest/index'), array('class' => 'button small')) . ' '; echo CHtml::link('add', array('patientMergeRequest/create'), array('class' => 'button small')); ?> </section> </div> </div> <div class="row"> <div class="large-8 column large-centered"> <?php $this->widget('zii.widgets.grid.CGridView', array('itemsCssClass' => 'grid', 'dataProvider' => $dataProvider, 'summaryText' => '<h3><small> {start}-{end} of {count} </small></h3>', 'htmlOptions' => array('id' => 'patientMergeList'), 'columns' => array('log'))); ?> <?php echo CHTML::activeTextArea($model, 'comment', array('disabled' => 'disabled')); ?> <br> </div> </div>
?> </h2> <?php echo $this->renderPartial('//admin/_form_errors', array('errors' => $errors)); ?> <?php if ($admin->getCustomSaveURL() !== '') { $formAction = $admin->getCustomSaveURL(); } else { $formAction = '#'; } $form = $this->beginWidget('BaseEventTypeCActiveForm', array('id' => 'generic-admin-form', 'enableAjaxValidation' => false, 'focus' => '#username', 'action' => $formAction, 'layoutColumns' => array('label' => 2, 'field' => 5))); $autoComplete = array('autocomplete' => Yii::app()->params['html_autocomplete']); echo $form->hiddenInput($admin->getModel(), 'id'); if (Yii::app()->request->getParam('returnUri')) { echo CHTML::hiddenField('returnUriEdit', Yii::app()->request->getParam('returnUri')); } ?> <?php foreach ($admin->getEditFields() as $field => $type) { if (is_array($type)) { switch ($type['widget']) { case 'MultiSelectList': ?> <div class="field-row furtherfindings-multi-select"> <?php echo $form->multiSelectList($admin->getModel(), $admin->getModelName() . '[' . $field . ']', $field, $type['relation_field_id'], $type['options'], array(), array('empty' => '', 'label' => $type['label'], 'searchable' => true), false, true); ?> </div> <?php
public function getAdminForm() { $allowedTags = CHTML::encode(implode(', ', $this->messageAllowedTags)); return array('title' => sprintf('%s %s.</p>', Yii::t('admin', '<p>If enabled, an access warning is presented to visitors the first time they visit your web store during a given browser session.' . 'If a customer closes their browser and then opens a new browser session, the access warning will appear again the next time they visit your web store.</p>' . '<p>You can customize the message to suit your needs.</p>' . '<p>The following HTML tags are supported for use in the message: '), $allowedTags), 'elements' => array('message' => array('type' => 'textarea', 'maxlength' => 1000, 'rows' => 5, 'class' => 'row-fluid narrow'), 'button_caption' => array('type' => 'text', 'maxlength' => 36, 'class' => 'row-fluid'))); }
<ul> <li><?php echo CHTML::radioButton('answers',false,array('value'=>'short','id'=>'answers-short')); echo CHTML::label(gT("Answer codes"),'answers-short');?> <ul> <li><?php echo CHTML::checkBox('converty',false,array('value'=>'Y','id'=>'converty')); echo CHTML::label(gT("Convert Y to"),'converty');?> <?php echo CHTML::textField('convertyto','1',array('id'=>'convertyto','size'=>'3','maxlength'=>'1')); ?> </li> <li><?php echo CHTML::checkBox('convertn',false,array('value'=>'Y','id'=>'convertn')); echo CHTML::label(gT("Convert N to"),'convertn');?> <?php echo CHTML::textField('convertnto','2',array('id'=>'convertnto','size'=>'3','maxlength'=>'1')); ?> </li> </ul> </li> <li><?php echo CHTML::radioButton('answers',true,array('value'=>'long','id'=>'answers-long')); echo CHTML::label(gT("Full answers"),'answers-long');?> </ul></fieldset> </div> <div class='right'> <fieldset> <legend><?php eT("Column control");?></legend> <input type='hidden' name='sid' value='<?php echo $surveyid; ?>' /> <?php if ($SingleResponse) { ?> <input type='hidden' name='response_id' value="<?php echo $SingleResponse;?>" /> <?php } eT("Choose columns");?>: <br /> <?php echo CHtml::listBox('colselect[]',array_keys($aFields),$aFields,array('multiple'=>'multiple','size'=>'20','style'=>'width:370px;','options'=>$aFieldsOptions));
<?php $this->renderPartial('_quote', array('quote' => $quote, 'hehe' => $hehe)); ?> </div> <?php $quoteModel = new QuoteForm(); $quoteForm = $this->beginWidget('CActiveForm', array('id' => 'quote-form')); ?> <?php echo $quoteForm->textField($quoteModel, 'hehe'); ?> <?php echo CHTML::ajaxSubmitButton('下一句', array('getQuote'), array('update' => '#quote-of-the-day')); $this->endWidget(); ?> <?php Yii::app()->clientScript->registerScript('scriptId', "\r\n\tvar count = 0;\r\n\tvar step = 10;\r\n\tvar speed = 500;\r\n\tfunction progress() {\r\n\t\t\$('#amount').text(count+'%');\r\n\t\t\$('#progress').progressbar('option', 'value', count);\r\n\t\tif(count < 100) {\r\n\t\t\tcount = count+step;\r\n\t\t\tsetTimeout(progress, speed);\r\n\t\t}\r\n\t}\r\n\tprogress();\r\n", CClientScript::POS_LOAD); ?> <h2><?php echo 'Progressbar'; ?> </h2> <?php $this->widget('zii.widgets.jui.CJuiProgressBar', array('id' => 'progress', 'value' => 0, 'htmlOptions' => array('style' => 'width:200px; height:20px; float:left;'))); ?>
<?php echo CHtml::link("Auto-Populate Cash for " . $model->summary, array("populateCash", 'id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'cash-grid', 'dataProvider' => new KArrayDataProvider($model->cash), 'selectionChanged' => ZHtml::clickableRow('CheckIncome/view', 'join'), 'columns' => array('check_num:ntext:Cash?', 'amount:currency:Cash Amount', 'payer:ntext:Payer', 'check_date:date:Cash Date', 'unassigned:currency:Un-Assigned', array('class' => 'CButtonColumn', 'template' => '{my_button}', 'buttons' => array('my_button' => array('label' => 'Un-Deposit', 'url' => 'Yii::app()->controller->createUrl("/CheckIncome/undeposit", array("id" => $data->id))', 'imageUrl' => Yii::app()->request->baseUrl . '/images/delete.png', 'options' => array('ajax' => array('type' => 'GET', 'url' => "js:\$(this).attr('href')", 'success' => 'js:function(data){ $.fn.yiiGridView.update("cash-grid");}')))))))); ?> <div class="span-8"> <?php $this->renderPartial("_cash_summary", array('model' => $model)); ?> </div> <div class="span-8 last"> <?php $this->renderPartial("_coin_summary", array('model' => $model)); ?> </div> <div class="clear"> </div> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('subtotal_cash_payments:currency:Cash Total from Payments', 'subtotal_reconciliation:currency:Cash from Reconciliation', 'discrepancy:currency:Discrepancy'))); echo '<div><br /></div>'; echo CHTML::link("Un-Deposit all Cash from " . $model->summary, '#', array('submit' => array('unassignAll', 'id' => $model->id, 'type' => 'cash', 'returnTo' => Yii::app()->request->requestUri), 'confirm' => 'Really remove all cash from deposit?'));
} } ?> </table> <?php foreach ($students as $st) { echo '<span class="span-11">'; echo CHTML::link(CHtml::encode("Add New Check for " . $st->full_name) . '<br />', array("CheckIncome/multiEntry", 'student_id' => $st->id, 'class_id' => $model->id, 'company_id' => $model->company_id, 'returnTo' => Yii::app()->request->requestUri)); echo "</span><span class=\"span-9 last\">"; $un = CheckIncome::underAssignedChecks(null, $st->id); if (count($un) > 0) { echo "Or pick from one of these checks:<br />"; } foreach ($un as $check) { echo CHTML::link($check->summary, array("Income/create", 'check_id' => $check->id, 'student_id' => $st->id, 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); echo CHtml::encode(': ' . Yii::app()->format->currency($check->unassigned) . ' available'); echo '<br />'; } echo "</span><br />"; } ?> <div class="clear"></div> <?php if (count($students) < 1) { echo "<em>All paid up! Nothing owed.</em>"; }
</td> </tr> <tr> <td>Bizrule:</td> <td colspan=2"> <?php echo CHTML::textArea('editItem[bizrule]', $editItem->bizrule, array('cols' => 70, 'rows' => 4)); ?> <br/> </td> </tr> <tr> <td>Data:</td> <td colspan=2"> <?php echo CHTML::textArea('editItem[data]', $editItem->data, array('cols' => 70, 'rows' => 4)); ?> <br/> </td> </tr> <tr> <td colspan="3"> <?php if (!$displayHelper->hasItems() || isset($_GET['createNew'])) { echo CHtml::submitButton('Create Item', array('name' => 'createItem')); } else { ?> Edit/Create/Delete:<br/> <table> <tr> <td>
<?php echo CHTML::link("Add Payment for " . $model->full_name, array("CheckExpense/create", 'payee_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'requiermentstatus-grid', 'dataProvider' => new KArrayDataProvider($model->expenses), 'columns' => array('check_num:ntext:Check #', 'amount:currency:Total Check Amount', 'check_date:date:Check Date', 'payer:text:Payer', 'delivered:date:Delivered to Company', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'CheckExpense', 'returnTo' => Yii::app()->request->requestUri)))); ?>
echo $form->hiddenField($model, '[' . $modelId . ']user_input', array("value" => $model->user_input)); ?> <td><?php echo $model->user_input; ?> </td> <td> <?php foreach ($geoDistances as $dis => $title) { $checked = $dis == $model->distance ? 'checked="checked"' : ''; echo '<input type="radio" id="Geolocation_' . $modelId . '_distance" name="Geolocation[' . $modelId . '][distance]" value="' . $dis . '" ' . $checked . '/> ' . $title . ' '; } ?> </td> <td><?php echo CHTML::link("remove", '#', array("id" => "link_" . $model->id, "class" => "btn btn-small rm-links")); ?> </td> </tr> <?php } ?> <tr> <?php $modelId = 'new'; $model = $newGeo; ?> <?php echo $form->hiddenField($model, '[' . $modelId . ']video_id', array("value" => $model_g->id)); ?> <?php
<div> <p><em>Requirement Summary:</em></p> <?php $this->renderPartial("_requirement_status", array('model' => $model)); ?> </div> <?php echo CHTML::link("Receive New Paperwork for " . $model->full_name, array("RequirementStatus/create", 'instructor_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'requirement-status-grid', 'dataProvider' => new KArrayDataProvider($model->requirement_status), 'columns' => array('requirement_type.description:text:Requirement', 'received:date:Received On', 'expired:date:Expires On', 'note:ntext:Note', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'RequirementStatus', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri)))); ?>
<?php $this->breadcrumbs = array('Check Incomes' => array('index'), $model->id); $this->menu = array(array('label' => 'Edit', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'))); ?> <h1>View Check <?php echo $model->summary; ?> </h1> <?php echo $this->renderPartial('_view', array('data' => $model)); $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('delivered:date', 'returned:date', 'deposit.deposited_date:date:Deposited', 'session.summary:text:Session', 'unassigned:currency:Un-Assigned'))); ?> <p></p> <h2>Assignments</h2> <?php $un = $model->unassigned; if ($un == 0) { echo "<div>Check completely assigned, no amounts to assign.</div>"; } // could be a tab, but probably not necessary at the moment echo CHTML::link("Add Split for " . CHtml::encode(Yii::app()->format->currencyZero($un) . ' (of ' . Yii::app()->format->currency($model->amount) . ')'), array("Income/create", 'check_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'income-grid', 'ajaxUpdate' => false, 'summaryText' => $this->splitSummary(), 'dataProvider' => new KArrayDataProvider($model->incomes), 'columns' => array('student.full_name:text:Student', 'class.summary:text:Class', 'amount:currency:Assigned Split', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'Income', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri))));
<h3>Extra Fees</h3> <?php echo CHTML::link("Add Extra Fee to Class", array("ExtraFee/create", 'class_id' => $model->id, 'returnTo' => Yii::app()->request->requestUri)); $this->widget('zii.widgets.grid.CGridView', array('id' => 'extrafees-grid', 'dataProvider' => new CArrayDataProvider($model->extra_fees), 'columns' => array('description', 'amount', 'pay_to_instructor:boolean', array('class' => 'CompositeButtonColumn', 'modelClassName' => 'ExtraFee', 'template' => '{update}{delete}', 'returnTo' => Yii::app()->request->requestUri)))); ?>
if (Yii::app()->user->checkAccess('asignar_menu_' . strtolower($this->ID)) || Yii::app()->user->checkAccess('asignar_menus')) { ?> <div class="form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'menu-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('role' => 'form', 'class' => 'form-horizontal'))); ?> <div class="form-group"> <?php echo $form->label($model, 'menu_id', array('class' => 'col-sm-2 control-label')); ?> <div class="col-sm-6"> <?php echo $form->dropDownList($model, 'menu_id', CHtml::listData(Menu::model()->findAll('id != 1'), 'id', 'nombre'), array('class' => 'form-control')); ?> </div> <div class="col-sm-4"> <?php echo CHTML::hiddenField('asignar_menu', 'true'); ?> <?php echo CHtml::submitButton('Asignar', array('class' => 'btn btn-primary asignar')); ?> </div> </div> <?php $this->endWidget(); ?> </div> <?php } }
<?php echo $form->labelEx($model, 'codigoalma'); ?> <?php echo $form->textField($model, 'codigoalma', array('size' => 3, 'maxlength' => 3, 'disabled' => '')); ?> <?php echo $form->error($model, 'codigoalma'); ?> </div> <div class="row"> <?php echo CHTML::hiddenField('codigoprove', $model->ocompra->codpro); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'codart'); ?> <?php $this->widget('ext.matchcode1.MatchCode1', array('nombrecampo' => 'codart', 'pintarcaja' => 1, 'ordencampo' => 6, 'controlador' => 'Docompratemp', 'relaciones' => $model->relations(), 'tamano' => 8, 'habilitado' => true, 'model' => $model, 'form' => $form, 'nombredialogo' => 'cru-dialog3', 'nombreframe' => 'cru-frame3', 'nombrearea' => 'miffuufu', 'nombrecampoareemplazar' => 'descri')); ?>
</div> <br> <?php $this->renderPartial('//base/_messages'); ?> <?php if ($personalDetailsConflictConfirm && Yii::app()->user->checkAccess('Patient Merge')) { ?> <div id="patientDataConflictConfirmation" class="row"> <div class="large-10 large-offset-1 column alert-box with-icon warning"> <h2> Personal details are conflicting. </h2> Please confirm you selected the right patients. <br> Note, the primary patient's personal details will <strong>NOT</strong> be overwritten.<br><br> <label> <?php echo CHTML::checkBox('PatientMergeRequest[personalDetailsConflictConfirm]', false); ?> I hereby confirm that I selected the right patients.</label> </div> </div> <div class="row"> <div class="large-12 column text-left"> </div> </div> <?php } ?> <div class="row"> <div class="large-3 column text-right large-offset-9"> <?php
<?php } ?> <?php $this->renderPartial('//base/_messages'); ?> <?php if (Yii::app()->user->checkAccess('Patient Merge')) { ?> <div class="row"> <div class="large-5 column text-right large-offset-7"> <div class="row"> <div class="large-9 column text-right"> <label> <?php echo CHTML::checkBox('PatientMergeRequest[confirm]', false); ?> I declare under penalty of perjury I reviewed the details and I would like to proceed to merge. </label> </div> <div class="large-3 column text-right"> <input class="warning" type="submit" value="Merge"> </div> </div> <div class="row"> <div class="large-3 column text-right large-offset-9"> <?php echo CHtml::link('cancel', array('patientMergeRequest/index'), array('class' => 'button primary')); ?>
/** * OpenEyes * * (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 * (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/>. * * @package OpenEyes * @link http://www.openeyes.org.uk * @author OpenEyes <*****@*****.**> * @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="segmented"> <?php preg_match('/OphCiExamination_Refraction_(.*?)_Integer/', $model, $m); $type = strtolower($m[1]); echo CHtml::dropDownList(CHTML::modelName($element) . '_' . $side . '_' . $field . '_sign', $element->{$side . "_" . $field} > 0 ? 1 : -1, CHtml::listData(OEModule\OphCiExamination\models\OphCiExamination_Refraction_Sign::model()->findAll(), 'name', 'value'), array('class' => 'inline signField', 'data-type' => $type)); $model = 'OEModule\\OphCiExamination\\models\\' . $model; $sign_id = $element->{$side . "_" . $field} > 0 ? 1 : 2; echo CHtml::dropDownList(CHTML::modelName($element) . '_' . $side . '_' . $field . '_integer', abs((int) $element->{$side . "_" . $field}), CHtml::listData($model::model()->findAll('sign_id=' . $sign_id), 'value', 'value'), array('class' => 'inline')); echo CHtml::dropDownList(CHTML::modelName($element) . '_' . $side . '_' . $field . '_fraction', number_format(abs($element->{$side . "_" . $field}) - abs((int) $element->{$side . "_" . $field}), 2), CHtml::listData(OEModule\OphCiExamination\models\OphCiExamination_Refraction_Fraction::model()->findAll(), 'name', 'value'), array('class' => 'inline')); echo CHtml::activeHiddenField($element, $side . "_" . $field); ?> </div>