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


PHP TbHtml::image方法代碼示例

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


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

示例1: array

   padding: 0 !important;
   margin: 0 !important;
   padding-bottom: 0;
}
</style>
<div class="container"> 
    <div class="row">
        <div class="col-xs-5">
            <div class="panel panel-default">
                <div class="panel-body">
                    <p>
                        <?php 
if (Yii::app()->settings->get('receipt', 'printcompanyLogo') == '1') {
    ?>
                            <?php 
    echo TbHtml::image(Yii::app()->baseUrl . '/images/logo.png', 'Company\'s logo', array('width' => '100'));
    ?>
 <br>
                        <?php 
}
?>
                    </p>
                </div>
            </div>
        </div>
        <div class="col-xs-6 col-xs-offset-1 text-right">
            <div class="panel panel-default">
                    <p>
                        <?php 
if (Yii::app()->settings->get('receipt', 'printcompanyName') == '1') {
    ?>
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:31,代碼來源:_receipt_suspend.php

示例2: array

<div class="span8" style="float: none;margin-left: auto; margin-right: auto;">
    <?php 
if (isset($error_message)) {
    echo '<h2 style="text-align: center;">' . $error_message . '</h1>';
} else {
    ?>
        <div id="receipt_header" style="width:200px; margin:0 auto;">
            <div id="copmany_logo" align="center"><?php 
    echo TbHtml::image(Yii::app()->baseUrl . '/images/memoire-coffee.png', 'Company\'s logo', array('width' => '110'));
    ?>
</div>
            <div id="company_name" align="center"><?php 
    echo TbHtml::b(Yii::app()->settings->get('site', 'companyName'));
    ?>
</b></div>
            <div id="company_address" align="center"><?php 
    echo TbHtml::b(Yii::app()->settings->get('site', 'companyAddress'));
    ?>
</div>
            <div id="company_phone" align="center"><b><?php 
    echo TbHtml::b(Yii::app()->settings->get('site', 'companyPhone'));
    ?>
</b></div>
            <div id="sale_receipt" align="center"><?php 
    echo TbHtml::b('Sales Receipt');
    ?>
</div>
            <div id="sale_time" align="center"><?php 
    echo TbHtml::b($transaction_time);
    ?>
</div>
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:31,代碼來源:_receipt.php

示例3: array

<?php

$this->widget('bootstrap.widgets.TbAlert');
?>
 
<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array(array('name' => 'name', 'header' => 'Name', 'value' => $model->getName()), 'id', array('name' => 'store_id', 'type' => 'raw', 'value' => !empty($model->store) ? TbHtml::link(TbHtml::encode($model->store->name), array("store/view", "id" => $model->store_id)) : null), array('name' => 'image', 'type' => 'raw', 'value' => !empty($model->images) ? TbHtml::image(TbHtml::encode(UtilityHelper::getPublishPath($model->images[0]->source)), Yii::t('label', 'Image')) : null, 'cssClass' => 'gridimage'), array('name' => 'parent_id', 'type' => 'raw', 'value' => !empty($model->parent) ? TbHtml::link(TbHtml::encode($model->parent->getName()), array("category/view", "id" => $model->parent_id)) : null), array('name' => 'top', 'value' => $model->top === '0' ? 'No' : 'Yes', 'filter' => array('0' => 'No', '1' => 'Yes')), 'sort_order', array('name' => 'status', 'value' => $model->status === '0' ? 'No' : 'Yes', 'filter' => array('0' => 'No', '1' => 'Yes')), 'date_added', 'date_modified')));
?>
<div class="hlinks hide">
<div class="uid"><?php 
echo $model->id;
?>
</div>
</div>
開發者ID:Rudianasaja,項目名稱:cycommerce,代碼行數:14,代碼來源:_view.php

示例4: array

    <?php 
echo $form->textFieldControlGroup($model, 'subtitle');
?>

    <div class="control-group">
        <?php 
echo $form->labelEx($model, 'thumb', array('class' => "control-label"));
?>
        <div class="controls" >

            <?php 
if ($this->action->id == 'update' && $model->thumb != '') {
    echo TbHtml::image($model->thumb, '', array('style' => "width:60px;height:60px"));
} else {
    echo TbHtml::image(Yii::app()->getModule('admin')->getAssetsUrl() . '/images/image.png', '', array('style' => "width:60px;height:60px"));
}
?>

            <?php 
echo $form->fileField($model, 'thumb_file');
?>
        </div>
        <?php 
echo $form->error($model, 'thumb_file');
?>
    </div>

    <?php 
echo $form->textFieldControlGroup($model, 'aliases');
?>
開發者ID:cooltheo,項目名稱:fircms,代碼行數:30,代碼來源:_form.php

示例5: array

if (isset($error_message)) {
    echo TbHtml::alert(TbHtml::ALERT_COLOR_ERROR, $error_message);
    exit;
}
?>
<div class="container" id="receipt_wrapper"> 
    <div class="row">
        <div class="col-xs-5">
            <!-- <div class="panel panel-default"> -->
                <!-- <div class="panel-body"> -->
                    <p>
                        <?php 
if (Yii::app()->settings->get('receipt', 'printcompanyLogo') == '1') {
    ?>
                            <?php 
    echo TbHtml::image(Yii::app()->baseUrl . '/images/tube3.jpg', 'Company\'s logo', array('width' => '70'));
    ?>
 <br>
                            <!-- <h5> Tube Plastic </h5> -->
                        <?php 
}
?>
                    </p>
                <!-- </div> -->
            <!-- </div> -->
        </div>
        <div class="col-xs-6 col-xs-offset-1 text-right">
            <!-- <div class="panel panel-default"> -->
                    <p>
                        <?php 
if (Yii::app()->settings->get('receipt', 'printcompanyName') == '1') {
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:31,代碼來源:_receipt_1.php


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