HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/w.xxlht.com/Wukong/Wukongphp/View/Shield/index.htm
<!DOCTYPE html>
<html class=" js csstransforms3d"><head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <?php if($gzid_data['autofre']=='1'){ ?>
        <meta http-equiv="refresh" content="20" />
        <?php } ?>
        <title>订单产品列表</title>
        <link rel="stylesheet" href="__PUBLIC__/Wukongphp/css/base.css">
        <link rel="stylesheet" href="__PUBLIC__/Wukongphp/css/page.css">
        <script type="text/javascript" src="__PUBLIC__/Wukongphp/js/jquery.min.js"></script>
        <script src="__PUBLIC__/layer/layer.js"></script>
        <!--layui布局css文件-->
        <link rel="stylesheet" href="__PUBLIC__/layer/layui/css/layui.css">
        <script src="__PUBLIC__/layer/layui/layui.js"></script>

    </head>
    <body>
        <!--content S-->
        <div class="super-content RightMain" id="RightMain">

            <!--header-->
            <div class="superCtab">
                <div class="wk_jg"></div>
                <div class="ctab-Main">
                    <div style="padding:15px;font-size:16px">
                    <blockquote class="layui-elem-quote">可实现地区、ip、时间段、参数、访问终端、搜索来源等系列屏蔽功能!</blockquote>
                    </div>
                    <div class="ctab-Mian-cont" style="background:#FFF">
                        <div class="Mian-cont-wrap" style="background:none; border:0">

<form method="get" action="__SELF__" id="order_select">
                         <div class="layui-form" style="float:left; width:250px; margin-left:10px">
                        <input type="text" class="layui-input"  name="ac_name" id="selctwhat"  placeholder="输入项目名称">
                        </div>
                        <button class="layui-btn  layui-btn-danger" style="margin-left:10px" ><i class="layui-icon white">&#xe615;</i>查询</button>
                        <button class="layui-btn  " style="margin-left:10px" onClick="addtz();return false;"><i class="layui-icon layui-icon-delete white">&#xe640;</i>添加屏蔽</button>
</form>

                        <div style="clear:both;height:10px"></div>
<form method="post" action="<?php echo U('Shield/delall','',false) ?>" id="order_form">
                            <table class="order_table" width="100%" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                <tr >
                                <td width="4%" class="top">ID</td>
                                <td width="7%" class="top">项目名称</td>
                                <td width="7%" class="top">获取代码</td>
                                <td width="7%" class="top">跳转域名</td>
                                <td width="7%" class="top">添加时间</td>
                                <td width="6%" class="top">操作</td>
                                </tr>
                                <?php 
                                foreach($data as $k=>$v): 
                                ?>
								<tr class="content_tr">
                                <td class="wukorderid" alt="{$v.id}">
                                <?php 
                                	if(session('id')=='1') 
                                		echo $v['id'];
                                    else
                                    	echo $k+1;
                                ?>
                                </td>
                                <td>
                                {$v.ac_name}
                                </td>
                                <td>
                                <button class="layui-btn layui-btn-sm" onClick="getjs('<?php echo $v['uniq']?>','<?php echo $v['ac_position']=='1'?'':'tg';?>'); return false;" >获取代码</button>
                                </td>
								<td>
                                {$v.ac_url}
                                </td>
								<td>
                                <?php echo date('Y-m-d H:i:s',$v['add_time']); ?>
                                </td>
								
                                
                                <td>			
                                <button class="layui-btn layui-btn-xs layui-bg-green" onClick="edit('{$v.id}'); return false;" style="margin:5px 0;"><i class="layui-icon">&#xe716;</i>修改</button>	
                                <button class="layui-btn layui-btn-xs layui-btn-danger" onClick="del('{$v.id}',this); return false;" style="margin:5px 0;"><i class="layui-icon"></i>删除</button>
                                </td>
                                </tr>
                                <?php endforeach; ?>
                                </tbody></table>
                                </form>
                            <div class="pageSelect">
                                <div class="pageWrap">
                                    <?php echo $show ?>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--main-->

        </div>
        <!--content E-->

        <script>
		//时间控件
layui.use('laydate', function(){
  var laydate = layui.laydate;
  laydate.render({
    elem: '#starttime' //指定元素
	,type: 'datetime'
  });
});
var form;
layui.use('form', function(){
  form = layui.form;
  form.on('select(ac_wxtype)', function(data){
	  clearc()
  })
});
function getjs(state,cc)
{
layer.open({
  type: 1,
  title:'复制代码',
  area: ['620px', '200px'], //宽高
  content: '<div style="padding:10px">&lt;script src="<?php echo $urlh; ?>/ip/getjs'+cc+'.php?wkuniq='+state+'"&gt;&lt;/script&gt;</div>'
});
}
function del(id,t) {
	var _tr = $(t).parent().parent();
	layer.confirm('确定删除?', {
		btn: ['确定', '取消'] //按钮
	}, function () {
		  $.ajax({
				type:'GET',
				url:"<?php echo U('Shield/ajaxDel/','',false) ?>/id/"+id,
				success: function(data){
						if(data==1)
						{
							layer.closeAll('');
							layer.msg('删除成功', {icon: 1});
							_tr.remove();
						}
						else
						{
							layer.closeAll('');
							layer.msg('删除失败', {icon: 5});
						}
					},
			});
			}, function () {
	});
}
function addtz(){
	window.location="<?php echo U('Shield/add','',false) ?>"
	}
	function edit(id){
		window.location="<?php echo U('Shield/edit','',false) ?>/id/"+id;
		}
//tr变色函数
$("tr.content_tr").mouseover(function(){
	$(this).find("td").css("backgroundColor", "#F1FAFC");
});
$("tr.content_tr").mouseout(function(){
	$(this).find("td").css("backgroundColor", "#FFF");
});
</script>
    </body></html>