当前位置: 首页>>代码示例>>PHP>>正文


PHP Chtml::label方法代码示例

本文整理汇总了PHP中Chtml::label方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::label方法的具体用法?PHP Chtml::label怎么用?PHP Chtml::label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Chtml的用法示例。


在下文中一共展示了Chtml::label方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: procesarListaPartidos

 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/>';
 }
开发者ID:ednjv,项目名称:SSBMVZLA,代码行数:34,代码来源:ApiChallongeController.php

示例2: array

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>
开发者ID:upmunspel,项目名称:abiturient,代码行数:31,代码来源:_document.php

示例3: array

?>
'>
                                <?php 
$pprs_listData = CHtml::listData(PprsPerson::model()->getSysCompanyPersons(), 'pprs_id', 'itemLabel');
echo $form->listBox($model, 'ttsk_pprs_id', $pprs_listData, array('class' => 'span11'));
//echo $form->error($model,'ttsk_pprs_id')
?>
                            
                            </span>
                        </div>
                    </div>                 

                    <div class="control-group">
                        <div class='control-label'>
                                <?php 
echo Chtml::label('Managers', 'managers');
?>
                        </div>
                        <div class='controls'>
                            <span class="tooltip-wrapper" data-toggle='tooltip' data-placement="right"
                                 title='<?php 
echo ($t = Yii::t('D2tasksModule.model', 'tooltip.ttsk_name')) != 'tooltip.ttsk_name' ? $t : '';
?>
'>
                                 <?php 
$person = PprsPerson::model()->getSysCompanyPersons();
echo Chtml::listBox('managers', Yii::app()->getModule('user')->user()->profile->person_id, CHtml::listData(PprsPerson::model()->findAll(array('limit' => 1000, 'order' => 'pprs_second_name')), 'pprs_id', 'itemLabel'), array('style' => 'width:300px;', 'size' => 30, 'multiple' => 'multiple'));
?>
                                        </span>
                        </div>
                    </div>
开发者ID:dbrisinajumi,项目名称:d2tasks,代码行数:31,代码来源:_form.php

示例4: empty

    ?>
" class="row field-row"<?php 
    if (@$htmlOptions['hide']) {
        ?>
 style="display: none;"<?php 
    }
    ?>
>
        <div class="large-<?php 
    echo $layoutColumns['label'];
    ?>
 column">
            <?php 
    $labelText = empty($htmlOptions['label']) ? CHtml::encode($element->getAttributeLabel($field)) : $htmlOptions['label'];
    $labelText .= ':';
    echo Chtml::label($labelText, Chtml::getIdByName($name));
    ?>
        </div>
        <div class="large-<?php 
    echo $layoutColumns['field'];
    ?>
 column<?php 
    if (empty($htmlOptions['append-text']) || empty($layoutColumns['append-text'])) {
        ?>
 end<?php 
    }
    ?>
">
            <?php 
    echo CHtml::textField($name, $value, $htmlOptions);
    ?>
开发者ID:openeyes,项目名称:openeyes,代码行数:31,代码来源:RRuleField.php

示例5: array

		<?php 
