<input type="text" name="product_name" id="paycode" readonly /> <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'paymentmethod_dialog', 'options' => array('title' => Yii::t('app', 'Payment Method'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $paymentmethod = new Paymentmethod('search'); $paymentmethod->unsetAttributes(); // clear any default values if (isset($_GET['Paymentmethod'])) { $paymentmethod->attributes = $_GET['Paymentmethod']; } $this->widget('zii.widgets.grid.CGridView', array('id' => 'paymentmethod-grid', 'dataProvider' => $paymentmethod->Searchwstatus(), 'filter' => $paymentmethod, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("+", array("name" => "send_absschedule", "id" => "send_absschedule", "onClick" => "$(\\"#paymentmethod_dialog\\").dialog(\\"close\\");$(\\"#paycode\\").val(\\"$data->paycode\\");$(\\"#Soheader_paymentmethodid\\").val(\\"$data->paymentmethodid\\"); "))'), array('name' => 'paymentmethodid', 'visible' => false, 'value' => '$data->paymentmethodid'), 'paycode', 'paydays'))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$.fn.yiiGridView.update("paymentmethod-grid");$("#paymentmethod_dialog").dialog("open"); return false;')); ?> <?php echo $form->error($model, 'paymentmethodid'); ?> </div> </td> <td> <div class="row"> <?php echo $form->labelEx($model, 'headernote'); ?> <?php echo $form->textArea($model, 'headernote', array('rows' => 6, 'cols' => 50)); ?> <?php
Yum::t('Yum Text Settings')=>array(Yii::t('app', 'index')), Yum::t('Create'), ); ?> <h1> <? echo Yum::t('New text Configuration'); ?></h1> <div class="form"> <? $form=$this->beginWidget('CActiveForm', array( 'id'=>'yum-text-settings-form', 'enableAjaxValidation'=>true, )); echo $this->renderPartial('/settings/_form', array( 'model'=>$model, 'form' =>$form )); ?> <div class="row buttons"> <? $url = array(Yii::app()->request->getQuery('returnTo')); if(empty($url[0])) $url = array('/textsettings/admin'); echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => $url)); ?> <? echo CHtml::submitButton(Yii::t('app', 'Create')); ?> </div> <? $this->endWidget(); ?> </div>
}, dataType: "text" }); }, "Cancel" : function() { $(this).dialog("close"); } }); } </script> <div id="listOptions" width="100%"> <table id="optionsList" width="100%" border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th title = "Name">Name</th> <th title = "Edit">Edit</th> <th title = "Delete">Delete</th> </tr> </thead> <tbody> </tbody> </table> </div> <div class="row"> <?php echo CHtml::Button(Yii::t("translation", 'Add Option'), array('id' => 'load', 'submit' => array('options/addOption'), 'type' => 'submit')); ?> </div>
<p> The Country <?php echo $model; ?> has been successfully created </p> <?php echo CHtml::Button(Yii::t('app', 'Back'), array('id' => $relation . '_done')); echo CHtml::Button(Yii::t('app', 'Add another Country'), array('id' => $relation . '_create'));
$this->breadcrumbs=array( 'Manage text settings'=>array('index'), $model->id=>array('view','id'=>$model->id), Yii::t('app', 'Update'), ); ?> <div class="form"> <? $form=$this->beginWidget('CActiveForm', array( 'id'=>'yum-text-settings-form', 'enableAjaxValidation'=>true, )); echo $this->renderPartial('/textsettings/_form', array( 'model'=>$model, 'form' =>$form )); ?> <div class="row buttons"> <? $url = array('yumTextSettings/admin'); echo CHtml::Button(Yum::t( 'Cancel'), array('submit' => $url)); ?> <? echo CHtml::submitButton(Yum::t( 'Update')); ?> </div> <? $this->endWidget(); ?> </div><!-- form -->
<div class="row"> <?php echo $form->labelEx($model, 'age'); ?> <?php echo $form->textField($model, 'age'); ?> <?php echo $form->error($model, 'age'); ?> </div> <div class="row buttons"> <?php echo CHtml::Button('SUBMIT', array('onclick' => 'send();')); ?> </div> <?php $this->endWidget(); ?> </div><!-- form --> <script type="text/javascript"> function send() { var data=$("#person-form-edit_person-form").serialize();
} echo $form->error($profile, $field->varname); /* lomake */ } ?> <div class="row form"> <div class="col-sm-3"> <div class="row"> <?php echo CHtml::Button('Jäädytä tunnuksesi', array('submit' => array('/site/myyjan_tilanne', "id" => $model->id, "tila" => 4), 'confirm' => 'Haluatko varmasti jäädyttää myyjä tunnuksesi? Aktivoidaksesi tunnus uudelleen sinun täytyy ottaa yhteyttä sähköpostiin asiakaspalvelu@miinus.fi.', 'class' => 'btn btn-warning btn-block')); ?> <br> <?php echo CHtml::Button('Poista tunnuksesi', array('submit' => array('/site/myyjan_tilanne', "id" => $model->id, "tila" => 5), 'confirm' => 'Haluatko varmasti poistaa myyjä tunnuksesi? Poistamisen jälkeen tunnukset eivät enää toimi.', 'class' => 'btn btn-danger btn-block')); ?> <br> <?php echo CHtml::link('Vaihda salasana', 'changepassword', array('class' => 'btn btn-primary btn-block')); ?> <br> <?php echo CHtml::submitButton($model->isNewRecord ? UserModule::t('Luo') : UserModule::t('Tallenna'), array('class' => 'btn btn-primary btn-block')); ?> </div> <?php $this->endWidget(); ?> </div>
?> <div class='hint'><?php if ('hint.Language.name' != ($hint = Yii::t('app', 'name'))) { echo $hint; } ?> </div> </div> <div class="row"> <?php echo $form->labelEx($model, 'last_update'); echo $form->textField($model, 'last_update'); echo $form->error($model, 'last_update'); ?> <div class='hint'><?php if ('hint.Language.last_update' != ($hint = Yii::t('app', 'last_update'))) { echo $hint; } ?> </div> </div> <?php echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('language/admin'))); echo CHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget(); ?> </div> <!-- form -->
<img src="images/note.png" alt="Note" /> <p style="margin-top:10px"><?php echo Yii::t('feedback', 'Note'); ?> </p> </div> </div> <div id="note_text"> <textarea id="note_textarea" rows="5" cols="35"></textarea> </div> <div class="jFormComponent button" style="width:90%; text-align:center"> <?php echo CHtml::Button(Yii::t('feedback', 'Cancel'), array('onclick' => 'closePanel();', 'onmouseover' => 'overButton();', 'onmouseout' => 'outButton();', 'class' => 'buttonFeed')); ?> <?php echo CHtml::Button(Yii::t('feedback', 'Send'), array('onclick' => 'sendFeedback();', 'onmouseover' => 'overButton();', 'onmouseout' => 'outButton();', 'class' => 'buttonFeed')); ?> </div> </div> <?php $this->endWidget(); ?> </div> </div><!-- page --> </div> <!-- ie6-container-wrap--> <div id="screen_draw" class="black_overlay"></div> <div id="screen_draw_loader"></div> </body>
?> '> <?php echo $form->textField($model, 'phone', array('size' => 50, 'maxlength' => 50)); echo $form->error($model, 'phone'); ?> </span> </div> </div> </div> </div> </div> <p class="alert"> <?php echo Yii::t('PersonModule.crud_static', 'Fields with <span class="required">*</span> are required.'); ?> </p> <div class="form-actions"> <?php echo CHtml::Button(Yii::t('D2companyModule.crud_static', 'Cancel'), array('class' => 'btn cancel')); echo ' ' . CHtml::submitButton(Yii::t('PersonModule.crud_static', 'Save'), array('class' => 'btn btn-primary')); ?> </div> <?php $this->endWidget(); ?> </div>
<?php $this->title = Yum::t('{role}', array('{role}' => $model->title)); $this->breadcrumbs = array(Yum::t('Roles') => array('index'), Yum::t('View'), $model->title); echo $model->description; ?> <br /> <?php echo Yum::p('This users have been assigned to this role'); ?> <?php if ($assignedUsers) { } $this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $assignedUsers, 'columns' => array('username', 'status'))); ?> <br /> <?php if (Yum::hasModule('membership')) { echo Yum::p('This users have a ordered memberships of this role'); if ($activeMemberships) { $this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $activeMemberships, 'columns' => array('id', 'user.username', array('name' => 'order_date', 'value' => 'date("Y. m. d G:i:s", $data->order_date)'), array('name' => 'end_date', 'value' => 'date("Y. m. d G:i:s", $data->end_date)'), array('name' => 'payment_date', 'value' => 'date("Y. m. d G:i:s", $data->payment_date)'), 'role.price', 'payment.title'))); } } if (Yii::app()->user->isAdmin()) { echo CHtml::Button(Yum::t('Update role'), array('submit' => array('role/update', 'id' => $model->id))); }
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'invacccurrency_dialog', 'options' => array('title' => Yii::t('app', 'Currency'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $currency = new Currency('searchwstatus'); $currency->unsetAttributes(); // clear any default values if (isset($_GET['Currency'])) { $currency->attributes = $_GET['Currency']; } $this->widget('zii.widgets.grid.CGridView', array('id' => 'invacccurrency-grid', 'dataProvider' => $currency->Searchwstatus(), 'filter' => $currency, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V", array("name" => "send_absschedule", "id" => "send_absschedule", "onClick" => "$(\\"#invacccurrency_dialog\\").dialog(\\"close\\"); $(\\"#invacccurrencyname\\").val(\\"$data->currencyname\\"); $(\\"#Invoiceacc_currencyid\\").val(\\"$data->currencyid\\"); "))'), array('name' => 'currencyid', 'visible' => false, 'value' => '$data->currencyid', 'htmlOptions' => array('width' => '1%')), 'currencyname', 'symbol'))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$("#invacccurrency_dialog").dialog("open"); return false;')); ?> <?php echo $form->error($model, 'currencyid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'currencyrate'); ?> <?php echo $form->textField($model, 'currencyrate'); ?> <?php echo $form->error($model, 'currencyrate');
$result = Yii::app()->db->createCommand("SELECT id_kri FROM kartu_rawat_inap WHERE `id_pasien`= '{$data}'")->queryAll(); //var_dump($result); foreach ($result as $zz) { $nomorkartu = $zz['id_kri']; } if (sizeof($result) == 0) { ?> <font color="#999999" size="6">Tidak mempunyai Nomor Kartu</b></font><br><br> <?php echo CHtml::Button('Daftar Sebagai Rawat Inap Baru', array('submit' => array('/trawatinap/CreateNotExisting', 'id' => $data))); ?> <?php } else { ?> <font color="#999999" size="6">Nomor Kartu <b><?php echo $nomorkartu; ?> </b></font><hr> <font color="#999999" size="4">Daftar Rekam medis Rawat Inap Pasien</font> <?php $gridDataProvider = new CActiveDataProvider('Trawatinap', array('criteria' => array('condition' => 'id_kri like "%' . $nomorkartu . '%"'))); ?> <?php $this->widget('booster.widgets.TbGridView', array('id' => 'trawatinap-grid', 'dataProvider' => $gridDataProvider, 'columns' => array('tgl', array('class' => 'booster.widgets.TbButtonColumn', 'template' => '{viewedit}{updateedit}{deleteedit}', 'buttons' => array('viewedit' => array('label' => 'View', 'imageUrl' => Yii::app()->request->baseUrl . '/images/view.png', 'url' => "CHtml::normalizeUrl(array('trawatinap/view','id'=>\$data->id_rawat_inap))"), 'updateedit' => array('label' => 'Update', 'imageUrl' => Yii::app()->request->baseUrl . '/images/create.png', 'url' => "CHtml::normalizeUrl(array('trawatinap/update','id'=>\$data->id_rawat_inap,'id_pasien'=>{$data}))"), 'deleteedit' => array('label' => 'Delete', 'imageUrl' => Yii::app()->request->baseUrl . '/images/delete.png', 'url' => "CHtml::normalizeUrl(array('trawatinap/delete','id'=>\$data->id_rawat_inap,'id_pasien'=>{$data}))")))))); echo CHtml::Button('Tambah Rawat Inap Baru', array('submit' => array('/trawatinap/CreateExisting', 'id' => $nomorkartu, 'id_pasien' => $data))); } ?>
<div class="form"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'payment-form', 'enableAjaxValidation' => true)); echo $form->errorSummary($model); ?> <div class="row"> <?php echo $form->labelEx($model, 'title'); echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255)); echo $form->error($model, 'title'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'text'); echo $form->textArea($model, 'text', array('rows' => 6, 'cols' => 50)); echo $form->error($model, 'text'); ?> </div> <?php echo CHtml::Button(Yii::t('app', 'Cancel'), array('onClick' => "\$('#" . $relation . "_dialog').dialog('close');")); echo CHtml::Button(Yii::t('app', 'Create'), array('id' => "submit_" . $relation)); $this->endWidget(); ?> </div> <!-- form -->
echo $form->error($model, 'stst_icon'); ?> <?php if ('help.stst_icon' != ($help = Yii::t('D1StatusModule.crud', 'help.stst_icon'))) { echo "<span class='help-block'>{$help}</span>"; } ?> </div> </div> </div> <!-- main inputs --> <div class="span4"> <!-- sub inputs --> </div> <!-- sub inputs --> </div> <div class="form-actions"> <?php echo CHtml::Button(Yii::t('D1StatusModule.crud', 'Cancel'), array('submit' => isset($_GET['returnUrl']) ? $_GET['returnUrl'] : array('stststate/admin'), 'class' => 'btn')); echo ' ' . CHtml::submitButton(Yii::t('D1StatusModule.crud', 'Save'), array('class' => 'btn btn-primary')); ?> </div> <?php $this->endWidget(); ?> </div> <!-- form -->
echo $form->error($model, 'event_url'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'event_status'); ?> <?php echo $form->dropDownList($model, 'event_status', array('1' => 'แสดง', '0' => 'ไม่แสดง')); ?> <?php echo $form->error($model, 'event_status'); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'เพิ่มข้อมูล' : 'บันทึกข้อมูล'); ?> <?php echo CHtml::Button('ยกเลิก', array('submit' => array('index'))); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
<?php $result = Yii::app()->db->createCommand("SELECT id_kartu_bersalin FROM kartu_bersalin WHERE `id_pasien`= '{$data}'")->queryAll(); foreach ($result as $zz) { $nomorkartu = $zz['id_kartu_bersalin']; } if (sizeof($result) == 0) { ?> <font color="#999999" size="6">Tidak mempunyai Nomor Kartu</b></font><br><br> <?php echo CHtml::Button('Daftar Sebagai Rawat Bersalin Baru', array('submit' => array('/tbersalin/CreateNotExisting', 'id' => $data))); ?> <?php } else { ?> <font color="#999999" size="6">Nomor Kartu <b><?php echo $nomorkartu; ?> </b></font><hr> <font color="#999999" size="4">Daftar Rekam medis Rawat Bersalin Pasien</font> <?php $gridDataProvider = new CActiveDataProvider('Tbersalin', array('criteria' => array('condition' => 'id_kartu_bersalin like "%' . $nomorkartu . '%"'))); ?> <?php $this->widget('booster.widgets.TbGridView', array('id' => 'tbersalin-grid', 'dataProvider' => $gridDataProvider, 'columns' => array('tgl', array('class' => 'booster.widgets.TbButtonColumn', 'template' => '{viewedit}{updateedit}{deleteedit}', 'buttons' => array('viewedit' => array('label' => 'View', 'imageUrl' => Yii::app()->request->baseUrl . '/images/view.png', 'url' => "CHtml::normalizeUrl(array('tbersalin/view','id'=>\$data->id_bersalin))"), 'updateedit' => array('label' => 'Update', 'imageUrl' => Yii::app()->request->baseUrl . '/images/create.png', 'url' => "CHtml::normalizeUrl(array('tbersalin/update','id'=>\$data->id_bersalin,'id_pasien'=>{$data}))"), 'deleteedit' => array('label' => 'Delete', 'imageUrl' => Yii::app()->request->baseUrl . '/images/delete.png', 'url' => "CHtml::normalizeUrl(array('tbersalin/delete','id'=>\$data->id_bersalin,'id_pasien'=>{$data}))")))))); echo CHtml::Button('Tambah Rawat Bersalin Baru', array('submit' => array('/tbersalin/CreateExisting', 'id' => $nomorkartu, 'id_pasien' => $data))); } ?>
<div class="row"> <label for="customer"><?php echo Yii::t('app', 'Customer'); ?> </label> <?php $this->widget('GtcRelation', array('model' => $model, 'relation' => 'customer', 'fields' => 'itemLabel', 'allowEmpty' => true, 'style' => 'dropdownlist', 'htmlOptions' => array('checkAll' => 'all'))); ?> <br /> </div> <div class="row"> <label for="staff"><?php echo Yii::t('app', 'Staff'); ?> </label> <?php $this->widget('GtcRelation', array('model' => $model, 'relation' => 'staff', 'fields' => 'itemLabel', 'allowEmpty' => true, 'style' => 'dropdownlist', 'htmlOptions' => array('checkAll' => 'all'))); ?> <br /> </div> <?php echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('payment/admin'))); echo CHtml::submitButton(Yii::t('app', 'Save')); $this->endWidget(); ?> </div> <!-- form -->
<?php //menu selection available only for edit if (isset($menuId)) { echo $form->hiddenField($model, 'menu', array('value' => $menuId)); } else { ?> <div class="row"> <?php echo $form->labelEx($model, 'menu_id'); ?> <?php echo $form->dropDownList($model, 'menu', CHtml::listData(Menu::model()->findAll(), 'id', 'name')); ?> <?php echo $form->error($model, 'menu_id'); ?> </div> <?php } ?> <div class="row buttons"> <?php echo CHtml::submitButton(Yii::t('app', 'Save')); echo CHtml::Button(Yii::t('app', 'Cancel'), array('submit' => 'javascript:history.go(-1)')); ?> </div> <?php $this->endWidget(); ?> </div>
echo Yii::t('crud', 'Fields with <span class="required">*</span> are required.'); ?> </p> <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'category-form', 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'type' => 'horizontal')); echo $form->errorSummary($model); $this->renderPartial('_elements', array('model' => $model, 'form' => $form)); ?> <div class="form-actions"> <?php echo CHtml::Button(Yii::t('crud', 'Cancel'), array('submit' => isset($_GET['returnUrl']) ? $_GET['returnUrl'] : array('category/admin'), 'class' => 'btn')); echo ' ' . CHtml::submitButton(Yii::t('crud', 'Save'), array('class' => 'btn btn-primary')); ?> </div> <?php $this->endWidget(); ?> </div> <!-- form --> <!-- Modal create-forms referenced to from create buttons (if any) --> <?php foreach (array_reverse($this->clips->toArray(), true) as $key => $clip) { // Reverse order for recursive modals to render properly if (strpos($key, "modal:") === 0) { echo $clip;
<?php echo $form->hiddenField($model, 'snroid'); ?> <input type="text" name="stat_name" id="description" readonly style="width:80%" value="<?php echo Snro::model()->findByPk($model->snroid) !== null ? Snro::model()->findByPk($model->snroid)->description : ''; ?> "> <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'snro_dialog', 'options' => array('title' => Yii::t('app', 'Absence Status'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $this->widget('zii.widgets.grid.CGridView', array('id' => 'absstatus-grid', 'dataProvider' => $snro->searchwstatus(), 'filter' => $snro, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("+", array("name" => "send_absstatus", "id" => "send_absstatus", "onClick" => "$(\\"#snro_dialog\\").dialog(\\"close\\"); $(\\"#description\\").val(\\"$data->description\\"); $(\\"#Permitin_snroid\\").val(\\"$data->snroid\\");"))'), array('name' => 'snroid', 'visible' => false, 'value' => '$data->snroid', 'htmlOptions' => array('width' => '1%')), 'description', 'formatdoc', array('class' => 'CCheckBoxColumn', 'name' => 'recordstatus', 'selectableRows' => '0', 'header' => 'Record Status', 'checked' => '$data->recordstatus')))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$("#snro_dialog").dialog("open"); return false;')); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'recordstatus'); ?> <?php echo $form->checkBox($model, 'recordstatus'); ?> <?php echo $form->error($model, 'recordstatus'); ?> </div>
?> <?php echo $form->dropDownList($model, 'id_kecamatan', array(), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'id_kecamatan'); ?> </div> <div class="row buttons"> <?php echo CHtml::Button($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary', 'id' => 'save')); ?> <?php echo CHtml::Button("Cancel", array('class' => 'btn btn-danger cancel-button')); ?> </div> <?php $this->endWidget(); ?> </div><!-- form --> <script> $(function(){ //untuk cancel button, jika diklik form akan menghilang $(".cancel-button").click(function(){ $(".form-x").fadeOut('slow',function(){ $(".form-x").empty();
echo CHtml::activeDropDownList($model, 'appear_in_search', array('0' => Yum::t('Do not appear in search'), '1' => Yum::t('Appear in search'))); ?> </div> <?php } ?> <div class="row"> <?php echo $form->labelEx($model, 'ignore_users'); echo $form->textField($model, 'ignore_users', array('size' => 100)); echo $form->error($model, 'ignore_users'); ?> <div class="hint"> <p> <?php echo Yum::t('Separate usernames with comma to ignore specified users'); ?> </p> </div> </div> <?php echo CHtml::Button(Yum::t('Cancel'), array('submit' => array('//profile/profile/view'))); echo CHtml::submitButton(Yum::t('Save')); $this->endWidget(); ?> </div> <!-- form --> <?php Yii::app()->clientScript->registerScript('profile_toggle', "\n\tif(\$('#YumProfile_allow_comments').val() == '0')\n\t\$('.message_new_profilecomment').hide();\n\n\t\$('#YumProfile_allow_comments').change(function () {\n\tif(\$(this).val() == '0')\n\t\$('.message_new_profilecomment').hide(500);\n\tif(\$(this).val() == '1')\n\t\$('.message_new_profilecomment').show(500);\n});\n");
<div class="form"> <p class="note"><span class="required">*</span> หมายเหตุ : คลิกค้างที่รายชื่อและลากเพื่อย้ายตำแหน่ง</p> <div style="cursor: move"> <?php // Organize the dataProvider data into a Zii-friendly array $items = CHtml::listData($dataProvider->getData(), 'link_id', 'name_th'); // Implement the JUI Sortable plugin $this->widget('zii.widgets.jui.CJuiSortable', array('id' => 'orderList', 'items' => $items)); // Add a Submit button to send data to the controller ?> </div><br/> <div class="row buttons"> <?php echo CHtml::ajaxButton('บันทึกการเปลี่ยนแปลง', '', array('type' => 'POST', 'htmlOptions' => array('style' => 'cursor: pointer'), 'data' => array('Order' => 'js:$("ul#orderList").sortable("toArray").toString()'), 'success' => 'function(){ alert("บันทึกข้อมูลเรียบร้อยแล้ว"); var win=window.open(baseUrl,"_self"); with(win.document) { close(); } } ')); ?> <?php echo CHtml::Button('ยกเลิก', array('onClick' => 'window.location="' . Yii::app()->createUrl('link') . '"')); ?> </div> </div>
}else{ //$("#registro-pujas-pujar-form").empty(); $("#registro-pujas-pujar-form").html(data); } } //return false; }', 'context' => 'js:this', 'beforeSend' => 'function(xhr,settings){ }', 'complete' => 'function(){ //$("#pujaModal").html(json); //$("#pujaModal").dialog("close"); //alert("Puja exitosa!"); }'); if ($imagen->puja_indefinida == 0) { echo CHtml::Button('Puja Ilimitada', array('onclick' => ' if(confirm("¿Esta seguro que desea realizar un puja ilimitada por esta obra?")){ $("input#pujailimitada").attr("value",1); $("#' . $submitButtonId . '").trigger("click"); } //alert($("input#pujailimitada").attr("value"));')); } echo CHtml::ajaxSubmitButton('Pujar', '', $ajaxPujar, array('id' => $submitButtonId)); ?> </div> <?php $this->endWidget(); ?> </div> <div id="resultado">
</span> </div> </div> <?php ?> </div> </div> </div> <p class="alert"> <?php echo Yii::t('TrucksModule.crud_static', 'Fields with <span class="required">*</span> are required.'); ?> </p> <!-- TODO: We need the buttons inside the form, when a user hits <enter> --> <div class="form-actions" style="visibility: hidden; height: 1px"> <?php echo CHtml::Button(Yii::t('TrucksModule.crud_static', 'Cancel'), array('submit' => isset($_GET['returnUrl']) ? $_GET['returnUrl'] : array('vtdtTruckDocType/admin'), 'class' => 'btn')); echo ' ' . CHtml::submitButton(Yii::t('TrucksModule.crud_static', 'Save'), array('class' => 'btn btn-primary')); ?> </div> <?php $this->endWidget(); ?> </div> <!-- form -->
?> <input type="text" name="subdistrict_name" id="subdistrict_name" readonly > <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'subdistrict_dialog', 'options' => array('title' => Yii::t('app', 'Subdistrict'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $subdistrict = new Subdistrict('searchwstatus'); $subdistrict->unsetAttributes(); // clear any default values if (isset($_GET['Subdistrict'])) { $subdistrict->attributes = $_GET['Subdistrict']; } $this->widget('zii.widgets.grid.CGridView', array('id' => 'subdistrict-grid', 'dataProvider' => $subdistrict->Searchwstatus(), 'filter' => $subdistrict, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("+", array("name" => "send_subdistrict", "id" => "send_subdistrict", "onClick" => "$(\\"#subdistrict_dialog\\").dialog(\\"close\\"); $(\\"#subdistrict_name\\").val(\\"$data->subdistrictname\\"); $(\\"#Customeraddress_subdistrictid\\").val(\\"$data->subdistrictid\\");"))'), array('name' => 'subdistrictid', 'visible' => false, 'value' => '$data->subdistrictid', 'htmlOptions' => array('width' => '1%')), 'subdistrictname'))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$.fn.yiiGridView.update("subdistrict-grid");$("#subdistrict_dialog").dialog("open"); return false;')); ?> <?php echo $form->error($model, 'subdistrictid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'phoneno'); ?> <?php echo $form->textField($model, 'phoneno'); ?> <?php echo $form->error($model, 'phoneno');
echo $form->dropDownList($model, 'q3', $model->getQ3Options()); ?> <?php echo $form->error($model, 'q3'); ?> </div> <div class="row"> <h2>4. Your company's PC number is:</h2> <?php echo $form->dropDownList($model, 'q4', $model->getQ4Options()); ?> <?php echo $form->error($model, 'q4'); ?> </div> <div class="row buttons"> <?php echo CHtml::Button('back', array("onclick" => "javascript:history.go(-1)")); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
?> </div> <br> <div class="row"> <?php echo $form->labelEx($modelRepairWork, 'work_id'); ?> <?php echo $form->dropDownList($modelRepairWork, 'work_id', Chtml::listData(Work::model()->findAll(array('condition' => 'active = 1 AND service_type_id=2', 'order' => 'name')), 'id', 'name'), array('prompt' => 'Seleccionar un trabajo')); ?> <?php echo CHtml::Button('Agregar +', array('id' => 'agregar', 'name' => 'agregar', 'onclick' => 'send();')); ?> <?php echo $form->error($modelRepairWork, 'work_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'finished'); ?> <?php echo $form->checkBox($model, 'finished', array('value' => 1, 'uncheckValue' => 0));
<?php echo Yii::t('p3MediaModule.model', 'relation.P3MediaTranslations'); ?> </h3> <?php echo '<i>' . Yii::t('P3MediaModule.crud', 'Switch to view mode to edit related records.') . '</i>'; ?> </div> </div> <!-- sub inputs --> </div> <p class="alert"> <?php echo Yii::t('P3MediaModule.crud', 'Fields with <span class="required">*</span> are required.'); ?> </p> <!-- TODO: We need the buttons inside the form, when a user hits <enter> --> <div class="form-actions" style="visibility: hidden; height: 1px"> <?php echo CHtml::Button(Yii::t('P3MediaModule.crud', 'Cancel'), array('submit' => isset($_GET['returnUrl']) ? $_GET['returnUrl'] : array('p3Media/admin'), 'class' => 'btn')); echo ' ' . CHtml::submitButton(Yii::t('P3MediaModule.crud', 'Save'), array('class' => 'btn btn-primary')); ?> </div> <?php $this->endWidget(); ?> </div> <!-- form -->