<?php /*a:2:{s:60:"/www/wwwroot/117.72.69.185/app/curd/view/table/addfield.html";i:1734159472;s:76:"/www/wwwroot/117.72.69.185/app/curd/view/../../backend/view/layout/main.html";i:1734156624;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo syscfg('site','sys_name'); ?>后台管理</title>
    <meta property="og:keywords" content="<?php echo syscfg('site','site_seo_keywords'); ?>" />
    <meta property="og:description" content="<?php echo syscfg('site','site_seo_desc'); ?>" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="referrer" content="never">
    <meta name="format-detection" content="telephone=no">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css?v=<?php echo syscfg('site','site_version'); ?>" media="all" />
    <link rel="stylesheet" href="/static/backend/css/comm.css?v=<?php echo syscfg('site','site_version'); ?>" media="all">
    <link rel="stylesheet" href="/static/backend/css/global.css?v=<?php echo syscfg('site','site_version'); ?>" media="all" />
    <!--    <script src="/static/plugins/jquery/jquery-3.7.1.min.js"></script>-->
    <script src="/static/plugins/layui/layui.js?v=<?php echo syscfg('site','site_version'); ?>" charset="utf-8"></script>
    <style>
        .tox-promotion,
        .tox-statusbar__branding {  
            display: none;  
        }
    </style>
    <?php echo token_meta(); ?>
    <script>
        window.Config = <?php echo json_encode($config); ?>;
        window.FormArray = <?php echo isset($formData)?(json_encode($formData)):'""'; ?>,
        window.STATIC ='/static'
        window.PLUGINS = '/static/plugins';
        window.APP = '<?php echo htmlentities($APP); ?>';
        window.CONTROLLER = '<?php echo htmlentities($CONTROLLER); ?>';
        window.ACTION = '<?php echo htmlentities($ACTION); ?>';
        window.ADMIN_PATH = '<?php echo env("ADMIN_PATH", "backend"); ?>';
    </script>
</head>

<body style="padding: 10px;background: #fff">

<div class="fun-container" id="app">

    <form class="layui-form" lay-filter="form">
    <?php echo form_input('field','text',['label'=>"字段名",'verify'=>'required','tips'=>"字段名"]); ?>
    <div class="layui-form-item">
        <label class="layui-form-label"><?php echo lang('字段类型'); ?></label>
        <div class="layui-input-block">
            <select name="type" lay-filter="type" lay-verify="required" lay-search>
                <option><?php echo lang('选择'); ?></option>
                <?php if(is_array($fieldTypeList) || $fieldTypeList instanceof \think\Collection || $fieldTypeList instanceof \think\Paginator): $i = 0; $__LIST__ = $fieldTypeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <option value="<?php echo htmlentities($key); ?>" ><?php echo htmlentities($vo); ?></option>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
    <?php echo form_text('length',['label'=>"数据长度或值（set enum）",'tips'=>'默认填写长度 字符串比如 20，浮点型比如 10,2,,枚举或集合比如 monday,tuesday,wednesday,thursday']); ?>
    <div class="layui-form-item" id="index">
        <label class="layui-form-label">索引</label>
        <div class="layui-input-block ">
            <select name="index" lay-filter="index" lay-verify="" lay-search>
                <option><?php echo lang('选择'); ?></option>
                <?php if(is_array($indexList) || $indexList instanceof \think\Collection || $indexList instanceof \think\Paginator): $i = 0; $__LIST__ = $indexList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <option  value="<?php echo htmlentities($key); ?>" ><?php echo htmlentities($vo); ?></option>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
    <?php echo form_radio('required',['NO','Yes'],['label'=>"是否必填"],0); ?>
    <?php echo form_text('default',['label'=>"默认值"]); ?>
    <?php echo form_textarea('extra',['label'=>"枚举或set集合可选值",'tips'=>"键值对的形式,一行一组 a:b"]); ?>
    <?php echo form_text('comment',['label'=>"备注"]); ?>
    <div class="layui-form-item" id="index">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block ">
            <select name="after" lay-filter="index" lay-verify="" lay-search>
                <option value=""><?php echo lang('选择'); ?></option>
                <?php if(is_array($fieldList) || $fieldList instanceof \think\Collection || $fieldList instanceof \think\Paginator): $i = 0; $__LIST__ = $fieldList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <option  value="<?php echo htmlentities($vo['COLUMN_NAME']); ?>" >排在<?php echo htmlentities($vo['COLUMN_NAME']); ?>之后</option>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
    <?php echo form_submitbtn(); ?>
</form>


</div>
</body>
</html>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script defer src="/static/require.min.js?v=<?php echo syscfg('site','site_version'); ?>" data-main="/static/js/require-backend<?php echo syscfg('site','app_debug')?'':'.min'; ?>.js?v=<?php echo syscfg('site','site_version'); ?>" charset="utf-8"></script>

<?php if(!empty($formScript)): ?><?php echo $formScript; ?><?php endif; if(!empty($tableScript)): ?><?php echo $tableScript; ?><?php endif; ?>
