當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。