|
@@ -13,8 +13,9 @@
|
|
<!--power by dever--><html>
|
|
<!--power by dever--><html>
|
|
<head>
|
|
<head>
|
|
<?php require Dever::config("base")->data . 'compile/wonderful/manage/layadmin/inc/head.cmp.php' ?>
|
|
<?php require Dever::config("base")->data . 'compile/wonderful/manage/layadmin/inc/head.cmp.php' ?>
|
|
|
|
+<link rel="stylesheet" href="<?php echo Dever::config("host")->script ?>lib/layui/admin/modules/plugin/formselects/formselects.css" media="all" />
|
|
<style>
|
|
<style>
|
|
- .layui-input
|
|
|
|
|
|
+ .layui-input,.xm-select-parent
|
|
{
|
|
{
|
|
width: 50%;
|
|
width: 50%;
|
|
}
|
|
}
|
|
@@ -55,27 +56,32 @@
|
|
</div>
|
|
</div>
|
|
<div id="valid"><?php echo $data['manage/database.valid'] ?></div>
|
|
<div id="valid"><?php echo $data['manage/database.valid'] ?></div>
|
|
<div id="struct" style="display:none;" save="<?php echo $data['manage/database.save'] ?>"><?php echo $data['/database.info']['struct'] ?></div>
|
|
<div id="struct" style="display:none;" save="<?php echo $data['manage/database.save'] ?>"><?php echo $data['/database.info']['struct'] ?></div>
|
|
-
|
|
|
|
- <script>
|
|
|
|
- $(document).ready(function()
|
|
|
|
- {
|
|
|
|
- init();
|
|
|
|
- });
|
|
|
|
- </script>
|
|
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php require Dever::config("base")->data . 'compile/wonderful/manage/layadmin/inc/script.cmp.php' ?>
|
|
<?php require Dever::config("base")->data . 'compile/wonderful/manage/layadmin/inc/script.cmp.php' ?>
|
|
- <script>
|
|
|
|
|
|
+ <script id="update_script">
|
|
layui.config({
|
|
layui.config({
|
|
base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
|
|
base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
|
|
}).extend({
|
|
}).extend({
|
|
- index: 'lib/index' //主入口模块
|
|
|
|
- }).use(['index', 'contlist', 'table', 'form'], function(){
|
|
|
|
|
|
+ index: 'lib/index', //主入口模块
|
|
|
|
+ formSelects: 'plugin/formselects/formselects'
|
|
|
|
+ }).use(['index', 'contlist', 'table', 'form', 'formSelects'], function(){
|
|
var table = layui.table;
|
|
var table = layui.table;
|
|
var form = layui.form;
|
|
var form = layui.form;
|
|
|
|
+ var formSelects = layui.formSelects;
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ $('select').each(function() {
|
|
|
|
+ if ($(this).attr('xm-value')) {
|
|
|
|
+ formSelects.value($(this).attr('xm-select'), $(this).attr('xm-value'));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ init();
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|