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


PHP getSizeFormat函数代码示例

本文整理汇总了PHP中getSizeFormat函数的典型用法代码示例。如果您正苦于以下问题:PHP getSizeFormat函数的具体用法?PHP getSizeFormat怎么用?PHP getSizeFormat使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: getFilelist


//.........这里部分代码省略.........
		<TD ALIGN=LEFT><IMG SRC='<?php 
                    echo $imgdir;
                    ?>
/blank.gif' WIDTH=9 HEIGHT=1 BORDER=0 ALIGN=ABSMIDDLE>
		<A HREF='<?php 
                    echo $pwd . $element[0];
                    ?>
' TARGET=_blank><IMG SRC='<?php 
                    echo getFileicon($element[0]);
                    ?>
' BORDER=0 alt='보기'></A> 
		<A HREF="#" onclick="kmenu_show('ftpmenu_layer_<?php 
                    echo $i;
                    ?>
',event);"><?php 
                    echo $element[0];
                    ?>
</A>
		<?php 
                    getMenuprint("ftpmenu_layer_{$i}", $pwd, $element[0], "file");
                    ?>
</TD>
		
		<?php 
                }
                ?>
	
		
		<?php 
                echo $cellpx;
                echo $cellpx;
                ?>
		<TD ALIGN=RIGHT><?php 
                echo getSizeFormat(getFilesize($pwd . $element[0]), 1);
                ?>
&nbsp;</TD>

