當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TbHtml::imagePolaroid方法代碼示例

本文整理匯總了PHP中TbHtml::imagePolaroid方法的典型用法代碼示例。如果您正苦於以下問題:PHP TbHtml::imagePolaroid方法的具體用法?PHP TbHtml::imagePolaroid怎麽用?PHP TbHtml::imagePolaroid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::imagePolaroid方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

	<div class="bs-docs-example">
		<div class="row-fluid" style="text-align: center; width: 450px;">
			<div class="span4">
				<?php 
echo TbHtml::imageRounded('holder.js/140x140');
?>
			</div>
			<div class="span4">
				<?php 
echo TbHtml::imageCircle('holder.js/140x140');
?>
			</div>
			<div class="span4">
				<?php 
echo TbHtml::imagePolaroid('holder.js/140x140');
?>
			</div>
		</div>
	</div>

    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::imageRounded('...'); ?>
&lt;?php echo TbHtml::imageCircle('...'); ?>
&lt;?php echo TbHtml::imagePolaroid('...'); ?></pre>

</section>

<!-- Nav, Tabs, & Pills
	================================================== -->
<section id="navs">
開發者ID:yii-twbs,項目名稱:yiistrap-docs,代碼行數:30,代碼來源:components.php

示例2: array

            <li>
                <a href="<?php 
    echo Yii::app()->createUrl("saleItem/indexpara", array("item_id" => $product->id));
    ?>
" title="<?php 
    echo $product->name;
    ?>
" data-rel="colorbox" class="list-product">
                    <span>
                    <?php 
    if ($item_image) {
        $uri = 'data:image/png;base64,' . base64_encode($item_image->thumbnail);
        echo CHtml::image($uri, 'Produt Image');
    } else {
        //echo CHtml::image(Yii::app()->baseUrl . '/images/image.png','Product Image');
        echo TbHtml::imagePolaroid('holder.js/125x117/acename/text:' . $product->name);
    }
    ?>
                    <span>
                    <!--<img alt="120x100" src=<?php 
    //echo Yii::app()->baseUrl . '/images/image.png';
    ?>
 width="120px" height="100px" />-->
                    <div class="tags">
                            <span class="label label-info"><?php 
    echo $product->name;
    ?>
</span>
                            <span class="label label-success arrowed-in"><?php 
    echo number_format($product->unit_price, Yii::app()->shoppingCart->getDecimalPlace());
    ?>
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:31,代碼來源:admin_touchscreen_1.php

示例3: testImagePolaroid

 public function testImagePolaroid()
 {
     $I = $this->codeGuy;
     $html = TbHtml::imagePolaroid('image.png', 'Alternative text', array('class' => 'image'));
     $img = $I->createNode($html, 'img.img-polaroid');
     $I->seeNodeCssClass($img, 'image');
     $I->seeNodeAttributes($img, array('src' => 'image.png', 'alt' => 'Alternative text'));
 }
開發者ID:AlexanderGrant1,項目名稱:AC41004,代碼行數:8,代碼來源:TbHtmlTest.php

示例4: foreach

            <?php 
foreach ($products as $product) {
    ?>
            <?php 
    $item_image = ItemImage::model()->find('item_id=:itemId', array(':itemId' => $product->id));
    ?>
            <li>
                <a href="<?php 
    echo Yii::app()->createUrl("saleItem/indexpara", array("item_id" => $product->id));
    ?>
" title="<?php 
    echo $product->name;
    ?>
" data-rel="colorbox" class="list-product">
                    <?php 
    echo TbHtml::imagePolaroid('holder.js/110x100/acename/text:');
    /*
    if ($item_image) { 
        $uri = 'data:image/png;base64,'.base64_encode($item_image->thumbnail);
        echo CHtml::image($uri,'Produt Image');
    }else {
        //echo CHtml::image(Yii::app()->baseUrl . '/images/image.png','Product Image');
        echo TbHtml::imagePolaroid('holder.js/105x117/acename/text:');
    }
     * 
    */
    ?>
                    <!--<img alt="120x100" src=<?php 
    //echo Yii::app()->baseUrl . '/images/image.png';
    ?>
 width="120px" height="100px" />-->
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:31,代碼來源:admin_touchscreen.php

示例5: array

?>

						<?php 
echo $form->textField($model, 'EventoImaBol', array('append' => TbHtml::button('Seleccionar imagen', array('class' => 'btn btn-success', 'id' => 'btn-subir-imabol')), 'placeholder' => 'Nombre de la imagen en Boleto'));
?>

				</div>


				<div class='span4 white-box box'>
				<h3><?php 
echo TbHtml::i('', array('class' => 'fa fa-picture-o'));
?>
 Imagen para PV</h3>
					<?php 
echo TbHtml::imagePolaroid(strlen($model->EventoImaMin) > 3 ? "../imagesbd/" . $model->EventoImaMin : 'holder.js/130x130', '', array('id' => 'img-imamin'));
?>
					<br /><br />
					<?php 
echo TbHtml::fileField('imamin', '', array('span' => 2, 'maxlength' => 200, 'class' => 'hidden'));
?>
					<?php 
echo $form->textField($model, 'EventoImaMin', array('append' => TbHtml::button('Seleccionar imagen', array('class' => 'btn btn-success', 'id' => 'btn-subir-imamin')), 'placeholder' => 'Nombre de la imagen miniatura'));
?>
		
				</div>
                <?php 
if ($model->scenario == 'update' and !empty($funciones)) {
    ?>
                <style>
	            .modal-body {
開發者ID:cicb,項目名稱:tpc,代碼行數:31,代碼來源:form.php


注:本文中的TbHtml::imagePolaroid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。