Exemplo n.º 1
0
echo $form->dropDownList($model, 'country_id', GxHtml::listDataEx(Country::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'country_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'last_update');
?>
		<?php 
echo $form->textField($model, 'last_update');
?>
		<?php 
echo $form->error($model, 'last_update');
?>
		</div><!-- row -->

		<label><?php 
echo GxHtml::encode($model->getRelationLabel('addresses'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'addresses', GxHtml::encodeEx(GxHtml::listDataEx(Address::model()->findAllAttributes(null, true)), false, true));
?>

<?php 
echo GxHtml::submitButton('Save');
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 2
0
	<?php 
echo $form->errorSummary($model);
?>
    <div class="row">
	<?php 
echo $form->labelEx($model, 'Number');
?>
	<input type="text" name="number" class="row" />

	<div/>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'idcredit');
?>
		<?php 
//echo $form->textField('number');
?>
		<?php 
echo $form->dropDownList($model, 'idcredit', GxHtml::listDataEx(IguCredit::model()->findAllAttributes(null, true)), array('prompt' => 'Select Credit'));
?>
		<?php 
echo $form->error($model, 'idcredit');
?>
		</div><!-- row -->

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Generating voucher'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 3
0
}
$rawData = Yii::app()->db->createCommand('select c.id,productname,quantity,creationdate  from igu_client_product  c,igu_products p where c.idproduct = p.id order by c.id desc limit 10')->queryAll();
// or using: $rawData=User::model()->findAll();
$gridDataProvider = new CArrayDataProvider($rawData, array('id' => 'user', 'sort' => array('attributes' => array('id', 'productname', 'quantity', 'creationdate')), 'pagination' => array('pageSize' => 10)));
$gridDataProvider3 = new CArrayDataProvider(array(array('id' => 1, 'firstName' => 'Mark', 'lastName' => 'Otto', 'language' => '<span class="badge badge-warning">HTML</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>'), array('id' => 2, 'firstName' => 'Jacob', 'lastName' => 'Thornton', 'language' => '<span class="badge badge-important">CSS</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>'), array('id' => 3, 'firstName' => 'Stu', 'lastName' => 'Dent', 'language' => '<span class="badge badge-info">Javascript</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>')));
?>
<div class="row-fluid">
	<div class="span3 ">
		<?php 
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<center>Shakisha</center>"));
?>
			<div class="form">
			<?php 
$form = $this->beginWidget('GxActiveForm', array('id' => 'user-form', 'enableAjaxValidation' => false));
echo CHtml::dropDownList('searchtext', 'coco', array('1' => 'Intara', '2' => 'Ubwoko'), array('prompt' => '-- Ukurikije --'));
echo ' &nbsp;&nbsp;' . GxHtml::submitButton(Yii::t('app', 'shakisha'));
$this->endWidget();
?>
				

			</div><!-- form -->
			<?php 
$this->endWidget();
?>
			<div>
				<?php 
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<center>Ibiherukaho</center>"));
?>
				
				<?php 
$this->widget('zii.widgets.grid.CGridView', array('itemsCssClass' => 'table table-bordered', 'dataProvider' => $gridDataProvider, 'template' => "{items}", 'columns' => array(array('name' => 'productname', 'header' => 'Productname'), array('name' => 'quantity', 'header' => 'Ingano'), array('name' => 'creationdate', 'header' => 'Italike'))));
Exemplo n.º 4
0
	<div class="row">
		<?php 
echo $form->label($model, 'creado');
?>
		<?php 
echo $form->textField($model, 'creado');
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'modificado');
?>
		<?php 
echo $form->textField($model, 'modificado');
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Buscar'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 5
0
	<div class="span-8 last">
		<?php 
echo $form->label($model, 'pah_bank_accounts_id');
?>
		<?php 
