Beispiel #1
0
                <th>真实姓名</th>
                <th>邮箱</th>
                <th>手机</th>
                <th>管理组</th>
                <th>用户状态</th>
                <th>开通时间</th>
                <th width="180" class="alignleft"></th>
            </tr>
            <?php 
if (count($page['admins']['list'] > 0)) {
    foreach ($page['admins']['list'] as $ka => $va) {
        $action = $va['astate'] == 0 ? "停用" : "启用";
        if ($va['astate'] == 0) {
            $ustate = "<font color=green>" . vars::get_field_str('ustate', $va['astate'], 'html') . "</font>";
        } else {
            $ustate = "<font color=red>" . vars::get_field_str('ustate', $va['astate'], 'html') . "</font>";
        }
        ?>
            <tr>
                <td><input type="checkbox" value="<?php 
        echo $va['admin_id'];
        ?>
" class="cklist"></td> 
                <td><?php 
        echo $va['admin_id'];
        ?>
</td>
                <td><?php 
        echo $va['aname'];
        ?>
</td>
Beispiel #2
0
        $extern_id = $filed_list['extern_id'];
        ?>
                   <tr>
						<?php 
        $i = 0;
        foreach ($val as $kk => $vv) {
            if ($i > 8) {
                break;
            }
            if (is_upload($_GET['extern_id'], $kk) && $vv != '') {
                $vv = '<img width="50" height="50" src="' . $vv . '">';
            } elseif ($i == 0) {
                $vv = '<center>' . helper::utf8_substr($vv, 0, 11) . '</center>';
            } elseif ($i == 1) {
                $action = $vv == 0 ? "屏蔽" : "通过";
                $vv = vars::get_field_str('is_check', $vv, 'html');
            } elseif ($i == 2) {
                $vv = date("Y-m-d H:i:s", $vv);
            } else {
                //$vv = helper :: utf8_substr($vv, 0, 10);
            }
            if (date_type($_GET['extern_id'], $kk)) {
                $vv = date("Y-m-d", intval($vv));
            }
            if ($i == 0) {
                ?>
						 <td><input type="checkbox" value="<?php 
                echo strip_tags($vv);
                ?>
" class="cklist"></td> 
						 <?php 
Beispiel #3
0
function tpl__list()
{
    global $page, $c_obj, $area_obj;
    ?>
        <div class="mt10">
            <table class="tb" >
                <tr>
                    <th width="80"><a href="javascript:void(0);" onClick="C.form.check_all('.infoff');">全选/反选</a></th>
                    <th align='center' width="50">排序</th>
                    <th align='center' width="70">ID</th>
                    <th class="alignleft">标题</th>
                    <th width="60">状态</th>
                    <th width="60">浏览</th>
                    <th width="40">评论</th>
                    <th width="80">编辑</th>
                    <th></th>
                </tr>

               <?php 
    foreach ($page['list'] as $r) {
        $state = isset($_GET['state']) ? $_GET['state'] : '0';
        $r['recommend'] = $area_obj->get_all(' where id_list');
        ?>
                <tr info_title="">
                    <td><input type="checkbox" class="cklist infoff" value="<?php 
        echo $r['info_id'];
        ?>
" /></td>
                    <td><input type="text" size="2" value="<?php 
        echo $r['info_order'];
        ?>
" class="infoorder" pid="<?php 
        echo $r['info_id'];
        ?>
" /></td>
                    <td><?php 
        echo $r['info_id'];
        ?>
</td>
                    <td class="alignleft info_title">
                    <div style="width:300px;height:20px;overflow:hidden;">
                    <?php 
        echo '<a href="?state=' . $state . '&cate_id=' . $r['last_cate_id'] . '" style="color:#aaa;">' . $c_obj->categories[$r['last_cate_id']]['cname'] . '</a>';
        ?>
&nbsp;&nbsp;
                    <?php 
        if ($r['info_img'] != '') {
            echo '<img src="' . $r['info_img'] . '" height="20" width="20"> ';
        }
        if ($r['info_url'] != '') {
            echo '<font color=blue>[跳转] </font>';
        }
        ?>
                    <a target="_blank" href="<?php 
        // echo $r['surl'];
        ?>
" > 
                    <?php 
        echo $r['info_title'];
        ?>
</a></div>
                    </td>
                    <td><?php 
        echo vars::get_field_str('info_state', $r['info_state'], '');
        ?>
</td>
                    <td><?php 
        echo $r['info_visitors'];
        ?>
</td>
                    <td><?php 
        echo $r['info_comments'];
        ?>
</td>
                    <td><div style="width:80px;overflow:hidden;"><?php 
        echo $r['uname'];
        ?>
</div></td>
                    <td>
                        <?php 
        echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "del({$r['info_id']});", 'text' => '删除', 'level' => 'C0202'));
        echo show_button(array('class' => 'but2 but2s', 'href' => "info.php?m=add&info_id={$r['info_id']}", 'text' => '编辑', 'level' => 'C0201'));
        echo show_button(array('class' => 'but2 but2s but2o', 'onclick' => "add_comment_show({$r['info_id']});", 'text' => '评论', 'level' => 'C0106'));
        echo show_button(array('class' => 'but2 but2s but2o1', 'onclick' => "relevance('{$r['info_id']}');", 'text' => '关联', 'level' => 'C0101'));
        $text = $r['info_state'] == 1 ? '审核' : '屏蔽';
        echo show_button(array('class' => 'but2 but2s but2o', 'onclick' => "pass({$r['info_id']});", 'text' => $text, 'level' => 'C0204'));
        ?>

                    </td>
                </tr>
               <?php 
    }
    ?>
            </table>
            <div class="pagebar clearfix"><?php 
    echo $page['pagebar']['pagecode'];
    ?>
</div>
        </div>
        <?php 
}
Beispiel #4
0
function tpl__list()
{
    global $list, $c_obj;
    ?>
        <div class="mt10 clearfix">
            <form action="?m=save_corder" name="form_corder" method="post">
                <table class="tb" id='list'>
                    <tr>
                        <th align='center' width="80">模型ID</th>
                        <th width=150 class="alignleft">名称</th>
                        <th width=150 class="alignleft">类型</th>
                        <th width=100 class="alignleft">表名</th>
                        <th>字段</th>
                        <th width=80>状态</th>
                        <th width=220></th>
                    </tr>
                    <?php 
    foreach ($list['list'] as $a => $b) {
        global $m_obj;
        $model_fields = $m_obj->get_model_fields(" where model_id = " . $b['model_id']);
        $state = '未建表';
        ?>
                    <tr>
                        <td><?php 
        echo $b['model_id'];
        ?>
</td>
                        <td class="alignleft"><?php 
        echo $b['model_name'];
        ?>
</td>
                        <td class="alignleft"><?php 
        echo vars::get_field_str('model_type', $b['model_type']);
        ?>
</td>
                        <td class="alignleft"><?php 
        echo TB_PREFIX . $b['model_name'];
        ?>
</td>
                        <td>
                            <select><option>===表结构字段===</option>
                            <?php 
        foreach ($model_fields as $attr) {
            echo '<option>' . $attr['title'] . ':' . $attr['field'] . '</option>';
        }
        ?>
</select>
                        </td>
                        <td><?php 
        //echo($state);
        ?>
</td>
                        <td>
                            <?php 
        echo show_button(array('class' => 'but2 but2s but2g', 'href' => "model.php?m=model_field&mid={$b['model_id']}", 'text' => '模型字段', 'level' => 'D0102'));
        ?>
                            <?php 
        echo show_button(array('class' => 'but2 but2s but2o1', 'href' => "javascript:void(0);", 'onclick' => "update_table('{$b['model_name']}');", 'text' => '更新表', 'level' => 'D0103'));
        ?>
							<?php 
        if ($state == '未建表' || $b['model_type'] == 0) {
            echo show_button(array('class' => 'but2 but2s', 'other' => 'style="background:#ccc;border-color:#ccc;color:#888;cursor:default;"', 'text' => '管理表', 'level' => 'D0201'));
        } else {
            echo show_button(array('class' => 'but2 but2s but2r', 'href' => "alone_table.php?m=manage&table={$b['model_name']}&extern_id={$b['model_id']}", 'text' => '管理表', 'level' => 'D0201'));
        }
        ?>
                        </td>
                    </tr>
                    <?php 
    }
    ?>
                </table>
            </form>
        </div>
        <?php 
}
Beispiel #5
0
function tpl__list()
{
    global $page;
    ?>
                <table class="tb mt10">
                <tr>
                    <th width="80"><a href="javascript:void(0);" onclick="C.form.check_all('.cklist');">全选/反选</a></th> 
                    <th>账号ID</th>
                    <th>账号</th>
                    <th>真实姓名</th>
                    <th>邮箱</th>
                    <th>手机</th>
                    <th>用户状态</th>
                    <th>开通时间</th>
                    <th width="170" class="alignleft"></th>
                </tr>
                <?php 
    if (count($page['list'] > 0)) {
        foreach ($page['list'] as $kay => $val) {
            $msg_state = $val['astate'] == 0 ? 1 : 0;
            ?>
                <tr>
                    <td><input type="checkbox" value="<?php 
            echo $val['admin_id'];
            ?>
" class="cklist"></td> 
                    <td><?php 
            echo $val['admin_id'];
            ?>
</td>
                    <td><?php 
            echo $val['aname'];
            ?>
</td>
                    <td><?php 
            echo $val['aname_true'];
            ?>
</td>
                    <td><?php 
            echo $val['aemail'];
            ?>
</td>
                    <td><?php 
            echo $val['aphone'];
            ?>
</td>
                    <td><?php 
            ?>
</td>
                    <td><?php 
            echo date("Y-m-d H:m:s", $val['reg_date']);
            ?>
</td>
                    <td>
                    <?php 
            echo show_button(array('class' => 'but2 but2s', 'href' => "admin.php?m=add&aid={$val['admin_id']}", 'text' => '编辑', 'level' => 'B0501'));
            echo show_button(array('class' => 'but2 but2s but2o1', 'href' => "level.php?search_type=admin_list&search_value={$val['admin_id']}", 'text' => '编辑权限', 'level' => 'B0302'));
            echo show_button(array('class' => 'but2 but2s but2o', 'onclick' => "update_state({$val['admin_id']},{$val['astate']})", 'text' => vars::get_field_str("ustate_a", $msg_state), 'level' => 'B0503'));
            ?>
                    </td>
                </tr>
                <?php 
        }
    }
    ?>
    
            </table>
            <!--分页码-->
            <div class="pagebar">
                <?php 
    echo $page['pagebar']['pagecode'];
    ?>
            </div>
            <?php 
}
Beispiel #6
0
function tpl__list()
{
    global $page;
    ?>
            <table class="tb mt10">
                <tr>
                    <th width="80"><a href="javascript:void(0);" onclick="C.form.check_all('.cklist');">全选/反选</a></th> 
                    <th>管理员组</th>
                    <th>状态</th>
                    <th>备注</th>
                    <th>创建时间</th>
                    <th width="160" class="alignleft"></th>
                </tr>
                <?php 
    foreach ($page['list'] as $kay => $val) {
        $msg_state = $val['g_state'] == 0 ? 1 : 0;
        ?>
                <tr>
                    <td><input type="checkbox" value="<?php 
        echo $val['group_id'];
        ?>
" class="cklist"></td> 
                    <td><?php 
        echo $val['g_name'];
        ?>
</td>
                    <td><?php 
        echo vars::get_field_str("ustate", $val['g_state']);
        ?>
</td>
                    <td><?php 
        echo $val['g_remark'];
        ?>
</td>
                    <td><?php 
        echo date("Y-m-d H:m:s", $val['create_time']);
        ?>
</td>
                    <td>
                    <?php 
        echo show_button(array('class' => 'but2 but2s', 'href' => "admin_group.php?m=add&gid={$val['group_id']}", 'text' => "编辑", 'level' => 'B0102'));
        echo show_button(array('class' => 'but2 but2s but2o1', 'href' => "level.php?search_type=admin_group&search_value={$val['group_id']}", 'text' => "编辑权限", 'level' => 'B0404'));
        echo show_button(array('class' => 'but2 but2s but2o', 'href' => "javascript:void(0);", 'onclick' => "update_state({$val['group_id']},{$val['g_state']})", 'text' => vars::get_field_str("ustate_a", $msg_state), 'level' => 'B0403'));
        ?>
                    </td>
                </tr>
                <?php 
    }
    ?>
    
            </table>
            <!--分页码-->
            <div class="pagebar">
                <?php 
    echo $page['pagebar']['pagecode'];
    ?>
            </div>
            <?php 
}
Beispiel #7
0
            <form action="flink.php?m=order" name="form_order" method="post">
            <table class="tb mt10">
                <tr>
                    <th width="40"><input type="checkbox" onclick="C.form.check_all('.cklist');"></th>
                    <th width="80"> 排序</th>
                    <th width="120">链接分组</th>
                    <th width="100">链接位置</th>
                    <th style="text-align:left;">链接名称</th>
                    <th style="text-align:left;">链接地址</th>
                    <th>LOGO图片</th>
                    <th width="120"></th>
                </tr>
                <?php 
foreach ($rs['list'] as $k => $v) {
    $v['flink_img'] = empty($v['flink_img']) ? '-' : '<img height="30" src="' . $v['flink_img'] . '" />';
    $v['flink_is_site'] = vars::get_field_str('flink_is_site', $v['flink_is_site']);
    ?>
                <tr>
                    <td><input type="checkbox" class="cklist" value="<?php 
    echo $v['flink_id'];
    ?>
" /></td>
                    <td><input type="text" size="2" class="order ipt" style="width:40px;" flink_id="<?php 
    echo $v['flink_id'];
    ?>
" value="<?php 
    echo $v['flink_order'];
    ?>
" /></td>
                    <td><?php 
    echo $v['flink_group'];
Beispiel #8
0
function tpl__list()
{
    global $page;
    ?>
        <!-- 列表开始 -->
        <div class="mt10"> 现在位置:广告位列表界面</div>
        <div>
            <form action="" name="form_order" method="post">
            <table class="tb mt10">
                <tr>
                    <th width="80"><a href="javascript:void(0);" onclick="C.form.check_all('.cklist');">全选/反选</a></th>
                    <th align='center' width="200" >广告位名称</th>
                    <th align='center'>广告位类型</th>
                    <th align='center'>广告位备注</th>
                    <th align='center'>创建时间</th>
                    <th width="150"></th>
                </tr>
                <?php 
    foreach ($page['list'] as $k => $v) {
        ?>
                <tr>   
                    <td><input type="checkbox" class="cklist" value="<?php 
        echo $v['area_id'];
        ?>
" /></td>
                    <td><?php 
        echo $v['area_name'];
        ?>
</td>
                    <td><?php 
        echo vars::get_field_str('ad_type', $v['area_type']);
        ?>
</td>
                    <td><?php 
        echo $v['remark'];
        ?>
</td>
                    <td><?php 
        echo date("Y-m-d H:m:s", $v['create_time']);
        ?>
</td>
                    <td>
                        <?php 
        echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "nlink_del('" . $v['area_id'] . "')", 'text' => '删除', 'level' => 'H0304'));
        echo show_button(array('class' => 'but2 but2s but2o', 'href' => "nlink.php?m=add&nid=" . $v['area_id'] . "", 'text' => '编辑', 'level' => 'H0303'));
        echo show_button(array('class' => 'but2 but2s', 'href' => "ad.php?m=ad_list&area_id=" . $v['area_id'] . "", 'text' => '管理广告', 'level' => 'H0301'));
        ?>
                    </td>
                </tr>
                <?php 
    }
    ?>
            </table>
            </form>

            <div class="pagebar clearfix">
  	            <?php 
    print_r($page['pagebar']['pagecode']);
    ?>
  
            </div>
        </div>
        <!-- 列表结束 -->
        <?php 
}
Beispiel #9
0
                $rsc = $dbm->scalar("select count(*) as total from " . TB_PREFIX . $b['extern_name']);
                $state = '已建表(' . $rsc['total'] . ')';
            }
        }
        ?>
                    <tr>
                        <td><?php 
        echo $a;
        ?>
