Example #1
0
 function index()
 {
     $app = sys_init();
     $phpok = $app->trans_lib->safe("phpok");
     if (!$phpok) {
         return false;
     }
     $rslist = phpok($phpok);
     if (!$rslist["rslist"] || !is_array($rslist["rslist"]) || count($rslist["rslist"]) < 1) {
         return false;
     }
     $app->tpl->assign("rslist", $rslist["rslist"]);
     $rs = $this->config["ext"] ? $this->config["ext"] : array();
     $showtitle = $rs["showtitle"] ? "true" : "false";
     $showbtn = $rs["showbtn"] ? "true" : "false";
     $app->tpl->assign("showtitle", $showtitle);
     $app->tpl->assign("showbtn", $showbtn);
     header("Content-type: application/xml");
     $app->tpl->plugin($this->config["identifier"], "templates/xml.html");
 }
Example #2
0
<?php

if (!defined('PHPOK_SET')) {
    die('<h3>Error...</h3>');
}
?>
<div class="CopyIndex">
        <?php 
$arr = phpok('copyright');
?>
        <?php 
echo $arr['content'];
?>
        <?php 
unset($arr);
?>
    </div>
</div>
</body>
</html>
Example #3
0
<div style="width:1200px; margin:0 auto; height:100%; overflow:hidden; line-height:50px;">
 <?php 
    echo $value[content];
    ?>
    </div>

</div>		
    	<?php 
}
?>

  <div class="flash_bar">
	

<?php 
$kflist = phpok('picplayer');
?>
	<?php 
$_i = 0;
$kflist[rslist] = is_array($kflist[rslist]) ? $kflist[rslist] : array();
foreach ($kflist[rslist] as $key => $value) {
    $_i++;
    ?>
    <div <?php 
    if ($key == 0) {
        ?>
class="dq" <?php 
    } else {
        ?>
 class="no"<?php 
    }
Example #4
0
<?php

/*****************************************************************************************
	文件: php/bbs_list.php
	备注: 格式化论坛主题
*****************************************************************************************/
if (!defined("PHPOK_SET")) {
    exit("<h1>Access Denied</h1>");
}
//常用项目参数
//多少小时内发的贴子或回复,显示为最新主题
$hour = 6;
if ($rslist) {
    foreach ($rslist as $key => $value) {
        $icon = $value['toplevel'] ? 'bbs-icon-top' . $value['toplevel'] : 'bbs-icon-common';
        $time = $value['replydate'] ? $value['replydate'] : $value['dateline'];
        if ($time + $hour * 3600 > $sys['time']) {
            $icon = 'bbs-icon-new';
        }
        $value['_icon'] = $icon;
        $value['_user'] = $value['user_id'] ? phpok('_user', array('user_id' => $value['user_id'])) : array('user' => '佚名');
        $value['_author'] = $value['_user']['user'];
        $value['_author_url'] = $value['user_id'] ? $app->url('user', 'info', 'id=' . $value['user_id']) : '';
        $value['_lastdate'] = $value['replydate'] ? date("Y-m-d", $value['replydate']) : date("Y-m-d", $value['dateline']);
        $rslist[$key] = $value;
    }
}
Example #5
0
<?php

if (!defined('PHPOK_SET')) {
    die('<h3>Error...</h3>');
}
if ($cid) {
    $_list = phpok("list", "cid=" . $cid);
    if ($_list[rslist]) {
        ?>

		<?php 
        $_i = 0;
        $_list[rslist] = is_array($_list[rslist]) ? $_list[rslist] : array();
        foreach ($_list[rslist] as $key => $value) {
            $_i++;
            ?>
		<li><a <?php 
            if ($value[lianjie]) {
                ?>
href="<?php 
                echo $value[lianjie];
                ?>
"<?php 
            } else {
                ?>
href="<?php 
                echo msg_url($value);
                ?>
" <?php 
            }
            ?>