<!DOCTYPE html>

<html><head>

    <meta charset="utf-8">

    <title>抽水蓄能电站智能化状态监测系统</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

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

    <link href="__PUBLIC__/style/font-awesome.css" rel="stylesheet">

    <link href="__PUBLIC__/style/weather-icons.css" rel="stylesheet">



    <!--Beyond styles-->

    <link id="beyond-link" href="__PUBLIC__/style/beyond.css" rel="stylesheet" type="text/css">

    <link href="__PUBLIC__/style/demo.css" rel="stylesheet">

    <link href="__PUBLIC__/style/typicons.css" rel="stylesheet">

    <link href="__PUBLIC__/style/animate.css" rel="stylesheet">

    <script src="__IMG__/cssjs/js/jquery-1.8.3.min.js"></script>

    <script src="__IMG__/cssjs/js/jquery_002.js"></script>

    <script src="__PUBLIC__/style/bootstrap.js"></script>

    <script src="__IMG__/cssjs/js/jquery.js"></script>

    <!--Beyond Scripts-->

    <script src="__PUBLIC__/style/beyond.js"></script>

</head>

<body>

<div class="widget" >

    <div class="widget-header ">

        <span class="widget-caption">数据记录</span>

        <div class="widget-buttons">

            <div class="btn-group">

                <a class="btn btn-blue btn-sm " href="javascript:void(0);">导出</a>

                <a class="btn btn-blue btn-sm dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><i class="fa fa-angle-down"></i></a>

                <ul class="dropdown-menu dropdown-blue pull-left">

                    <li>

                        <a href="{:url('ExcelOne')}"  target="_blank">导出当前</a>

                    </li>

                    <li>

                        <a href="{:url('ExcelAll')}"  target="_blank">导出全部</a>

                    </li>

                </ul>

            </div>

        </div>

    </div>

    <div class="widget-body">

        <div role="grid" id="simpledatatable_wrapper" class="dataTables_wrapper form-inline no-footer" >

            <div role="grid"  class="dataTables_wrapper form-inline no-footer" style="width: 150px;float: left">

                <div class="checkbox">

                    <label>

                        <input id="cb1" name="subcb" checked="checked" type="checkbox">

                        <span class="text">A相系统电压(V)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb2"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">A相全电流(mA)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb3"   name="subcb"  checked="checked" type="checkbox">

                        <span class="text">A相阻性电流(mA)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb4"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">B相系统电压(V)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb5"   name="subcb" checked="checked" type="checkbox">

                        <span class="text">B相全电流(mA)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb6"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">B相阻性电流(mA)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb7"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">C相系统电压(V)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb8"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">C相全电流(mA)</span>

                    </label>

                </div>

                <div class="checkbox">

                    <label>

                        <input id="cb9"  name="subcb"  checked="checked" type="checkbox">

                        <span class="text">C相阻性电流(mA)</span>

                    </label>

                </div>

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb10"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">A相容性电流</span>-->

                    <!--</label>-->

                <!--</div>-->

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb11"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">A相阻容比</span>-->

                    <!--</label>-->

                <!--</div>-->

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb12"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">B相容性电流</span>-->

                    <!--</label>-->

                <!--</div>-->

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb13"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">B相阻容比</span>-->

                    <!--</label>-->

                <!--</div>-->

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb14"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">C相容性电流</span>-->

                    <!--</label>-->

                <!--</div>-->

                <!--<div class="checkbox">-->

                    <!--<label>-->

                        <!--<input id="cb15"  name="subcb"  checked="checked" type="checkbox">-->

                        <!--<span class="text">C相阻容比</span>-->

                    <!--</label>-->

                <!--</div>-->

                <div class="checkbox">

                    <label>

                        <input id="allcb" checked="checked" type="checkbox">

                        <span class="text">全选</span>

                    </label>

                </div>

            </div>

            <div role="grid"  class="dataTables_wrapper form-inline no-footer" style="margin-left: 160px;overflow-x: auto;">

                <table class="table table-striped table-bordered table-hover dataTable no-footer" id="simpledatatable" aria-describedby="simpledatatable_info">

                    <thead>

                    <tr role="row">

                        <th class="text-center" style="text-wrap: none">采样时间</th>

                        <th class="text-center" style="text-wrap: none">A相系统电压(V)</th>

                        <th class="text-center" style="text-wrap: none">A相全电流(mA)</th>

                        <th class="text-center" style="text-wrap: none">A相阻性电流(mA)</th>

                        <th class="text-center" style="text-wrap: none">B相系统电压(V)</th>

                        <th class="text-center" style="text-wrap: none">B相全电流(mA)</th>

                        <th class="text-center" style="text-wrap: none">B相阻性电流(mA)</th>

                        <th class="text-center" style="text-wrap: none">C相系统电压(V)</th>

                        <th class="text-center" style="text-wrap: none">C相全电流(mA)</th>

                        <th class="text-center" style="text-wrap: none">C相阻性电流(mA)</th>

                        <!--<th class="text-center" style="text-wrap: none">A相容性电流</th>-->

                        <!--<th class="text-center" style="text-wrap: none">A相阻容比</th>-->

                        <!--<th class="text-center" style="text-wrap: none">B相容性电流</th>-->

                        <!--<th class="text-center" style="text-wrap: none">B相阻容比</th>-->

                        <!--<th class="text-center" style="text-wrap: none">C相容性电流</th>-->

                        <!--<th class="text-center" style="text-wrap: none">C相阻容比</th>-->

                    </tr>

                    </thead>

                    <tbody>

                    {volist name="data" id="v"}

                    <tr>

                        <td class="text-center">{$v['d_time']}</td>

