Beispiel #1
0
         $page = $p_dbt;
     }
     $s_dbt = sprintf('%s limit %d, %d', $s_a_dbt, ($page - 1) * $config['pagesize'], $config['pagesize']);
     $q_dbt = mysql_query($s_dbt) or die('');
 }
 $r_dbt = mysql_fetch_assoc($q_dbt);
 do {
     unset($cm);
     $content .= '<div class="topic" id="topic-' . $r_dbt['id'] . '"><a href="?m=user&amp;id=' . $r_dbt['aid'] . '">' . $r_dbt['name'] . '</a>&nbsp;&nbsp;' . getldate($r_dbt['datetime']) . '<div class="list_c">';
     switch ($r_dbt['tid']) {
         case 2:
             $pr = getpinfo($r_dbt['sid']);
             $content .= '<a href="?m=album&amp;id=' . $r_dbt['sid'] . '"><img src="' . getmthu($pr) . '" alt="" title="' . ($pr['vid'] > 0 ? '[视频]' : '') . $pr['title'] . '" width="70" height="70" class="photo"/></a>';
             break;
         case 3:
             $pr = getcinfo($r_dbt['sid'], 'content, closed, cdate, cloc, cpay, title');
             if ($pr['content'] != '') {
                 $ca[$r_dbt['id']][] = mbookencode($pr['content']);
             }
             if ($pr['closed'] == 0) {
                 if ($pr['cdate'] != '') {
                     $ca[$r_dbt['id']][] = '<strong>活动时间:</strong>' . $pr['cdate'];
                 }
                 if ($pr['cloc'] != '') {
                     $ca[$r_dbt['id']][] = '<strong>活动地点:</strong>' . $pr['cloc'];
                 }
                 if ($pr['cpay'] != '') {
                     $ca[$r_dbt['id']][] = '<strong>活动费用:</strong>' . $pr['cpay'];
                 }
                 $s_dbu = sprintf('select sum(tid) as ctid from %s where cid=%s', $dbprefix . 'cuser', $r_dbt['sid']);
                 $q_dbu = mysql_query($s_dbu) or die('');
Beispiel #2
0
		});';
        do {
            if (isset($_GET['did']) && $_GET['did'] == $r_dba['id']) {
                $d_db = sprintf('delete from %s where id=%s', $dbprefix . 'adminop', $r_dba['id']);
                $result = mysql_query($d_db) or die('');
                header('Location:./?m=setting&t=adminop');
                exit;
            } else {
                $content .= '<li class="l_list"><a href="?m=user&amp;id=' . $r_dba['aid'] . '"><img src="avator.php?id=' . $r_dba['aid'] . '" alt="" title="' . $r_dba['name'] . '" class="photo" width="55" height="55"/></a><div class="list_r"><div class="list_title"><span class="gmod"><img src="images/o_2.gif" alt="" title="删除" name="del" data-id="' . $r_dba['id'] . '" class="f_link"/></span>' . getalink($r_dba['aid'], $r_dba['name']) . '&nbsp;&nbsp;<span class="gdate">' . getldate($r_dba['datetime']) . '</span></div><div class="list_c">';
                switch ($r_dba['tid']) {
                    case 1:
                        $pr = getpinfo($r_dba['sid']);
                        $content .= '<a href="?m=album&amp;id=' . $r_dba['sid'] . '"><img src="' . getthu($pr) . '" alt="" title="' . $pr['title'] . '" width="70" height="70" class="al_t"/></a><br/>';
                        break;
                    case 2:
                        $pr = getcinfo($r_dba['sid'], 'title');
                        $content .= '<a href="?m=camp&amp;id=' . $r_dba['sid'] . '">' . $pr['title'] . '</a><br/><br/>';
                        break;
                }
                $content .= gbookencode($r_dba['content']) . '</div></div></li>';
            }
        } while ($r_dba = mysql_fetch_assoc($q_dba));
        mysql_free_result($q_dba);
        $content .= '</ul>';
        if ($p_dba > 1) {
            $content .= getpage($page, $p_dba);
        }
    } else {
        $content .= '<li><div class="title">管理记录</div><div class="lcontent">没有记录</div></li></ul>';
    }
    mysql_free_result($q_a_dba);