<!-- ############ PAGE START-->
<div class="padding">
    <div class="row">
        <div class="col-sm-4">
            <div class="box">
                <div class="item">
                    <div class="item-bg">
                        <img src="<?=$GLOBALS['users']['chat_bg']?>" alt="." class="blur">
                    </div>
                    <div class="p-a-lg pos-rlt text-center">
                        <img src="http://q2.qlogo.cn/headimg_dl?bs=<?=$GLOBALS['info']->qq?>&dst_uin=<?=$GLOBALS['info']->qq?>&dst_uin=<?=$GLOBALS['info']->qq?>&;dst_uin=<?=$GLOBALS['info']->qq?>&spec=100&url_enc=0&referer=bu_interface&term_type=PC" alt="." class="img-circle w-56" style="margin-bottom: -7rem">
                    </div>
                </div>
                <div class="p-a text-center">
                    <a href="#" class="text-md m-t block"><?=qqnick($GLOBALS['info']->qq)?></a>
                    <p><small><?=$GLOBALS['info']->qq?></small></p>
                    <p><button type="button" class="btn btn-sm <?php if(is_qqzt($GLOBALS['qq_row']->status)){echo'success';}else{echo'danger';}?>">运行状态：<?php if(is_qqzt($GLOBALS['qq_row']->status)){echo'<i class="fa fa-check"></i> 运行中';}else{echo'<i class="fa fa-cog"></i> 请更新QQ状态';}?></button></p>
                    <div class="text-xs">
                        <em>更新时间：<?php echo $GLOBALS['info']->gxtime?$GLOBALS['info']->gxtime:$GLOBALS['info']->addtime?></em>
                    </div>
                </div>
                <div class="row no-gutter b-t">
                    <div class="col-xs-4 b-r">
                        <a class="p-a block text-center" data-ui-toggle-class>
                            添加时间
                            <span class="block"><?=$GLOBALS['info']->addtime?></span>
                        </a>
                    </div>
                    <div class="col-xs-4 b-r">
                        <a class="p-a block text-center" data-ui-toggle-class>
                            挂机状态
                            <span class="block"><?php if(is_qqzt($GLOBALS['info']->status)){echo'<i class="fa fa-check"></i> 正常';}else{echo'<i class="fa fa-cog"></i> 异常';}?></span>
                        </a>
                    </div>
                    <div class="col-xs-4">
                        <a class="p-a block text-center" data-ui-toggle-class>
                            更新时间
                            <span class="block"><?php if(empty($GLOBALS['info']->gxtime)){echo'暂无';}else{echo $GLOBALS['info']->gxtime;}?></span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-8">
            <div class="box nav-active-border b-info">
                <ul class="nav nav-md">
                    <li class="nav-item inline">
                        <a class="nav-link active" href="#" data-toggle="tab" data-target="#tab_1">
                            <span class="text-md">QQ空间工具类</span>
                        </a>
                    </li>
                    <li class="nav-item inline">
                        <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_2">
                            <span class="text-md">QQ空间签到类</span>
                        </a>
                    </li>
                </ul>
                <div class="tab-content clear b-t">
                    <div class="tab-pane active" id="tab_1">
                        <div class="row-row box-body scrollable hover" style="height: 800px;">
                            <div class="row-inner" style="margin: 45px 0px 0px 0px;">
                                <!-- left content -->
                                <div class="list" data-ui-list="b-r b-3x b-primary" data-ui-list-target="#detail" data-ui-list-target-class="show">

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('zan','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/iszan.png" class="w-full rounded" alt="...">
                                                    <i class="on b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#zan" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->zan)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="javascript:run('zan','<?=$GLOBALS['info']->qid?>');" title="点击手动测试" class="_500">说说秒赞 [<span class="text-<?=is_run_bnt($GLOBALS['info']->zan)?>"><?=is_run($GLOBALS['info']->zan)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastzan)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('shuo','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isshuo.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#shuo" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->isshuo)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">自动说说 [<span class="text-<?=is_run_bnt($GLOBALS['info']->isshuo)?>"><?=is_run($GLOBALS['info']->isshuo)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastshuo)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('delshuo','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isdel.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#delshuo" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->delshuo)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">自动删说说 [<span class="text-<?=is_run_bnt($GLOBALS['info']->delshuo)?>"><?=is_run($GLOBALS['info']->delshuo)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastshuodel)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('delly','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isdel.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#delly" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->delly)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">自动删留言 [<span class="text-<?=is_run_bnt($GLOBALS['info']->delly)?>"><?=is_run($GLOBALS['info']->delly)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastdelly)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('ly','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isly.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#ly" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->ly)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">互刷留言 [<span class="text-<?=is_run_bnt($GLOBALS['info']->ly)?>"><?=is_run($GLOBALS['info']->ly)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastly)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('zyzan','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/iszyzan.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#zyzan" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->zyzan)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">互刷主页赞 [<span class="text-<?=is_run_bnt($GLOBALS['info']->zyzan)?>"><?=is_run($GLOBALS['info']->zyzan)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastzyzan)?>
                                            </small>
                                        </div>
                                    </div>

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('visitor','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isqunqd.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#visitor" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->visitor)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">自动互刷访客 [<span class="text-<?=is_run_bnt($GLOBALS['info']->visitor)?>"><?=is_run($GLOBALS['info']->visitor)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastvisitor)?>
                                            </small>
                                        </div>
                                    </div>

                                </div>
                                <!-- / -->
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="tab_2">
                        <div class="box-body" style="height: 800px;">
                            <div class="row-inner" style="margin: 45px 0px 0px 0px;">
                                <!-- left content -->
                                <div class="list" data-ui-list="b-r b-3x b-primary" data-ui-list-target="#detail" data-ui-list-target-class="show">

                                    <div class="list-item ">
                                        <div class="list-left">
                                            <span class="w-40 avatar circle blue-grey">
                                                <a href="javascript:run('qd','<?=$GLOBALS['info']->qid?>');" title="点击手动测试">
                                                    <img src="/ThinkPHP/Users/img/isqd.png" class="w-full rounded" alt="...">
                                                    <i class="busy b-white bottom"></i>
                                                </a>
                                            </span>
                                        </div>
                                        <div class="list-body">
                                            <div class="pull-right circle">
                                                <span class="w-40 avatar">
                                                    <button data-toggle="modal" data-target="#qd" data-ui-toggle-class="roll" data-ui-target="#animate" class="btn btn-sm <?=is_run_bnt($GLOBALS['info']->qd)?>">点击配置</button>
                                                </span>
                                            </div>
                                            <div class="item-title">
                                                <a href="#" class="_500">每日签到 [<span class="text-<?=is_run_bnt($GLOBALS['info']->qd)?>"><?=is_run($GLOBALS['info']->qd)?></span>]</a>
                                            </div>
                                            <small class="block text-muted text-ellipsis">
                                                运行时间：<?=is_run_time($GLOBALS['info']->lastqd)?>
                                            </small>
                                        </div>
                                    </div>

                                </div>
                                <!-- / -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- .modal -->
            <div id="zan" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">说说秒赞设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->zan)?>"><?=is_run($GLOBALS['info']->zan)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="zan">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现重复赞或不能赞,请及时更换协议</a>
                                        <span class="text-muted">服务器速度越快漏赞越少,速度慢的在你好友越多时漏赞也越多。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">秒赞协议</span>
                                    <select name="zan" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->zan==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->zan==1){echo'selected=""';}?>>触屏版</option>
                                        <option value="2" <?php if ($GLOBALS['info']->zan==2){echo'selected=""';}?>>电脑版(推荐)</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->zannet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=zannet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="shuo" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">自动发说说设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->isshuo)?>"><?=is_run($GLOBALS['info']->isshuo)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="shuo">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现不发说说,请及时更换协议</a>
                                        <div class="text-muted">PC版发说说会由于空间被禁言而发送失败</div>
                                        <div class="text-muted">标签：<code>[舔狗日记]</code> | <code>[爱情]</code> | <code>[伤感]</code> | <code>[经典]</code> | <code>[人生格言]</code> | <code>[笑话]</code> | <code>[随机]</code></div>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">自动发说说协议</span>
                                    <select name="is" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->isshuo==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->isshuo==1){echo'selected=""';}?>>触屏版</option>
                                        <option value="2" <?php if ($GLOBALS['info']->isshuo==2){echo'selected=""';}?>>电脑版(推荐)</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->shuonet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=shuonet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">请选择频率</span>
                                    <select name="rate" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=5;$i<=60;$i=$i+5){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->shuorate == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}分钟</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">说说图片</span>
                                    <input name="shuopic" class="form-control" placeholder="请输入图片地址(留空则没有图片，你可以使用标签)" value="<?=$GLOBALS['info']->shuopic?>">
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">说说内容</span>
                                    <textarea name="content" rows="2" class="form-control" placeholder="请输入说说内容(留空则随机，你可以使用标签)"><?=$GLOBALS['info']->shuoshuo?></textarea>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">自定义说说后缀</span>
                                    <input name="shuophone" class="form-control" placeholder="输入自定义说说后缀，留空则没有后缀" value="<?=$GLOBALS['info']->shuophone?>">
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="delshuo" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">自动删说说设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->delshuo)?>"><?=is_run($GLOBALS['info']->delshuo)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="delshuo">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现操作频繁,请及时更换协议</a>
                                        <span class="text-muted">服务器挂机数量越少，删说说速度就越快，服务器人多的，删说说的速度就慢。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">删说说协议</span>
                                    <select name="delshuo" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->delshuo==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->delshuo==1){echo'selected=""';}?>>触屏版</option>
                                        <option value="2" <?php if ($GLOBALS['info']->delshuo==2){echo'selected=""';}?>>电脑版(推荐)</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->delshuonet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=delshuonet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="delly" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">自动删留言设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->delly)?>"><?=is_run($GLOBALS['info']->delly)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="delly">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现操作频繁,请及时更换协议</a>
                                        <span class="text-muted">服务器挂机数量越少，删留言速度就越快，服务器人多的，删留言的速度就慢。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">删说说协议</span>
                                    <select name="delly" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->delly==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->delly==1){echo'selected=""';}?>>触屏版</option>
                                        <option value="2" <?php if ($GLOBALS['info']->delly==2){echo'selected=""';}?>>电脑版(推荐)</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->dellynet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=dellynet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="ly" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">互刷留言设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->ly)?>"><?=is_run($GLOBALS['info']->ly)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="ly">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现操作频繁,请及时更换协议</a>
                                        <span class="text-muted">服务器挂机数量越多，刷得越多，服务器数量越少，刷得自然就越少。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">刷留言开关</span>
                                    <select name="ly" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->ly==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->ly==1){echo'selected=""';}?>>开启</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->lynet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=lynet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="zyzan" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">互刷主页赞设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->zyzan)?>"><?=is_run($GLOBALS['info']->zyzan)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="zyzan">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现操作频繁,请及时更换协议</a>
                                        <span class="text-muted">服务器挂机数量越多，刷得越多，服务器数量越少，刷得自然就越少。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">刷留言开关</span>
                                    <select name="zyzan" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->zyzan==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->zyzan==1){echo'selected=""';}?>>开启</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->zyzannet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=zyzannet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="visitor" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">互刷主页赞设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->visitor)?>"><?=is_run($GLOBALS['info']->visitor)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="visitor">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现操作频繁,请及时更换协议</a>
                                        <span class="text-muted">服务器挂机数量越多，刷得越多，服务器数量越少，刷得自然就越少。</span>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">刷留言开关</span>
                                    <select name="visitor" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->visitor==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->visitor==1){echo'selected=""';}?>>开启</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->visitornet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=visitornet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
            <!-- .modal -->
            <div id="qd" class="modal fade animate" data-backdrop="true">
                <div class="modal-dialog" id="animate">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                            <h5 class="modal-title">自动发说说设置-[<a class="text-<?=is_run_bnt($GLOBALS['info']->qd)?>"><?=is_run($GLOBALS['info']->qd)?></a>]</h5>
                        </div>
                        <div class="modal-body p-lg text-center">
                            <form action="/Application/Mains.php?Mould=QQSet" method="post">
                                <input type="hidden" name="action" value="qd">
                                <ul class="list-group m-b">
                                    <li class="list-group-item active">
                                        <a class="block _500 text-danger">若出现不自动签到,请及时更换协议</a>
                                        <div class="text-muted">签到内容可以选择以下标签或者留空，无碍。</div>
                                        <div class="text-muted">标签：<code>[舔狗日记]</code> | <code>[爱情]</code> | <code>[伤感]</code> | <code>[经典]</code> | <code>[人生格言]</code> | <code>[笑话]</code> | <code>[随机]</code></div>
                                    </li>
                                </ul>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">自动签到协议</span>
                                    <select name="qd" class="form-control">
                                        <option value="0" <?php if ($GLOBALS['info']->qd==0){echo'selected=""';}?>>关闭</option>
                                        <option value="1" <?php if ($GLOBALS['info']->qd==1){echo'selected=""';}?>>触屏版</option>
                                        <option value="2" <?php if ($GLOBALS['info']->qd==2){echo'selected=""';}?>>电脑版(推荐)</option>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">服务器</span>
                                    <select name="net" class="form-control">
                                        <?php
                                        $str="";
                                        for($i=1;$i<=$GLOBALS['website']->zannet;$i++){
                                            $str.="<option value ='{$i}' ";
                                            if($GLOBALS['info']->qdnet == $i){
                                                $str.="selected='selected'";
                                            }
                                            $str.=">{$i}号服务器(";
                                            $num=json_decode(curl_get(TFYT('terminal_api').'?key='.TFYT('terminal_key').'&cron='.TFYT('terminal_cron').'&action=netnum&mold=qdnet&i='.$i))->netnum;
                                            if($num>=$GLOBALS['website']->netnum){
                                                $str.="已满";
                                            }else{
                                                $str.="{$num}个";
                                            }
                                            $str.=")</option>";
                                        }
                                        echo $str;
                                        ?>
                                    </select>
                                </div>
                                <div class="input-group m-b">
                                    <span class="input-group-addon">签到内容</span>
                                    <textarea name="qdcon" rows="2" class="form-control" placeholder="请输入签到内容(留空则随机，你可以使用标签)"><?=$GLOBALS['info']->shuoshuo?></textarea>
                                </div>
                                <hr>
                                <div class="input-group m-b">
                                    <button type="submit" class="btn info btn-block">点击保存</button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            <!-- / .modal -->
        </div>
    </div>
</div>
<script type="text/javascript">
    function run(mold,qid) {
        layer.open({
            title:'手动测试',
            type: 2,
            area: ['400px', '400px'],
            fixed: false, //不固定
            maxmin: true,
            content: "<?=TFYT('terminal_api')?>terminal/"+mold+".run.php?key=<?=TFYT('terminal_cron')?>&cron=<?=TFYT('terminal_cron')?>&qid="+qid
        });
    }
</script>

<!-- ############ PAGE END-->