<button class="btn btn-primary" type="submit"><i class="fa fa-fw fa-check"></i> 提交</button>
<div class="clearfloat mt-2"></div>
<?php include self::view("former.layout", "former"); ?>
<?php include self::view("former.design", "former"); ?>
<div class="clearfloat mt10"></div>
<div class="alert alert-info alert-block">
    <h5><i class="fa fa-fw fa-support"></i> 注意事项</h5>
    <p><i class="fa fa-fw fa-arrows-h"></i> 换行符 双击可删除</p>
    <p><i class="fa fa-fw fa-arrows-h"></i> 换行符 属于占位符 最终界面上将以10px空白替换.效果请参考文章添加页</p>
    <p>本界面元素只作编辑用,最终界面展现效果请使用预览功能</p>
    <p>基础字段可移动位置,半透明显示,不可编辑,不可删除.</p>
    <p>若需要无基础字段功能的简单应用请使用自定义表单</p>
    <p>预览前请先提交修改</p>
</div>
<?php if ($this->id && $_GET['app'] == 'apps') { ?>
    <a href="<?php echo ADMINCP_URL; ?>=<?php echo $rs['app']; ?>&do=add&appid=<?php echo $this->id; ?>&preview" class="btn btn-success" data-toggle="modal" data-target="#iCMS-MODAL" data-meta='{"width":"85%","height":"640px"}'>
        <i class="fa fa-fw fa-eye"></i> 预览表单
    </a>
<?php } ?>
<script type="text/javascript" src="./assets/oneui/js/plugins/jquery-ui/jquery-ui.min.js"></script>
<link rel="stylesheet" href="./app/former/assets/iFormer.css" type="text/css" />
<script type="text/javascript" src="./app/former/assets/iFormer.js"></script>
<script type="text/javascript">
    $(function() {
        <?php FormerHelper::makejs(
            $formerArray,
            "iFormer.render($('div'),%s,null,'%s',%s).appendTo('#former-wrap-%s');\n"
        ); ?>
    })
</script>
<script type="text/javascript" src="./app/former/assets/former.build.js"></script>