|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
- <title>新增自定义表单</title>
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- <script language="javascript" src="../static/web/js/jquery.min.js"></script>
- <script src="../static/web/js/bootstrap.bundle.min.js"></script>
- <script language="javascript" src="js/main.js"></script>
- <script language="javascript" src="js/diy.js"></script>
- <script language="javascript">
- function checkSubmit() {
- if (document.form1.name.value == '') {
- ShowMsg("自定义表单名称不能为空");
- return false;
- }
- return true;
- }
- </script>
- <style>
- .style1 {
- color: #dc3545
- }
-
- td {
- padding: 2px;
- padding-left: 6px;
- line-height: 150%;
- }
-
- .style2 {
- color: #424b51;
- display: none;
- }
- </style>
- </head>
- <body>
- <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
- <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();">
- <tr>
- <td height="26" colspan="2" background="../static/web/img/tbg.gif">
- <a href="diy_main.php">自定义表单管理</a> > 新增自定义表单
- </td>
- </tr>
- <tr>
- <td width="260" height="26" align="left">
- diyid:<br>
- <span class="style2" id='help1'>数字,创建后不可修改,并具有唯一性推荐使用默认值</span>
- </td>
- <td>
- <input name="diyid" type="text" id="diyid" size="10" value="<?php echo $newdiyid?>" class='pubinputs'
- style='width:60px'>
- * <i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help1')"></i>
- </td>
- </tr>
- <tr>
- <td height="26" align="left">
- 自定义表单名称:<br>
- <span class="style2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span>
- </td>
- <td>
- <input name="name" type="text" id="name" style="width:160px" value="自定义表单<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help3')"></i>
- </td>
- </tr>
- <tr>
- <td height="26" align="left">数据表:<br>
- <span class="style2" id="help5">必须由英文、数字、下划线组成,用于保存自定义表单数据,不能和已有表名重复,创建后不可修改表名</span></td>
- <td>
- <input name="table" type="text" id="table" style="width:160px" value="<?php echo $cfg_dbprefix; ?>diyform<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help5')"></i>
- </td>
- </tr>
- <tr>
- <td height="26" align="left">字段配置:</td>
- <td><span class="style1">建立自定义表单后在“修改”自定义表单的地方添加字段即可</span></td>
- </tr>
- <tr>
- <td height="26" align="left">列表模板:</td>
- <td><input name="listtemplate" type="text" id="listtemplate" style="width:160px" value="list_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs'></td>
- </tr>
- <tr>
- <td height="26" align="left">内容模板:</td>
- <td><input name="viewtemplate" type="text" id="viewtemplate" style="width:160px" value="view_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs'></td>
- </tr>
- <tr>
- <td height="26" align="left">发布模板:</td>
- <td><input name="posttemplate" type="text" id="posttemplate" style="width:160px" value="post_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs'></td>
- </tr>
- <tr>
- <td height="26" align="left">前台列表和内容页公开:</td>
- <td>
- <label><input name="public" type="radio" value="2" class='np'> 完全公开</label>
- <label><input name="public" type="radio" value="1" class='np' checked='1'> 公开审核过的</label>
- <label><input name="public" type="radio" value="0" class='np'> 不公开</label>
- </td>
- </tr>
- <tr>
- <td bgcolor="#f8f8f8" colspan="2" align="center" class="py-3">
- <button type="submit" name="button" id="button" class='btn btn-success btn-sm'>保存</button>
- <button type="button" class='btn btn-success btn-sm' id="button2" onclick="location='diy_main.php';">返回</button>
- </td>
- </tr>
- </form>
- </table>
- </body>
- </html>
|