</td>
                        <td class="alignleft"><?php 
        echo $b['extern_title'];
        ?>
</td>
                        <td class="alignleft"><?php 
        echo vars::get_field_str('extern_type', $b['extern_type']);
        ?>
</td>
                        <td class="alignleft"><?php 
        echo TB_PREFIX . $b['extern_name'];
        ?>
</td>
                        <td class="alignleft">    <select><option>===表结构字段===</option><?php 
        foreach ($b['attr_content'] as $attr) {
            echo '<option>' . $attr['title'] . ':' . $attr['field'] . '</option>';
        }
        ?>
</select></td>
                        <td><?php 
        echo $state;
        ?>
Beispiel #10
0
function tpl__list()
{
    global $list;
    ?>
		<div class="flink_group_list"><strong>友链组:</strong>
			<?php 
    foreach ($list['group'] as $key => $val) {
        ?>
					<a href="flink.php?m=add_g&g_id=<?php 
        echo $val['flink_group_id'];
        ?>
"><?php 
        echo $val['flink_group_name'];
        ?>
</a>
			<?php 
    }
    ?>
		</div>
        <div>
            <form action="flink.php?m=order" name="form_order" method="post">
            <table class="tb mt10">
                <tr>
                    <th width="80"><a href="javascript:void(0);" onclick="C.form.check_all('.cklist');">全选/反选</a></th>
                    <th width="80"> 排序</th>
                    <th width="120">链接分组</th>
                    <th width="100">链接位置</th>
                    <th style="text-align:left;">链接名称</th>
                    <th style="text-align:left;">链接地址</th>
                    <th>LOGO图片</th>
                    <th width="120"></th>
                </tr>
                <?php 
    foreach ($list['list'] as $k => $v) {
        $v['flink_img'] = empty($v['flink_img']) ? '-' : '<img height="30" src="' . $v['flink_img'] . '" />';
        $v['flink_is_site'] = vars::get_field_str('flink_is_site', $v['flink_is_site']);
        ?>
                <tr>
                    <td><input type="checkbox" class="cklist" value="<?php 
        echo $v['flink_id'];
        ?>
" /></td>
                    <td><input type="text" size="2" class="order" flink_id="<?php 
        echo $v['flink_id'];
        ?>
" value="<?php 
        echo $v['flink_order'];
        ?>
" /></td>
                    <td><?php 
        echo $v['flink_group_name'];
        ?>
</td>
                    <td><?php 
        echo $v['flink_is_site'];
        ?>
</td>
                    <td style="text-align:left;"><?php 
        echo $v['flink_name'];
        ?>
</td>
                    <td style="text-align:left;"><?php 
        echo $v['flink_url'];
        ?>
</td>
                    <td><div><?php 
        echo $v['flink_img'];
        ?>
</div> </td>
                    <td>
                    <?php 
        echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "flink_del('" . $v['flink_id'] . "');", 'text' => '删除', 'level' => 'E0102'));
        echo show_button(array('class' => 'but2 but2s', 'href' => "flink.php?m=add&flink_id=" . $v['flink_id'] . "", 'text' => '编辑', 'level' => 'E0101'));
        ?>
                    </td>
                </tr>
                <?php 
    }
    ?>
            </table>
            </form>
            <div class="pagebar clearfix">
                <?php 
    echo $list['pagebar']['pagecode'];
    ?>
            </div>
        </div>
		<?php 
}
Beispiel #11
0
function tpl__list()
{
    global $page;
    ?>
        <div class="mt10">
            <table class="tb" >
                <tr>
                    <th width="80"><a href="javascript:void(0);" onClick="C.form.check_all('.infoff');">全选/反选</a></th>
                    <th align='center' width="50">用户ID</th>
                    <th align='center'>用户名称</th>
                    <th class="alignleft">邮箱</th>
                    <th>QQ</th>
                    <th>手机号</th>
                    <th>状态</th>
                    <th></th>
                </tr>

               <?php 
    foreach ($page['list'] as $key => $val) {
        $msg_state = $val['ustate'] == 0 ? 1 : 0;
        ?>
                <tr>
                    <td><input type="checkbox" class="cklist infoff" value="<?php 
        echo $val['user_id'];
        ?>
" /></td>
                    <td><?php 
        echo $val['user_id'];
        ?>
</td>
                    <td><?php 
        echo $val['uname'];
        ?>
</td>
                    <td><?php 
        echo $val['uemail'];
        ?>
</td>
                    <td><?php 
        echo $val['uqq'];
        ?>
</td>
                    <td><?php 
        echo $val['uphone'];
        ?>
</td>
                    <td><?php 
        echo vars::get_field_str("ustate", $val['ustate']);
        ?>
</td>
                    <td>
                        <?php 
        echo show_button(array('class' => 'but2 but2s', 'href' => "user.php?m=add&uid={$val['user_id']}", 'text' => "编辑", 'level' => 'B0201'));
        echo show_button(array('class' => 'but2 but2s but2o', 'href' => "javascript:void(0);", 'onclick' => "update_state({$val['user_id']},{$val['ustate']})", 'text' => vars::get_field_str("ustate_a", $msg_state), 'level' => 'B0203'));
        ?>
                    </td>
                </tr>
               <?php 
    }
    ?>
            </table>
            <div class="pagebar clearfix"><?php 
    echo $page['pagebar']['pagecode'];
    ?>
</div>
        </div>
        <?php 
}
Beispiel #12
0
    $area_html = unserialize($a['area_html']);
    $ad_num = 0;
    if ($area_html['type'] == 'code') {
        $ad_num = 1;
    }
    if ($area_html['type'] == 'imgs') {
        $ad_num = count($area_html['list']);
    }
    ?>
                    <tr>
                        <td><?php 
    echo $a['area_id'];
    ?>
