Пример #1
0
,this);">发表</button>
		</div>
		</td></tr>
		</table>

		<?php 
    } else {
        ?>
		<table class="lzltable">
		<?php 
        for ($j = 0; $j < count($lzl); $j++) {
            $author = $lzl[$j]['author'];
            $authorinfo = mainfunc(array("view" => $author));
            $authorinfo = $authorinfo[0];
            echo '<tr><td class="lzltd">';
            echo '<div class="lzlicon"><img src="' . translateicon($authorinfo['icon']) . '" class="lzlicon"></div>';
            echo '<div class="lzlcontent">' . userhref($author) . ': ' . htmlspecialchars($lzl[$j]['text']) . '<br>';
            echo '<span class="lzltime">' . formatstamp($lzl[$j]['time']);
            if ($canreply) {
                echo '&nbsp;<a href="javascript:insertlzlreply(' . $i . ',\'' . $author . '\');" class="lzlreplybt">回复</a>';
            }
            if ($right >= 1 || $author == $currentuser) {
                echo '&nbsp;<a href="javascript:deletelzlreply(' . $floor['fid'] . ',' . $lzl[$j]['id'] . ');" class="lzlreplybt">删除</a>';
            }
            echo "</span>";
            echo "</div></td></tr>";
        }
        ?>
		<tr><td class="lzltd">
			<?php 
        if ($canreply) {
Пример #2
0
	<textarea id="msg_ta" style="width:400px;height:200px;font-size:13px;padding:5px;"></textarea><br><br>
	<button onclick="sendto()" id="msg_sendbt">发送</button>
</div>

<?php 
        } else {
            ?>
<div class="talk">
	<div class="talk_record">
		<div id="jp-container" class="jp-container">
<?php 
            $count = count($data);
            $touserinfo = mainfunc(array("view" => $touser));
            $myuserinfo = mainfunc(array("view" => $username));
            $hisicon = translateicon($touserinfo[0]['icon']);
            $myicon = translateicon($myuserinfo[0]['icon']);
            for ($i = 1; $i < $count; $i++) {
                $one = $data[$i];
                $typed = $one['type'];
                $text = $one['text'];
                $time = formatstamp($one['time']);
                if ($typed == "send") {
                    echo '<div class="talk_recordboxme">';
                    echo '<div class="user"><img src="' . $myicon . '" class="lzlicon"></div>';
                } else {
                    echo '<div class="talk_recordbox">';
                    echo '<div class="user"><img src="' . $hisicon . '" class="lzlicon"></div>';
                }
                echo '<div class="talk_recordtextbg">&nbsp;</div>';
                echo '<div class="talk_recordtext"><pre>' . $text . '</pre><span class="talk_time">' . $time . '</span></div>';
                echo '</div>' . "\n";
Пример #3
0
span.num{
	color: #96AF9F;
	font-size: 30px;
	font-weight: bold;
}
span.time{
	color: #6F6F6F;
}
</style>
</head>
<body>
<div class="grxx">
<img src="grxx.png" class="bar">
<div class="userpic drop-shadow">
<img class="icon" src="<?php 
echo translateicon($userinfo['icon']);
?>
">
</div>
<div class="infos">
<table border="0" class="infos">
<?php 
$icons = array('username', 'qq', 'level', 'email', 'hobby', 'place', 'time', 'date', 'key', 'rank', 'post', 'reply', 'pen', 'water');
$tips = array('用户名', 'QQ', '星数', 'Email', '爱好', '地点', '上次在线', '注册日期', '权限', '精品', '发帖', '回复', '签到', '灌水');
$keys = array('username', 'qq', 'star', 'mail', 'hobby', 'place', 'lastdate', 'regdate', 'rights', 'extr', 'post', 'reply', 'sign', 'water');
for ($i = 0; $i < count($icons); $i++) {
    if ($i % 2 == 0) {
        echo "<tr height='27px'>";
    }
    echo "<td width='120px'><img src='icons/" . $icons[$i] . ".png' class='tipic'>&nbsp;&nbsp;&nbsp;";
    echo "<span class='info'>" . $tips[$i] . ":</span></td>";
Пример #4
0
		window.location="/index/download_file.php?d=13";
	}';
    echo '</script>';
}
?>

</head>
<body>
<div class="head">
<div class="user">
<?php 
if ($username != "") {
    $userinfo = mainfunc(array("view" => $username));
    $userinfo = $userinfo[0];
    $msg = intval($userinfo['newmsg']);
    $icon = translateicon($userinfo['icon']);
    $rank = $userinfo['star'];
    echo "<img src='{$icon}' class='usericon'></img>";
    echo "<div class='userinfo'>";
    echo "<a href='../user?name={$username}' target='_blank'>{$username}</a>";
    echo "&nbsp;等级:{$rank}";
    if ($msg == 0) {
        echo "&nbsp;<a href='../home' target='_blank'>个人中心</a>";
    } else {
        echo "<br><a href='../home?pos=message' target='_blank'>您有 {$msg} 条未读消息</a>";
    }
    echo "<br><a href='../logout?from=%2Fbbs%2Findex'>注销</a>";
    echo "</div>";
} else {
    echo "<span class='guest'>欢迎您,游客!<a href='../login?from=%2Fbbs%2Findex'>登录</a> 或者 <a href='../register'>注册</a></span>";
}