echo $form->dropDownList($model, 'pah_bank_accounts_id', GxHtml::listDataEx(PahBankAccounts::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'users_id');
?>
		<?php 
echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Search'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 6
0
							{ name: 'paragraph',   items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
							{ name: 'links',       items : [ 'Link','Unlink' ] },
							{ name: 'clipboard',   items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
							{ name: 'editing',     items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
							// { name: 'forms',       items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
							{ name: 'insert',      items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
							{ name: 'styles',      items : [ 'Styles','Format','Font','FontSize' ] },
							{ name: 'colors',      items : [ 'TextColor','BGColor' ] },
							{ name: 'tools',       items : [ 'Maximize', 'ShowBlocks','-','About' ] }
						]

				});

			}
			$(function () {
				ckeditor_full("Texte_text");
			})
		</script>
	<?php 
}
?>

	<br>

	<div class="saveholder">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Save'), array("class" => "btn btn-primary"));
$this->endWidget();
?>
	</div>
</div>
Exemplo n.º 7
0
	<div class="row">
		<?php 
echo $form->label($model, 'title');
?>
		<?php 
echo $form->textField($model, 'title', array('maxlength' => 255));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'description');
?>
		<?php 
echo $form->textArea($model, 'description');
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton('Search');
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 8
0
/**
 * @var $form GxActiveForm
 * @var $model Hopam
 */
$form = $this->beginWidget('GxActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
            <div id="radio_hopam">
                <?php 
echo CHtml::radioButtonList('key_type', 0, array('Tất cả', 'Tên bài hát', 'Ca sĩ/Nhạc sĩ'), array('separator' => ''));
?>
            </div>
            <div id="sbox_hopam">
                <div id="input_sbox_hopam">
                    <div id="r_input_sbox_hopam">
                    <?php 
echo CHtml::textField('keyword', '', array('id' => 'keyword'));
?>
                    </div>
                </div>

                <?php 
echo GxHtml::submitButton('', array('id' => 'search_bt'));
?>
            </div>
            <?php 
$this->endWidget();
?>
        </div>
    </div>
</div>
Exemplo n.º 9
0
	<div class="row">
		<?php 
/*echo $form->label($model, 'create_time'); */
?>
		<?php 
/*echo $form->textField($model, 'create_time'); */
?>
	</div>

	<div class="row">
		<?php 
/*echo $form->label($model, 'update_time'); */
?>
		<?php 
/*echo $form->textField($model, 'update_time'); */
?>
	</div>
-->
	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Tìm kiếm'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 10
0
echo $form->error($model, 'tipo');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'entel');
?>
		<?php 
echo $form->radioButtonList($model, 'entel', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
		<?php 
echo $form->error($model, 'entel');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'movistar');
?>
		<?php 
