function ShowViewInfoMsg($r, $msg)
{
    global $public_r, $check_path, $level_r, $class_r;
    //查看权限
    if (empty($r['userfen'])) {
        if ($class_r[$r[classid]]['cgtoinfo']) {
            $ViewLevel = "需要 [" . ShowViewInfoLevels($r['eclass_cgroupid']) . "] 级别才能查看。";
        } else {
            $ViewLevel = "需要 [" . $level_r[$r[groupid]][groupname] . "] 级别以上才能查看。";
        }
    } else {
        if ($class_r[$r[classid]]['cgtoinfo']) {
            $ViewLevel = "需要 [" . ShowViewInfoLevels($r['eclass_cgroupid']) . "] 级别与扣除 " . $r['userfen'] . " 点积分才能查看。";
        } else {
            $ViewLevel = "需要 [" . $level_r[$r[groupid]][groupname] . "] 级别以上与扣除 " . $r['userfen'] . " 点积分才能查看。";
        }
    }
    $url = "<a href='" . $public_r[newsurl] . "'>首页</a>&nbsp;>&nbsp;<a href='" . $public_r[newsurl] . "e/member/cp/'>控制面板</a>&nbsp;>&nbsp;查看信息";
    include $check_path . "e/data/template/cp_1.php";
    ?>
	<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header"> 
    <td height="25">提示信息</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25"><?php 
    echo $msg;
    ?>
</td>
  </tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header"> 
    <td height="25" colspan="2">标题:
      <?php 
    echo $r[title];
    ?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">查看权限:</td>
    <td height="25">
      <?php 
    echo $ViewLevel;
    ?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td width="17%" height="25">发布时间:</td>
    <td width="83%" height="25"> 
      <?php 
    echo date("Y-m-d H:i:s", $r[newstime]);
    ?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="25">信息简介:</td>
    <td height="25"> 
      <?php 
    echo ReturnTheIntroField($r);
    ?>
    </td>
  </tr>
	</table>
	<?php 
    include $check_path . "e/data/template/cp_2.php";
    exit;
}
Example #2
0
}
header("Content-type: application/xml");
echo "<?xml version=\"1.0\" encoding=\"{$pagecode}\"?>\n";
?>
<source>

	<url><?php 
echo $pageurl;
?>
</url>

<?php 
$field = "";
while ($r = $empire->fetch($sql)) {
    if (empty($field)) {
        $field = ReturnTheIntroField($r);
    }
    //¼ò½é
    $smalltext = RepSpeRssStr(sub(strip_tags($r[$field]), 0, $sublen, false));
    //±êÌâÁ´½Ó
    $titleurl = RepSpeRssStr(sys_ReturnBqTitleLink($r));
    $cname = RepSpeRssStr($class_r[$r[classid]]['classname']);
    $thetime = $r['newstime'];
    $mydate = gmdate('Y-m-d', $thetime);
    $mytime = gmdate('H:i', $thetime);
    ?>
	<info id="<?php 
    echo $r['id'];
    ?>
">
		<title><![CDATA[<?php