<?php 
            } else {
                ?>
		<?php 
                if ($query == 'rename_f' && $file == $element[0]) {
                    ?>
		
		<FORM NAME=name_change ACTION='<?php 
                    echo $THIS_FILE;
                    ?>
'>
		<TD ALIGN=LEFT><IMG SRC='<?php 
                    echo $imgdir;
                    ?>
/blank.gif' WIDTH=9 HEIGHT=1>
		<A HREF='<?php 
                    echo $THIS_FILE;
                    ?>
?pwd=<?php 
                    echo $pwd . $element[0] . "/";
                    ?>
'><IMG SRC='<?php 
                    echo $imgdir;
                    ?>
/close_dir.gif' BORDER=0 alt='열기'></A> 
		<INPUT TYPE=TEXT NAME=file_name SIZE=17 VALUE="<?php 
                    echo $element[0];
                    ?>
" style="border:1 solid dfdfdf;">
开发者ID:jin255ff,项目名称:company_website,代码行数:67,代码来源:manager.php

示例2: urlencode

        ?>
/?r=<?php 
        echo $r;
        ?>
&amp;m=admin&amp;module=filemanager&amp;front=main&amp;iframe=Y&amp;pwd=<?php 
        echo urlencode($_pagepage);
        ?>
&amp;editmode=Y&amp;file=<?php 
        echo $_pagecss;
        ?>
" target="_blank"><?php 
        echo $_pagecss;
        ?>
</a>
	<i>(<?php 
        echo getSizeFormat(filesize($_pagepage . $_pagecss), 1);
        ?>
)</i>
	<?php 
    } else {
        ?>
	<i>없음</i>
	<?php 
    }
    ?>
</td>
<td class="p3"><a href="<?php 
    echo $g['s'];
    ?>
/?r=<?php 
    echo $r;
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:_page.php

示例3: number_format

<td> <a href='./add_dbmanager.php?action=table_view&table=kimsbod7_<?php 
            echo $table;
            ?>
_rpl' target='_blank'><font color=blue><?php 
            echo number_format($CmtNum[0]);
            ?>
</font></a> </td>
<td width=30> <a href='./add_fmanager.php?pwd=../bbs/table/<?php 
            echo $table;
            ?>
/upload/' target='_blank'><font color=blue><?php 
            echo number_format(getUpFileNum($table));
            ?>
</font></a> </td>
<td> <?php 
            echo getSizeFormat(getUpFileSize($table), 1);
            ?>
 </td>
<td> 
<a class='Blink' onclick="location.href='bod_cfgmanager.php?table=<?php 
            echo $table;
            ?>
&p=<?php 
            echo $p;
            ?>
';">관리</a>
</td>
<td>
<?php 
            if (strstr($SERVER_SOFTWARE, 'Win')) {
                ?>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bod_manager.php

示例4: _LANG

{
	if(confirm('<?php 
echo _LANG('a0001', 'admin');
?>
   '))
	{
		getIframeForAction(f);
		return true;
	}
	return false;
}
function saveCheck1()
{
	var f = document.pluginForm;
	getIframeForAction(f);
	f.submit();
}
getId('_sum_size_').innerHTML = '<?php 
echo getSizeFormat($_sumPluginsSize, 2);
?>
';
<?php 
if ($resave == 'Y') {
    ?>
setTimeout("saveCheck1();",100);
<?php 
}
?>
</script>

开发者ID:hanacody,项目名称:rb2,代码行数:29,代码来源:plugin.php

示例5: getSizeFormat

        ?>
/?r=<?php 
        echo $r;
        ?>
&amp;m=upload&amp;a=download&amp;uid=<?php 
        echo $_u['uid'];
        ?>
" title="<?php 
        echo $_u['caption'];
        ?>
"><?php 
        echo $_u['name'];
        ?>
</a>
				<span class="size">(<?php 
        echo getSizeFormat($_u['size'], 1);
        ?>
)</span>
				<span class="down">(<?php 
        echo number_format($_u['down']);
        ?>
)</span>
			</li>
			<?php 
    }
    ?>
			</ul>
			</div>
			<?php 
}
?>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:view.php

示例6: getSizeFormat

새로 만들기 버튼을 클릭하여 사이트맵을 만들어 주세요.
메뉴를 새로 생성한 경우에 새로 만들기 버튼을 클릭하면 가장 최신의 사이트맵 상태를 유지할 수 있습니다.
</textarea>
<?php 
}
?>
					<div class="rb-meta">
						<?php 
if (is_file('./sitemap.xml')) {
    ?>
						파일위치 : <?php 
    echo $g['s'];
    ?>
/sitemap.xml
						<code><?php 
    echo getSizeFormat(filesize('./sitemap.xml'), 2);
    ?>
</code>
						<?php 
}
?>
						<span class="pull-right">파일을 편집한 후 저장 버튼을 클릭하면 실시간으로 사용자 페이지에 적용됩니다</span>	
					</div>
				</div>
				<div class="rb-submit">
					<button type="button" class="btn btn-default" onclick="sitemap_make(this);">새로 만들기</button>
					<?php 
if (is_file('./sitemap.xml')) {
    ?>
					<a href="<?php 
    echo $g['s'];
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:seo.php

示例7: htmlspecialchars

								<button type="button" class="btn btn-default btn-xs pull-right" data-tooltip="tooltip" title="전체화면"><i class="fa fa-arrows-alt fa-lg"></i></button>
							</div>
							<div class="rb-codeview-body">			
								<textarea name="code" class="form-control" rows="15"><?php 
    echo htmlspecialchars(implode('', file($g['path_layout'] . $layout . '/' . $etcfile)));
    ?>
</textarea>
							</div>	
							<div class="rb-codeview-footer">
								<ul class="list-inline">
									<li><code><?php 
    echo count(file($g['path_layout'] . $layout . '/' . $etcfile));
    ?>
 lines</code></li>
									<li><code><?php 
    echo getSizeFormat(@filesize($g['path_layout'] . $layout . '/' . $etcfile), 2);
    ?>
</code></li>
									<li class="pull-right">파일을 편집한 후 저장 버튼을 클릭하면 실시간으로 사용자 페이지에 적용됩니다</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="rb-submit">
						<button type="submit" class="btn btn-primary">저장하기</button>
					</div>
				</form>
			</div>
			<?php 
}
?>
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:main.php

示例8: number_format

	</td>
</tr>
<tr>
	<td width=16></td>
	<td><img src='./image/dot_04.gif' align=absmiddle>
	첨부파일 : <b><?php 
echo number_format(getTotalUpToday('num'));
?>
</b>
	</td>
</tr>
<tr>
	<td width=16></td>
	<td><img src='./image/dot_04.gif' align=absmiddle>
	첨부용량 : <font color=#E55701><?php 
echo getSizeFormat(getTotalUpToday('size'), 1);
?>
</font>
	</td>
</tr>
</table>

<!--------------------------------------------------------------------------------------------->
<script>getMenuTable(2,"")</script>
<!--------------------------------------------------------------------------------------------->

<table cellspacing=0 cellpadding=5 width=100% bgcolor=#EDF0F1>
<tr>
	<td width=70><img src='./image/ico_stitle.gif'></td>
	<td>
	<font color='#2194C0'><b>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bod_state.php

示例9: getSizeFormat

            continue;
        }
        $i++;
        ?>

<tr align=center height=26 bgcolor='white'>
<td><?php 
        echo $i;
        ?>
</td>
<td><b><?php 
        echo $file;
        ?>
</b></td>
<td><?php 
        echo getSizeFormat(getDirSize($skin . $file . '/'), 1);
        ?>
</td>
<td><?php 
        echo date("Y-m-d H:i", filemtime($skin . $file));
        ?>
</td>

