<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:58:"F:\sywork\www\hsycms.v2.0/app/hsycms\view\chtml\lists.html";i:1564474792;s:57:"F:\sywork\www\hsycms.v2.0\app\hsycms\view\index\head.html";i:1564124847;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="__PUBLIC__/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/<?php echo config('webadminstyle'); ?>.css?v=<?php echo time(); ?>" />
<script src="__PUBLIC__/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/admin/js/validform5.3.2min.js"></script>
<script src="__PUBLIC__/public/layer/layer.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/admin/js/touchTouch.jquery.js"></script> 
<script src="__PUBLIC__/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>
<script type="text/javascript">
if(top.location==self.location){
  window.close();
}
</script>
<div class="box auto">
  <form method="post" action="" class="sycmsform">
    <div class="box-head"> 生成列表 </div>
    <div class="form">
      <ul>
         <li>
          <label>生成电脑端或移动端：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="htmlpath" value="0" class="inputval" />
              <input type="text" readonly="readonly" class="input"  placeholder="请选择生成电脑端或移动端"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="0" class=selected>电脑端</dd>
                <dd data="1">移动端</dd>
              </dl>
            </div>          
          </div>
        </li>
        <li>
          <label>请选择栏目：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="nid" value="0" class="inputval" />
              <input type="text" readonly="readonly" class="input"  placeholder="请选择栏目"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="0">生成所有栏目</dd>
                <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <dd data="<?php echo $vo['id']; ?>"><?php echo $vo['title']; ?></dd>
                <?php endforeach; endif; else: echo "" ;endif; ?>
              </dl>
            </div> 
            <span class="tips">不选择默认生成所有栏目</span>           
          </div>
        </li>
        <li>
          <label>&nbsp;</label>
          <div class="item">
            <button type="button" onclick="createHtml()" class="button"><i class="icon-check"></i>点击生成列表</button>
          </div>
        </li>
      </ul>
    </div>
  </form>
</div>

<script>
function createHtml(){
	var nid = $("input[name=nid]").val();
	var htmlpath = $("input[name=htmlpath]").val();
	layer.open({
		type:2,
		title:'开始生成列表...',
		area: ['650px', '400px'],
		content:'<?php echo url("Chtml/process"); ?>?process_nid='+nid+'&htmlpath='+htmlpath
	})
}
</script>
