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


PHP TbHtml::closeTag方法代码示例

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


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

示例1: renderField

 /**
  * Renders the field if no selector has been provided
  */
 public function renderField()
 {
     if (null === $this->selector) {
         $options = array();
         list($name, $id) = $this->resolveNameID();
         $options['id'] = $id . '_datetimepicker';
         TbHtml::addCssClass('input-group date', $options);
         echo TbHtml::openTag('div', $options);
         if ($this->hasModel()) {
             echo TbHtml::activeTextField($this->model, $this->attribute, $this->htmlOptions);
         } else {
             echo TbHtml::textField($name, $this->value, $this->htmlOptions);
         }
         echo TbHtml::openTag('span', array('class' => 'input-group-addon'));
         echo TbHtml::openTag('span', array('class' => 'glyphicon glyphicon-calendar'));
         echo TbHtml::closeTag('span');
         echo TbHtml::closeTag('span');
         echo TbHtml::closeTag('div');
     }
 }
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:23,代码来源:WhDateTimePicker.php

示例2: foreach

<?php 
echo TbHtml::openTag('tr');
foreach ($asientos as $asiento) {
    //Por cada Asiento
    echo TbHtml::tag('td', array(), $asiento->LugaresLug);
}
echo TbHtml::closeTag('tr');
开发者ID:cicb,项目名称:tpc,代码行数:7,代码来源:_filaAsiento.php

示例3: array

<div class="controles" style="height:100%;min-height:400px;">
		<h2><i class="fa fa-th"></i> Acerca del panel de control </h2>			
<br>

<?php 
echo TbHtml::openTag('div', array('class' => ' box box4  text-left'));
$this->beginWidget('CMarkdown', array('purifyOutput' => true));
try {
    $changelog = readfile("changelog");
} catch (Exception $e) {
    $changelog = "### Version 1.0 ";
}
$this->endWidget();
echo TbHtml::closeTag('div');
?>

</div>
开发者ID:cicb,项目名称:tpc,代码行数:17,代码来源:about.php

示例4: renderField

 /**
  * Renders the field if no selector has been provided
  */
 public function renderField()
 {
     if (null === $this->selector) {
         $options = array();
         list($name, $id) = $this->resolveNameID();
         $options['id'] = $id . '_datetimepicker';
         TbHtml::addCssClass('input-append', $options);
         echo TbHtml::openTag('div', $options);
         if ($this->hasModel()) {
             echo TbHtml::activeTextField($this->model, $this->attribute, $this->htmlOptions);
         } else {
             echo TbHtml::textField($name, $this->value, $this->htmlOptions);
         }
         echo TbHtml::openTag('span', array('class' => 'add-on'));
         echo '<i data-time-icon="' . $this->iconTime . '" data-date-icon="' . $this->iconDate . '"></i>';
         echo TbHtml::closeTag('span');
         echo TbHtml::closeTag('div');
     }
 }
开发者ID:2amigos,项目名称:yiiwheels,代码行数:22,代码来源:WhDateTimePicker.php

示例5: renderTableRow

 /**
  * Renders a table body row.
  *
  * @param integer $row the row number (zero-based).
  */
 public function renderTableRow($row)
 {
     $htmlOptions = array();
     if ($this->rowHtmlOptionsExpression !== null) {
         $data = $this->dataProvider->data[$row];
         $options = $this->evaluateExpression($this->rowHtmlOptionsExpression, array('row' => $row, 'data' => $data));
         if (is_array($options)) {
             $htmlOptions = $options;
         }
     }
     if ($this->rowCssClassExpression !== null) {
         $data = $this->dataProvider->data[$row];
         $class = $this->evaluateExpression($this->rowCssClassExpression, array('row' => $row, 'data' => $data));
     } elseif (is_array($this->rowCssClass) && ($n = count($this->rowCssClass)) > 0) {
         $class = $this->rowCssClass[$row % $n];
     }
     if (!empty($class)) {
         if (isset($htmlOptions['class'])) {
             $htmlOptions['class'] .= ' ' . $class;
         } else {
             $htmlOptions['class'] = $class;
         }
     }
     echo TbHtml::openTag('tr', $htmlOptions);
     foreach ($this->columns as $column) {
         echo $this->displayExtendedSummary && !empty($this->extendedSummary['columns']) ? $this->parseColumnValue($column, $row) : $column->renderDataCell($row);
     }
     echo TbHtml::closeTag('tr');
 }
