Exemple #1
0
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'detgui-form', 'enableClientValidation' => TRUE, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true), 'enableAjaxValidation' => FALSE));
echo $form->errorSummary($model);
?>

<div class="row">

						<?php 
echo $form->labelEx($model, 'tipoitem');
?>
						<?php 
//print_r($model->attributes);yii::app()->end();
?>
						<?php 
echo Chtml::textField('cantidax', $model->tipoitem, array('disabled' => 'disabled', 'maxlenght' => 1));
?>
	
</div>











	<div class="row">
Exemple #2
0
			<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>
Exemple #3
0
    echo $form->error($model, 'codart');
} else {
    echo CHtml::textField('Sax', $model->codart, array('disabled' => 'disabled', 'size' => 8));
    echo CHtml::textField('Sa', $model->maestro->descripcion, array('disabled' => 'disabled', 'size' => 40));
}
?>
	</div>

	

	<div class="row">
		<?php 
echo Chtml::label('um', 'um');
?>
		<?php 
echo Chtml::textField('ssfsfs', $model->maestro->maestro_ums->desum, array('disabled' => 'disabled', 'size' => 3, 'maxlength' => 3));
?>

	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'cantlibre');
?>
		<?php 
echo $form->textField($model, 'cantlibre', array('disabled' => 'disabled'));
?>
		<?php 
echo $form->error($model, 'cantlibre');
?>
	</div>
Exemple #4
0
            <img alt="<?php 
echo Yii::app()->params['title'];
?>
"
                 src="<?php 
echo Yii::app()->theme->baseUrl;
?>
/image/logo.png"
                 width="227" height="80">
        </a></div>
    <?php 
echo CHtml::beginForm(Yii::app()->createUrl('catalog/index'), 'get', array('class' => 'search'));
?>
    <div class="search_box">
        <?php 
echo Chtml::textField('key', isset($_GET['key']) ? $_GET['key'] : '');
?>
        <button></button>
    </div>
    <div class="search_hot">
        热门搜索:
        <?php 
foreach (array('皮雕', '软皮', '压花') as $v) {
    echo CHtml::link($v, Yii::app()->createUrl('catalog/index', array('key' => $v)));
}
?>
    </div>
    <?php 
echo Chtml::endForm();
?>
    <a href="<?php 
Exemple #5
0
		<?php 
if (is_null($model->codocuref) or empty($model->codocuref)) {
    ?>
			<?php 
    $datos1 = CHtml::listData(Documentos::model()->findAll(array('order' => 'desdocu')), 'coddocu', 'desdocu');
    echo $form->DropDownList($model, 'codocuref', $datos1, array('empty' => '--Seleccione un documento--', 'disabled' => $model->isNewRecord ? '' : 'disabled'));
    ?>



		<?php 
} else {
    ?>
			<?php 
    echo Chtml::textField('SORA', Almacenmovimientos::model()->findByPk($model->codmovimiento)->documentos->desdocu, array('disabled' => 'disabled', 'size' => 30));
    ?>
			<?php 
    $form->hiddenField($model, 'codocuref');
    ?>
		<?php 
}
?>





		<?php 
echo $form->error($model, 'codocuref');
?>
<p>
    Введіть код який абітурієнта отримав при реестрації у поле пошуку.
</p>
<?php 
if (Yii::app()->user->hasFlash("message")) {
    echo "<span style='color: red;'>" . Yii::app()->user->getFlash("message") . "</span><br>";
}
?>
 <br>
<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'searchForm', 'type' => 'search', 'action' => Yii::app()->createUrl("Personspeciality/studupdate"), 'method' => "get"));
?>
<div class="input-prepend"><span class="add-on"><i class="icon-search"></i></span>
        <?php 
echo Chtml::textField("id", "", array('class' => 'span2'));
?>
</div>
<?php 
$url = "'Personspeciality/studupdate/' +\$('#id').val() ";
$this->widget('bootstrap.widgets.TbButton', array('label' => 'Редагувати', 'buttonType' => 'submit', 'icon' => 'pencil', 'size' => null, 'loadingText' => 'Зачекайте...', 'htmlOptions' => array("style" => "margin-top: 2px;", 'onclick' => "PSN.editStudpric(this,{$url});")));
?>
 <?php 