echo $form->radioButtonList($model, 'movistar', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
		<?php 
echo $form->error($model, 'movistar');
?>
		</div><!-- row -->

<?php 
echo GxHtml::submitButton(Yii::t('app', 'CREAR'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 11
0
                    <td>
                        <?php 
echo $form->label($model, 'nombre1');
?>
                        <?php 
echo $form->textField($model, 'nombre1', array('maxlength' => 255));
?>
                    </td>
                    <td>
                        <?php 
echo $form->label($model, 'nombre2');
?>
                        <?php 
echo $form->textField($model, 'nombre2', array('maxlength' => 255));
?>
                    </td>
		</tr>
                <tr>
                    <td colspan="4" style="text-align: center;">
                        <?php 
echo GxHtml::submitButton(Yii::t('app', 'Buscar'), array('class' => 'btn btn-primary btn-large'));
?>
                    </td>
                </tr>
	</table>
<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 12
0
	<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model->recarga, 'attributes' => array(array('name' => 'id', 'label' => 'OT'), array('name' => 'celular', 'label' => 'celular', 'template' => "<tr class=\"{class}\"><td></td><td><h1>{value}</h1></td></tr>\n"), array('name' => 'compania', 'label' => 'compania'), array('name' => 'monto', 'label' => 'monto'), array('name' => 'comentario', 'label' => 'comentario'))));
?>
<div class="form">

<?php 
$form = $this->beginWidget('GxActiveForm', array('id' => 'atencion-form', 'enableAjaxValidation' => true));
echo GxHtml::submitButton(Yii::t('app', 'Guardar'));
echo $form->errorSummary($model);
?>
    <div class="row">
    <?php 
echo $form->labelEx($model, 'Atender');
?>
    <?php 
echo $form->radioButtonList($model, 'estado', array('LISTA' => 'LISTA', 'RECHAZADA' => 'RECHAZADA', 'RECHAZADA NO PREPAGO' => 'RECHAZADA NO PREPAGO'), array('labelOptions' => array('style' => 'display:inline')));
?>
    <?php 
echo $form->error($model, 'estado');
?>
    </div><!-- row -->
    
     <div class="row">
    <?php 
echo $form->labelEx($model, 'comentario');
?>
    <?php 
echo $form->textArea($model, 'comentario');
?>
    <?php 
echo $form->error($model, 'comentario');
Exemplo n.º 13
0
?>
		<?php 
echo CHtml::activeFileField($model, 'image');
?>
		<?php 
echo $form->error($model, 'image');
?>
		<?php 
echo $form->hiddenField($model, 'idclientproduct', array('value' => $id));
?>
		</div><!-- row -->
		
		<?php 
if ($model->isNewRecord != '1') {
    ?>
		<div class="row">
			 <?php 
    echo CHtml::image(Yii::app()->request->baseUrl . '/products/' . $model->image, "image", array("width" => 200));
    ?>
 
		</div>
		
		<?php 
}
?>

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Injiza'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 14
0
echo $form->error($model, 'totalamount');
?>
		</div><!-- row -->
		</td>
	</tr>	
	<tr>
	   <td colspan='2'>
		
		<?php 
echo $form->labelEx($model, 'detail');
?>
		<?php 
echo $form->textArea($model, 'detail', array('style' => 'width: 600px; height: 140px;', 'maxlength' => 600));
?>
		<?php 
echo $form->error($model, 'detail');
?>
		<!-- row -->
    </td>
	</tr>
	
<tr>
    <td>	
<?php 
echo GxHtml::submitButton(Yii::t('app', 'Amamaza'));
$this->endWidget();
?>
</td>
</tr>
</table>
</div><!-- form -->
Exemplo n.º 15
0
    </div>-->
    <!-- row -->
    <div class="row">
        <?php 
echo $form->labelEx($model, 'term_id');
?>
        <?php 
echo $form->dropDownList($model, 'term_id', GxHtml::listDataEx(Term::model()->findAllAttributes(null, true, 'vid=2')));
?>
        <?php 
echo $form->error($model, 'term_id');
?>
    </div>
    <!-- row -->
    <div class="row">
        <?php 
echo $form->labelEx($model, 'teacher_id');
?>
        <?php 
echo $form->dropDownList($model, 'teacher_id', GxHtml::listDataEx(Teacher::model()->findAllAttributes(null, true)));
?>
        <?php 
echo $form->error($model, 'teacher_id');
?>
    </div>
    <!-- row -->
    <?php 
echo GxHtml::submitButton(Yii::t('app', 'Lưu'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 16
0
echo $form->error($model, 'entel');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'movistar');
?>
		<?php 
echo $form->radioButtonList($model, 'movistar', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
		<?php 
echo $form->error($model, 'movistar');
?>
		</div><!-- row -->
                <div class="row">
		<?php 
echo $form->labelEx($model, 'claro');
?>
		<?php 
echo $form->radioButtonList($model, 'claro', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
		<?php 
echo $form->error($model, 'claro');
?>
		</div><!-- row -->

<?php 
echo GxHtml::submitButton(Yii::t('app', 'EDITAR'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 17
0
                     <div class="doc-file">
                        <?php 
if ($model->capacidad_excepcional != '') {
    echo '<span>Documento Cargado Actualmente: </span>' . CHtml::link($model->capacidad_excepcional, 'descargas/' . $model->capacidad_excepcional, array('target' => '_blank'));
}
?>
                    </div>
		<?php 
echo $form->fileField($model, 'capacidad_excepcional');
?>
                    <div class="photo-camera" >
                        <?php 
echo CHtml::textField('capacidad_excepcional_H', '', array('class' => 'fotoh', 'readonly' => 'readonly'));
?>
                        <span control="capacidad_excepcional_H" title="<?php 
echo $model->getAttributeLabel('capacidad_excepcional');
?>
" class="photo btn btn-success btn-small">Capturar Foto</span>
                    </div>
		<?php 
echo $form->error($model, 'capacidad_excepcional');
?>
		</div><!-- row -->

                <div class="form-actions" style="text-align: center;">
                    <?php 
echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'btn btn-success btn-large'));
$this->endWidget();
?>
                </div>
</div><!-- form -->
Exemplo n.º 18
0
?>
                <?php 
echo $form->textField($model, 'NOMBRE2');
?>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center;" >
	          <?php 
echo GxHtml::submitButton(Yii::t('app', 'Buscar por Institución'), array('class' => 'btn btn-primary btn-large', 'id' => 'MatriculaSearchFull'));
?>
                <label>Use éste botón para buscar alumnos nuevos en el aula (Buscar en todas las sedes de la institución).</label>
            </td>
            <td colspan="2" style="text-align: center;" >
	          <?php 
echo GxHtml::submitButton(Yii::t('app', 'Buscar'), array('class' => 'btn btn-primary btn-large', 'id' => 'MatriculaSearch'));
?>
                <label>Use éste botón para buscar utilizando los filtros seleccionados, inclusive grupo.</label>
            </td>
        </tr>
    </table>
<?php 
$this->endWidget();
?>

</div><!-- search-form -->
Exemplo n.º 19
0
				</div><!-- row -->
		<div class="row">
		<?php 
//echo $form->labelEx($model,'datepaiement');
?>
		<?php 
echo $form->hiddenField($model, 'datepaiement', array('value' => date('Y-m-d')));
?>
		<?php 
echo $form->error($model, 'datepaiement');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'vouchernumber');
?>
		<?php 
echo $form->textField($model, 'vouchernumber', array('maxlength' => 12));
?>
		<?php 
echo $form->error($model, 'vouchernumber');
?>
		
		</div><!-- row -->

<br/>
<?php 
echo GxHtml::submitButton(Yii::t('app', 'Ishyura'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 20
0
<?php

$model = new IguClientProduct();
$b = $model->searchArray();
$this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . IguClientProduct::label(), 'url' => array('create')));
$form = $this->beginWidget('GxActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
$this->beginWidget('zii.widgets.CPortlet', array('title' => "Shakisha"));
$this->widget('zii.widgets.jui.CJuiAutoComplete', array('name' => 'productname', 'source' => $b, 'options' => array('minLength' => '2'), 'htmlOptions' => array('style' => 'height:20px;width:60%')));
echo '&nbsp;&nbsp;&nbsp;' . GxHtml::submitButton(Yii::t('app', 'Search'));
$this->endWidget();
$this->endWidget();
?>
	
<h3><?php 
echo GxHtml::encode(IguClientProduct::label(2));
?>
</h3>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Exemplo n.º 21
0
		<?php 
echo $form->labelEx($model, 'apellido_mat');
?>
		<?php 
echo $form->textField($model, 'apellido_mat', array('maxlength' => 50));
?>
		<?php 
echo $form->error($model, 'apellido_mat');
?>
		</div><!-- row -->
                <?php 
$criteria = new CDbCriteria();
$criteria->order = 'nombre ASC';
?>
		<div class="row">
		<?php 
echo $form->labelEx($model, 'id_cargo_empresa');
?>
		<?php 
echo $form->dropDownList($model, 'id_cargo_empresa', GxHtml::listDataEx(CargosEmpresa::model()->findAllAttributes(null, true, $criteria)));
?>
		<?php 
echo $form->error($model, 'id_cargo_empresa');
?>
		</div><!-- row -->

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'boton'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 22
0
		<?php 
echo $form->hiddenField($model, 'status', array('value' => 1));
?>
		<?php 
//echo $form->error($model,'status');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
//echo $form->labelEx($model,'salt');
?>
		<?php 
//echo $form->textField($model, 'salt', array('maxlength' => 32));
?>
		<?php 
//echo $form->error($model,'salt');
?>
		</div><!-- row -->

		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Kanda'));
$this->endWidget();
?>
</div><!-- form -->
<?php 
$this->endWidget();
?>

    </div>

</div>
Exemplo n.º 23
0
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'total');
?>
		<?php 
echo $form->textField($model, 'total');
?>
		<?php 
echo $form->error($model, 'total');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'estado');
?>
		<?php 
echo $form->textField($model, 'estado', array('maxlength' => 45));
?>
		<?php 
echo $form->error($model, 'estado');
?>
		</div><!-- row -->


<?php 
echo GxHtml::submitButton(Yii::t('app', 'Save'), array('onClick' => "this.disabled=true;this.value='" . Yii::t('app', 'Enviando') . "';this.form.submit();"));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 24
0
        echo "<li id='img_" . $img->id . "'><img src='" . $img_url . "' />" . CHtml::ajaxButton('Xóa', $this->createUrl('delphoto', array('id' => $img->id)), array('success' => 'js:function(){$("#img_' . $img->id . '").remove()}')) . "</li>";
    }
    echo "</ul></fieldset>";
}
?>
    </div>
    <!-- row -->
    <label><?php 