<td class="text-center"><?php if($warn['warnmin1']=== NULL || $warn['warnmax1']===NULL ){echo $v['pt1'];}else{ 
					if($v['pt1'] >= $warn['warnmin1'] && $v['pt1']<= $warn['warnmax1'] ){echo $v['pt1'];}else{ echo '<b style="color: red">'.$v['pt1'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin4']=== NULL || $warn['warnmax4']===NULL ){echo $v['lc1'];}else{ 
					if($v['lc1'] >= $warn['warnmin4'] && $v['lc1']<= $warn['warnmax4'] ){echo $v['lc1'];}else{ echo '<b style="color: red">'.$v['lc1'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin7']=== NULL || $warn['warnmax7']===NULL ){echo $v['rc1'];}else{ 
					if($v['rc1'] >= $warn['warnmin7'] && $v['rc1']<= $warn['warnmax7'] ){echo $v['rc1'];}else{ echo '<b style="color: red">'.$v['rc1'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin2']=== NULL || $warn['warnmax2']===NULL ){echo $v['pt2'];}else{ 
					if($v['pt2'] >= $warn['warnmin2'] && $v['pt2']<= $warn['warnmax2'] ){echo $v['pt2'];}else{ echo '<b style="color: red">'.$v['pt2'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin5']=== NULL || $warn['warnmax5']===NULL ){echo $v['lc2'];}else{ 
					if($v['lc2'] >= $warn['warnmin5'] && $v['lc2']<= $warn['warnmax5'] ){echo $v['lc2'];}else{ echo '<b style="color: red">'.$v['lc2'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin8']=== NULL || $warn['warnmax8']===NULL ){echo $v['rc2'];}else{ 
					if($v['rc2'] >= $warn['warnmin8'] && $v['rc2']<= $warn['warnmax8'] ){echo $v['rc2'];}else{ echo '<b style="color: red">'.$v['rc2'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin3']=== NULL || $warn['warnmax3']===NULL ){echo $v['pt3'];}else{ 
					if($v['pt3'] >= $warn['warnmin3'] && $v['pt3']<= $warn['warnmax3'] ){echo $v['pt3'];}else{ echo '<b style="color: red">'.$v['pt3'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin6']=== NULL || $warn['warnmax6']===NULL ){echo $v['lc3'];}else{ 
					if($v['lc3'] >= $warn['warnmin6'] && $v['lc3']<= $warn['warnmax6'] ){echo $v['lc3'];}else{ echo '<b style="color: red">'.$v['lc3'].'</b>'; } } ?> </td>
<td class="text-center"><?php if($warn['warnmin9']=== NULL || $warn['warnmax9']===NULL ){echo $v['rc3'];}else{ 
					if($v['rc3'] >= $warn['warnmin9'] && $v['rc3']<= $warn['warnmax9'] ){echo $v['rc3'];}else{ echo '<b style="color: red">'.$v['rc3'].'</b>'; } } ?> </td>


                        <!--<td class="text-center">{if condition="($v['cacur1'] egt $warn['warnmin10']) and ($v['cacur1'] elt $warn['warnmax10'])"}{$v['cacur1']}{else /}<b style="color: red">{$v['cacur1']}</b>{/if}</td>-->

                        <!--<td class="text-center">{if condition="($v['riscarte1'] egt $warn['warnmin11']) and ($v['riscarte1'] elt $warn['warnmax11'])"}{$v['riscarte1']}{else /}<b style="color: red">{$v['riscarte1']}</b>{/if}</td>-->

                        <!--<td class="text-center">{if condition="($v['cacur2'] egt $warn['warnmin12']) and ($v['cacur2'] elt $warn['warnmax12'])"}{$v['cacur2']}{else /}<b style="color: red">{$v['cacur2']}</b>{/if}</td>-->

                        <!--<td class="text-center">{if condition="($v['riscarte2'] egt $warn['warnmin13']) and ($v['riscarte2'] elt $warn['warnmax13'])"}{$v['riscarte2']}{else /}<b style="color: red">{$v['riscarte2']}</b>{/if}</td>-->

                        <!--<td class="text-center">{if condition="($v['cacur3'] egt $warn['warnmin14']) and ($v['cacur3'] elt $warn['warnmax14'])"}{$v['cacur3']}{else /}<b style="color: red">{$v['cacur3']}</b>{/if}</td>-->

                        <!--<td class="text-center">{if condition="($v['riscarte3'] egt $warn['warnmin15']) and ($v['riscarte3'] elt $warn['warnmax15'])"}{$v['riscarte3']}{else /}<b style="color: red">{$v['riscarte3']}</b>{/if}</td>-->

                    </tr>

                    {/volist}

                    </tbody>

                </table>

                <div class="row DTTTFooter" style="padding-top:15px;">

                    <div class="col-sm-4">

                        <div class="dataTables_info" id="simpledatatable_info" role="alert" aria-live="polite" aria-relevant="all">

                            <span>&nbsp;&nbsp;&nbsp;</span>

                            当前显示<span>{$data->currentPage()}</span>

                            <span>/</span><span>{$data->lastPage()}</span>

                            <span>&nbsp;&nbsp;&nbsp;</span>

                            共<span>{$data->total()}</span>条记录

                        </div>

                    </div>

                    <div class="col-sm-8" align="right">

                      
                            {$data->render()}
              

               

                    </div>

                </div>

            </div>



        </div>

    </div>

</div>



<!-- /头部 -->





<script type="text/javascript" language="JavaScript">

    $("#allcb").click(function() {



        if(this.checked)

        {

            $('input[name="subcb"]').prop("checked", true);

            for(var i=1;i<10;i++)

            {

                if (!($('table tr').find('td:eq('+i+')').show()))

                {

                    $('table tr').find('td:eq('+i+')').show();

                }



                if (!($('table tr').find('th:eq('+i+')').show()))

                {

                    $('table tr').find('th:eq('+i+')').show();

                }

            }

        }

        else

        {

            $('input[name="subcb"]').attr("checked",false);

            for(var i=1;i<10;i++)

            {

                if ($('table tr').find('td:eq('+i+')').show())

                {

                    $('table tr').find('td:eq('+i+')').hide();

                }

                if ($('table tr').find('th:eq('+i+')').show())

                {

                    $('table tr').find('th:eq('+i+')').hide();

                }

            }

        }

    });



    $("input[name='subcb']").click(function(){

        if(this.checked)

        {

            $('table tr').find('td:eq('+parseInt(this.id.substr(2))+')').show();

            $('table tr').find('th:eq('+parseInt(this.id.substr(2))+')').show();



        }

        else

        {

            $('table tr').find('td:eq('+parseInt(this.id.substr(2))+')').hide();

            $('table tr').find('th:eq('+parseInt(this.id.substr(2))+')').hide();

        }

        if($("input[name='subcb']").lenegth==$("input[name='subcb']:checked").lenegth)

        {

            $("#allcb").prop("checked",true)

        }

        else

        {

            $("#allcb").attr("checked",false);

        }

    });



</script>

</body></html>