开发者ID:2amigos,项目名称:yiiwheels,代码行数:34,代码来源:WhGridView.php

示例6: actionGenerarNumerados

 public function actionGenerarNumerados($EventoId, $FuncionesId, $ZonasId)
 {
     // Genera asientos numerados de una zona
     // Si le han pasado el id de zona
     $zona = Zonas::model()->findByPk(compact('EventoId', 'FuncionesId', 'ZonasId'));
     if ($zona->generarLugares()) {
         echo TbHtml::openTag('div', array('style' => 'color:#FFF'));
         echo TbHtml::tag('h2', array(), 'Se han generado los lugares.');
         echo TbHtml::tag('p', array(), 'Los lugares se han registrado conforme a la configuración que ústed acaba de definir.');
         echo "<br>";
         echo TbHtml::link(' Regresar a zonas', array('editorSubzona', 'EventoId' => $EventoId, 'FuncionesId' => $FuncionesId, 'ZonasId' => $ZonasId, 'SubzonaId' => 1), array('class' => 'btn btn-large btn-primary fa fa-arrow-left'));
         echo TbHtml::closeTag('div');
     }
 }
开发者ID:cicb,项目名称:tpc,代码行数:14,代码来源:DistribucionesController.php

示例7: array

    $usrval->usrValIdRef2 = 'TODAS';
    $this->widget('bootstrap.widgets.TbGridView', array('id' => 'usrval-grid', 'dataProvider' => $usrval->search(), 'template' => "{items}\n{pager}", 'type' => 'striped hover', 'columns' => array(array('header' => 'Evento', 'value' => 'coalesce(@$data->evento->EventoNom,$data->usrValIdRef)'), array('header' => 'Funcion', 'value' => 'coalesce(@$data->funcion->funcionesTexto,$data->usrValIdRef2)'), array('class' => 'CButtonColumn', 'header' => '', 'template' => ' {eliminar} {permisos} ', 'buttons' => array('eliminar' => array('label' => '<span class="text-error fa fa-times-circle"> Quitar</span>', 'url' => 'Yii::app()->createUrl("usuarios/desasignarEvento",array(
													"id"=>$data->UsuarioId,
													"evento"=>$data->usrValIdRef,
													"nick"=>"' . $model->UsuariosNick . '",
													"funcion"=>$data->usrValIdRef2))', 'click' => 'function(event){
													$.get( $(this).attr("href")).done( function(){ $.fn.yiiGridView.update("usrval-grid"); });
													event.preventDefault(); }'), 'permisos' => array('label' => TbHtml::button('Reportes', array('class' => 'btn btn-info', 'data-toggle' => 'modal', 'data-target' => '#modal-permisos-reportes'))))))));
    ?>
		</div><!-- asignacion de eventos-->
<?php 
    $asignadosHtml = TbHtml::openTag('div', array('class' => 'text-center'));
    $asignadosHtml .= TbHtml::dropDownList('eventos_asignados', 0, CHtml::listData($model->getEventosAsignados(), 'EventoId', 'EventoNom'), array('class' => 'span3 ', 'empty' => 'SELECCIONE UN EVENTO'));
    $asignadosHtml .= "<br/><br/>";
    $asignadosHtml .= TbHtml::tag('table', array('id' => 'tabla-reportes'), '');
    $asignadosHtml .= TbHtml::closeTag('div');
    $this->widget('bootstrap.widgets.TbModal', array('id' => 'modal-permisos-reportes', 'header' => 'Reportes permitidos', 'htmlOptions' => array('class' => 'text-center'), 'content' => $asignadosHtml, 'footer' => TbHtml::button('Cerrar', array('data-dismiss' => 'modal'))));
    ?>



<br />
<?php 
    $this->widget('bootstrap.widgets.TbModal', array('id' => 'conModal', 'header' => 'Cambio de contraseña', 'content' => $this->renderPartial('_cambioContrasena', array('model' => $model), true, true), 'footer' => implode(' ', array(CHtml::ajaxSubmitButton('Confirmar', Yii::app()->createUrl('usuarios/cambiarClave', array('id' => $model->UsuariosId, 'nick' => $model->UsuariosNick)), array('type' => 'POST', 'data' => 'js:{up: $("#up").val() }', 'success' => 'js:function(string){ $("#formulario").html(string);
													$("#btn-cambiar-clave").attr("data-dismiss","modal");
													$("#btn-cambiar-clave").val("Continuar...");
						 }'), array('class' => 'btn btn-primary ', 'disabled' => true, 'data-dismiss' => false, 'id' => 'btn-cambiar-clave')), TbHtml::button('Cerrar', array('data-dismiss' => 'modal'))))));
    ?>


开发者ID:cicb,项目名称:tpc,代码行数:28,代码来源:form.php

示例8: array

<?php

echo TbHtml::openTag('table', array('width' => 'auto', 'class' => 'table-bordered centrado box'));
foreach ($subzona->filas as $fila) {
    // Por filas
    //$this->renderPartial('_filaAsiento',array('asientos'=>$fila->asientos));
    echo TbHtml::openTag('tr');
    echo TbHtml::tag('th', array(), $fila->FilasAli);
    foreach ($fila->lugares as $asiento) {
        //Por cada Asiento
        $clase = "";
        if ($asiento->LugaresStatus == 'OFF') {
            $clase .= " off hidden";
        }
        $control = TbHtml::textField('asiento', $asiento->LugaresLug, array('class' => 'input-mini asiento' . $clase, 'data-fid' => $asiento->FilasId, 'data-id' => $asiento->LugaresId));
        echo TbHtml::tag('td', array('class' => ' '), $control);
    }
    echo TbHtml::tag('td', array(), TbHtml::buttonGroup(array(array('data-id' => $fila->FilasId, 'title' => 'Alinear todo a la izquierda', 'class' => 'fa fa-angle-double-left btn btn-info btn-alinear', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'izquierda'))), array('data-id' => $fila->FilasId, 'title' => 'Recorrer a la izquierda', 'class' => 'fa fa-angle-left btn btn-info btn-alinear', 'url' => array_merge((array) 'moverFila', $fila->getPrimaryKey(), array('direccion' => 'izquierda'))), array('data-id' => $fila->FilasId, 'title' => 'Alinear todo al centro', 'class' => 'fa fa-angle-double-up btn-alinear btn btn-info', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'centro'))), array('data-id' => $fila->FilasId, 'title' => 'Recorrer a la derecha', 'class' => 'fa fa-angle-right  btn-alinear btn btn-info', 'url' => array_merge((array) 'moverFila', $fila->getPrimaryKey(), array('direccion' => 'derecha'))), array('data-id' => $fila->FilasId, 'title' => 'Alinear todo a la derecha', 'class' => 'fa fa-angle-double-right  btn-alinear btn btn-info', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'derecha'))))));
    echo TbHtml::tag('td', array(), TbHtml::button('', array('onclick' => 'activarOff(' . $fila->FilasId . ')', 'class' => 'btn fa fa-adjust')));
    echo TbHtml::tag('td', array(), TbHtml::textField('FilasCanLug-' . $fila->FilasId, $fila->ntrue, array('class' => 'input-mini', 'data-lugares' => $fila->ntrue, 'append' => 'Lugares', 'readonly' => true)));
    echo TbHtml::closeTag('tr');
}
echo TbHtml::closeTag('table');
开发者ID:cicb,项目名称:tpc,代码行数:23,代码来源:_subzona.php


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