school.html 3.0 KB
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>学考无忧-学校管理</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" />
</head>

<body>
<div class="log_top_co">
    <!-- 顶部 -->
    <div class=" order_top log_top_co">
        <a href="{:url('personalcenter/personal_center')}">
            <img src="__TMPL__/public/assets/images/left.png" alt="" />
        </a>
        <p>学校管理</p>
    </div>
</div>
<!-- 学校列表 -->
<div class="log_seven">
    <volist name="school" id="val">
        <div class="log_seven_list log_seven_list_one shanchu{$val.id}">
            <div class="log_seven_left">
                <div class="log_seven_left_one">{$val.school}</div>
                <div class="log_seven_left_two">
                    <volist name="val.class" id="vo">
                        <span>{$vo.grade}{$vo.class}班</span>
                    </volist>
                </div>
                <div class="log_secen_left_three">{$val.region}</div>
            </div>
            <div class="log_seven_right">
                <div class="log_seven_right_one">
                    <img src="__TMPL__/public/assets/images/87.png" alt="" onclick="school_edit({$val.id})" />
                </div>
                <div class="log_seven_right_one log_seven_right_two" onclick="school_del({$val.id})">
                    <img src="__TMPL__/public/assets/images/86.png" alt="" />
                </div>
            </div>
        </div>
    </volist>

</div>
<!-- 按钮 -->
<div class="log_seven_btn">
    <a href="{:url('School/add_school')}">
        <div class="log_seven_btn_contant">
            添加学校
        </div>
    </a>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/mui.min.js"></script>
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
<script>
    /**
     *点击删除学校
     */
    function school_del(id){
        $.post("{:url('School/school_del')}",{id:id},function(data){
            if(data){
                $('.shanchu'+id).remove();
            }
        });
    }

    /**
     *点击编辑学习
     */
    function school_edit(id){
        window.location.href = "{:url('School/school_edit')}?id="+id;
    }
</script>
<script>
    //删除管理地址
    $('.log_seven_right_two').each(function(){
        $(this).click(function(){
            $(this).parents('.log_seven_list').remove();
        })
    })
</script>
</body>

</html>