<?php 
        if (!is_file('./outskin/' . $SkinName . '_' . $file . '.tar.gz')) {
            ?>
<td><font color=brown><?php 
            echo $SkinName;
            ?>
_<?php 
            echo $file;
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:add_skinout.php

示例10: number_format

echo $g['img_core'];
?>
/page/default');</script>
		</div>


		<input type="button" value="선택" class="btngray" onclick="TableCheck('check','');" />
		<input type="button" value="취소" class="btngray" onclick="TableCheck('cancel','');" />
		<input type="button" value="반전" class="btngray" onclick="TableCheck('reverse','');" />


		<input type="button" value="삭제" class="btnblue" onclick="TableCheck('change','mt_delete');" />
		<input type="button" value="비우기" class="btnblue" onclick="TableCheck('change','mt_empty');" />
		<input type="button" value="테이블복구" class="btnblue" onclick="TableCheck('change','mt_repair');" />
		<input type="button" value="테이블최적화" class="btnblue" onclick="TableCheck('change','mt_optimize');" />

		<div>(총레코드수 : <?php 
echo number_format($sum_record);
?>
개, 사용량 : <?php 
echo getSizeFormat($sum_size, 2);
?>
)</div>
	</div>

</form>


</div>

开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:29,代码来源:main.list.php

示例11: getSizeFormat

        ?>
') center center no-repeat;" onclick="captionCheck('<?php 
        echo $val['uid'];
        ?>
');"></div>
					</li>
					<?php 
    }
    ?>
				</ul>
				<?php 
} else {
    ?>
				<div class="none">
				<div class="ment"><span><?php 
    echo getSizeFormat($d['upload']['limitsize'], 0);
    ?>
,<?php 
    echo $d['upload']['limitnum'];
    ?>
개</span>까지 올릴 수 있습니다.</div>
				</div>
				<?php 
}
?>
				
			</div>

			<div class="tool">

				<div class="tt">가로크기<span>(모든사진)</span></div>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:photo.php

示例12: count

					<span class="input-group-addon"><small>Theme Folder</small></span>
					<input type="text" name="newLayout" value="<?php 
    echo $theme;
    ?>
" class="form-control">
				</div>

				<div class="rb-codeview-footer">
					<ul class="list-inline">
						<li><code><?php 
    echo count(file($g['path_module'] . $module . '/theme/' . $theme . '/_var.php')) . ' lines';
    ?>
</code></li>
						<li><code><?php 
    echo getSizeFormat(@filesize($g['path_module'] . $module . '/theme/' . $theme . '/_var.php'), 2) . ' Byte';
    ?>
</code></li>
						<li class="pull-right">파일을 편집한 후 저장 버튼을 클릭하면 실시간으로 사용자 페이지에 적용됩니다.</li>
					</ul>
				</div>

			</div> <!--.rb-codeview -->
			</div> <!--.rb-files -->	
			<div class="rb-submit">
				<button type="submit" class="btn btn-primary<?php 
    if ($g['device']) {
        ?>
 btn-block<?php 
    }
    ?>
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:30,代码来源:skin.php

示例13: is_file

					<input type="checkbox" name="filemembers[]" value="<?php 
        echo $val['uid'];
        ?>
" checked="checked" />
					<img src="<?php 
        echo $g['img_core'];
        ?>
/file/small/<?php 
        echo is_file($g['path_core'] . 'image/file/small/' . $file_ext . '.gif') ? $file_ext : 'unknown';
        ?>
.gif" alt="" />
					<?php 
        echo $val['name'];
        ?>
<span>(<?php 
        echo getSizeFormat($val['size'], 1);
        ?>
)</span>
				</li>
				<?php 
    }
    ?>
			</ul>
			<?php 
}
?>
			</div>

		</div>
	
	</div>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:file.php

示例14: number_format

	</td>
</tr>
<tr>
	<td width=16></td>
	<td><img src='./image/dot_04.gif' align=absmiddle>
	첨부파일 : <b><?php 
echo number_format(getTotalUp('num'));
?>
</b>
	</td>
</tr>
<tr>
	<td width=16></td>
	<td><img src='./image/dot_04.gif' align=absmiddle>
	첨부용량 : <font color=#E55701><?php 
echo getSizeFormat(getTotalUp('size'), 1);
?>
</font>
	</td>
</tr>
</table>

<p>

<!--------------------------------------------------------------------------------------------->
<script>getMenuTable(2,"")</script>
<!--------------------------------------------------------------------------------------------->

<table cellspacing=0 cellpadding=5 width=100% bgcolor=#EDF0F1>
<tr>
	<td width=70><img src='./image/ico_stitle.gif'></td>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bod_search.php

示例15: _LANG

        echo _LANG('a2051', 'mediaset');
        ?>
</td>
					<?php 
    }
    ?>
					<td><?php 
    echo getDomain($R['url']);
    ?>
</td>
					<td><?php 
    echo $R['folder'];
    ?>
</td>
					<td><?php 
    echo $R['size'] ? getSizeFormat($R['size'], 1) : '';
    ?>
</td>
					<td>
						<a href="<?php 
    echo $g['s'];
    ?>
/?r=<?php 
    echo $r;
    ?>
&amp;m=<?php 
    echo $module;
    ?>
&amp;a=download&amp;uid=<?php 
    echo $R['uid'];
    ?>
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:main.php


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