public function getUniversityList() { // $u1[]='Select university'; // $u2[0]='Select university'; $u2 = Chtml::listData(University::model()->findAll(), 'uid', 'uname'); //$u=array_merge($u1,$u2); return $u2; }
/** * @Author: ANH DUNG Mar 13, 2015 * @Todo: get list option by type * @Param: $type */ public static function getListOption($type) { $criteria = new CDbCriteria(); $criteria->order = 't.value'; $aId = array(); if ($type == ProMasterFurnished::TYPE_NORMAL) { $aId = ProMasterFurnished::getFurnishedNormal(); } elseif ($type == ProMasterFurnished::TYPE_INDUSTRIAL) { $aId = ProMasterFurnished::getFurnishedIndustrial(); } $criteria->addInCondition('t.id', $aId); $models = self::model()->findAll($criteria); return Chtml::listData($models, 'id', 'name'); }
private function procesarListaPartidos($postJugadorApi, $postJugadorLocal, $postTorneo, &$listaPartidos) { $selectTorneos = Torneo::model()->selectTorneos(); $peticionPartidos = ApiChallonge::getPartidoTorneo($postTorneo['idTorneo']); $lengthJugadores = count($postJugadorApi); for ($i = 0; $i < $lengthJugadores; $i++) { $jugadorApi = $postJugadorApi[$i]; $jugadorLocal = $postJugadorLocal['jugadorId'][$i]; $idTorneoLocal = $postJugadorLocal['idTorneoVzla']; $posicionJugadorLocal = $postJugadorLocal['posicionJugador'][$i]; $peticionPartidos = str_replace($jugadorApi, $jugadorLocal, $peticionPartidos); $posicionJugador = new JugadorPosicionTorneo(); $posicionJugador->id_jugador = $jugadorLocal; $posicionJugador->id_torneo = $idTorneoLocal; $posicionJugador->posicion = $posicionJugadorLocal; $posicionJugador->save(); } $jsonPartidos = json_decode($peticionPartidos, true); $i = 0; foreach ($jsonPartidos as $key => $value) { $match = $value['match']; $player1Id = $match['player1_id']; $player2Id = $match['player2_id']; $winnerId = $match['winner_id']; $ronda = $match['identifier']; $numeroRonda = $match['round']; $jugadorVzla1 = Jugador::model()->findByPk($player1Id); $jugadorVzla2 = Jugador::model()->findByPk($player2Id); $ganadorVzla = Jugador::model()->findByPk($winnerId); $listaPartidos .= $this->renderPartial('_listaPartidos', array('jsonPartidos' => $jsonPartidos, 'player1Id' => $player1Id, 'player2Id' => $player2Id, 'winnerId' => $winnerId, 'ronda' => $ronda, 'numeroRonda' => $numeroRonda, 'jugadorVzla1' => $jugadorVzla1, 'jugadorVzla2' => $jugadorVzla2, 'ganadorVzla' => $ganadorVzla, 'i' => $i), true, false); $i++; } $listaPartidos .= Chtml::label('ID Torneo SSBMVZLA', 'ResultadoPvP_idTorneoVzla') . '<br/>' . CHtml::dropDownList('ResultadoPvP[idTorneoVzla]', '', $selectTorneos, array('empty' => '')) . '<br/>'; }
/** * Creates markup required for the current mode. */ public function createMarkup() { list($name,$id)=$this->resolveNameID(); $this->htmlOptions["name"]= $name; $this->htmlOptions["id"]= $id; if(!$this->hasModel()) { $this->htmlOptions["value"]= $this->getValue(); } else { $this->htmlOptions["value"]= $this->model->{$this->attribute} != "" ? $this->model->{$this->attribute} : $this->getValue(); } $this->htmlOptions["style"]= "width:".($this->getWidth()-13)."px"; $this->htmlOptions["class"]= "textfield"; $this->htmlOptions["readonly"]= "true"; $field = $this->hasModel() ? Chtml::activeTextField($this->model,$this->attribute,$this->htmlOptions) : Chtml::TextField($this->name,$this->getValue(),$this->htmlOptions); ?> <script> var <?php echo $id."_list"?> = new Array(); <?php if (count($this->_list) > 0) { ?> <?php foreach ($this->_list as $i=>$v) { ?> <?php echo $id."_list"?>.push('<?php echo addslashes($v)?>'); <?php } }?> </script> <div class='spinner' style="height:<?php echo $this->getHeight()?>px"> <table cellspacing=0 cellpadding=0 align="left"> <tr> <td rowspan='2'> <?php echo $field ?> </td> <td class="button_up" style="background-color:<?php echo $this->bgColor?>" onmousedown="javascript:setMouseDown('up','<?php echo $id?>','<?php echo $this->_type?>', <?php echo $id."_list"?> ,<?php echo "0"?>,<?php echo "0"?>, <?php echo "0"?>,<?php echo $this->getDelay()?>, '<?php echo $this->getAcceleration()?>');" onmouseup="setMouseUp();" onmouseout="setMouseUp();"> </td> </tr> <tr> <td class="button_down" style="background-color:<?php echo $this->bgColor?>" onmousedown="javascript:setMouseDown('down','<?php echo $id?>','<?php echo $this->_type?>', <?php echo $id."_list"?>, <?php echo "0"?>,<?php echo "0"?>, <?php echo "0"?>,<?php echo $this->getDelay()?>, '<?php echo $this->getAcceleration()?>')" onmouseup="setMouseUp();" onmouseout="setMouseUp();"> </td> </tr> </table> <span class="text"><?php echo $this->text?></span> </div> <? }
public function transform($output) { // toc process $toc = ''; $output = parent::transform($output); if (preg_match_all('/<h2(?: id=".+")?>(.+?)<\\/h2>/', $output, $match, PREG_PATTERN_ORDER) > 1) { $toc = CHtml::openTag('div', array('class' => 'toc')) . CHtml::openTag('ol'); for ($i = 0; $i < count($match[0]); $i++) { $text = $i + 1 . '. ' . $match[1][$i] . CHtml::link('¶', null, array('name' => 'ch' . $i, 'class' => 'anchor')); $html = CHtml::tag('h2', array('id' => 'ch' . $i), $text); $toc .= Chtml::tag('li', array(), CHtml::link($match[1][$i], '#ch' . $i)); $output = str_replace($match[0][$i], $html, $output); } $toc .= CHtml::closeTag('ol') . CHtml::closeTag('div'); } // image process $output = preg_replace_callback('#<img\\s+src=".+?"\\s+alt="(.+?)"(?:\\s+title="(.+?)")?\\s+/>#s', array(&$this, '_doImages_callback_format'), $output); return $toc . $output; }
static function img($table, $vid, $url = 'post/default/update') { unset($str); $rows = self::languages($table, $vid); if ($rows) { $all = cache('defaultDBLangugeAll'); foreach ($rows as $sid => $language_id) { unset($urls); if (is_array($url)) { $url[1]['id'] = $sid; $urls = url($url[0], $url[1]); } else { $urls = url($url); } $s = Chtml::image(base_url() . '/misc/gq/' . strtolower($all[$language_id]) . ".gif"); $s = strtolower($all[$language_id]); $str .= CHtml::link($s, $urls); $str .= " "; } } return $str; }
public function actionData($id = null, $metric = null) { if (isset($_POST['data'])) { foreach ($_POST['data'] as $id => $value) { $model = Data::model()->findByPk($id); $model->value = is_numeric($value) ? (int) $value : null; $model->save(); } echo Sector::getJson(); } else { $metricModel = Metric::model()->findByAttributes(array('name' => $metric)); $metric_ids = CHtml::listData($metricModel->getMetricWithDescendants(), 'id', 'id'); if ($metricModel->type == '1') { echo $this->renderPartial('dataForm', array('sector' => Sector::model()->findByPk($id), 'metric_ids' => $metric_ids)); } elseif ($metricModel->type = '2') { foreach (Sector::model()->findByPk($id)->square->sectors as $sector) { echo CHtml::tag('h3', array(), $sector->title); echo $this->renderPartial('dataForm', array('sector' => $sector, 'metric_ids' => $metric_ids)); echo Chtml::hiddenField('sector_id', $id); } } } }
<?php if (Yii::app()->hasModule('page')) { echo CHtml::radioButton('MenuItem[type]', $model->type == 'content', array('value' => 'content', 'id' => 'radio_content')); echo Yii::t('app', 'Content') . ' '; echo CHtml::dropDownList('MenuItem[content]', $model->link, CHtml::listData(Page::model()->findAll(), 'path', 'title'), array('onfocus' => 'js:$("#radio_content").attr("checked", "checked");')); } ?> <br/> <?php echo CHtml::radioButton('MenuItem[type]', $model->type == 'url', array('value' => 'url', 'id' => 'radio_url')); ?> <?php echo Yii::t('app', 'Link') . ' '; ?> <?php echo Chtml::textField('MenuItem[url]', $model->link, array('size' => 60, 'onfocus' => 'js:$("#radio_url").attr("checked", "checked");')); ?> <?php echo $form->error($model, 'link'); ?> <br/> <p class="hint"> /item points to base_url/item, //item points to root_of_server/item, item creates link relative to dynamic user location, URLs rendered as is. </p> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'description'); ?>
echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/imprimir.png'), array('/solpe/imprimir2', 'id' => $model->id)); echo "</div>"; } ?> <?php if ($model->cestadovale == '01') { echo "<div class='botones'>"; echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/ok.png'), array('/solpe/procesarsolpe', 'id' => $model->id, 'ev' => 60)); echo "</div>"; } ?> <?php if ($model->cestadovale == '01') { echo "<div class='botones'>"; echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/tacho1.png'), array('/solpe/procesarsolpe', 'id' => $model->id, 'ev' => 61)); echo "</div>"; } ?> </div> <div class="panelizquierdo"> <div class="row"> <?php
echo CJSON::encode(CHtml::activeId($shipment, 'service_code')); ?> , name:<?php echo CJSON::encode(CHtml::activeName($shipment, 'service_code')); ?> , value:<?php echo CJSON::encode($shipment->service_code); ?> , listeners:{ focus:function(){ var that = this; var customer_id = formPanel.down('#<?php echo Chtml::activeId($shipment, 'customer_id'); ?> ').getValue(); var shipper_country = formPanel.down('#<?php echo CHtml::activeId($shipment, 'shipper_country'); ?> ').getValue(); var receiver_country = formPanel.down('#<?php echo CHtml::activeId($shipment, 'receiver_country'); ?> ').getValue(); var product; var routing_code = Ext.getCmp('<?php echo CHtml::activeId($shipment, 'destination_code'); ?> ').getValue();
echo $form->labelEx($model, "[{$i}]DateGet"); ?> <?php echo $form->textField($model, "[{$i}]DateGet", array("class" => "span12 datepicker")); ?> <?php //echo $form->textFieldRow($model,"ZNOPin",array("class"=>"span5")); ?> <?php //echo $form->textFieldRow($model,"AtestatValue",array("class"=>"span5","maxlength"=>10)); ?> </div> <div class ="span8"> <?php echo $form->labelEx($model, "[{$i}]Issued"); ?> <?php echo $form->textField($model, "[{$i}]Issued", array("class" => "span12", "maxlength" => 250)); ?> </div> <div class ="span2"> <?php echo Chtml::label("Знищити", ""); ?> <?php $url = Yii::app()->createUrl("personbenefits/delbenefitdoc", array('num' => $i)); $this->widget("bootstrap.widgets.TbButton", array('type' => 'danger', 'label' => '', 'size' => null, 'icon' => "icon-trash", 'htmlOptions' => array("style" => "margin-top: 2px;", 'title' => "Видалити пільгу", 'class' => "span7", 'onclick' => "PSN.delBenefitDoc(this,'{$url}');"))); ?> </div> </div>
<?php echo CHtml::beginForm(); ?> <table class="list"> <tbody> <tr> <td>Логин</td> <td><?php echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : ''); ?> </td> </tr> <tr> <td><a href="javascript: void(0)" onClick="location.href='/admin/roles/authmanager/assignment'">Сбросить фильтр</a></td> <td><?php echo Chtml::button('Найти', array('name' => 'btn_filter', 'onClick' => 'saveFilter()')); ?> </td> </tr> </tbody> </table> <?php echo CHtml::endForm(); ?> <br /><br /> <table class="list" id="roles"> <tbody> <tr class="top-table" > <th class="photo">Логин</th> <th class="photo">Email</th>
echo Chtml::activeLabel($model, 'password'); echo Chtml::activePasswordField($model, 'password'); ?> </div> <div class="row"> <?php echo Chtml::activeLabel($model, 'email'); echo Chtml::activeTextField($model, 'email'); ?> </div> <div class="row"> <?php echo Chtml::activeLabel($model, 'telephone'); echo Chtml::activeTextField($model, 'telephone'); ?> </div> <div class="row submit"> <?php echo CHtml::submitButton('register'); ?> </div> <?php echo CHtml::endForm(); ?> </div><!-- form --> </div>
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(); ?>
<?php if (strtolower($this->action->id) == 'verdocumento') { $proveedor = Docompra::model()->search_por_compra($filtro); } else { $proveedor = Docompratemp::model()->search_por_compra($filtro); } $descuento = $model->descuento + 0; //var_dump($descuento);yii::app()->end(); ?> <div id="AjFlash" class="flash-regular"></div> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $proveedor, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'summaryText' => '>', 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 20, 'value' => '$data->idtemp', 'checkBoxHtmlOptions' => array('name' => 'cajita[]')), array('name' => 'st.', 'header' => 'st', 'type' => 'raw', 'value' => 'CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"].$data->coddocu.$data->estadodetalle.".png")'), 'codentro', 'codigoalma', 'item', 'cant', 'ums.desum', 'codart', 'descri', array('name' => 'texto', 'type' => 'raw', 'header' => 't', 'value' => '(!empty($data->detalle))?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."texto.png","hola"):""'), 'punit', array('name' => 'Bruto', 'header' => 'Bruto', 'value' => 'Mifactoria::decimal($data->cant*($data->punit),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["bruto"], 2) . CHTml::CloseTag("span")), array('name' => 'Descuento', 'visible' => $descuento > 0 ? true : false, 'header' => 'Dcto', 'value' => 'Mifactoria::decimal($data->cant*$data->punit*($data->ocompra->descuento/100),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["descuento"], 2) . CHTml::CloseTag("span")), array('name' => 'potal', 'value' => 'Mifactoria::decimal(($data->punit*(1-$data->ocompra->descuento/100))*$data->cant,2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["total"], 2) . CHTml::CloseTag("span")), array('class' => 'CButtonColumn', 'buttons' => array('view' => array('visible' => 'false'), 'update' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/Modificadetalle/", array("id"=>$data->idtemp, "asDialog"=>1, "gridId"=>$this->grid->id ) )', 'click' => 'function(){ $("#cru-detalle").attr("src",$(this).attr("href")); $("#cru-dialogdetalle").dialog("open"); return false; }', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemagrid'] . 'update.png', 'label' => 'Actualizar Item'), 'delete' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/borraitem", array("identi"=>$data->id,"idcabecera"=>$data->hidguia))', 'options' => array('ajax' => array('type' => 'GET', 'success' => "js:function() { \$.fn.yiiGridView.update('detalle-grid'); }", 'url' => 'js:$(this).attr("href")')), 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'borrador.png', 'label' => 'Borrary'))))));
$state_data = Area::model()->findAll("grade=:grade", array(":grade" => 1)); $state = ''; $state = CHtml::listData($state_data, "id", "name"); $s_default = $model->isNewRecord ? '' : $model->province; echo CHtml::label('所在地区:', '', array('style' => 'margin-left:15px;')); echo " " . CHtml::dropDownList('provice', $search['provice'], $state, array('class' => 'width118 select', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/dynamiccity', 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); ?> <?php if ($search['provice']) { $city_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $search['provice'])); $city = CHtml::listData($city_data, "id", "name"); } $city_update = $search['provice'] ? $city : array(); ?> <?php echo Chtml::dropDownList('city', $search['city'], $city_update, array('class' => 'width118 select', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/dynamiccity', 'update' => '#Dealer_area', 'data' => 'js:"city="+jQuery(this).val()'))); ?> <label style="margin-left:30px;">适用车系:</label> <?php $make_data = GoodsBrand::getBrand(); $make = CHtml::listData($make_data, "id", "name"); ?> <?php echo CHtml::dropDownList('make', $search['make'], $make, array('class' => 'width118 select', 'empty' => '请选择品牌', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/getcarbyid', 'update' => '#car', 'data' => 'js:"make="+jQuery(this).val()'))); ?> <?php if ($_GET['make']) { $brand = GoodsBrand::model()->find('id=' . $_GET['make']); $data = GoodsBrand::model()->findAll("name=:Make", array(":Make" => $brand['name'])); $data = CHtml::listData($data, "id", "car"); // $vehicleModel_data=GoodsBrand::model()->find("id=:id",array(":id"=>$search['vehicleMake']));
?> </div> <div class="row"> <?php echo CHtml::label('Search Engine', 'ddlSearchEngine'); ?> <?php echo CHtml::activeDropDownList($keywordForm, 'searchEngine', array(Keyword::SEARCH_ENGINE_GOOGLE => Keyword::SEARCH_ENGINE_GOOGLE, Keyword::SEARCH_ENGINE_GOOGLE_ES => Keyword::SEARCH_ENGINE_GOOGLE_ES, Keyword::SEARCH_ENGINE_GOOGLE_IT => Keyword::SEARCH_ENGINE_GOOGLE_IT, Keyword::SEARCH_ENGINE_GOOGLE_FR => Keyword::SEARCH_ENGINE_GOOGLE_FR), array('id' => 'ddlSearchEngine')); ?> </div> <div class="row"> <?php echo Chtml::submitButton('Add'); ?> </div> <?php echo CHtml::endForm(); ?> </div> <div> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'grvKeywords', 'dataProvider' => $keyword->search(), 'filter' => $keyword, 'htmlOptions' => array(), 'columns' => array(array('name' => 'name', 'header' => 'Keyword', 'type' => 'raw', 'value' => function ($e) { return String::build('<a href="{link}" title="Added on {created_at}">{keyword}</a>', array('link' => Yii::app()->createUrl('site/keywordDetails', array('keywordId' => $e->id)), 'created_at' => Time::toPretty($e->created_at), 'keyword' => $e->name)); }), array('name' => 'search_engine', 'header' => 'Search Engine', 'value' => function ($e) { return ucwords($e->search_engine); }), array('name' => 'status', 'header' => 'Status', 'type' => 'raw', 'value' => function ($e) {
<?php echo $form->error($deadlineForm, 'tgl_deadline'); ?> </div> <div class="row buttons"> <?php //echo Chtml::ajaxSubmitButton('Add Deadline', array("reloadDeadlineForm"), array('update' => '#deadline_form'), array('id' => 'ajax')); echo Chtml::ajaxSubmitButton('Add Deadline', array("saveDeadline&id=" . DeadlineForm::$currentAgenda_id), array('update' => '#deadline_form', 'success' => 'function() {' . 'var penanggungJawab = $("#penanggungJawab").val(); var deadline = $("#deadline").val(); var tanggalDeadline = $("#tanggalDeadline").val(); var text = "Penanggungjawab : " + penanggungJawab + "\\n"; text += "Deadline : " + deadline + "\\n"; text += "Tanggal : " + tanggalDeadline + "\\n"; before = $("#nextTarget").html(); if (before) { text = before + "\\n" + text; } $("#nextTarget").html(text);' . 'alert("data terkirim");' . '}')); ?> </div> <?php $this->endWidget(); ?> </div><!-- form --> </div>
<?php } ?> <hr> <?php echo CHtml::submitButton(Yii::t('SpaceModule.views_admin_members', "Save"), array('class' => 'btn btn-primary')); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php echo Chtml::endForm(); ?> </div> </div> <?php if (count($space->applicants) != 0) { ?> <div class="panel panel-danger"> <div class="panel-heading"> <?php echo Yii::t('SpaceModule.views_admin_members', '<strong>Outstanding</strong> user requests'); ?> </div> <div class="panel-body">
<div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-cogs"></i> Pengajuan Angka Kredit Dosen </div> <div class="actions"> <?php //echo CHtml::link('<i class="fa fa-plus"></i> Tambah',array('create'),array('class'=>'btn btn-sm red')); ?> </div> <div class="actions"> <?php //echo CHtml::link('<i class="fa fa-user"></i> Exsport Kontak Personal All', array('Exsportall'), array('class' => 'btn btn-sm green')); ?> </div> </div> <div class="portlet-body"> <div class="table-responsive"> <?php $this->widget('ext.GroupGridView', array('itemsCssClass' => 'table table-striped table-bordered table-condensed', 'id' => 'tbl-dosen-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'NIP_DOSEN', 'type' => 'raw', 'header' => 'Nip Dosen', 'value' => 'CHtml::encode($data->NIP_DOSEN)', 'htmlOptions' => array('width' => '10%')), 'NAMA_DOSEN', array('name' => 'ID_JURUSAN', 'type' => 'html', 'value' => '$data->iDJURUSAN->NAMA_JURUSAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJurusan::model()->findAll(), 'ID_JURUSAN', 'NAMA_JURUSAN')), array('name' => 'ID_JABATAN', 'type' => 'html', 'value' => '$data->iDJABATAN->NAMA_JABATAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJabatan::model()->findAll(), 'ID_JABATAN', 'NAMA_JABATAN')), array('name' => 'ID_GOLONGAN', 'type' => 'html', 'value' => '$data->iDGOLONGAN->GOLONGAN', 'sortable' => true, 'filter' => Chtml::listdata(TblGolongan::model()->findAll(), 'ID_GOLONGAN', 'GOLONGAN')), 'TGL_MASUK', 'NO_KARPEG', array('header' => 'Lihat', 'type' => 'raw', 'value' => 'CHtml::link("Pengajuan AK",array("tblDosen/viewdosen&id=$data->ID_DOSEN"),array("class"=>"btn btn-success btn-md"))')))); ?> </div> </div> </div>
<?php foreach ($files as $file) { ?> <div> <?php if ($file->hasError) { ?> <div class="errorSummary"><?php echo $file->errorMsg; ?> </div> <?php } else { ?> <?php echo CHtml::image($file->fileName, null, array('class' => 'uploaded_img')); ?> <?php echo CHtml::link(CHtml::image('/images/admin/actions/delete.png', 'Удалить'), '#', array('onclick' => Chtml::ajax(array('update' => '#uploaded_files', 'url' => $this->createUrl(''), 'type' => 'post', 'data' => array('key' => $file->key, 'id' => $file->id))))); ?> <?php } ?> </div> <?php } if (count($files) < 1) { ?> <p>Не было загружено ни одного файла</p> <?php }
'todayBtn':'linked', 'language':'ru', 'weekStart':0 }); </script> <?php echo Chtml::activeLabel($model, '_tempTimeStart'); ?> <?php $this->widget('CMaskedTextField', array('model' => $model, 'attribute' => '_tempTimeStart', 'mask' => '99:99', 'placeholder' => '*', 'htmlOptions' => array('class' => 'span1'))); ?> <?php echo Chtml::activeLabel($model, 'duration'); ?> <?php $this->widget('CMaskedTextField', array('model' => $model, 'attribute' => 'duration', 'mask' => '99:99', 'placeholder' => '*', 'htmlOptions' => array('class' => 'span1'))); ?> <?php //echo $form->textFieldRow($model,'duration',array('class'=>'span1','maxlength'=>20)); ?> <?php //echo $form->textFieldRow($model,'date_create',array('class'=>'span5')); ?> <?php //echo $form->textFieldRow($model,'date_delete',array('class'=>'span5'));
<?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(){
public function actionGetClasses() { if (!isset($_POST['major_id'])) { return; } $major_id = $_POST['major_id']; $classes = Major::model()->findByPk($major_id)->classes; $classes = CHtml::listData($classes, 'class_id', 'class_name'); $htmlData = CHtml::tag('option', array('selected' => 'selected', 'value' => ''), '请选择班级'); foreach ($classes as $value => $key) { $htmlData .= Chtml::tag('option', array('value' => $value), Chtml::encode($key)); } echo json_encode(array('htmlData' => $htmlData)); }
<?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">
echo $form->labelEx($model, 'regionID'); ?> <?php echo CHtml::activeDropDownList($model, 'regionID', Chtml::listData(Regions::model()->findAll(), 'regionID', 'regionName'), array('empty' => 'Select a Region')); ?> <?php echo $form->error($model, 'regionID'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'membershipTypeID'); ?> <?php echo CHtml::activeDropDownList($model, 'membershipTypeID', Chtml::listData(MembershipTypes::model()->findAll(), 'membershipTypeID', 'membershipTypeName'), array('empty' => 'Select Membership Type')); ?> <?php echo $form->error($model, 'membershipTypeID'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'memberName'); ?> <?php echo $form->textField($model, 'memberName', array('size' => 60, 'maxlength' => 100)); ?> <?php echo $form->error($model, 'memberName');
echo $form->error($request_model_c, 'last_name'); ?> </div> <div class="row"> <?php echo $form->labelEx($request_model_c, 'company_name'); ?> <?php echo $form->textField($request_model_c, 'company_name', array('size' => 60, 'maxlength' => 255)); ?> <?php echo $form->error($request_model_c, 'company_name'); ?> </div> <?php $this->widget('ext.countrySelectorWidget', array('value' => $request_model_c->country, 'name' => Chtml::activeName($request_model_c, 'country'), 'id' => Chtml::activeId($request_model_c, 'country'), 'useCountryCode' => false, 'firstEmpty' => true)); ?> <div class="row"> <?php echo $form->labelEx($request_model_c, 'user_email'); ?> <?php echo $form->textField($request_model_c, 'user_email', array('size' => 60, 'maxlength' => 100)); ?> <?php echo $form->error($request_model_c, 'user_email'); ?> </div> <div class="row"> <?php echo $form->labelEx($request_model_c, 'message');
<div class="row"> <?php echo $form->labelEx($model, 'punit'); ?> <?php echo $form->textField($model, 'punit'); ?> <?php echo $form->error($model, 'punit'); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/cargaprecios'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/cargaprecios'), "data" => array("codigoprove" => "js:codigoprove.value", "codigomaterial" => "js:Docompratemp_codart.value"), "update" => "#zona_precios")); ?> </div> <div class="row"> <div id="zona_precios"></div> </div>
<?php } ?> </tr> </table> </div> </div> <?php echo $form->beginControlGroup($model, 'dea_ptype'); ?> <?php echo $form->controlLabel($model, 'dea_ptype'); ?> <div class="controls"> <?php echo $form->checkBoxListWithSelectOnLabel($model, 'dea_ptype', Chtml::listData(PropertyType::model()->getTypes(), 'pty_id', 'pty_title'), ['separator' => ' ']); ?> <label style="display:inline-block; margin-left:28px;float:none; margin-right:12px; font-weight: bold">Branch</label> <?php echo $form->checkBoxListWithSelectOnLabel($model, 'dea_branch', CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title'), ['separator' => ' ']); ?> </div> <?php echo $form->endControlGroup(); ?> <div class="control-group"> <label class="control-label"> Negotiator </label>
<div class="form-group"> <label class="col-md-3 control-label">Email</label> <div class="col-md-9"> <?php echo Chtml::textField('filter[email]', array_key_exists('email', $filter) ? $filter['email'] : '', array('class' => 'input-large form-control')); ?> </div> </div> <div class="form-group"> <label class="col-md-3 control-label"><?php echo Yii::t('app', 'Логин спонсора'); ?> </label> <div class="col-md-9"> <?php echo Chtml::textField('filter[sponsor_username]', array_key_exists('sponsor_username', $filter) ? $filter['sponsor_username'] : '', array('class' => 'input-large form-control')); ?> </div> </div> <?php echo CHtml::endForm(); ?> </div> <div class="form-actions"> <?php echo CHtml::button(Yii::t('app', 'Найти'), array('name' => 'btn_filter', 'onClick' => 'saveFilter()', 'class' => 'btn blue')); ?> <?php echo CHtml::link(Yii::t('app', 'Сбросить фильтр'), 'javascript: void(0)', array('class' => 'btn grey', 'onClick' => 'location.href="/office/wallets/manage/wallets"')); ?> </div>