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


PHP zmf::imgurl方法代碼示例

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


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

示例1: array

<div id="<?php 
echo CHtml::activeId($model, $fieldName);
?>
_upload"></div>
<div id="singleFileQueue" style="clear:both;"></div>
<div id="fileSuccess" style="clear:both;"></div>
<input type="hidden" id="file_upload_input"/>   
<?php 
if ($attachid > 0) {
    $attachinfo = Attachments::getOne($attachid);
    if ($attachinfo) {
        echo '<div id="uploadAttach' . $attachid . '"><img src="' . zmf::imgurl($attachinfo['logid'], $attachinfo['filePath'], 124, $attachinfo['classify']) . '"/>' . CHtml::link('刪除', 'javascript:;', array('onclick' => "delUploadImg({$attachid},'" . CHtml::activeId($model, $fieldName) . "')", 'confirm' => '不可恢複,確認刪除?')) . '</div>';
    }
}
?>
<script>
    var imgUploadUrl="<?php 
echo Yii::app()->createUrl('attachments/upload', array('id' => $keyid, 'type' => $type));
?>
";  	
    $(document).ready(
    function(){    	
        singleUploadify('<?php 
echo CHtml::activeId($model, $fieldName);
?>
_upload','<?php 
echo CHtml::activeId($model, $fieldName);
?>
',<?php 
echo isset($num) ? $num : 1;
?>
開發者ID:ph7pal,項目名稱:wedding,代碼行數:31,代碼來源:singleUpload.php

示例2: array

echo $data['fileDesc'];
?>
" width="550px"/></p>
<div class="photo_desc">
<p></p>
</div>
<div class="photo_info">
    <span>
        <?php 
echo CHtml::link(Users::getUserInfo($data['uid'], 'truename'), array('users/index', 'id' => $data['uid']));
?>
上傳於<?php 
echo date(zmf::config('dateFormat'), $data['cTime']);
?>
,<a href="<?php 
echo zmf::imgurl($data['logid'], $data['filePath'], 'origin', $data['classify']);
?>
" target="_blank">查看原圖</a>
    </span>
    <span style="float:right">
    <?php 
if ($data['uid'] == Yii::app()->user->id || Users::checkPower('delattachment', false, true)) {
    ?>
   
        <?php 
    echo CHtml::link('刪除', 'javascript:', array('onclick' => 'deletePost("' . $data['id'] . '","attachments","' . Yii::app()->createUrl('posts/index', array('id' => $data['logid'])) . '")', 'confirm' => Yii::t('default', 'deleteConfirm')));
    ?>
    <?php 
} elseif (!Yii::app()->user->isGuest) {
    ?>
        
開發者ID:ph7pal,項目名稱:wedding,代碼行數:30,代碼來源:image.php

示例3: array

<?php

echo CHtml::link('<img src="' . zmf::imgurl($data['cTime'], $data['filePath'], 170, $data['classify']) . '"/>', array('posts/index', 'id' => $data['logid']));
//echo CHtml::link(CHtml::image(zmf::imgurl($data->logid, $data->filePath, 600,$data->classify),$_title.'的照片'),array('attachments/view','aid'=>tools::jiaMi($nextid),'origin'=>zmf::exOrigin($data->classify),'type'=>$type),array('title'=>'下一張'));
開發者ID:ph7pal,項目名稱:wedding,代碼行數:4,代碼來源:_list.php


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