Esempio n. 1
0
    $li_o .= '<li>' . CLASS_2 . '</li>';
}
if (CLASS_3 !== '') {
    $li_o .= '<li>' . CLASS_3 . '</li>';
}
$op_c = '';
if (CLASS_1 !== '') {
    $op_c .= '<option value="1" selected="selected">' . CLASS_1 . '</option>';
}
if (CLASS_2 !== '') {
    $op_c .= '<option value="1001">' . CLASS_2 . '</option>';
}
if (CLASS_3 !== '') {
    $op_c .= '<option value="2001">' . ClASS_3 . '</option>';
}
$yzblog->assign('title', SITE_NAME);
$yzblog->assign('copy_info', COPY_INFO);
$yzblog->assign('class_1', CLASS_1);
$yzblog->assign('class_2', CLASS_2);
$yzblog->assign('class_3', CLASS_3);
$yzblog->assign('op_c', $op_c);
$yzblog->assign('li_c', $li_c);
$yzblog->assign('tttt', $tttt);
$yzblog->assign('id', $con[0]['id']);
$yzblog->assign('t', htmlspecialchars($con[0]['title']));
$yzblog->assign('author', htmlspecialchars($con[0]['author']));
$yzblog->assign('ext', htmlspecialchars($con[0]['ext']));
$yzblog->assign('time', date('H:i:s Y年m月d日 D', $con[0]['time']));
$yzblog->assign('text', $text);
$yzblog->assign('color', $con[0]['color']);
$yzblog->assign('view', $con[0]['click'] + 1);
Esempio n. 2
0
        $a = 'div';
        $view = '';
        $str .= '<' . $a . ' class="item" style="background:' . $comment[$i]['color'] . ';" href="article.php?id=' . $comment[$i]['id'] . '"><img class="point" src="../img/point.png" /><div class="num none">' . ($i + $first + 1) . '</div><div class="view left">#' . $comment[$i]['lou'] . '</div>' . $view . '<div class="time right"><span class="timed">' . date('d', $comment[$i]['time']) . '</span>日<span class="timem">' . date('m', $comment[$i]['time']) . '</span>月' . date('Y年 D H:i', $comment[$i]['time']) . '</div><h1 class="title">' . $comment[$i]['title'] . '</h1><div class="des feeling">' . $comment[$i]['des'] . '</div><br /><a style="color: #fff;" href="delc.php?id=' . $comment[$i]['id'] . '">删除它</a></' . $a . '>';
    }
} else {
    $note = '没有评论,来一条吧~';
}
$tttt = "树洞";
if ($con[0]['class'] < 1000) {
    $tttt = "心愿";
}
if ($con[0]['class'] > 2000) {
    $tttt = "表白";
}
if (!ltrim($con[0]['author'])) {
    $con[0]['title'] = "匿名";
}
$yzblog->assign('title', '微信墙后台管理');
$yzblog->assign('tttt', $tttt);
$yzblog->assign('id', $con[0]['id']);
$yzblog->assign('t', htmlspecialchars($con[0]['title']));
$yzblog->assign('author', htmlspecialchars($con[0]['author']));
$yzblog->assign('ext', htmlspecialchars($con[0]['ext']));
$yzblog->assign('time', date('H:i:s Y年m月d日 D', $con[0]['time']));
$yzblog->assign('text', $text . '<br /><br /><a style="color: red;" href="del.php?id=' . $con[0]['id'] . '">删除文章</a>');
$yzblog->assign('color', $con[0]['color']);
$yzblog->assign('view', $con[0]['click'] + 1);
$yzblog->assign('content', $str);
$yzblog->assign('note', $note);
$yzblog->assign('css', $css);
$yzblog->display('articleadmin.html');
Esempio n. 3
0
<?php

require '../inc/config.php';
require '../inc/setsmarty.php';
$yzblog = new smarty_yzblog();
$yzblog->setTemplateDir('../tpl/m/');
$yzblog->assign('title', '发布');
$yzblog->display('adn.html');
Esempio n. 4
0
        break;
    case 'message':
        $tp = 3;
        break;
    default:
        $tp = 0;
}
$con = getdata($type, $first);
$c = count($con);
if ($c) {
    for ($i = 0; $i < $c; ++$i) {
        $con[$i]['title'] = htmlspecialchars($con[$i]['title'], ENT_QUOTES);
        $con[$i]['des'] = htmlspecialchars($con[$i]['des'], ENT_QUOTES);
        $a = 'a';
        $view = '<div class="view left"> 点:' . (int) $con[$i]['click'] . ' 评:' . (int) $con[$i]['comc'] . '</div>';
        if ($con[$i]['type'] == 'message') {
            $a = 'div';
            $view = '';
        }
        $str .= '<div class="item" style="background:' . $con[$i]['color'] . ';"><a href="articleadmin.php?id=' . $con[$i]['id'] . '"><img class="point" src="../img/point.png" /><div class="num none">' . ($i + $first + 1) . '</div><div class="view left">#' . $con[$i]['lou'] . '</div>' . $view . '<div class="time right"><span class="timed">' . date('d', $con[$i]['time']) . '</span>日<span class="timem">' . date('m', $con[$i]['time']) . '</span>月' . date('Y年 D H:i', $con[$i]['time']) . '</div><h1 class="title">' . $con[$i]['title'] . '</h1><div class="des feeling">' . $con[$i]['des'] . '</div></a><a style="color: #fff;" href="del.php?id=' . $con[$i]['id'] . '">删除它</a></div>';
    }
} else {
    $note = '没有内容!';
}
$yzblog->assign('title', '微信墙后台管理');
$yzblog->assign('typeindex', $tp);
$yzblog->assign('type', $type);
$yzblog->assign('note', $note);
$yzblog->assign('content', $str);
$yzblog->assign('css', $css);
$yzblog->display('indexadmin.html');
Esempio n. 5
0
}
if (CLASS_2 !== '') {
    $li_c .= '<li>' . CLASS_2 . '</li>';
}
if (CLASS_3 !== '') {
    $li_c .= '<li>' . CLASS_3 . '</li>';
}
$op_c = '';
if (CLASS_1 !== '') {
    $op_c .= '<option value="1" selected="selected">' . CLASS_1 . '</option>';
}
if (CLASS_2 !== '') {
    $op_c .= '<option value="1001">' . CLASS_2 . '</option>';
}
if (CLASS_3 !== '') {
    $op_c .= '<option value="2001">' . CLASS_3 . '</option>';
}
$yzblog->assign('title', SITE_NAME);
$yzblog->assign('site_name', SITE_NAME);
$yzblog->assign('copy_info', COPY_INFO);
$yzblog->assign('class_1', CLASS_1);
$yzblog->assign('class_2', CLASS_2);
$yzblog->assign('class_3', CLASS_3);
$yzblog->assign('op_c', $op_c);
$yzblog->assign('li_c', $li_c);
$yzblog->assign('typeindex', $tp);
$yzblog->assign('type', $type);
$yzblog->assign('note', $note);
$yzblog->assign('content', $str);
$yzblog->assign('css', $css);
$yzblog->display('index.html');