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


PHP TbHtml::closeButton方法代码示例

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


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

示例1: renderModalHeader

 /**
  * Renders the header HTML markup of the modal
  */
 public function renderModalHeader()
 {
     echo '<div class="modal-header">' . PHP_EOL;
     if ($this->closeText) {
         echo TbHtml::closeButton($this->closeText, array('data-dismiss' => 'modal'));
     }
     echo TbHtml::tag('h3', array(), $this->header);
     echo '</div>' . PHP_EOL;
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:12,代码来源:TbModal.php

示例2: uniqid

        'color' => TbHtml::BUTTON_COLOR_INFO,
        'size' => TbHtml::BUTTON_SIZE_MINI,
        'data-toggle' => 'modal',
        'data-target' => '#modalidad',
        'style' => '',
        'id' => 'open-modal-' . uniqid(),
            )
    );
    
     echo "</div>";
     
// mostrar botones si es update  
    if ($accion=="update"){ 
    echo "<div class='control-group'>";
    echo "<div class='controls'>";
    echo TbHtml::checkBox('borrar'.$modalidades[$i], false, array('label' => 'Eliminar archivo'));
    echo TbHtml::button('Subir PDF', array('size' => TbHtml::BUTTON_SIZE_MINI, 'class' => 'subirpdf'));

    echo "</div>";
    echo "</div>";


    echo "<div class='well well-small oculto subepdf'>";
    echo TbHtml::closeButton();
    echo $form->FileFieldControlGroup($model, $modalidades[$i]);
    echo "</div>";
    }
    
    
    
       }
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_armamodalidades.php

示例3: testCloseButton

 public function testCloseButton()
 {
     $I = $this->codeGuy;
     $html = TbHtml::closeButton('Close', array('dismiss' => TbHtml::CLOSE_DISMISS_MODAL, 'class' => 'button'));
     $button = $I->createNode($html, 'button[type=button].close');
     $I->seeNodeCssClass($button, 'button');
     $I->seeNodeAttribute($button, 'data-dismiss', 'modal');
     $I->seeNodeText($button, 'Close');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:9,代码来源:TbHtmlTest.php

示例4: array

&lt;?php echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_LARGE)); ?></pre>

	<h4>Small</h4>

	<div class="bs-docs-example">
		<?php 
echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_SMALL));
?>
	</div>
    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_SMALL)); ?></pre>

	<h2>Close icon</h2>

	<div class="bs-docs-example">
		<?php 
echo TbHtml::closeButton(TbHtml::CLOSE_TEXT, array('style' => 'float: none'));
?>
	</div>
    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::closeButton(); ?></pre>

    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::closeLink(); ?></pre>

</section>

</div>
</div>

</div>
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:31,代码来源:components.php


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