if ($model->isNewRecord) {
    $this->widget('ext.matchcode.MatchCode', array('nombrecampo' => 'codart', 'ordencampo' => 6, 'controlador' => $this->id, 'relaciones' => $model->relations(), 'tamano' => 8, 'model' => $model, 'form' => $form, 'nombredialogo' => 'cru-dialog3', 'nombreframe' => 'cru-frame3', 'nombrearea' => 'fhdfj'));
    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 
开发者ID:hipogea,项目名称:zega,代码行数:31,代码来源:_form.php

示例6: array

?>
         <?php 
echo CHtml::dropDownList('SpecialityID', "", Specialities::DropDown(0), array('empty' => '', 'class' => "span12"));
?>
    </div>    
    <div class ="span2">
         <?php 
echo CHtml::label("Форма обучения", 'eduFormID');
?>
         <?php 
echo CHtml::dropDownList('eduFormID', "", CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array('empty' => '', 'class' => "span12"));
?>
    </div>    
    <div class="span2">
		<?php 
echo Chtml::label("Окр", 'idOKR');
?>
		<?php 
echo CHtml::dropDownList('idOKR', "", CHtml::listData(Qualifications::model()->findAll(), 'idQualification', 'QualificationName'), array('empty' => '', 'class' => "span12"));
?>
		
    </div>
    <div class ="span2">
                    <?php 
echo CHtml::label("Дата", 'Date');
?>
                    <?php 
echo CHtml::textField('Date', "", array('class' => 'span12 datepicker'));
?>
                    
    </div>
开发者ID:upmunspel,项目名称:abiturient,代码行数:31,代码来源:reports.php

示例7: array

?>
                <?php 
//echo $model->username
?>
		<?php 
echo $form->hiddenField($model, 'username', array('size' => 30, 'maxlength' => 30));
?>
<br>
		<?php 
echo $form->error($model, 'username');
?>
	</div>
        
        <div class="row">
		<?php 
echo Chtml::label('Current Password', 'oldpw');
?>
                <?php 
//echo Chtml::textField("aoldpw",'',array('size'=>60,'maxlength'=>64));
?>
                <?php 
echo Chtml::passwordField("oldpw", '', array('size' => 60, 'maxlength' => 64));
?>
	</div>
	<div class="row">
		<?php 
echo CHtml::label('New Password', 'password');
?>
		<?php 
echo CHtml::passwordField("password", '', array('size' => 60, 'maxlength' => 64));
?>
开发者ID:jumper2012,项目名称:english_learning,代码行数:31,代码来源:_form2.php

示例8: array

	        <?php 
}
?>
	        <div class="form-group">
	            <?php 
echo Chtml::label('', '', array('class' => 'col-md-3 control-label'));
?>
	            <div class="col-md-9">
	            	<?php 
echo CHtml::fileField('files[]', Yii::t('app', 'Выберите файл'));
?>
	            </div>
	        </div>
	        <div class="form-group">
	            <?php 
echo Chtml::label('', '', array('class' => 'col-md-3 control-label'));
?>
	            <div class="col-md-9">
	            	<?php 
echo CHtml::link(Yii::t('app', 'Загрузить еще'), 'javascript:void(0);', array('id' => 'createFileUpload', 'onClick' => 'createFileUpload()'));
?>
	            </div>
	        </div>
		</div>
		<div class="form-actions">
			<?php 
echo CHtml::submitButton($model->isNewRecord ? Yii::t('app', 'Создать') : Yii::t('app', 'Сохранить'), array('class' => 'btn green'));
?>
			<a href="<?php 
echo $this->createUrl('index');
?>
开发者ID:hikaram,项目名称:utitheme,代码行数:31,代码来源:_form.php

示例9: array

        </div>
    </div>

    <!-- Статистика заяв на старші курси -->
    <div class="well well-large span5">
        <h3 id="elderstat">Статистика заяв на старші курси</h3>
        <div class="form" id="elderstat_block" style="display:none;">
            <?php 
$statdetail_act = Yii::app()->createUrl("statistic/stat/statgraduated");
/* @var $statdetail_form TbActiveForm */
$statdetail_form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'statgr', 'enableAjaxValidation' => false, 'method' => "GET", 'action' => $statdetail_act));
?>
            <div class="row-fluid">
                <div class="span12">
                    <?php 
echo Chtml::label("ОКР", 'QualificationID');
?>
                    <?php 
echo CHtml::dropDownList('QualificationID', "", array("3" => "Спеціаліст", "2" => "Магістр"), array('empty' => '', 'class' => 'span12'));
?>
                </div>
            </div>
            <div class="row-fluid">
                <div class='span6'>
                    <?php 
echo CHtml::label("Від дати", 'DateFrom');
?>
                    <?php 
echo CHtml::textField('DateFrom', date('d.m.Y'), array('class' => 'datepicker span12'));
?>
                </div>
开发者ID:upmunspel,项目名称:abiturient,代码行数:31,代码来源:index.php


注:本文中的Chtml::label方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。