</td>
                        <td class="alignleft"><?php 
    echo vars::get_field_str('ad_type', $area_html['type']);
    ?>
</td>
                        <td class="alignleft"><?php 
    echo $a['title'];
    ?>
</td>
                        <td><?php 
    echo $a['area_remarks'];
    ?>
</td>
                        <td><?php 
    echo $ad_num;
    ?>
</td>
                        <td>
Beispiel #13
0
function tpl__list()
{
    global $page;
    ?>
        <div>
            <table class="tb">
                <form>
                <tr>
                    <th width="80"><a href="javascript:void(0);" onclick="C.form.check_all('.ccomment');">全选/反选</a></th>
					<th width="60">文章ID</th>
                    <th width="400"  class="alignleft">评论内容</th>
                    <th>用户</th>
                    <th>评论时间</th>
                    <th>IP地址</th>
                    <th width="50">状态</th>
                    <th width="130"></th>
                </tr>
                <?php 
    foreach ($page['list'] as $key => $val) {
        ?>
                    <tr>
                        <td><input type="checkbox" class="ccomment" value="<?php 
        echo $val['comment_id'];
        ?>
" /></td>
						<td><a href="<?php 
        //echo $val['url'];
        ?>
" title="<?php 
        // echo $val['comment'];
        ?>
" target="_blank"><?php 
        echo $val['info_id'];
        ?>
</a></td>
                        <td width="400" class="alignleft"><div style="height:24px; line-height:24px; width:350px; overflow:hidden;"><?php 
        echo $val['content'];
        ?>
</div></td>
                        <td><?php 
        echo $val['uname'];
        ?>
</td>
                        <td><?php 
        echo date('Y-m-d H:i:s', $val['date_add']);
        ?>
</td>
                        <td><?php 
        echo $val['ip'];
        ?>
</td>
                        <td><?php 
        echo vars::get_field_str('is_check', $val['is_check'], '');
        ?>
</td>
                        <td>


                            <?php 
        echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "del('{$val['comment_id']}','1')", 'text' => '删除', 'level' => 'E0702'));
        if ($val['is_check'] == 1) {
            echo show_button(array('class' => 'but2 but2s but2o1', 'onclick' => "check('{$val['comment_id']}','0')", 'text' => '屏蔽', 'level' => 'H0603'));
        } else {
            echo show_button(array('class' => 'but2 but2s  but2o', 'onclick' => "check('{$val['comment_id']}','1')", 'text' => '通过', 'level' => 'H0603'));
        }
        echo show_button(array('class' => 'but2 but2s', 'onclick' => "show_reply('{$val['comment_id']}','{$val['info_id']}')", 'text' => '回复', 'level' => 'H0604'));
        ?>
                        </td>
                    </tr>
                <?php 
    }
    ?>
                </form>
            </table>
            <div class="pagebar"><?php 
    echo $page['pagebar']['pagecode'];
    ?>
