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


PHP utils::cp2utf方法代码示例

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


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

示例1: OUT

00" height="<?php 
OUT($prc_tr);
?>
%"></td>
  <td class=tbl1>Скачано:<?php 
echo make_fsize_str($cur["traffic"]);
?>
<br> (<?php 
OUT(round($prc_tr, 3));
?>
%)</td>
  </tr>
 </table>
</td>
<td width=50% height=100% valign=bottom class=tbl1><?php 
echo utils::cp2utf($months[date("n") - 1]);
?>
(норма <?php 
echo make_fsize_str($daynorm[0]);
?>
):
<table width=100% height=150px cellspacing=0 cellpadding=0 valign=bottom border=0>
<?php 
for ($i = 0; $i < $daycount; ++$i) {
    $prc = (double) $history[$i]["traffic"] / (double) $maxtraf * 100.0;
    $k = $daynorm[$i] < 0 ? -90000 : 0;
    $prci = (double) $history[$i]["traffic"] / (double) $daynorm[$i] * 100.0 - $k;
    if ($prci < 100) {
        $colorr = "00";
        $colorg = "FF";
    } else {
开发者ID:aricent123,项目名称:cadbis,代码行数:31,代码来源:month_stats.php

示例2: OUT

	   <table width=178px cellspacing=0 cellpadding=0 class=tblbar>
	    <tr><td background="<?php 
OUT(SK_DIR);
?>
/img/bar_title.gif">
	     <table width=178px height=32px><td align=center valign=bottom width=100% height=100%>
		<font class=bartitle>
                Новости
                </font>
	     </td></table>
	    </td></tr>
	    <tr><td width=100% class=tblbar>
             <?php 
ob_start();
$MDL->LoadModule('news', true);
$res = utils::cp2utf(ob_get_contents());
ob_end_clean();
echo $res;
?>
	    </td></tr>
	   </table>
	   <br/>

<!-- ENDOF BARS -->
	


	    </td>
	   </table>
	  </td></tr>
 	  <tr><td width=100% height=100%>
开发者ID:aricent123,项目名称:cadbis,代码行数:31,代码来源:cadbisnew.php

示例3: round

    $sum_of_users_count += $packets[$i]['users_count'];
    $sum_of_simuluse_sum += $packets[$i]['simuluse_sum'];
    $limit = $daylimits->getPacketDayTrafficLimit($packets[$i]['gid']);
    $used = $packets[$i]['accts']['traffic'];
    $pused = round($used / $limit * 100.0);
    $prest = round(100 - $pused);
    $sum_of_day_limits += $daylimits->getPacketDayTrafficLimit($packets[$i]['gid']);
    $sum_of_exceed_times += $packets[$i]['exceed_times'];
    $sum_of_rangs += $packets[$i]['rang'];
    ?>
		
		
		<tr>
			<td>
				<?php 
    echo utils::cp2utf($packets[$i]['packet']);
    ?>
				(<?php 
    echo $packets[$i]['users_count'];
    ?>
/<?php 
    echo $packets[$i]['simuluse_sum'];
    ?>
)
			</td>
			<td>
				<input type="text" value="<?php 
    echo $packets[$i]['rang'];
    ?>
" 
					onchange="<?php 
开发者ID:aricent123,项目名称:cadbis,代码行数:31,代码来源:admin_tarifs_rangs_view.php

示例4: session_start

session_start();
date_default_timezone_set("Europe/Moscow");
require_once "lib/seminars.inc.php";
require_once "lib/ajax/grid.inc.php";
header("Content-Type: text/html;charset=UTF-8");
/* .. Initialization .. */
$PPP = 15;
$seminars = new seminars();
$grid = new ajax_grid('grid');
$pager = new ajax_grid_pager("pager", $seminars->get_count(), $PPP);
$grid->attach_pager($pager);
/* .. Data binding .. */
$src = new grid_data_source(new grid_header_item_array(new grid_header_item('title', utils::cp2utf('Название'), type::STRING, true), new grid_header_item('desc', utils::cp2utf('Описание'), type::STRING), new grid_header_item('time', utils::cp2utf('Дата'), type::DATE_TIME, true, new sem_formatter())));
$data = $seminars->get_data($pager->get_curpage(), $PPP, $grid->get_current_sorting(), $grid->get_sort_direction());
foreach ($data as $seminar) {
    $src->add_row(array(utils::cp2utf($seminar->get_title()), utils::cp2utf($seminar->get_desc()), utils::cp2utf($seminar->get_time())));
}
$grid->set_datasource($src);
/* .. Output .. */
?>
<html>
<head>
<link href="skins/partner4/css/grid.css" rel="stylesheet"/>
<link href="skins/partner4/css/ajax.css" rel="stylesheet"/>
<script type="text/javascript" src="js/scriptaculous/prototype.js"></script>
<script type="text/javascript" src="js/window/window.js"> </script> 
<script type="text/javascript" src="js/ajax/engine.js"></script>
</head>
<body>
<div id="test_content" style="background: white;">
<?php 
开发者ID:aricent123,项目名称:cadbis,代码行数:31,代码来源:test_storage.php

示例5:

?>
		</select>
		<input type="submit" name="btnFilter" value="Фильтровать"/>
	</form>
<?php 
if ($packet != null) {
    ?>
	<form action="" method="post">
	<a href="javascript:checkAll()">Отметить все</a><br/>
	<input type="hidden" name="hdnGid" value="<?php 
    echo $packet['gid'];
    ?>
"/>
	<input type="submit" name="btnSave" value="Сохранить"/><br/>
		<b><?php 
    echo utils::cp2utf($packet['packet']);
    ?>
</b>:<br/>
		<?php 
    $cats_checked = $BILL->GetUrlCategoriesDenied($packet['gid']);
    ?>
		<?php 
    for ($j = 0; $j < count($cats); ++$j) {
        ?>
			<input type="checkbox" 
				name="deniedcats[<?php 
        echo $packet['gid'];
        ?>
][<?php 
        echo $cats[$j]['cid'];
        ?>
开发者ID:aricent123,项目名称:cadbis,代码行数:31,代码来源:admin_cats_denied_view.php


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