123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- [#ftl]
- <!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=utf-8" />
- <title>编辑单位类别</title>
- <!--框架必需start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/qui/libs/js/framework.js"></script>
- <link href="${ctx}/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="${ctx}/qui/"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!-- MiniColors -->
- <script src="${ctx}/minicolors/jquery.minicolors.js"></script>
- <link rel="stylesheet" href="${ctx}/minicolors/jquery.minicolors.css">
- <!--框架必需end-->
- <!-- 表单验证start -->
- <link rel="stylesheet" href="${ctx}/qui/libs/js/form/validform/css/style.css" type="text/css" media="all" />
- <script src="${ctx}/qui/libs/js/form/validform/validform.js" type="text/javascript"></script>
- <!-- 表单验证end -->
- <!--表单异步提交start-->
- <script src="${ctx}/qui/libs/js/form/form.js" type="text/javascript"></script>
- <!--表单异步提交end-->
- <!--箭头分页start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/nav/pageArrow.js"></script>
- <!--箭头分页end-->
- <style>
- body {
- font: 16px sans-serif;
- line-height: 1.8;
- padding: 0 40px;
- margin-bottom: 200px;
- }
- a {
- color: #08c;
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- .form-group {
- margin: 20px 0;
- }
- label {
- color: #888;
- }
- </style>
- <script>
- $(document).ready( function() {
-
- $('.demo').each( function() {
- //
- // Dear reader, it's actually very easy to initialize MiniColors. For example:
- //
- // $(selector).minicolors();
- //
- // The way I've done it below is just for the demo, so don't get confused
- // by it. Also, data- attributes aren't supported at this time. Again,
- // they're only used for the purposes of this demo.
- //
- $(this).minicolors({
- control: $(this).attr('data-control') || 'hue',
- defaultValue: $(this).attr('data-defaultValue') || '',
- inline: $(this).attr('data-inline') === 'true',
- letterCase: $(this).attr('data-letterCase') || 'lowercase',
- opacity: $(this).attr('data-opacity'),
- position: $(this).attr('data-position') || 'bottom left',
- change: function(hex, opacity) {
- var log;
- try {
- log = hex ? hex : 'transparent';
- if( opacity ) log += ', ' + opacity;
- console.log(log);
- } catch(e) {}
- },
- theme: 'default'
- });
-
- });
-
- });
- </script>
- </head>
- <body>
- <form id="myFormId" action="${ctx}/status/editData.do" method="post" target="frmright">
- <div class="box1" id="formContent" whiteBg="true">
- <input type="hidden" name="id" value='${baseStatus.id!""}'/>
- <table class="tableStyle" formMode="transparent">
- <tr>
- <td><span class="star">*</span>状态名称:</td>
- <td><input type="text" name="statusName" value='${baseStatus.statusName!""}' datatype="*" style="width: 50%" ajaxurl="${ctx}/status/validateStatusName.do?id=${(baseStatus.id)!''}"/></td>
- </tr>
- <tr>
- <td><span class="star">*</span>状态颜色:</td>
- <td><input type="text" name="statusColor" id="text-field" value='${baseStatus.statusColor!"#70c24a"}' class="demo" datatype="*" style="width: 60%" value="#70c24a"/></td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="submit" value="保存"/>
- <input type="button" value="取消" onclick="top.Dialog.close()"/>
- </td>
- </tr>
- </table>
- </div>
- </form>
- <!-- 异步提交start -->
- <script type="text/javascript">
- function initComplete(){
-
- //表单提交
- $("#myFormId").Validform({
- tiptype:3,//表示在右边显示
- ajaxPost:true,
- datatype:{
- //小数
- "decimal" : /^\d+\.\d+$/
- },
- showAllError:true,
- callback:function(responseText){
- $.Hidemsg();
- if(responseText.status=="y"){
- top.Dialog.alert(responseText.info,function(){
- closeWin();
- });
- }else{
- top.Dialog.alert(responseText.info,function(){
- return false;
- });
- }
-
- }
- });
- }
- //重置
- function closeWin() {
- //刷新数据
- top.frmright.resetSearch();
- //关闭窗口
- top.Dialog.close();
- }
- </script>
- <!-- 异步提交end -->
- </body>
- </html>
|