本文整理汇总了PHP中getNew函数的典型用法代码示例。如果您正苦于以下问题:PHP getNew函数的具体用法?PHP getNew怎么用?PHP getNew使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getNew函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
/_public/ico_new_01.gif" alt="new" /><?php
}
?>
<?php
if ($d['theme']['use_trackback']) {
?>
| <a href="#." onclick="commentShow('trackback');">엮인글 <span id="trackback_num<?php
echo $R['uid'];
?>
"><?php
echo $R['trackback'];
?>
</span>개</a>
<?php
if (getNew($R['d_trackback'], 24)) {
?>
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_new_01.gif" alt="new" /><?php
}
?>
<?php
}
?>
</div>
<a name="CMT"></a>
<iframe name="commentFrame" id="commentFrame" src="<?php
if (!$d['bbs']['c_hidden'] && ($CMT || $d['bbs']['c_open'])) {
echo $g['s'];
示例2: getDateFormat
if ($R['mobile']) {
?>
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_mobile.gif" class="imgpos1" alt="모바일" title="모바일(<?php
echo $R['mobile'];
?>
)로 등록된 글입니다" /><?php
}
?>
<?php
echo $R['content'];
?>
<?php
if (getNew($R['d_regis'], 24)) {
?>
<span class="new">new</span><?php
}
?>
</td>
<td><?php
echo getDateFormat($R['d_regis'], 'Y-m-d');
?>
</td>
<td><a href="<?php
echo $g['cment_delete'] . $R['uid'];
?>
" target="_action_frame_<?php
echo $m;
?>
示例3: number_format
echo $R['uid'];
?>
" value="<?php
echo $R['name'];
?>
" data-tooltip="tooltip" title="<?php
echo $sbj_tooltip;
?>
"/></td>
<td><?php
echo number_format($R['num_r']);
?>
</td>
<td><?php
echo $R['d_last'] ? $L[1] < 3 ? $L[0] . $bbs_time[$L[1]] . '전' : getDateFormat($R['d_last'], 'Y.m.d') : '';
if (getNew($R['d_last'], 24)) {
?>
<span class="label label-danger">new</span><?php
}
?>
</td>
<td><?php
echo $R['category'] ? '<span>Y</span>' : 'N';
?>
</td>
<td><?php
echo $d['bbs']['sosokmenu'] ? '<span>Y</span>' : 'N';
?>
</td>
<td><?php
echo $d['bbs']['snsconnect'] ? '<span>Y</span>' : 'N';
示例4: checkLogin
<?php
include "functions.php";
checkLogin();
verifUserIsAdmin();
include_once 'modele/news/getNews.php';
$id = $_GET['id'];
// id du get, pour la sélection de la news
$newsArray = getNew($id);
foreach ($newsArray as $news) {
$titre = $news['titre'];
}
//on récup le titre --> affichage titre
if (!isset($titre)) {
$js = false;
$admin = false;
$page = 'accueil';
$titreErreur = 'administration : news - erreur';
$erreur = 'Cette news n\'existe pas !';
include_once 'vue/erreur.php';
} else {
include_once 'vue/news/admin/edit.php';
}
示例5:
if (!$d['bbs']['c_hidden']) {
?>
<div class="comment">
<img src="<?php
echo $g['img_module_skin'];
?>
/ico_comment.gif" alt="" class="icon1" />
<a href="#." onclick="commentShow('comment');">댓글 <span id="comment_num<?php
echo $R['uid'];
?>
"><?php
echo $R['comment'];
?>
</span>개</a>
<?php
if (getNew($R['d_comment'], 24)) {
?>
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_new_01.gif" alt="new" /><?php
}
?>
</div>
<a name="CMT"></a>
<iframe name="commentFrame" id="commentFrame" src="<?php
if (!$d['bbs']['c_hidden'] && ($CMT || $d['bbs']['c_open'])) {
echo $g['s'];
?>
/?r=<?php
示例6: RW
?>
selected3<?php
}
?>
">
<a href="<?php
echo RW('c=' . $_M1['id'] . '/' . $_M2['id'] . '/' . $_M3['id']);
?>
" target="<?php
echo $_M3['target'];
?>
">
ㆍ<?php
echo $_M3['name'];
if ($_M3['num']) {
if (getNew($_M3['d_last'], $d['layout']['newhour'])) {
?>
<span class="new">new</span><?php
}
?>
<span class="num">(<?php
echo $_M3['num'];
?>
)</span><?php
}
?>
</a>
</li>
<?php
}
}
示例7:
?>
</a>
<?php
if ($_O['mobile']) {
?>
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_mobile.gif" class="imgpos1" alt="모바일" title="모바일(<?php
echo $_O['mobile'];
?>
)로 등록되었습니다." /><?php
}
?>
<?php
if (getNew($_O['d_regis'], 24)) {
?>
<span class="new">new</span><?php
}
?>
</li>
<?php
}
?>
<?php
if (!db_num_rows($_POST)) {
?>
<li class="none">등록된 한줄의견이 없습니다.</li>
<?php
}
?>
示例8: foreach
if (($val = $cache->get($cachename)) !== false) {
echo $val;
exit;
}
$db = Db::getInstance();
try {
$db->connect();
$res = $db->query($sql);
if ($res !== false) {
//var_dump($res);
if (empty($res)) {
$res = null;
} else {
//是否为新菜
foreach ($res as &$value) {
getNew($db, $value);
}
}
$json = getJsonResponse(0, "success", $res);
if ($cache->set($cachename, $json, 1200) === false) {
Log::error_log($cachename . ' ' . $cache->error);
}
echo $json;
} else {
echo getJsonResponse(1, $db->error, null);
Log::error_log('database error:' . $db->error . ' in ' . basename(__FILE__));
//错误日志
}
$db->close();
} catch (Exception $e) {
echo getJsonResponse(1, "数据库连接错误", null);
示例9: file_exists
<?php
// Copyright Kim Seongho 2011.02.18
$weather_file = $g['path_widget'] . $wdgvar['widget_id'] . '/data/' . $date['today'] . '.txt';
$weather_time = file_exists($weather_file) ? filemtime($weather_file) : 0;
if (!file_exists($weather_file) || !getNew(date('YmdHis', $weather_time), 3)) {
?>
<iframe src="<?php
echo $g['s'];
?>
/widgets/<?php
echo $wdgvar['widget_id'];
?>
/_put.php?widget=<?php
echo $wdgvar['widget_id'];
?>
&today=<?php
echo $date['today'];
?>
" width="0" height="0" frameborder="0" scrolling="no"></iframe>
<?php
} else {
$wdata = implode('', file($weather_file));
$warr = explode('<split>', $wdata);
$wlen = count($warr);
$g['img_widget'] = $g['s'] . '/widgets/' . $wdgvar['widget_id'] . '/image';
?>
<span id="weatherdiv"></span>
<script type="text/javascript">
//<![CDATA[
var weather = new Array();