<div id="link_edit"> <?php if ($profile->attachment != NULL && $profile->attachment->secret_name != null) { ?> <?php echo Chtml::link(Yii::t('app', 'Изменить'), 'javascript: void(0)', array('onClick' => 'editPhoto()', 'class' => 'btn green')); ?> <?php echo Chtml::link(Yii::t('app', 'Удалить'), 'javascript: void(0)', array('onClick' => 'deletePhoto(' . $model->id . ', ' . $profile->attachment->id . ')', 'class' => 'btn red')); ?> <?php } else { ?> <?php echo Chtml::link(Yii::t('app', 'Загрузить'), 'javascript: void(0)', array('onClick' => 'editPhoto()', 'style' => 'margin-right: 220px; margin-top: 10px;', 'class' => 'btn green')); ?> <?php } ?> </div> </div> </div> <?php if ($profile->getError('attachment__id') != "") { ?> <div class="help-block font-red" id="usernameerror"><?php
</div> </div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'jabatan_aktif'); ?> <div class="mws-form-item small"> <?php echo $form->checkBox($model, 'jabatan_aktif', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'checked' => 'checked')); ?> </div> </div> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', $url = 'index.php?r=kepegawaian/jabatanM/admin', array('class' => 'mws-button gray left')); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue')) . ' '; echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form -->
<?php //echo $form->labelEx($model,'karyawan_aktif'); ?> <div class="mws-form-item small"> <?php //echo $form->checkBox($model,'karyawan_aktif'); ?> </div> </div>--> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', Yii::app()->createUrl($this->module->id . '/' . $this->id . '/admin'), array('class' => 'mws-button gray left')); echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue', 'type' => 'submit', 'onKeyPress' => 'return formSubmit(this,event)')); echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form --> <?php Yii::app()->clientScript->registerScript('onheadfungsi', ' function cekFingerPrint(){
/* SVN FILE: $Id: form.php 9 2010-12-17 13:21:39Z Chris $*/ /** * Form to manage and create Auth Items view. * * @copyright Copyright © 2010 PBM Web Development - All Rights Reserved * @package RBAM * @since V1.0.0 * @version $Revision: 9 $ * @license BSD License (see documentation) */ $module = $this->getModule(); $cs = Yii::app()->getClientScript(); echo '<div id="left-column">'; echo $form; if ($this->action->id === 'manage') { echo Chtml::link(Yii::t('RbamModule.rbam', 'Done'), $this->createUrl('index'), array('class' => 'button btn')); $cs->registerScript('makeNameEditable', 'jQuery("#AuthItem_name").dblclick(function(){jQuery(this).removeAttr("readonly");});'); // makes default role names editable } echo '</div>'; if ($this->action->id === 'manage') { echo '<div id="right-column">'; echo CHtml::tag('h3', array(), Yii::t('RbamModule.rbam', 'Manage Relationships')); foreach (array('parents', 'children', 'unrelated') as $relationship) { $this->widget('rbam.components.widgets.RbamRelationship', compact('item', 'relationship')); } Yii::app()->getClientScript()->registerScript('relationships', "jQuery().rbam.relationships('{$item->name}'," . CJavaScript::encode($this->config()) . ');'); echo '</div>'; $this->renderPartial('_assignments', compact('item', 'assignmentForm')); } $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'rbam-dialog-done', 'options' => array('dialogClass' => 'rbam-dialog', 'autoOpen' => false, 'open' => 'js:function() {
</div> </div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'subdepartement_akitf'); ?> <div class="mws-form-item small"> <?php echo $form->checkBox($model, 'subdepartement_akitf', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'checked' => 'checked')); ?> </div> </div> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', $url = 'index.php?r=kepegawaian/subdepartementM/admin', array('class' => 'mws-button gray left')); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue')) . ' '; echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form -->
?> </div> <div class="row"> <?php echo $form->labelEx($dupak, 'jenis_dupak_id'); ?> <?php echo $form->dropDownList($dupak, 'jenis_dupak_id', CHtml::listData(JenisDupak::model()->findAll(), 'id', 'nama')); ?> <?php echo $form->error($dupak, 'jenis_dupak_id'); ?> </div> <div class="row buttons"> <?php echo Chtml::link('<button>Back</button>', array('ktiItem/create')); ?> <?php echo CHtml::submitButton('Next'); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
<div class="icon-nav"> <i></i> </div> <div class="title-nav"> Delete </div> </a> </div> </div> <div class="table info-order" style="width: 99.5%; overflow: auto; border:1px solid #dcdcdc"> <div class="col-6" style="border-right: 1px solid #dcdcdc;"> <?php if ($model->store() != null) { ?> <label>Store</label>: <?php echo Chtml::link($model->store()->s_name, array("store/login", "id" => $model->store()->id), array("class" => "link login-authorized")); ?> <br /> <?php } ?> <?php if ($model->role != null) { ?> <label>Type Account</label>: <?php echo $model->role->title; ?> <br /> <?php } ?>
</div> </div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'kabupatenkota_aktif'); ?> <div class="mws-form-item small"> <?php echo $form->checkBox($model, 'kabupatenkota_aktif', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'checked' => 'checked')); ?> </div> </div> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', $url = 'index.php?r=kepegawaian/kabupatenkotaM/admin', array('class' => 'mws-button gray left')); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue')) . ' '; echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form -->
?> </a> <a href ="<?php echo Yii::app()->baseUrl; ?> /index.php/user/sendmessages"> <?php $this->widget('bootstrap.widgets.BootLabel', array('type' => 'success', 'label' => 'Send Items')); ?> </a> </div> <?php $model = ""; ?> <?php echo Chtml::link('New message', '', array('class' => 'btn pull-right')); ?> <div class ="span8"> <br/><br/><br/><br/> <?php foreach ($messages as $m) { ?> <table class="well-for-table"> <tr onmouseout="$('#img_<?php echo $m['id']; ?> ').hide()" onmouseover="$('#img_<?php echo $m['id']; ?>
</div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'statusberhenti_aktif'); ?> <div class="mws-form-item small"> <?php echo $form->checkBox($model, 'statusberhenti_aktif', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'checked' => 'checked')); ?> </div> </div> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', $url = 'index.php?r=kepegawaian/statusberhentiM/admin', array('class' => 'mws-button gray left')); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue')) . ' '; echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form -->
?> <?php $this->endWidget(); ?> <?php } ?> </div><!-- artikel --> </td> <td> <?php echo Chtml::link('Tweets by @BerKuliah', 'https://twitter.com/BerKuliah', array('class' => 'twitter-timeline', 'data-dnt' => 'true', 'data-widget-id' => '321252419063390209')); Yii::app()->clientScript->registerScript('berkuliah-tweets', "!function(d,s,id){\n" . " var js,\n" . " fjs=d.getElementsByTagName(s)[0],\n" . " p=/^http:/.test(d.location)?'http':'https';\n" . " if(!d.getElementById(id)){\n" . " js=d.createElement(s);\n" . " js.id=id;\n" . " js.src=p+'://platform.twitter.com/widgets.js';\n" . " fjs.parentNode.insertBefore(js,fjs);\n" . " }\n" . "}(document,'script','twitter-wjs');\n"); ?> </td> </tr> </table> <div id="twitter_t"></div> <div id="twitter_m"> <div id="twitter_container"> <ul id="twitter_update_list"></ul> </div> </div> <div id="twitter_b"> </div><!-- span9 -->
<div class="input-group round"> <?php $this->widget('application.components.widgets.AuthWidget'); ?> </div> </li> <?php else: ?> <?php $user = User::model()->findByPk(Yii::app()->user->id); ?> <li class="logINCabinet"> <hr noshade> <p><?= Yii::t('main', 'Особистий кабінет користувача'); ?></p> <img src="<?= Yii::app()->baseUrl.'/uploads/users/avatars/'.$user->avatar; ?>" alt=""> <h3><?= $user->name; ?></h3> <span><?= Yii::t('main', 'Кількість постів'); ?>: <span><?= Articles::model()->count(array('condition'=>'author_id = '.Yii::app()->user->id)); ?></span></span> <?php $article = Articles::model()->find(array('order'=>'date DESC', 'condition'=>'author_id = '.Yii::app()->user->id)); ?> <span><?= Yii::t('main', 'Останній пост'); ?>: <span><?= !empty($article) ? date('d-m-Y', strtotime($article->date)) : Yii::t('main', 'Немає постів'); ?></span></span> <?= Chtml::link(Yii::t('main', 'Особистий кабінет'), array('/blog/cabinet/index'), array('class'=>'button')); ?> <?= Chtml::link(Yii::t('main', 'Вийти'), array('/site/logout')); ?> </li> <?php endif; ?> </ul> </li> </ul> </nav> </header> <div class="topBlockInfo"> <div class="titleGarmata"> <p><?= Yii::t('main', 'Перше міське інтернет телебачення Чернігова'); ?></p> — <p><i class="fa fa-calendar"></i> <?= $this->getCurrentDate(); ?></p> </div> <div class="forTopButton"> <button>Реклама</button> — <button class="openModalAbout"><?= Yii::t('main', 'Редакція'); ?></button> </div> <div class="social">
</div> <div class="row-fluid"> <?php if ($role == 'notulen') { $this->renderPartial('_meetingNotulen', array('meetingForm' => $meetingForm, 'deadlineForm' => $deadlineForm, 'rapat' => $rapat, 'agendas' => $agendas, 'agenda' => $agenda, 'tempAgenda' => $tempAgenda, 'role' => $role)); } else { if ($role == 'chairperson') { $this->renderPartial('_meetingPIC', array('meetingForm' => $meetingForm, 'rapat' => $rapat, 'agendas' => $agendas, 'agenda' => $agenda, 'tempAgenda' => $tempAgenda, 'role' => $role)); } else { $this->renderPartial('_meetingMember', array('meetingForm' => $meetingForm, 'rapat' => $rapat, 'agendas' => $agendas, 'agenda' => $agenda, 'tempAgenda' => $tempAgenda, 'role' => $role)); } } ?> </div> <?php if ($role == 'chairperson') { ?> <div style="padding: 10px;"></div> <div class="b"> <div class="ta"> <h3> <?php echo Chtml::link('End Rapat', "index.php?r=site/endMeeting&idRapat={$rapat->id}"); ?> </h3> </div> </div> <?php }
/* @var $this AppellationsController */ /* @var $data Appellations */ ?> <div class="view"> <b><?php echo CHtml::encode($data->getAttributeLabel('appelation')); ?> :</b> <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id' => $data->id)); ?> <?php echo Chtml::link(CHtml::encode($data->appellation), array('view', 'id' => $data->id)); ?> <br /> <b><?php echo CHtml::encode($data->getAttributeLabel('country')); ?> :</b> <?php echo CHtml::encode($data->country); ?> <br /> <b><?php echo CHtml::encode($data->getAttributeLabel('region_id')); ?>
</div> <div class="modal-footer"> <button type="button" class="btn btn-outline pull-right btn-default" data-dismiss="modal"> Schließen </button> </div> </div> </div> </div> <!-- Content Header (Page header) --> <section class="content-header"> <h1>Rechnung</h1> <ol class="breadcrumb"> <li> <?php echo Chtml::link('Tourplan',array('schedule')); ?> </li> <li class="active"> Rechnung </li> </ol> <div id="some-data"> </div> <button id="changebt" type="button" class="btn btn-primary cancel" data-toggle="modal" data-target="#guideModal">Guide Info</button> </section> <!-- Main content --> <section class="content"> <div class="alert alert-success fade in" id="paysuccess" style="display: none;">
<p><a href="<?php echo Yii::app()->createUrl('site/reportsBrowse'); ?> ">Browse Reports</a></p> <div> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'grvKeywords', 'dataProvider' => $report->search(), 'filter' => $report, 'htmlOptions' => array(), 'columns' => array(array('name' => 'email', 'header' => 'Email', 'type' => 'raw', 'value' => function ($e) { return String::build('<span title="Added on {created_at}">{email}</span>', array('email' => $e->email, 'created_at' => Time::toPretty($e->created_at))); }), array('name' => 'last_send_at', 'header' => 'Last Update', 'filter' => false, 'value' => function ($e) { return Time::toPretty($e->last_send_at); }), array('header' => 'Next Update', 'value' => function ($e) { return date(Time::FORMAT_PRETTY, strtotime($e->last_send_at) + $e->period); }), array('header' => '', 'type' => 'raw', 'value' => function ($e) { $links = ''; if (time() - strtotime($e->last_send_at) > 600) { $links .= CHtml::link('Send Now', Yii::app()->createUrl('site/reportsSend', array('reportId' => $e->id))) . ' '; } $links .= Chtml::link('Delete', Yii::app()->createUrl('site/reportsDelete', array('reportId' => $e->id))); return $links; })))); ?> </div> <script type="text/javascript"> $("#ddlPeriod").change(function () { $("#txfPeriod").val($(this).val()); }); </script>
<?php /* @var $this SiteController */ /* @var $data Hosotimviec */ ?> <?php $ntd = User::model()->find('id=' . $data->hosocanhan_id); if ($ntd->getAttribute('loainguoidung') == 1 && $data->mucluong_id >= 7) { ?> <div class="div_vieclam"> <h2 class = "bold_red"> <?php echo Chtml::link(CHtml::encode($data->vtmongmuon), array('view', 'id' => $data->id)); ?> </h2> <p> <?php //$_model=$this->loadModel($data->hosocanhan_id); //print_r($_model) $_md = Hosotuyendung::model()->find('user_id=' . $data->hosocanhan_id); //echo $data->hosocanhan_id; echo $_md->getAttribute('tencty'); //print_r($_tencty); ?> </p> </div> <div class="div_vieclam" style="text-align: right;"> <blockquote>Mức lương: <?php
<?php if (ProductsConfig::model()->_checkSwitchedPoints()) { ?> <td><?php echo number_format($order->points, 2, '.', ''); ?> </td> <?php } ?> </tr> <?php } ?> <tbody> </table> </div> <div class="form-actions"> <?php echo CHtml::submitButton(Yii::t('app', 'Сохранить'), array('class' => 'btn green')); ?> </td> <?php echo Chtml::link(Yii::t('app', 'Отмена'), $this->createUrl('index'), ['class' => 'btn green']); ?> </div> </div> </div> <?php $this->endWidget();
<div class="store"> <div class="title"> Store Infomation </div> <div class="action"> <?php echo CHtml::link('<i></i>Edit', array('edit')); ?> <?php echo CHtml::link('<i></i>Delete', array('delete')); ?> </div> <div class="col-12"> <label>Manager: </label> <span><?php echo $model->userManager() != null ? Chtml::link($model->userManager()->s_fullname, array("user/detail", "id" => $model->userManager()->id), array("class" => "link")) : "N/A"; ?> </span> </div> <div class="col-12"> <label>Name: </label> <span><?php echo $model->s_name; ?> </span> </div> <div class="col-12"> <label>Address: </label> <span><?php echo $model->s_address; ?>
<div class="mws-form-row"> <?php echo $form->labelEx($model, 'komponengaji_aktif'); ?> <div class="mws-form-item small"> <?php echo $form->checkBox($model, 'komponengaji_aktif'); ?> </div> </div> </td> </tr> </table> <div class="mws-button-row"> <?php echo Chtml::link('Back', $url = 'index.php?r=sistemAdministrator/komponengajiM/admin', array('class' => 'mws-button gray left')); echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Create', array('class' => 'mws-button blue')); echo CHtml::ResetButton($model->isNewRecord ? 'Reset' : 'Reset', array('class' => 'mws-button green')); ?> </div> <?php $this->endWidget(); ?> </div> </div> </div><!-- form -->
<div class="controls"> <div id="client-list"> <?php foreach ($model->clients as $client) { ?> <div class="tag" id="client-span-<?php echo $client->cli_id; ?> "> <input type="hidden" name="client[]" value="<?php echo $client->cli_id; ?> "/> <?php echo Chtml::link($client->getFullName(), Yii::app()->createUrl('admin4/client/update', ['id' => $client->cli_id])); ?> <span class="delete client-delete">×</span> </div> <?php } ?> </div> <?php echo CHtml::link('Add Client', array('client/popupSelect', 'onSelect' => 'addClient', 'popup' => true, 'for' => 'offer_client', 'offerId' => $model->off_id ?: 0, 'instructionId' => $model->instruction->dea_id), ['class' => 'btn btn-smaller btn-green', 'id' => 'add-client-button']); ?> </div> </div> <div class="control-group"> <label class="control-label">Client status</label>
echo $model->s_name; ?> </td> <td class="ct"><?php echo $model->s_summary; ?> </td> <td class="ct"><?php echo $model->s_price; ?> </td></td> <td class="ct"><?php echo $model->s_unit; ?> </td></td> <td class="ct" style="width:132px"> <?php echo Chtml::link('<i style="color: #FFF;"></i> EDIT', array('service/edit', 'id' => $model->id), array('style' => 'display: inline-block', 'class' => 'btnAction2')); ?> <?php echo Chtml::link('<i style="color: #FFF;"></i> EDIT', array('service/delete', 'id' => $model->id), array('style' => 'display: inline-block', 'class' => 'btnAction1')); ?> </td> </tr> <?php } } ?> </tbody> </table> </div>
<?php Yii::app()->clientScript->registerScriptFile('https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js',CClientScript::POS_HEAD); $this->renderPartial('_top', array('info'=>$info)); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <section class="content-header"> <h1>Buchen das Tour</h1> <ol class="breadcrumb"> <li> <?php echo Chtml::link('Buchung',array('booking')); ?> </li> <li> <?php echo CHtml::link("Rechnung #".$scheduled->idseg_scheduled_tours,array('current','id_sched'=>$scheduled->idseg_scheduled_tours)); ?> </li> <li class="active">Buchen das Tour<?php echo $scheduled->idseg_scheduled_tours; ?> </li> </ol> </section> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'book-form-i', 'enableAjaxValidation'=>false, )); ?> <?php if($form->errorSummary($contact)!=''){ echo '<div class="book-guide" style="margin-bottom:20px;color:red;padding:20px;">'; echo $form->errorSummary($contact); echo "</div>\n";
<?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'discounts-grid', 'summaryText' => false, 'htmlOptions' => array('class' => 'grid-view padding0'), 'itemsCssClass' => 'table table-striped table-bordered table-condensed', 'rowHtmlOptionsExpression' => 'array("title" => "Click to update", "class"=>"link-hand")', 'dataProvider' => $discountsDataProvider, 'columns' => array('type', array('name' => 'rate', 'value' => '$data->rate." %"', 'htmlOptions' => array('style' => 'width: 300px; text-align: center; ')), array('header' => 'Status', 'htmlOptions' => array('class' => 'btn-group btn-group-yesno'), 'class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{active}{not active}', 'buttons' => array('active' => array('label' => 'Active', 'url' => 'Yii::app()->createUrl("/config/activateDiscount/id/$data->id")', 'options' => array('class' => '$data->status ? "btn active btn-success" : "btn"', 'ajax' => array('type' => 'get', 'url' => 'js:$(this).attr("href")', 'success' => 'js:function(data) { $.fn.yiiGridView.update("discounts-grid"); }'))), 'not active' => array('label' => 'Inactive', 'url' => 'Yii::app()->createUrl("/config/deactivateDiscount/id/$data->id")', 'options' => array('class' => '$data->status ? "btn" : "btn active btn-danger"', 'ajax' => array('type' => 'get', 'url' => 'js:$(this).attr("href")', 'success' => 'js:function(data) { $.fn.yiiGridView.update("discounts-grid"); }')))))))); ?> <?php echo Chtml::link('<span class="icon-plus icon-white"></span> Add New Discount', '', array('class' => 'btn btn-success btn-small', 'style' => 'cursor:pointer; font-weight:normal;color:white;', 'title' => 'Add New Discount', 'onClick' => 'js:{addNewDiscount(); $("#dialogNewDiscount").dialog("open");}')); ?> <!-- Discount Dialog : Start --> <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'dialogNewDiscount', 'options' => array('title' => 'Add New Discount', 'show' => 'scale', 'hide' => 'scale', 'width' => 250, 'modal' => true, 'resizable' => false, 'autoOpen' => false))); $this->endWidget('zii.widgets.jui.CJuiDialog'); ?> <!-- Discount Dialog : End --> <?php Yii::app()->clientScript->registerScript('discountsgrid', "\n\$('#discounts-grid table tbody tr').live('click',function()\n{\n\t var id = \$.fn.yiiGridView.getKey(\n 'discounts-grid',\n \$(this).prevAll().length \n \t);\n \t\n\t\tif(\$(this).children(':nth-child(1)').text()=='No results found.'){\n\t\t\talert(\$(this).children(':nth-child(1)').text());\n\t\t}else{\n\t\t\tupdateDiscount(id);\n\t\t\t\$('#dialogUpdateDiscount').dialog('open');\n\t\t}\n});\n"); ?> <script type="text/javascript"> function addNewDiscount() { <?php echo CHtml::ajax(array('url' => $this->createUrl('lab/discount/create'), 'data' => "js:\$(this).serialize()", 'type' => 'post', 'dataType' => 'json', 'success' => "function(data)\n {\n if (data.status == 'failure')\n {\n\t\t\t\t\t\$('#dialogNewDiscount').html(data.div);\n // Here is the trick: on submit-> once again this function!\n \$('#dialogNewDiscount form').submit(addNewDiscount);\n }\n else\n {\n\t\t\t\t\t\$.fn.yiiGridView.update('discounts-grid');\n\t\t\t\t\t\$('#dialogNewDiscount').html(data.div);\n\t\t\t\t\tsetTimeout(\"\$('#dialogNewDiscount').dialog('close') \",1000);\n }\n \n }", 'beforeSend' => 'function(jqXHR, settings){ $("#dialogNewDiscount").html( \'<div class="loader">' . $image . '<br\\><br\\>Processing.<br\\> Please wait...</div>\' ); }', 'error' => "function(request, status, error){\n\t\t\t\t \t\$('#dialogNewDiscount').html(status+'('+error+')'+': '+ request.responseText );\n\t\t\t\t\t}")); ?> ;
foreach ($model->errors as $error) { ?> <?php echo $error[0] . ' <br />'; ?> <?php } ?> <?php echo Yii::app()->user->hasFlash('mssFPw') ? Yii::app()->user->getFlash('mssFPw') : ''; ?> </div> <div class="input"> <span class="icon"></span> <?php echo $form->textField($model, 'username', array('class' => 'input-large span10', 'placeholder' => 'Username')); ?> </div> <div class="input"> <span class="icon"></span> <?php echo $form->passwordField($model, 'password', array('class' => 'input-large span10', 'placeholder' => 'Password')); ?> </div> <div class="input submit" style="margin-bottom: 0;"> <input type="submit" value="Login" /> </div> <?php $this->endWidget(); echo Chtml::link('I Forgot Password ?', array('site/forgetpasswd'), array('class' => 'forget', 'title' => 'Forget password'));
?> </td> </tr> <tr> <td> <div>Komponen gaji</div> <?php $this->renderPartial('_tabelKomponengaji', array()); ?> </td> </tr> <tr> <td> <div class="mws-button-row" align="right"> <?php echo Chtml::link('Back', $url = 'index.php?r=kepegawaian/karyawan/admin', array('class' => 'mws-button gray', 'style' => 'width:50px;')) . " "; echo CHtml::htmlButton(Yii::t('mds', '{icon} PDF', array('{icon}' => '<i class="icon-book icon-white"></i>')), array('class' => 'mws-button blue', 'type' => 'button', 'onclick' => 'print(\'PDF\')')) . "  "; echo CHtml::htmlButton(Yii::t('mds', '{icon} Excel', array('{icon}' => '<i class="icon-pdf icon-white"></i>')), array('class' => 'mws-button green', 'type' => 'button', 'onclick' => 'print(\'EXCEL\')')) . "  "; echo CHtml::htmlButton(Yii::t('mds', '{icon} Print', array('{icon}' => '<i class="icon-print icon-white"></i>')), array('class' => 'mws-button orange', 'type' => 'button', 'onclick' => 'print(\'PRINT\')')) . "  "; ?> </div> </td> </tr> </table> <?php $controller = Yii::app()->controller->id; //mengambil Controller yang sedang dipakai $module = Yii::app()->controller->module->id; //mengambil Module yang sedang dipakai $urlPrint = Yii::app()->createAbsoluteUrl($module . '/' . $controller . '/printview'); $js = <<<JSCRIPT
echo $form->textArea($model, 'text', array('class' => 'txt', 'rows' => 6, 'cols' => 30, 'placeholder' => $model->getAttributeLabel('text') . ' *')); ?> </div> <?php if (extension_loaded('gd') and CallbackConfig::model()->checkCaptchaEnabled()) { ?> <div class="captcha-inner"> <?php $this->widget('CCaptcha', array('captchaAction' => '/callback/default/captcha', 'buttonLabel' => '')); ?> <div class="captcha-code-inner"> <?php echo CHtml::activeTextField($model, 'verifyCode', array('id' => 'user-captcha', 'placeholder' => 'Введите код')); ?> <?php echo Chtml::link('Получить новый код', '/callback/default/captcha/refresh/1', array('id' => 'yw0_button')); ?> </div> </div> <?php } ?> <div class="row"> <?php echo CHtml::button('Отправить', array('id' => 'submit', 'class' => 'button', 'name' => 'Send message')); ?> </div> </div> <?php $this->endWidget(); ?>
public function actionSaveSuplemento() { if (isset($_POST['ProgramaSuplementoAereo'])) { $id = Yii::app()->request->getParam('id'); $programa = $_POST['programa']; $msj = ''; if (empty($id)) { $model = new ProgramaSuplementoAereo(); $model->attributes = $_POST['ProgramaSuplementoAereo']; $model->programa_id = $programa; $msj = 'insert'; } else { $model = ProgramaSuplementoAereo::model()->findByPk($id); $model->attributes = $_POST['ProgramaSuplementoAereo']; $msj = 'update'; } if ($model->validate()) { if ($model->save()) { $link = '<li id="li-' . $model->id . '" class="list-group-item list-group-item-info">'; $link .= '<i class="fa fa-plane"></i>CLASE ' . $model->clase . ' USD ' . $model->usd; $link .= '<div class="action">'; $link .= CHtml::link('<i class="fa fa-pencil-square-o"></i>', '', array('onclick' => "js:openSuplemento({$model->id})")); $link .= Chtml::link('<i class="fa fa-trash-o"></i>', '', array('onclick' => "js:deleteSuplemento({$model->id})")); $link .= '</div>'; $link .= '</li>'; header("Content-type: application/json"); echo CJSON::encode(array('result' => $msj, 'link' => $link, 'id' => $model->id)); exit; } } } header("Content-type: application/json"); echo CJSON::encode(array('result' => true, 'data' => $this->renderPartial('_formSuplemento', array('model' => $model, 'programa' => $programa), true))); exit; }
<?php } else { ?> <?php echo Chtml::link(Yii::t('app', 'Загрузить'), 'javascript: void(0)', array('onClick' => 'editPhoto()', 'style' => 'margin-right: 220px; margin-top: 10px;')); ?> <?php } ?> </div> <!--<div id="link_hide" style="display: none;"> <?php echo Chtml::link(Yii::t('app', 'Отмена'), 'javascript: void(0)', array('onClick' => 'hidePhoto()', 'class' => 'btn red')); ?> </div>--> </div> </div> </div> </div> <?php } ?> <?php echo CHtml::beginForm(NULL, 'POST', array('enctype' => 'multipart/form-data')); ?> <div class="form-body">
} ?> <?php $content = CHtml::tag("p", array('id' => 'content'), $data['description']); echo CHtml::tag("div", array('class' => 'content-holder'), $content); ?> <?php if (!empty($data['source'])) { ?> <blockquote> <small> <?php $link = Chtml::link($data['source'], $data['source'], array('id' => 'source-link')); echo CHtml::tag('cite', array('title' => $data['title'], 'target' => '_blank'), "Source: " . $link); ?> </small> </blockquote> <?php } ?> </div> </div> </div>