本文整理汇总了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;
?>
示例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) {
?>
示例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'=>'下一张'));