Ejemplo n.º 1
0
            <tr>
                <th>#</th>
                <th>标题</th>
                <th>封面图</th>
                <th>简介</th>
                <th>时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php 
foreach ($article_list as $article_info) {
    echo '<tr>';
    echo '<td>' . $article_info["id"] . '</td>';
    echo '<td><a target="_blank" href="' . base_url() . ARTICLE_PAGE . '?id=' . $article_info["id"] . '">' . $article_info["title"] . '</a></td>';
    echo '<td><img src="' . generate_image_size($article_info["image"], 320, 180) . '" width="180px" height="90px"></td>';
    echo '<td>' . $article_info["sub"] . '</td>';
    echo '<td>' . date("m-d H:i", $article_info["atime"]) . '</td>';
    echo '<td style="min-width: 125px">';
    echo '<a href="' . base_url() . ARTICLE_EDIT_PAGE . '?id=' . $article_info["id"] . '">编辑</a>&nbsp&nbsp';
    if ($article_info["status"] == 0) {
        echo '<a href="' . base_url() . ARTICLE_HIDE_PAGE . '?id=' . $article_info["id"] . '">隐藏</a>&nbsp&nbsp';
    } else {
        if ($article_info["status"] == 1) {
            echo '<a href="' . base_url() . ARTICLE_SHOW_PAGE . '?id=' . $article_info["id"] . '">显示</a>&nbsp&nbsp';
        }
    }
    echo '<a href="' . base_url() . ARTICLE_DEL_PAGE . '?id=' . $article_info["id"] . '">删除</a>&nbsp&nbsp';
    echo '</td>';
    echo '</tr>';
}
Ejemplo n.º 2
0
            cancel: function () {
                showShareCancel();
            }
        });
        wx.onMenuShareAppMessage({
            title: "<?php 
echo addslashes($article_info['title']);
?>
",
            desc: "无聊了吗?来嘻Fun吧!",
            link: "<?php 
echo base_url("/" . ARTICLE_PAGE . "?id=" . $article_info["id"] . "&from=message");
?>
",
            imgUrl: "<?php 
echo generate_image_size($article_info["image"], 360, 180);
?>
",
            success: function () {
                showShareSuccess();
            },
            cancel: function () {
                showShareCancel();
            }
        });
    });
    wx.error(function (res) {
    });
    function showShareSuccess() {
        $(".wrapper").show();
        $.post("<?php