</div>
            <div class="clear"></div>
        </div>
        <?php 
}
Beispiel #14
0
    ?>
</div></td>
                        <td><?php 
    echo $r['uname'];
    ?>
</td>
                        <td><?php 
    echo date('Y-m-d H:i:s', $r['date_add']);
    ?>
</td>
                        <td><?php 
    echo $r['ip'];
    ?>
</td>
                        <td><?php 
    echo vars::get_field_str('is_check', $r['is_check'], '');
    ?>
</td>
                        <td>


                            <?php 
    echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "del('{$r['comment_id']}','1')", 'text' => '删除', 'level' => 'E0701'));
    if ($r['is_check'] == 1) {
        echo show_button(array('class' => 'but2 but2s but2o1', 'onclick' => "edit('{$r['comment_id']}','0')", 'text' => '屏蔽', 'level' => 'E0702'));
    } else {
        echo show_button(array('class' => 'but2 but2s  but2o', 'onclick' => "edit('{$r['comment_id']}','1')", 'text' => '通过', 'level' => 'E0702'));
    }
    echo show_button(array('class' => 'but2 but2s', 'onclick' => "show_reply('{$r['comment_id']}','{$r['info_id']}')", 'text' => '回复', 'level' => 'E0703'));
    ?>
                        </td>
Beispiel #15
0
</a></div>
                                <?php 
    if (isset($r['recommend']) && count($r['recommend']) > 0) {
        echo '<div style="border-top:1px dotted #ccc;margin-top:5px;color:#888;">[推荐] ';
        foreach ($r['recommend'] as $k => $v) {
            echo '<a href="javascript:void(0);" style="color:orange;" onclick="esc_recommend(' . $r['info_id'] . ',' . $v['area_id'] . ');" title="点击取消“' . $v['title'] . '”推荐位">' . $v['title'] . '</a>';
            if ($k < count($r['recommend']) - 1) {
                echo ' , ';
            }
        }
        echo '</div>';
    }
    ?>
                                </td>
                                <td><?php 
    echo vars::get_field_str('info_state', $r['info_state'], '');
    ?>
</td>
                                <td><?php 
    echo $r['resource_total'];
    ?>
</td>
                                <td><?php 
    echo $r['info_visitors'];
    ?>
</td>
                                <td title="<?php 
    echo date('Y-m-d H:i:s', $r['publish_time']);
    ?>
" ><?php 
    if (strtotime(date('Y-m-d', time())) <= $r['publish_time']) {