当前位置: 首页>>代码示例>>PHP>>正文


PHP Path::img方法代码示例

本文整理汇总了PHP中Path::img方法的典型用法代码示例。如果您正苦于以下问题:PHP Path::img方法的具体用法?PHP Path::img怎么用?PHP Path::img使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Path的用法示例。


在下文中一共展示了Path::img方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    ?>
" alt=""></a>
                                <a href="#"><img src="<?php 
    Path::img('star_green.gif');
    ?>
" alt=""></a>
                                <a href="#"><img src="<?php 
    Path::img('star_green.gif');
    ?>
" alt=""></a>
                                <a href="#"><img src="<?php 
    Path::img('star_grey.gif');
    ?>
" alt=""></a>
                                <a href="#"><img src="<?php 
    Path::img('star_grey.gif');
    ?>
" alt=""></a>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="tagssec">
                	<h4 class="heading colr"><span class="cufon cufon-canvas" style="width: 27px; height: 16px;"><canvas width="36" height="17" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">My </span></span><span class="cufon cufon-canvas" style="width: 64px; height: 16px;"><canvas width="73" height="17" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">Recent </span></span><span class="cufon cufon-canvas" style="width: 40px; height: 16px;"><canvas width="46" height="17" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">Tags</span></span></h4>
                	<ul>
                    	<li>
                        	<h5 class="bullet"><span class="cufon cufon-canvas" style="width: 8px; height: 14px;"><canvas width="13" height="15" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">1</span></span></h5>
                            <h5 class="title"><span class="cufon cufon-canvas" style="width: 57px; height: 14px;"><canvas width="65" height="15" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">Product </span></span><span class="cufon cufon-canvas" style="width: 38px; height: 14px;"><canvas width="43" height="15" style="top: 0px; left: 0px;"></canvas><span class="cufon-alt">Name</span></span></h5>
                            <div class="clear"></div>
                            <div class="tgs">
                            	<p class="colr tag">Tags: </p>
开发者ID:nakedwarrior,项目名称:NakedMVC,代码行数:31,代码来源:account.php

示例2: header

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$key = GV::Number($this->KN());
$file = $this->Sql('fetch', $key);
$path = Path::Group($file['file_path']);
// 무단 링크 검사
// 무단링크시에는 hotlink.gif이미지를 뿌려준다.
$check_hotlink = GV::String(File::hotlink);
if (!$check_hotlink || $_SESSION[File::hotlink] != $check_hotlink) {
    $path = Path::img('hotlink.gif');
}
if (file_exists($path)) {
    header("content-type: {$file['file_type']}");
    header("content-length: " . filesize($path));
    header("pragma: no-cache");
    header("expires: 0");
    flush();
    $fp = fopen($path, "rb");
    while (!feof($fp)) {
        echo fread($fp, 100 * 1024);
        flush();
    }
    fclose($fp);
    flush();
} else {
    Dialog::Alert("파일을 찾을 수 없습니다.");
}
exit;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.image.php

示例3: substr

$file = $this->Sql('fetch', $key);
$path = Path::Group($file['file_path']);
$width = GV::Number('width');
$height = GV::Number('height');
// 원본 파일 검사
if (!file_exists($path)) {
    Dialog::Alert("파일을 찾을 수 없습니다.");
    exit;
}
$thumb_path = substr($path, 0, strrpos($path, '.')) . '_T_' . $width . '_' . $height;
$thumb_path .= strrchr($path, '.');
// 무단 링크 검사
// 무단링크시에는 hotlink.gif이미지를 뿌려준다.
$check_hotlink = GV::String(File::hotlink);
if (!$check_hotlink || $_SESSION[File::hotlink] != $check_hotlink) {
    $thumb_path = Path::img('hotlink.gif');
}
// 썸네일이 없으면 썸네일 생성
// TODO 무분별한 썸네일을 생성에 대한 대처를 해야함
if (!file_exists($thumb_path)) {
    $thumb = new Thumbnail();
    $thumb->create($width, $height, $path, $thumb_path);
    chmod($thumb_path, 0606);
}
// 이미지 출력
header("content-type: {$file['file_type']}");
header("content-length: " . filesize($thumb_path));
header("pragma: no-cache");
header("expires: 0");
flush();
$fp = fopen($thumb_path, "rb");
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.thumb.php

示例4: mb_picture

 static function mb_picture($picture, $id, $print_noimage = true)
 {
     if ($picture) {
         return Path::data_member($id . '_mb');
     } else {
         if ($print_noimage) {
             return Path::img('noimage.gif');
         }
     }
     return '';
 }
开发者ID:nclco,项目名称:magicboard3,代码行数:11,代码来源:Path.class.php

示例5: setInterval

) no-repeat left top;}
#slidebox .next:hover{background:url(<?php 
echo Path::img('slidebox_next_hover.png');
?>
) no-repeat left top;}
#slidebox .previous{margin-left:10px; background:url(<?php 
echo Path::img('slidebox_previous.png');
?>
) no-repeat left top;}
#slidebox .previous:hover{background:url(<?php 
echo Path::img('slidebox_previous_hover.png');
?>
) no-repeat left top;}
#slidebox .thumbs{position:absolute; z-index:2; bottom:10px; right:10px;}
#slidebox .thumbs .thumb{display:block; margin-left:5px; float:left; font-family:맑은 고딕; font-size:11px; font-weight:bold; text-decoration:none; padding:1px 5px; background:url(<?php 
echo Path::img('slidebox_thumb.png');
?>
); color:#fff;}
#slidebox .thumbs .thumb:hover{background:#fff; color:#614aea;}
#slidebox .selected_thumb{background:#fff; color:#614aea; display:block; margin-left:5px; float:left; font-family:맑은 고딕; font-size:11px; font-weight:bold; text-decoration:none; padding:1px 5px; }
-->
</style>
<script type="text/javascript">
$(document).ready(function() {
	var autoPlayTime=5000;
	autoPlayTimer = setInterval( autoPlay, autoPlayTime);
	function autoPlay(){
		Slidebox('next');
	}
	$('#slidebox .next').click(function () {
		Slidebox('next','stop');
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:list.php


注:本文中的Path::img方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。