//echo GxHtml::encode($model->getRelationLabel('videos'));
?>
</label>
    <?php 
//echo $form->checkBoxList($model, 'videos', GxHtml::encodeEx(GxHtml::listDataEx(Video::model()->findAllAttributes(null, true)), false, true));
?>
    <div class="row">
        <?php 
echo $form->labelEx($model, 'pos');
?>
        <?php 
echo $form->textField($model, 'pos', array('maxlength' => 11));
?>
        <?php 
echo $form->error($model, 'pos');
?>

    </div>
    <?php 
echo GxHtml::submitButton($model->isNewRecord ? 'Tạo mới' : 'Lưu');
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 25
0
echo $form->textArea($model, 'slogan_en');
?>
		<?php 
echo $form->error($model, 'slogan_en');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'slogan_ar');
?>
		<?php 
echo $form->textArea($model, 'slogan_ar');
?>
		<?php 
echo $form->error($model, 'slogan_ar');
?>
		</div><!-- row -->

		<label><?php 
echo GxHtml::encode($model->getRelationLabel('distributions'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'distributions', GxHtml::encodeEx(GxHtml::listDataEx(Distribution::model()->findAllAttributes(null, true)), false, true));
?>

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
Exemplo n.º 26
0
?>
		<?php 
echo $form->textField($model, 'birthday', array('maxlength' => 100, 'class' => 'txt_input'));
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'class_id');
?>
		<?php 
$criteria = new CDbCriteria();
$criteria->addCondition("end_time>" . time());
echo $form->dropDownList($model, 'class_id', GxHtml::listDataEx(ClassGuitar::model()->findAllAttributes(null, true, $criteria)));
?>
		</div><!-- row -->
		
		<div class="row">
		<?php 
echo $form->labelEx($model, 'comment');
?>
		<?php 
echo $form->textArea($model, 'comment');
?>
		</div><!-- row -->


<?php 
echo GxHtml::submitButton(Yii::t('app', ''), array('class' => 'dangky'));
$this->endWidget();
?>
</div><!-- form -->