$this->endWidget();
?>
 

    <hr>  
    <div id="spec-modal-holder"></div>
Exemple #7
0
?>
</h4>
						<div class="form-group" style="margin-left: 0; margin-right: 0;">
							<?php 
echo Chtml::textField('filter[first_name]', array_key_exists('first_name', $filter) ? $filter['first_name'] : '', array('class' => 'form-control input-inline input-large'));
?>
						</div>
					</div>
					<div class="col-md-4">
						<h4 class="form-section"> <?php 
echo $profileLang->getAttributeLabel('second_name');
?>
</h4>
						<div class="form-group" style="margin-left: 0; margin-right: 0;">
							<?php 
echo Chtml::textField('filter[second_name]', array_key_exists('second_name', $filter) ? $filter['second_name'] : '', array('class' => 'form-control input-inline input-large'));
?>
						</div>
					</div>
				</div>				
				<div class="row">
					<div class="col-md-12">
						<h4 class="form-section"><?php 
echo Yii::t('app', 'Дата регистрации');
?>
</h4>
						<div class="row" style="margin: 0 15px 0;">
							<div class="form-group">
								<label class="сontrol-label col-md-3"><?php 
echo Yii::t('app', 'ОТ');
?>
Exemple #8
0
?>
		<?php 
echo $form->error($model, 'desalm');
?>
	</div>

	

	 <div class="row">
	  
		
		<?php 
echo $form->labelEx($model, 'codcen');
?>
		<?php 
echo Chtml::textField('nomal', $model->centros->nomcen, array('value' => $model->centros->nomcen, 'size' => 35, 'maxlength' => 35, 'disabled' => 'disabled'));
?>
		<?php 
echo $form->error($model, 'codcen');
?>
	</div>

	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'tipovaloracion');
?>
		<?php 
echo $form->textField($model, 'tipovaloracion', array('size' => 2, 'maxlength' => 2, 'disabled' => 'disabled'));
?>
Exemple #9
0
												if($(itemActive).find("span").css("color") != '#000'){
													$(itemActive).find("span").css("color","#000");
													
												}
												$(itemActive).find("#nav_sub").show();
											});
										});
									</script>
                                </div>
                                <div id="search_mn">
                                    <div id="search_mn_left">
                                        <div id="search_mn_center">
                                            <div id="search_mn_right">
                                                <?php 
echo CHtml::beginForm();
echo Chtml::textField('keyword', null, array('id' => 'txt_key'));
echo CHtml::submitButton('', array('id' => 'bt_search'));
echo CHtml::endForm();
?>
                                                <!-- <input id="txt_key" name="keyword" type="text" /> <input id="bt_search" type="submit"
                                                                    value="" /> -->
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- mainmenu -->
Exemple #10
0
    ?>
</td>
				<td><?php 
    echo Chtml::textField('typePlatezh', $value['Type_platezh'], array('readonly' => 'true'));
    ?>
</td>
				<td><?php 
    echo $value['Num_credit'];
    ?>
</td>
				<td><?php 
    echo $value['Oforml_credit_date'];
    ?>
</td>
				<td><?php 
    echo Chtml::textField('lessSum', $value['Less_sum'], array('readonly' => 'true'));
    ?>
</td>
				<td><?php 
    echo $value['P_sum'];
    ?>
</td>
				<td><?php 
    echo $value['P_proc'];
    ?>
</td>
				<td><?php 
    echo CHtml::submitButton('+');
    ?>
</td>
			<?php 
Exemple #11
0
?>
		<?php 
echo $model->isNewRecord ? '' : Chtml::textField('iduser', strtoupper(Yii::app()->user->um->loadUserById($model->iduser, false)->username));
?>
	
	</div>
	
	
	

	<div class="row">
		<?php 
echo $form->labelEx($model, 'fechacreac');
?>
		<?php 
echo $model->isNewRecord ? '' : Chtml::textField('fechacreac', $model->fechacreac);
?>
	
	
	</div>


	<div class="row">
		<?php 
echo $form->labelEx($model, 'insercion');
?>
		<?php 
