tree.html 5.83 KB
<include file="public/layout"/>
<!--include file="public/min-header"/-->

<link rel="stylesheet" type="text/css" href="__PUBLIC__/bootstrap/css/style.css"/>

<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>

<style type="text/css">
    [class^="icon-"], [class*=" icon-"] {
        display: inline-block;
        width: 14px;
        height: 14px;
        margin-top: 1px;
        line-height: 14px;
        vertical-align: text-top;
        background-image: url("__PUBLIC__/bootstrap//img/glyphicons-halflings.png");
        background-position: 14px 14px;
        background-repeat: no-repeat;
    }

    .icon-folder-open {
        width: 16px;
        background-position: -408px -120px;
    }

    .icon-minus-sign {
        background-position: -24px -96px;
    }

    .icon-plus-sign {
        background-position: 0 -96px;
    }

    .icon-leaf {
        background-position: -48px -120px;
    }

    .tree li:last-child::before {
        height: 25px;
    }

    ul {
        padding: 0 40px;
    }

    .tree_span {
        cursor: pointer;
    }

    .tree {
        padding-left: 0;
    }

    .tree > ul {
        padding-left: 19px;
    }
    .flexigrid .bDiv .nextbtn {display: inline-block;*zoom: 1;*display:inline;padding: 5px 15px; border: 1px #ddd solid;cursor: pointer;color: #666}
    .flexigrid .bDiv .nextbtn:hover{color: #666}
</style>

<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer"
     style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="ftitle">
                <h3>分销关系列表</h3>
                <h5>(共{$pager->totalRows}条记录)</h5>
                <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
            </div>
        </div>
    </div>

    <div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
        <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span title="收起提示" id="explanationZoom" style="display: block;"></span>
        </div>
        <ul>
            <li>分销关系,查看代理商层级关系.</li>
        </ul>
    </div>
    <div class="flexigrid">
        <div class="mDiv" style="border-bottom:0px">
            <form class="navbar-form form-inline"
                  action="{:U('Distribut/tree',array('mobile'=>$mobile))}" method="get" role="search">
                <div class="sDiv" style="float:left; ">

                    <div class="sDiv2">
                        <input type="text" size="30" id="key_word" placeholder="分销商名称/手机号"
                               value="{$_GET['key_word']}"
                               name="key_word" id="key_word" class="qsbox">
                    </div>
                    <div class="sDiv2">
                        <input type="submit" class="btn" value="搜索">
                    </div>
                    <if condition="$mobile">

                    <div class="fbutton">
                        <div class="up" title="返回分销上级">
                            <span onclick="return_top_level();"><i class="fa fa-level-up"></i>返回分销上级</span>
                        </div>
                    </div>
                    {$mobile}
                    </if>
                </div>
            </form>
        </div>
        <div class="hDiv">

            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>

                        <th align="left" abbr="nickname" axis="col4" class="w150">
                            <div style="text-align: center; " class="">会员名称</div>
                        </th>
                        <th align="center" axis="col6" class="w150">
                            <div style="text-align: center; " class="">会员手机号</div>
                        </th>
                        <th align="center" axis="col6" class="w150">
                            <div style="text-align: center; " class="">操作</div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>

        <div class="tDiv">
            <div style="clear:both"></div>
        </div>

        <div class="bDiv" style="height: auto;" id="ajax_return">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                <volist name="list" id="v">
                <tr>

                    <td align="left" abbr="nickname" axis="col4" class="w150">
                        <div style="text-align: center; " class="">{$v['vipname']}</div>
                    </td>
                    <td align="center" axis="col6" class="w150">
                        <div style="text-align: center; " class="">{$v['mobile']}</div>
                    </td>
                    <td align="center" axis="col6" class="w150">
                        <div style="text-align: center; " class=""><a class="nextbtn"  href="{:U('Admin/Distribut/tree',array('userid'=>$v[user_id],'mobile'=>$v[mobile],'oldurl'=>$oldurl))}">查看下级</a></div>
                    </td>
                </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
    <!--分页位置-->
    <div class="row">
        <div class="col-sm-6 text-left"></div>
        <div class="col-sm-6 text-right">{$page}</div>
    </div>


</div>
<script type="text/javascript">


    function  return_top_level() {
        location.href="{$getoldurl}";
    }

</script>
</body>
</html>