if (!$model->insercion == '1') {
    ?>
		<?php 
    echo $form->checkBox($model, 'insercion', array('disabled' => $model->isNewRecord ? '' : 'disabled'));
Exemple #12
0
echo CHtml::hiddenField(FALSE, $model->id, array('id' => 'questionId'));
?>
		<?php 
echo CHtml::beginForm(NULL, 'POST', array('id' => 'filterform'));
?>
			<div class="form-body">
				<div class="form-group mt20">
					<div class="col-md-3 control-label">
						<label><?php 
echo Users::model()->getAttributeLabel('username');
?>
</label>
					</div>
					<div class="col-md-9">
						<?php 
echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : '', array('class' => 'form-control input-large'));
?>
					</div>
				</div>
			</div>
			<div class="form-actions">
				<?php 
echo Chtml::submitButton(Yii::t('app', 'Найти'), array('name' => 'btn_filter', 'class' => 'btn green'));
?>
				<a href="javascript: void(0)" onClick="location.href=app.createAbsoluteUrl('admin/register/questions/view/id/<?php 
echo $model->id;
?>
')" class="btn red"><?php 
echo Yii::t('app', 'Сбросить фильтр');
?>
</a>
Exemple #13
0
    ?>
	
	  <?php 
    $datos = CHtml::listData(Tipoop::model()->findAll(array('order' => 'desop')), 'codop', 'desop');
    echo $form->dropDownList($model, 'codtipoop', $datos, array('prompt' => 'Seleccione una operacion', 'onChange' => 'window.location.href="' . Yii::app()->getRequest()->getUrl() . '?micodigomov="+this.value;Loading.show();Loading.hide(); '));
    ?>

	<?php 
    echo $form->error($model, 'codtipoop');
    ?>

		<?php 
} else {
    ?>
			<?php 
    echo Chtml::textField(Tipoop::model()->findByPk($model->codtipoop)->desop, Tipoop::model()->findByPk($model->codtipoop)->desop, array('disabled' => 'disabled', 'size' => 20));
    ?>
			<?php 
    $form->hiddenField($model, 'codtipoop');
    ?>
		<?php 
}
?>

	</div>
	  <div style="display:table-cell">
	     <?php 
echo $form->labelEx($model, 'operando');
?>
				
		  <?php 
Exemple #14
0
<style>
    .list .action form { display: inline; }
</style>

<br /><br />
<h3><span class="wrapper-3">Фильтр</span></h3>
<?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 />
Exemple #15
0
echo $form->labelEx($model, 'image');
?>
                    <?php 
echo $form->fileField($model, 'image');
?>
                    <?php 
echo $form->error($model, 'image');
?>
                </div>

                <div class="form-group">
                    <?php 
echo $form->labelEx($model, 'image');
?>
                    <?php 
echo Chtml::textField('sd', isset($model->image) ? $model->image : '', array('size' => 60, 'maxlength' => 255, 'disabled' => true, 'class' => 'form-control'));
?>
                    <?php 
echo $form->error($model, 'image');
?>
                </div>

                <div class="form-group">
                    <?php 
echo $form->labelEx($model, 'meta_title_ru');
?>
                    <?php 
echo $form->textField($model, 'meta_title_ru', array('size' => 60, 'maxlength' => 255, 'class' => 'form-control'));
?>
                    <?php 
echo $form->error($model, 'meta_title_ru');
Exemple #16
0
        <?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');
?>
Exemple #17
0
		<div class="row">
			<?php 
echo $form->labelEx($model, 'codcendestino');
?>
			<?php 
echo $form->textField($model, 'codcendestino', array('size' => 4, 'disabled' => 'disabled'));
?>
		</div>

		<div class="row">
			<?php 
echo $form->labelEx($model, 'codocuref');
?>
			<?php 
echo Chtml::textField('SORA', $model->docureferencia->desdocu, array('disabled' => 'disabled', 'size' => 30));
?>
		</div>

		<div class="row">
			<?php 
echo $form->labelEx($model, 'textolargo');
?>
			<?php 
echo $form->Textarea($model, 'textolargo', array('rows' => 3, 'columns' => 150, 'disabled' => $model->isNewRecord ? '' : 'disabled'));
?>
			<?php 
echo $form->error($model, 'textolargo');
?>
		</div>