ming 3 лет назад
Сommit
d0ebfde594
97 измененных файлов с 5130 добавлено и 0 удалено
  1. 166 0
      add.html
  2. 91 0
      add2.html
  3. 108 0
      auth-add.html
  4. 164 0
      auth-manage.html
  5. 610 0
      css/common.css
  6. 298 0
      device-manage.html
  7. 200 0
      funcAdd.html
  8. 356 0
      funcReport.html
  9. BIN
      image/arrow.png
  10. BIN
      image/auth-icon.jpg
  11. BIN
      image/call.png
  12. BIN
      image/device-icon.png
  13. BIN
      image/funcIcon.png
  14. BIN
      image/left-icon.png
  15. BIN
      image/nav.png
  16. BIN
      image/plus-icon.png
  17. BIN
      image/right-icon.png
  18. BIN
      image/site-icon.png
  19. 1 0
      js/jquery-2.2.2.min.js
  20. 140 0
      js/layout.js
  21. 186 0
      js/select.js
  22. 3 0
      plugins/datePicker/css/date-font.css
  23. 64 0
      plugins/datePicker/css/example.css
  24. 146 0
      plugins/datePicker/css/foundation-datepicker.css
  25. 0 0
      plugins/datePicker/css/foundation-datepicker.min.css
  26. 0 0
      plugins/datePicker/css/foundation.min.css
  27. 90 0
      plugins/datePicker/index.html
  28. 1355 0
      plugins/datePicker/js/foundation-datepicker.js
  29. 0 0
      plugins/datePicker/js/foundation-datepicker.min.js
  30. 16 0
      plugins/datePicker/js/foundation.min.js
  31. 1 0
      plugins/datePicker/js/jquery-1.11.3.min.js
  32. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.ar.js
  33. 12 0
      plugins/datePicker/js/locales/foundation-datepicker.az.js
  34. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.bg.js
  35. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.bs.js
  36. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.ca.js
  37. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.cs.js
  38. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.cy.js
  39. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.da.js
  40. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.de.js
  41. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.el.js
  42. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.en-GB.js
  43. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.eo.js
  44. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.es.js
  45. 18 0
      plugins/datePicker/js/locales/foundation-datepicker.et.js
  46. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.eu.js
  47. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.fa.js
  48. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.fi.js
  49. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.fo.js
  50. 20 0
      plugins/datePicker/js/locales/foundation-datepicker.fr-CH.js
  51. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.fr.js
  52. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.gl.js
  53. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.he.js
  54. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.hr.js
  55. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.hu.js
  56. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.hy.js
  57. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.id.js
  58. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.is.js
  59. 20 0
      plugins/datePicker/js/locales/foundation-datepicker.it-CH.js
  60. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.it.js
  61. 16 0
      plugins/datePicker/js/locales/foundation-datepicker.ja.js
  62. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.ka.js
  63. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.kh.js
  64. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.kk.js
  65. 18 0
      plugins/datePicker/js/locales/foundation-datepicker.ko.js
  66. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.kr.js
  67. 16 0
      plugins/datePicker/js/locales/foundation-datepicker.lt.js
  68. 16 0
      plugins/datePicker/js/locales/foundation-datepicker.lv.js
  69. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.me.js
  70. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.mk.js
  71. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.mn.js
  72. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.ms.js
  73. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.nb.js
  74. 17 0
      plugins/datePicker/js/locales/foundation-datepicker.nl-BE.js
  75. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.nl.js
  76. 13 0
      plugins/datePicker/js/locales/foundation-datepicker.no.js
  77. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.pl.js
  78. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.pt-br.js
  79. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.pt.js
  80. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.ro.js
  81. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.rs-latin.js
  82. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.rs.js
  83. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.ru.js
  84. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.sk.js
  85. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.sl.js
  86. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.sq.js
  87. 16 0
      plugins/datePicker/js/locales/foundation-datepicker.sr-latin.js
  88. 16 0
      plugins/datePicker/js/locales/foundation-datepicker.sr.js
  89. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.sv.js
  90. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.sw.js
  91. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.th.js
  92. 15 0
      plugins/datePicker/js/locales/foundation-datepicker.tr.js
  93. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.uk.js
  94. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.vi.js
  95. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.zh-CN.js
  96. 14 0
      plugins/datePicker/js/locales/foundation-datepicker.zh-TW.js
  97. 164 0
      site-manage.html

+ 166 - 0
add.html

@@ -0,0 +1,166 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>设备新增</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                设备新增
+            </div>
+
+        </div>
+        <form action="__MODULE__/DeviceManagement/add" style="margin-top:40px">
+            <div>
+                <span><i>*</i>设备编号:</span>
+                <input type="text" name="owner_code">
+            </div>
+            <div>
+                <span><i>*</i>设备名称:</span>
+                <input type="text" name="owner_name">
+            </div>
+            <div>
+                <span><i>*</i>安装位置:</span>
+                <input type="text" name="unitinfo">
+            </div>
+            <div>
+                <span><i>*</i>所属楼层:</span>
+                <!-- <input type="text" name="louyu"> -->
+                <select name="louyu" id="">
+                    <option value="">请选择</option>
+                    <option value="1">楼层1</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+                    <option value="2">楼层2</option>
+
+                </select>
+            </div>
+            <div>
+                <span><i>*</i>站点ID:</span>
+                <select name="push_param2" id="">
+                    <option value="">请选择</option>
+                    <option value="1">站点一</option>
+                    <option value="2">站点二</option>
+                </select>
+
+                <!-- <input type="text" name="push_param2"> -->
+            </div>
+            <a class="submit-btn">提交</a>
+
+        </form>
+    </div>
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script>
+        $('.submit-btn').click(function() {
+            if ($('input[name=owner_code]').val().length == 0) {
+                alert('请输入设备编号')
+                return false;
+            }
+            if ($('input[name=owner_name]').val().length == 0) {
+                alert('请输入设备名称')
+                return false;
+            }
+            if ($('input[name=unitinfo]').val().length == 0) {
+                alert('请输入安装位置')
+                return false;
+            }
+            if (!$('select[name=louyu]').val()) {
+                alert('请选择所属楼层')
+                return false;
+            }
+            if (!$('select[name=push_param2]').val()) {
+                alert('请选择站点ID')
+                return false;
+            }
+
+            // if ($('input[name=push_param2]').val().length == 0) {
+            //     alert('请输入站点ID')
+            //     return false;
+            // }
+
+            // var mobile = $('input[name=mobile]').val();
+            // if (mobile.length == 0) {
+            //
+            //     alert('请填写手机号码');
+            //     return false;
+            // } else {
+            //     var telre = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/;
+            //     if (!telre.test(mobile)) {
+            //         alert('请输入有效的手机号码');
+            //         return false;
+            //     }
+            //
+            // }
+
+            var siteName = $('input[name=siteName]').val();
+            var siteplace = $('input[name=siteplace]').val();
+            var siteAddress = $('input[name=siteAddress]').val();
+            var contactMan = $('input[name=contactMan]').val();
+            $.post('__MODULE__/DeviceManagement/add', {
+                'siteName': siteName,
+                'siteAdress': siteplace,
+                'address': siteAddress,
+                'username': contactMan,
+                'phone': mobile
+            }, function(res) {
+                if (res == 1) {
+                    alert("保存成功");
+                    window.location.href = "__MODULE__/SiteManagement/index";
+                } else {
+                    alert("保存失败");
+                }
+
+                //
+                // $('#content-data').html(res);
+            });
+        })
+    </script>
+</body>
+
+</html>

+ 91 - 0
add2.html

@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>新增</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                新增
+            </div>
+
+        </div>
+        <form action="" style="margin-top:40px">
+            <div>
+                <span><i>*</i>站点名称:</span>
+                <input type="text" name="siteName">
+            </div>
+            <div>
+                <span><i>*</i>站点位置:</span>
+                <input type="text" name="siteplace">
+            </div>
+            <div>
+                <span><i>*</i>站点地址:</span>
+                <input type="text" name="siteAddress">
+            </div>
+            <div>
+                <span><i>*</i>联系人:</span>
+                <input type="text" name="contactMan">
+            </div>
+            <div>
+                <span><i>*</i>手机号码:</span>
+                <input type="text" name="mobile">
+            </div>
+            <a class="submit-btn">提交</a>
+
+        </form>
+    </div>
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script>
+        $('.submit-btn').click(function() {
+            if ($('input[name=siteName]').val().length == 0) {
+                alert('请输入站点名称')
+                return false;
+            }
+            if ($('input[name=siteplace]').val().length == 0) {
+                alert('请输入站点位置')
+                return false;
+            }
+            if ($('input[name=siteAddress]').val().length == 0) {
+                alert('请输入站点地址')
+                return false;
+            }
+            if ($('input[name=contactMan]').val().length == 0) {
+                alert('请输入联系人')
+                return false;
+            }
+
+            var mobile = $('input[name=mobile]').val();
+            if (mobile.length == 0) {
+
+                alert('请填写手机号码');
+                return false;
+            } else {
+                var telre = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/;
+                if (!telre.test(mobile)) {
+                    alert('请输入有效的手机号码');
+                    return false;
+                }
+
+            }
+        })
+    </script>
+</body>
+
+</html>

+ 108 - 0
auth-add.html

@@ -0,0 +1,108 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>权限新增</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                权限新增
+            </div>
+
+        </div>
+        <form action="__MODULE__/DeviceManagement/add" style="margin-top:40px">
+            <div>
+                <span><i>*</i>角色:</span>
+                <select name="push_param2" id="">
+                    <option value="">请选择</option>
+                    <option value="1">角色一</option>
+                    <option value="2">角色二</option>
+                </select>
+            </div>
+            <div style="vertical-align: top;">
+                <span style="vertical-align: top;"><i>*</i>站点:</span>
+                <div class="siteSelect">
+                    <div class="qwe">qwe</div>
+
+                </div>
+
+
+            </div>
+
+            <div class="alarming-type">
+                <span>告警类型:</span>
+                <input type="radio" name="alarming" value="1" checked/> 全部告警
+                <input type="radio" name="alarming" value="2" /> 维保告警
+
+            </div>
+            <a class="submit-btn">提交</a>
+
+        </form>
+    </div>
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script src="js/select.js"></script>
+    <script>
+        $('.submit-btn').click(function() {
+            // if ($('input[name=owner_code]').val().length == 0) {
+            //     alert('请输入设备编号')
+            //     return false;
+            // }
+            // if ($('input[name=owner_name]').val().length == 0) {
+            //     alert('请输入设备名称')
+            //     return false;
+            // }
+            // if ($('input[name=unitinfo]').val().length == 0) {
+            //     alert('请输入安装位置')
+            //     return false;
+            // }
+            if (!$('select[name=push_param2]').val()) {
+                alert('请选择角色')
+                return false;
+            }
+            if (!$(".label").length) {
+                alert('请选择站点')
+                return false;
+            }
+
+            var siteName = $('input[name=siteName]').val();
+            var siteplace = $('input[name=siteplace]').val();
+            var siteAddress = $('input[name=siteAddress]').val();
+            var contactMan = $('input[name=contactMan]').val();
+            $.post('__MODULE__/DeviceManagement/add', {
+                'siteName': siteName,
+                'siteAdress': siteplace,
+                'address': siteAddress,
+                'username': contactMan,
+                'phone': mobile
+            }, function(res) {
+                if (res == 1) {
+                    alert("保存成功");
+                    window.location.href = "__MODULE__/SiteManagement/index";
+                } else {
+                    alert("保存失败");
+                }
+
+                //
+                // $('#content-data').html(res);
+            });
+        })
+    </script>
+</body>
+
+</html>

+ 164 - 0
auth-manage.html

@@ -0,0 +1,164 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>权限管理</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                权限管理
+            </div>
+            <div class="filterSection">
+                <input type="text" placeholder="请选择传输方式">
+                <span class="search">查询</span>
+            </div>
+        </div>
+        <div class="device-list">
+            <div class="noResult">
+                <p>暂无查询结果...</p>
+            </div>
+            <ul>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/auth-icon.jpg" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">13262908433</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/call.png" alt="" width="16"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='auth-add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/auth-icon.jpg" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">13262908433</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/call.png" alt="" width="16"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='auth-add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/auth-icon.jpg" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">13262908433</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/call.png" alt="" width="16"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='auth-add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/auth-icon.jpg" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">13262908433</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/call.png" alt="" width="16"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='auth-add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/auth-icon.jpg" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">13262908433</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/call.png" alt="" width="16"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='auth-add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+
+            </ul>
+            <a href="auth-add.html"><img class="plus" src="image/plus-icon.png" alt=""></a>
+        </div>
+
+    </div>
+
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script>
+        // 手机长按事件
+        var timeOutEvent = 0;
+        var _this;
+        $(function() {
+            $(".desBox").on({
+                touchstart: function(e) {
+                    _this = $(this)
+                    timeOutEvent = setTimeout("longPress()", 500);
+                    // e.preventDefault();
+                },
+                touchmove: function() {
+                    clearTimeout(timeOutEvent);
+                    timeOutEvent = 0;
+                },
+                touchend: function() {
+                    clearTimeout(timeOutEvent);
+                    if (timeOutEvent != 0) {
+                        // alert("你这是点击,不是长按");
+                    }
+                    return false;
+                }
+            })
+        });
+
+        function longPress() {
+            timeOutEvent = 0;
+            // alert("长按事件触发发");
+            _this.parent().find('.operate-box').show().parent().siblings().find('.operate-box').hide()
+
+        }
+
+        //点击修改页面跳转
+        $(".device-item").on("touchend", ".opera-edit", function() {
+            // alert("子元素点击");
+            window.location.href = "auth-add.html";
+        })
+        $(".device-item").on("touchend", ".opera-delete", function() {
+            // alert("子元素点击");
+            $(this).parent().parent().parent().remove();
+        })
+
+        // 点击除按钮和弹框之外任意地方隐藏表情
+        $("body").click(function(e) {
+            if (!$(e.target).closest(".operate-box").length) {
+                $(".operate-box").hide();
+            }
+        });
+    </script>
+</body>
+
+</html>

+ 610 - 0
css/common.css

@@ -0,0 +1,610 @@
+@charset "utf-8";
+* {
+    margin: 0;
+    padding: 0;
+    /* max-height: 999999px; */
+}
+
+html {
+    -webkit-overflow-scrolling: touch;
+    /*//允许独立的滚动区域和触摸回弹*/
+}
+
+body,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+hr,
+p,
+blockquote,
+dl,
+dt,
+dd,
+ul,
+ol,
+li,
+pre,
+form,
+fieldset,
+legend,
+button,
+input,
+textarea,
+th,
+td {
+    margin: 0;
+    padding: 0;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+    font-weight: normal;
+}
+
+body,
+button,
+input,
+select,
+textarea {
+    font: 28px Source Han Sans CN, PingFang SC, Helvetica, Arial, Microsoft YaHei, FreeSans, Arimo, Droid Sans, wenquanyi micro hei, Hiragino Sans GB, Hiragino Sans GB W3, sans-serif
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+    font-size: 100%;
+}
+
+address,
+cite,
+dfn,
+em,
+var {
+    font-style: normal;
+}
+
+code,
+kbd,
+pre,
+samp {
+    font-family: courier new, courier, monospace;
+}
+
+small {
+    font-size: 12px;
+}
+
+ul,
+ol {
+    list-style: none;
+}
+
+i,
+em {
+    font-style: normal;
+}
+
+a {
+    text-decoration: none;
+    /* color: #fff; */
+}
+
+sup {
+    vertical-align: text-top;
+}
+
+sub {
+    vertical-align: text-bottom;
+}
+
+legend {
+    color: #000;
+}
+
+fieldset,
+img {
+    border: 0;
+    max-width: 100%;
+}
+
+button,
+input,
+select,
+textarea {
+    font-size: 100%;
+}
+
+table {
+    border-collapse: collapse;
+    border-spacing: 0;
+}
+
+.clear {
+    clear: both;
+    float: none;
+    height: 0;
+    overflow: hidden;
+}
+
+html .hide {
+    display: none;
+}
+
+
+/* 去除苹果默认input样式 */
+
+input[type="button"],
+input[type="submit"],
+input[type="reset"],
+textarea {
+    -webkit-appearance: none;
+    border: none;
+    /*-moz-appearance: none;
+outline:none;*/
+    background: rgba(0, 0, 0, 0);
+}
+
+
+/*input[type="submit"]{
+      -webkit-appearance: button;
+}*/
+
+
+/* 去除谷歌焦点样式 */
+
+input:focus,
+textarea:focus {
+    outline: none;
+}
+
+
+/* 去除IE10+浏览器文本框后面的小叉叉 */
+
+input::-ms-clear {
+    display: none;
+}
+
+
+/* 禁止多行文本框textarea拖拽 */
+
+textarea {
+    resize: none;
+}
+
+
+/* 去除android用户点击链接,出现边框或者半透明灰色遮罩 */
+
+a,
+button,
+input,
+textarea {
+    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+    -webkit-user-modify: read-only;
+    /* 只能读 */
+    -moz-user-modify: read-only;
+    user-modify: read-only;
+}
+
+*:not(input) {
+    -webkit-touch-callout: none;
+    -webkit-user-select: none;
+    -khtml-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+}
+
+.onlineColor {
+    color: #08BE04
+}
+
+.offlineColor {
+    color: #666666
+}
+
+.hitchColor {
+    color: #FF6523
+}
+
+input::-webkit-input-placeholder {
+    color: #999;
+}
+
+input::-moz-placeholder {
+    /* Mozilla Firefox 19+ */
+    color: #999;
+}
+
+input:-moz-placeholder {
+    /* Mozilla Firefox 4 to 18 */
+    color: #999;
+}
+
+input:-ms-input-placeholder {
+    /* Internet Explorer 10-11 */
+    color: #999;
+}
+
+
+/*add*/
+
+body {
+    font-size: 16px;
+}
+
+.device-list {
+    margin-top: 106px;
+    margin-bottom: 100px;
+}
+
+.device-item {
+    padding: 10px 10px 10px 0;
+    display: flex;
+    align-items: center;
+    margin-left: 10px;
+    border-bottom: 1px solid #EDEDED;
+    position: relative
+}
+
+.checkBox {
+    width: 8%;
+    text-align: center
+}
+
+.iconBox {
+    width: 15%;
+    text-align: center
+}
+
+.iconBox img {
+    width: 45px
+}
+
+.desBox {
+    width: 60%;
+    padding: 0 10px;
+    font-size: 14px;
+    color: #666;
+}
+
+.desBox p:nth-child(2) {
+    margin: 3px 0;
+}
+
+.device-tit {
+    font-size: 16px;
+    color: #333;
+}
+
+.statusBox {
+    width: 15%;
+    text-align: center
+}
+
+.arrowRight {
+    width: 5%;
+    text-align: center
+}
+
+.arrowRight img {
+    width: 6px
+}
+
+
+/* 长摁弹框 */
+
+.operate-box {
+    display: none;
+    position: absolute;
+    bottom: -10px;
+    left: 70px;
+    background: #fff;
+    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
+}
+
+.operate-box li {
+    padding: 5px 10px;
+    color: #333
+}
+
+.operate-box li:first-child {
+    border-bottom: 1px solid #EDEDED
+}
+
+.fixed-section {
+    position: fixed;
+    top: 0;
+    width: 100%;
+    z-index: 9
+}
+
+
+/* 筛选 */
+
+.filterSection {
+    padding: 15px 12px;
+    background: #f1f1f1;
+    width: 100%;
+}
+
+.nav-tit {
+    background: #333;
+    color: #fff;
+    line-height: 45px;
+    text-align: center;
+    font-size: 20px;
+    position: relative;
+}
+
+
+/* .nav-tit img {
+    width: 10px;
+    position: absolute;
+    left: 25px;
+    top: 12px;
+} */
+
+.goBack {
+    color: #ffffff;
+    height: 45px;
+    width: 20px;
+    display: inline-block;
+    float: left;
+    background: url(../image/left-icon.png) no-repeat center;
+    background-size: 12px 16px;
+    margin-left: 20px;
+    position: absolute;
+    left: 0;
+}
+
+input[type="text"] {
+    -webkit-appearance: none;
+}
+
+.filterSection input[type="text"] {
+    line-height: 35px;
+    width: 70%;
+    border-radius: 18px;
+    text-indent: 15px;
+    border: 0px solid #aaa;
+    background: #fff;
+    font-size: 14px;
+    color: #999
+}
+
+.search {
+    border-radius: 18px;
+    line-height: 35px;
+    width: 21%;
+    background: #4074E7;
+    color: #fff;
+    display: inline-block;
+    text-align: center;
+    margin-left: 5px;
+}
+
+
+/* plus */
+
+.plus {
+    width: 60px;
+    position: fixed;
+    bottom: 7px;
+    right: 7px;
+}
+
+.plus :hover {
+    opacity: .7
+}
+
+
+/* 无查询结果 */
+
+.noResult {
+    height: 100px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    color: #999;
+    display: none;
+}
+
+
+/* 站点列表 */
+
+.navRight {
+    width: 18%;
+    text-align: right
+}
+
+.navRight img {
+    /* width: 14px */
+}
+
+
+/* 新增页面 */
+
+form {
+    padding: 15px 12px;
+}
+
+form>div {
+    margin-bottom: 12px;
+}
+
+form span {
+    font-size: 16px;
+    color: #333;
+    width: 24%;
+    display: inline-block;
+    text-align: left;
+    position: relative;
+    padding-left: 10px
+}
+
+form span i {
+    color: #FF0303;
+    position: absolute;
+    left: -5px;
+}
+
+form input[type="text"],
+form select,
+form option {
+    width: 71%;
+    height: 35px;
+    line-height: 35px;
+    border: 1px solid #EDEDED;
+    padding: 0 10px;
+    color: #999;
+    box-sizing: border-box;
+    appearance: none;
+    -moz-appearance: none;
+    -webkit-appearance: none;
+}
+
+select {
+    background: url(../image/arrow.png) no-repeat scroll 98% center;
+    background-size: 6%;
+}
+
+select:focus,
+select:active,
+select:hover {
+    outline: none;
+}
+
+a.submit-btn {
+    background: #4074e7;
+    border-radius: 40px;
+    width: 100%;
+    color: #fff;
+    display: inline-block;
+    line-height: 40px;
+    text-align: center;
+    margin: 20px 0
+}
+
+.alarming-type input:last-child {
+    margin-left: 20px
+}
+
+.siteSelect select {
+    position: relative;
+}
+
+.siteSelect select input {
+    position: absolute;
+    left: 0
+}
+
+
+/* 站点多选下拉样式 start */
+
+.layui-btn {
+    background-color: #5fb878;
+}
+
+a {
+    text-decoration: none;
+}
+
+.label {
+    padding: 2px 0px;
+    background: #aaa;
+    border-radius: 2px;
+    color: #fff;
+    display: block;
+    line-height: 20px;
+    height: 20px;
+    margin: 2px 5px 2px 0;
+    float: left;
+}
+
+.label span {
+    padding: 0 5px;
+    color: #fff;
+}
+
+.close {
+    padding: 1px 5px !important;
+}
+
+.close:hover {
+    /* background-color: #009E94;
+    border-radius: 2px;
+    color: tomato; */
+}
+
+.selectId input {
+    width: 100%!important;
+}
+
+.selectId input {
+    height: 25px;
+    padding: 1px 5px;
+    border-radius: 3px;
+    width: calc(100% - 12px);
+    outline-color: #5fb878;
+    border: 1px solid #5fb878;
+}
+
+.selectId {
+    position: relative;
+}
+
+.selectId dl {
+    border: 1px solid #eee;
+    border-radius: 3px;
+    margin: 2px 0px;
+    max-height: 300px;
+    overflow-x: hidden;
+    white-space: nowrap;
+    position: absolute;
+    width: 100%;
+    top: 40px;
+    background: #fff;
+    z-index: 1000
+}
+
+.selectId dl dd {
+    margin: 0;
+    padding: 5px 10px;
+}
+
+.selectId dl dd:hover {
+    background-color: #5FB878;
+    color: white;
+}
+
+.AD {
+    /* width: 210px;
+        margin-left: 40px; */
+    overflow-y: auto;
+    max-height: 200px;
+    /* border: 2px solid #5fb878;
+        border-radius: 6px;
+        padding: 1px 2px; */
+}
+
+form .AD span {
+    width: auto;
+}
+
+.siteSelect {
+    width: 71%;
+    display: inline-block;
+}
+
+
+/* 站点多选下拉样式end */

+ 298 - 0
device-manage.html

@@ -0,0 +1,298 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>设备管理</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                设备管理
+            </div>
+            <div class="filterSection">
+                <input type="text" placeholder="请选择传输方式">
+                <span class="search">查询</span>
+            </div>
+        </div>
+
+
+        <div class="device-list parent">
+            <div class="noResult">
+                <p>暂无查询结果...</p>
+            </div>
+            <p class="refreshText"></p>
+            <ul id="content-box">
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox onlineColor">在线</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt="" w></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox offlineColor">离线</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/device-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置</p>
+                        <p>三楼茶水间</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="statusBox hitchColor">故障</div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+            </ul>
+            <a href="add.html"><img class="plus" src="image/plus-icon.png" alt=""></a>
+        </div>
+
+    </div>
+
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script>
+        // 手机长按事件
+        var timeOutEvent = 0;
+        var _this;
+        $(function() {
+            $(".desBox").on({
+                touchstart: function(e) {
+                    _this = $(this)
+                    timeOutEvent = setTimeout("longPress()", 500);
+                    //e.preventDefault();
+
+
+                },
+                touchmove: function() {
+                    clearTimeout(timeOutEvent);
+                    timeOutEvent = 0;
+                    //document.removeEventListener('touchstart', this.preventDefault, false);
+                },
+                touchend: function() {
+                    clearTimeout(timeOutEvent);
+                    if (timeOutEvent != 0) {
+                        // alert("你这是点击,不是长按");
+                    }
+                    return false;
+                }
+            })
+        });
+
+        function longPress() {
+            timeOutEvent = 0;
+            // alert("长按事件触发发");
+            _this.parent().find('.operate-box').show().parent().siblings().find('.operate-box').hide();
+
+
+        }
+
+        //点击修改页面跳转;
+        $(".device-item").on("touchend", ".opera-edit", function() {
+            // alert("子元素点击");
+            window.location.href = "add.html";
+        })
+        $(".device-item").on("touchend", ".opera-delete", function() {
+            // alert("子元素点击");
+            $(this).parent().parent().parent().remove();
+        })
+
+        // 点击除按钮和弹框之外任意地方隐藏表情
+        $("body").click(function(e) {
+            if ($('.operate-box').is(':visible')) {
+                if (!$(e.target).closest(".operate-box").length) {
+                    // alert(1);
+                    $(".operate-box").hide();
+                }
+            }
+
+
+
+        });
+    </script>
+
+
+</body>
+
+</html>

+ 200 - 0
funcAdd.html

@@ -0,0 +1,200 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>功能报备新增</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+
+    <!-- 日期组件 -->
+    <link href="plugins/datePicker/css/foundation.min.css" rel="stylesheet" type="text/css">
+    <link href="plugins/datePicker/css/foundation-datepicker.css" rel="stylesheet" type="text/css">
+    <style>
+        form input[type="text"] {
+            display: inline-block;
+            margin-bottom: 0
+        }
+    </style>
+    <!-- 日期组件end -->
+
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                功能报备新增
+            </div>
+
+        </div>
+        <form action="__MODULE__/DeviceManagement/add" style="margin-top:40px">
+            <div>
+                <span><i>*</i>报备类型:</span>
+                <select name="repType" id="">
+                    <option value="">请选择</option>
+                    <option value="1">单位</option>
+                    <option value="2">类型</option>
+                    <option value="3">设备</option>
+                </select>
+            </div>
+
+            <div class="select1 select2 select3">
+                <span><i>*</i>设备类型:</span>
+                <select name="deviceType" id="">
+                        <option value="">请选择</option>
+                        <option value="1">火系统</option>
+                        <option value="2">水系统</option>
+                        <option value="3">烟感系统</option>
+                        <option value="4">消防栓</option>
+                        <option value="5">液位</option>
+                        <option value="6">RTU</option>
+                        <option value="7">电气火灾</option>
+                        <option value="16">视频监控</option>
+                        <option value="128">井盖</option>
+                        <option value="131">可燃气体</option>
+                        <option value="130">门禁监测</option>
+                        <option value="129">地磁监测</option>
+                        <option value="17">电梯监测</option>
+                    </select>
+            </div>
+
+            <div class="select1">
+                <span><i>*</i>开始时间:</span>
+                <input type="text" class="span2" value="" id="checkIn" placeHolder="请选择开始时间">
+            </div>
+            <div class="select1">
+                <span><i>*</i>结束时间:</span>
+                <input type="text" class="span2" value="" id="dpd2" placeHolder="请选择结束时间">
+            </div>
+            <div class="select1">
+                <span><i> </i>备注:</span>
+                <input type="text" name="remarks">
+            </div>
+            <div class="select6">
+                <span><i>*</i>端口号:</span>
+                <input type="text" name="portId">
+            </div>
+
+            <div class="select6">
+                <span><i>*</i>端口类型:</span>
+                <select name="portType">
+                        <option value="">请选择</option>
+                        <option value="1">数字量</option>
+                        <option value="2">模拟量</option>
+                    </select>
+            </div>
+
+            <div class="selectOther">
+                <span><i>*</i>设备编号:</span>
+                <select name="deviceType" id="">
+                        <option value="">请选择</option>
+                        <option value="1">数字量</option>
+                        <option value="2">模拟量</option>
+                    </select>
+            </div>
+
+
+
+            <a class="submit-btn">提交</a>
+
+        </form>
+    </div>
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+
+    <!-- 日期组件 -->
+    <script src="plugins/datePicker/js/foundation-datepicker.js"></script>
+    <script src="plugins/datePicker/js/locales/foundation-datepicker.zh-CN.js"></script>
+    <script>
+        var nowTemp = new Date();
+        var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
+
+        var checkin = $('#checkIn').fdatepicker({
+            format: 'yyyy-mm-dd hh:ii:ss',
+            pickTime: true,
+            onRender: function(date) {
+                return date.valueOf() < now.valueOf() ? 'disabled' : '';
+            }
+        }).data('datepicker');
+
+        var checkout = $('#dpd2').fdatepicker({
+            format: 'yyyy-mm-dd hh:ii:ss',
+            pickTime: true,
+            onRender: function(date) {
+                return date.valueOf() <= checkin.date.valueOf() ? 'disabled' : '';
+            }
+        }).data('datepicker');
+    </script>
+    <!-- 日期组件end -->
+
+
+    <script>
+        // 下拉逻辑联动start
+        $('.select1,.select2,.select3,.select6,.selectOther').css('display', 'none')
+        $('select[name=repType]').change(function() {
+            if ($('select[name=repType]').val() == 1) {
+                $('.select1').show()
+                $('.select2,.select3,.select6,.selectOther').hide()
+            } else if ($('select[name=repType]').val() == 2) {
+                $('.select2,.select3,.select1').css('display', 'block')
+                $('.select6,.selectOther').hide()
+            } else if ($('select[name=repType]').val() == 3) {
+                $('.select2,.select3,.select1').css('display', 'block')
+                if ($('select[name=deviceType]').val()) {
+                    if ($('select[name=deviceType]').val() == 6) {
+                        $('.select6').show()
+                        $('.selectOther').hide()
+                    } else {
+                        $('.selectOther').show()
+                        $('.select6').hide()
+                    }
+                } else {
+                    $('.select6,.selectOther').hide()
+                }
+            } else {
+                $('.select1,.select2,.select3,.select6,.selectOther').css('display', 'none')
+            }
+        })
+
+        $('select[name=deviceType]').change(function() {
+                if ($('select[name=deviceType]').val()) {
+                    if ($('select[name=repType]').val() == 3) {
+                        if ($('select[name=deviceType]').val()) {
+                            if ($('select[name=deviceType]').val() == 6) {
+                                $('.select6').show()
+                                $('.selectOther').hide()
+                            } else {
+                                $('.selectOther').show()
+                                $('.select6').hide()
+                            }
+                        } else {
+                            $('.select6,.selectOther').hide()
+                        }
+                    }
+                } else {
+                    $('.select6,.selectOther').css('display', 'none')
+                }
+            })
+            // 下拉逻辑联动end
+
+
+        // 表单提交start
+        $('.submit-btn').click(function() {
+                alert('请求接口,提交表单')
+            })
+            // 表单提交end
+    </script>
+</body>
+
+</html>

+ 356 - 0
funcReport.html

@@ -0,0 +1,356 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>功能报备</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+
+
+    <!-- 日期组件 -->
+    <link href="plugins/datePicker/css/foundation.min.css" rel="stylesheet" type="text/css">
+    <link href="plugins/datePicker/css/foundation-datepicker.css" rel="stylesheet" type="text/css">
+    <style>
+        .filterSection .dataPciker input[type="text"] {
+            width: 47.2%;
+            display: inline-block;
+            margin-bottom: 0
+        }
+    </style>
+    <!-- 日期组件end -->
+
+    <link rel="stylesheet" href="css/common.css" />
+
+    <meta name="viewport" content="width=375, user-scalable=no" />
+    <style>
+        .desBox {
+            width: 80%
+        }
+        
+        .device-item p {
+            margin-bottom: 0
+        }
+    </style>
+</head>
+
+<body>
+    <div class="page-wrapper">
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                功能报备
+            </div>
+            <div class="filterSection">
+                <div class="dataPciker">
+                    <input type="text" class="span2" value="" id="checkIn" placeHolder="请选择开始时间"> ~
+                    <input type="text" class="span2" value="" id="checkOut" placeHolder="请选择结束时间">
+                    <!-- <span class="search">查询</span> -->
+                </div>
+                <!-- <input type="text" placeholder="请选择名称"> -->
+
+            </div>
+        </div>
+
+
+        <div class="device-list parent">
+            <div class="noResult">
+                <p>暂无查询结果...</p>
+            </div>
+            <p class="refreshText"></p>
+            <ul id="content-box">
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt="" w></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/funcIcon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试用传装置(报备内容)</p>
+                        <p>三楼茶水间(备注)</p>
+                        <p>2020-01-08 15:15:08</p>
+                    </div>
+                    <div class="arrowRight"><img src="image/right-icon.png" alt=""></div>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='funcAdd.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+            </ul>
+            <a href="funcAdd.html"><img class="plus" src="image/plus-icon.png" alt=""></a>
+        </div>
+
+    </div>
+
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+
+    <!-- 日期组件 -->
+    <script src="plugins/datePicker/js/foundation-datepicker.js"></script>
+    <script src="plugins/datePicker/js/locales/foundation-datepicker.zh-CN.js"></script>
+    <script>
+        var nowTemp = new Date();
+        var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
+
+        var checkin = $('#checkIn').fdatepicker({}).on('changeDate', function(ev) {
+            if (ev.date.valueOf() > checkout.date.valueOf()) {
+                var newDate = new Date(ev.date)
+                newDate.setDate(newDate.getDate() + 1);
+                checkout.update(newDate);
+            }
+            checkin.hide();
+            $('#checkOut')[0].focus();
+        }).data('datepicker');
+
+
+        var checkout = $('#checkOut').fdatepicker({
+            isInput: function() {
+
+                alert(1)
+            },
+            onRender: function(date) {
+                return date.valueOf() <= checkin.date.valueOf() ? 'disabled' : '';
+            }
+        }).on('changeDate', function(ev) {
+            checkout.hide();
+
+
+            alert('日期筛选请求')
+        }).data('datepicker');
+
+        // $("#checkOut").focus(function() {
+        //     if (!$('#checkIn').val()) {
+
+        //         return
+        //     }
+        // });
+    </script>
+    <!-- 日期组件end -->
+
+    <script>
+        // 手机长按事件
+        var timeOutEvent = 0;
+        var _this;
+        $(function() {
+            $(".desBox").on({
+                touchstart: function(e) {
+                    _this = $(this)
+                    timeOutEvent = setTimeout("longPress()", 500);
+                    //e.preventDefault();
+
+
+                },
+                touchmove: function() {
+                    clearTimeout(timeOutEvent);
+                    timeOutEvent = 0;
+                    //document.removeEventListener('touchstart', this.preventDefault, false);
+                },
+                touchend: function() {
+                    clearTimeout(timeOutEvent);
+                    if (timeOutEvent != 0) {
+                        // alert("你这是点击,不是长按");
+                    }
+                    return false;
+                }
+            })
+        });
+
+        function longPress() {
+            timeOutEvent = 0;
+            // alert("长按事件触发发");
+            _this.parent().find('.operate-box').show().parent().siblings().find('.operate-box').hide();
+
+
+        }
+
+        //点击修改页面跳转;
+        $(".device-item").on("touchend", ".opera-edit", function() {
+            // alert("子元素点击");
+            window.location.href = "funcAdd.html";
+        })
+        $(".device-item").on("touchend", ".opera-delete", function() {
+            // alert("子元素点击");
+            $(this).parent().parent().parent().remove();
+        })
+
+        // 点击除按钮和弹框之外任意地方隐藏表情
+        $("body").click(function(e) {
+            if ($('.operate-box').is(':visible')) {
+                if (!$(e.target).closest(".operate-box").length) {
+                    // alert(1);
+                    $(".operate-box").hide();
+                }
+            }
+        });
+    </script>
+
+
+</body>
+
+</html>

BIN
image/arrow.png


BIN
image/auth-icon.jpg


BIN
image/call.png


BIN
image/device-icon.png


BIN
image/funcIcon.png


BIN
image/left-icon.png



BIN
image/plus-icon.png


BIN
image/right-icon.png


BIN
image/site-icon.png


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
js/jquery-2.2.2.min.js


+ 140 - 0
js/layout.js

@@ -0,0 +1,140 @@
+var adaptUILayout = (function() {
+    //根据校正appVersion或userAgent校正屏幕分辨率宽度值
+    var regulateScreen = (function() {
+        var cache = {};
+        //默认尺寸
+        var defSize = {
+            width: window.screen.width,
+            height: window.screen.height
+        };
+        var ver = window.navigator.appVersion;
+        var _ = null;
+        var check = function(key) {
+            return key.constructor == String ? ver.indexOf(key) > -1 : ver.test(key);
+        };
+
+        var add = function(name, key, size) {
+            if (name && key)
+                cache[name] = {
+                    key: key,
+                    size: size
+                };
+        };
+
+        var del = function(name) {
+            if (cache[name])
+                delete cache[name];
+        };
+
+        var cal = function() {
+            if (_ != null)
+                return _;
+            for (var name in cache) {
+                if (check(cache[name].key)) {
+                    _ = cache[name].size;
+                    break;
+                }
+            }
+            if (_ == null)
+                _ = defSize;
+            return _;
+        };
+
+        return {
+            add: add,
+            del: del,
+            cal: cal
+        };
+    })();
+
+    //实现缩放
+    var adapt = function(uiWidth) {
+        var
+            deviceWidth,
+            devicePixelRatio,
+            targetDensitydpi,
+            //meta,
+            initialContent,
+            head,
+            viewport,
+            ua;
+
+        ua = navigator.userAgent.toLowerCase();
+        //whether it is the iPhone or iPad
+        isiOS = ua.indexOf('ipad') > -1 || ua.indexOf('iphone') > -1;
+
+        //获取设备信息,并矫正参数值
+        devicePixelRatio = window.devicePixelRatio;
+        deviceWidth = regulateScreen.cal().width;
+
+        //获取最终dpi
+        targetDensitydpi = uiWidth / deviceWidth * devicePixelRatio * 160;
+
+        //use viewport width attribute on the iPhone or iPad device
+        //use viewport target-densitydpi attribute on the Android device
+        initialContent = isiOS ?
+            'width=' + uiWidth + ', user-scalable=no' :
+            'target-densitydpi=' + targetDensitydpi + ', width=' + uiWidth + ', user-scalable=no';
+
+        //add a new meta node of viewport in head node
+        head = document.getElementsByTagName('head');
+        viewport = document.createElement('meta');
+        viewport.name = 'viewport';
+        viewport.content = initialContent;
+        head.length > 0 && head[head.length - 1].appendChild(viewport);
+    };
+    return {
+        regulateScreen: regulateScreen,
+        adapt: adapt
+    };
+})();
+/*
+ *375为当期页面指定的统一分辨率,其他分辨率下均为此分辨率的放缩变化
+ */
+adaptUILayout.adapt(375);
+
+
+//rem初始化代码
+
+/*function adapt(designWidth, rem2px){
+  var d = window.document.createElement('div');
+  d.style.width = '1rem';
+  d.style.display = "none";
+  var head = window.document.getElementsByTagName('head')[0];
+  head.appendChild(d);
+  var defaultFontSize = parseFloat(window.getComputedStyle(d, null).getPropertyValue('width'));
+  d.remove();
+  document.documentElement.style.fontSize = window.innerWidth / designWidth * rem2px / defaultFontSize * 100 + '%';
+  var st = document.createElement('style');
+  var portrait = "@media screen and (min-width: "+window.innerWidth+"px) {html{font-size:"+ ((window.innerWidth/(designWidth/rem2px)/defaultFontSize)*100) +"%;}}";
+  var landscape = "@media screen and (min-width: "+window.innerHeight+"px) {html{font-size:"+ ((window.innerHeight/(designWidth/rem2px)/defaultFontSize)*100) +"%;}}"
+  st.innerHTML = portrait + landscape;
+  head.appendChild(st);
+  return defaultFontSize
+};
+var defaultFontSize = adapt(640, 100);
+*/
+
+//H5翻转屏幕事件
+/*function orientationChange() {
+    switch(window.orientation) {
+      case 0:
+            alert("肖像模式 0,screen-width: " + screen.width + "; screen-height:" + screen.height);
+            break;
+      case -90:
+            alert("左旋 -90,screen-width: " + screen.width + "; screen-height:" + screen.height);
+            break;
+      case 90:   
+            alert("右旋 90,screen-width: " + screen.width + "; screen-height:" + screen.height);
+            break;
+      case 180:
+          alert("风景模式 180,screen-width: " + screen.width + "; screen-height:" + screen.height);
+          break;
+    };
+};
+// 添加事件监听
+addEventListener('load', function(){
+    orientationChange();
+    window.onorientationchange = orientationChange;
+});
+*/

+ 186 - 0
js/select.js

@@ -0,0 +1,186 @@
+var legp = function(ele) {
+    return ({
+        that: Array.prototype.slice.call(document.querySelectorAll(ele), 0),
+        stopPropagation: function(e) {
+            e = e || window.event;
+            if (e.stopPropagation) { //W3C阻止冒泡方法  
+                e.stopPropagation();
+            } else {
+                e.cancelBubble = true; //IE阻止冒泡方法  
+            }
+        },
+        hide: function() {
+            legp(ele).that.forEach(function(item) {
+                item.style.cssText += "display:none;";
+            });
+        },
+        show: function() {
+            legp(ele).that.forEach(function(item) {
+                item.style.cssText += "display:block;";
+            });
+        },
+        legp_searchList: function(name) {
+            let arr = [];
+            legp("input[name=" + name + "]").that.forEach(item => {
+                arr.push(item.value)
+            });
+            return arr;
+        },
+        legp_search: function(name, tagData) {
+            var domId = legp(ele).that[0];
+            var html = "\n<div>\n<div class=\"selectId\">\n<input type=\"text\" placeholder=\"\u8F93\u5165\u6216\u9009\u62E9\" autocomplete=\"off\">\n<dl style=\"display: none;\">\n</dl>\n</div>\n</div>\n<div>\n<label style=\"line-height:30px\">已选择:</label>\n<div class=\"AD\">\n</div>\n</div>";
+            domId.innerHTML = html;
+            // domId.appendChild(dom);
+            legp(".AD").that[0].parentNode.style.cssText += "display:none;";
+            //获取当前广告
+            function myClick() {
+                legp(".selectId dl dd").that.forEach(function(item) {
+                    item.onclick = function(e) {
+                        var id = this.attributes.value.value;
+                        if (id != '') {
+                            legp(".AD").that[0].innerHTML += "<a href=\"javascript:;\" class=\"label\"><span>" + this.innerHTML + "</span><input type=\"hidden\" name=\"" + name + "\" id=\"" + id + "\" value=\"" + id + "\"/><span class=\"close\">x</span></a>";
+                            legp(".AD").that[0].parentNode.style.cssText += "display:block;";
+                            for (var i = 0; i < tagData.length; i++) {
+                                if (tagData[i].id == id) {
+                                    tagData.splice(i, 1);
+                                    i = tagData.length;
+                                }
+                            }
+                            removeAdvertising();
+                        }
+                        legp(".selectId dl").hide();
+                        legp(".selectId input").that[0].value = '';
+                        e.stopPropagation();
+                    };
+                });
+            }
+            var ddRemove = function(dd) {
+                var temp = dd.nextElementSibling;
+                dd.remove();
+                if (temp != null && temp.nodeName == 'DD') {
+                    ddRemove(temp);
+                }
+            };
+            //筛选
+            legp(".selectId input").that[0].oninput = function() {
+                var val = this.value; //获取input值
+                var dd = legp(".selectId dl dd").that[0];
+                if (dd == "DD") {
+                    ddRemove(dd);
+                }
+                legp(".selectId dl").hide();
+                if (tagData.length > 0) {
+                    legp(".selectId dl").show();
+                    var sear_1 = new RegExp(val);
+                    var judge_1 = false;
+                    legp(".selectId dl").that[0].innerHTML = "";
+                    tagData.forEach(function(item) {
+                        if (sear_1.test(item.name)) {
+                            judge_1 = true;
+                            legp(".selectId dl").that[0].innerHTML += "<dd value=\"" + item.id + "\">" + item.name + "</dd>";
+                        }
+                    });
+                    if (!judge_1) {
+                        legp(".selectId dl").that[0].innerHTML = "<dd>\u6682\u65E0\u6570\u636E</dd>";
+                    }
+                    myClick();
+                }
+            };
+            //显示没被选择的
+            legp(".selectId input").that[0].onclick = function(e) {
+                var dd = legp(".selectId dl dd").that[0];
+                if (dd == "DD") {
+                    ddRemove(dd);
+                }
+                if (tagData.length == 0) {
+                    this.innerHTML = "暂无数据";
+                } else {
+                    legp(".selectId dl").show();
+                }
+                legp(".selectId dl").that[0].innerHTML = "";
+                tagData.sort(function(a, b) {
+                    return a.id - b.id;
+                });
+                tagData.forEach(function(item) {
+                    legp(".selectId dl").that[0].innerHTML += "<dd value=\"" + item.id + "\">" + item.name + "</dd>";
+                });
+                myClick();
+                e.stopPropagation();
+            };
+            var AD = /** @class */ (function() {
+                function AD(name, id) {
+                    this.name = name;
+                    this.id = id;
+                }
+                return AD;
+            }());
+            //删除当前广告
+            function removeAdvertising() {
+                legp(".close").that.forEach(function(item) {
+                    item.onclick = function() {
+                        ddRemove(this.parentNode);
+                        var id = this.parentNode.children[1].id;
+                        var text = this.parentNode.children[0].innerHTML;
+                        tagData.push(new AD(text, id));
+                        if (legp(".close").that.length == 0) {
+                            legp(".AD").that[0].parentNode.style.cssText += "display:none;";
+                        }
+                    };
+                });
+            }
+            // //封装
+            // function clickoutSide(nameClass, callback) {
+            // 	// 全局注册点击事件
+            // 	document.onclick = function (e) {
+            // 		//若点击元素为目标元素则返回
+            // 		if (e.target.className === nameClass) return
+            // 		//否则执行回调函数
+            // 		callback()
+            // 	}
+            // }
+            //隐藏
+            document.onclick = function(e) {
+                legp(".selectId dl").hide();
+                legp(".selectId input").that[0].value = "";
+            };
+        }
+    });
+};
+(function() {
+    var tagData = [{
+        "name": "站点1",
+        "id": 64
+    }, {
+        "name": "站点2",
+        "id": 65
+    }, {
+        "name": "站点3",
+        "id": 5
+    }, {
+        "name": "站点4",
+        "id": 6
+    }, {
+        "name": "站点5",
+        "id": 7
+    }, {
+        "name": "站点6",
+        "id": 8
+    }, {
+        "name": "站点7",
+        "id": 10
+    }, {
+        "name": "站点8",
+        "id": 111
+    }, {
+        "name": "站点9",
+        "id": 112
+    }, {
+        "name": "站点10",
+        "id": 113
+    }];
+
+
+    legp(".qwe").legp_search("fileId", tagData)
+
+
+})()

Разница между файлами не показана из-за своего большого размера
+ 3 - 0
plugins/datePicker/css/date-font.css


+ 64 - 0
plugins/datePicker/css/example.css

@@ -0,0 +1,64 @@
+body {
+    padding-bottom: 40px
+}
+h1 {
+	color:#fff;
+	font-size:38px;
+	font-weight:300;
+	margin:12px 0px;
+}
+h2 {
+	font-size:27px;
+	color:#aaa;
+}
+ol.linenums {
+    list-style-position: outside!important;
+    font-size: 14px!important;
+    list-style-type: decimal!important;
+    background: #fff!important
+}
+ol.linenums li {
+    list-style-type: decimal!important;
+    width: 500px
+}
+#dp-margin {
+    margin: 50px 0
+}
+pre.prettyprint {
+    border: 1px solid #ccc;
+    border-left: 5px solid #2ba6cb;
+    width: auto;
+    background: #fff!important;
+    padding: 5px 20px;
+    text-shadow: 0 1px 0 #fff
+}
+pre.prettyprint ol li {
+    white-space: pre-wrap;
+    word-break: break-all;
+    word-wrap: break-word
+}
+#sidebar-wrap a {
+    color: #000;
+    text-decoration: underline;
+}
+#sidebar-wrap ul {
+    margin-left: 20px
+}
+input[disabled],
+select[disabled],
+textarea[disabled],
+input[readonly],
+select[readonly],
+textarea[readonly] {
+    cursor: not-allowed;
+    background-color: #eee
+}
+[data-magellan-expedition] {
+    background:#000 !important;
+
+    
+}
+[data-magellan-expedition] a {
+    color:#fff !important;
+    text-align:left;
+}

+ 146 - 0
plugins/datePicker/css/foundation-datepicker.css

@@ -0,0 +1,146 @@
+.datepicker {
+  display: none;
+  position: absolute;
+  padding: 4px;
+  margin-top: 1px;
+  direction: ltr; }
+  .datepicker.dropdown-menu {
+    position: absolute;
+    top: 100%;
+    left: 0;
+    z-index: 1000;
+    float: left;
+    display: none;
+    min-width: 160px;
+    list-style: none;
+    background-color: #fff;
+    border: 1px solid rgba(0, 0, 0, 0.2);
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+    border-radius: 5px;
+    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
+    -webkit-background-clip: padding-box;
+    -moz-background-clip: padding;
+    background-clip: padding-box;
+    *border-right-width: 2px;
+    *border-bottom-width: 2px;
+    color: #333;
+    font-size: 13px;
+    line-height: 18px; }
+    .datepicker.dropdown-menu th {
+      padding: 4px 5px; }
+    .datepicker.dropdown-menu td {
+      padding: 4px 5px; }
+  .datepicker table {
+    border: 0;
+    margin: 0;
+    width: auto; }
+    .datepicker table tr td span {
+      display: block;
+      width: 23%;
+      height: 54px;
+      line-height: 54px;
+      float: left;
+      margin: 1%;
+      cursor: pointer; }
+  .datepicker td {
+    text-align: center;
+    width: 20px;
+    height: 20px;
+    border: 0;
+    font-size: 12px;
+    padding: 4px 8px;
+    background: #fff;
+    cursor: pointer; }
+    .datepicker td.active.day, .datepicker td.active.year {
+      background: #2ba6cb; }
+    .datepicker td.old, .datepicker td.new {
+      color: #999; }
+    .datepicker td span.active {
+      background: #2ba6cb; }
+    .datepicker td.day.disabled {
+      color: #eee; }
+  .datepicker th {
+    text-align: center;
+    width: 20px;
+    height: 20px;
+    border: 0;
+    font-size: 12px;
+    padding: 4px 8px;
+    background: #fff;
+    cursor: pointer; }
+    .datepicker th.active.day, .datepicker th.active.year {
+      background: #2ba6cb; }
+    .datepicker th.date-switch {
+      width: 145px; }
+    .datepicker th span.active {
+      background: #2ba6cb; }
+  .datepicker .cw {
+    font-size: 10px;
+    width: 12px;
+    padding: 0 2px 0 5px;
+    vertical-align: middle; }
+  .datepicker.days div.datepicker-days {
+    display: block; }
+  .datepicker.months div.datepicker-months {
+    display: block; }
+  .datepicker.years div.datepicker-years {
+    display: block; }
+  .datepicker thead tr:first-child th {
+    cursor: pointer; }
+    .datepicker thead tr:first-child th.cw {
+      cursor: default;
+      background-color: transparent; }
+  .datepicker tfoot tr:first-child th {
+    cursor: pointer; }
+
+.datepicker-inline {
+  width: 220px; }
+
+.datepicker-rtl {
+  direction: rtl; }
+  .datepicker-rtl table tr td span {
+    float: right; }
+
+.datepicker-dropdown {
+  top: 0;
+  left: 0; }
+  .datepicker-dropdown:before {
+    content: '';
+    display: inline-block;
+    border-left: 7px solid transparent;
+    border-right: 7px solid transparent;
+    border-bottom: 7px solid #ccc;
+    border-bottom-color: 1px solid rgba(0, 0, 0, 0.2);
+    position: absolute;
+    top: -7px;
+    left: 6px; }
+  .datepicker-dropdown:after {
+    content: '';
+    display: inline-block;
+    border-left: 6px solid transparent;
+    border-right: 6px solid transparent;
+    border-bottom: 6px solid #fff;
+    position: absolute;
+    top: -6px;
+    left: 7px; }
+
+.datepicker > div,
+.datepicker-dropdown::before,
+.datepicker-dropdown::after {
+  display: none; }
+
+.datepicker-close {
+  position: absolute;
+  top: -30px;
+  right: 0;
+  width: 15px;
+  height: 30px;
+  padding: 0;
+  display: none; }
+
+.table-striped .datepicker table tr td,
+.table-striped .datepicker table tr th {
+  background-color: transparent; }

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
plugins/datePicker/css/foundation-datepicker.min.css


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
plugins/datePicker/css/foundation.min.css


+ 90 - 0
plugins/datePicker/index.html

@@ -0,0 +1,90 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>Datepicker日期选择器插件 | jQuery日历</title>
+    <!-- <link rel="stylesheet" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css"> -->
+    <link href="css/foundation.min.css" rel="stylesheet" type="text/css">
+    <link href="css/foundation-datepicker.css" rel="stylesheet" type="text/css">
+    <style>
+        .container {
+            margin: 0 auto;
+            max-width: 960px;
+            padding: 20px;
+        }
+    </style>
+</head>
+
+<body>
+    <div class="container">
+        <h1>Datepicker日期选择器插件</h1>
+        <h2>Datepicker</h2>
+        <input type="text" value="" id="demo-1">
+        <h2>With timepicker</h2>
+        <input type="text" value="" id="demo-2">
+        <h2>Month picker</h2>
+        <div class="row collapse date" id="demo-3" data-date="07/2015" data-format="mm/yyyy" data-start-view="year" data-min-view="year">
+            <div class="small-2 columns"> <span class="prefix"><i class="fa fa-calendar"></i></span> </div>
+            <div class="small-10 columns">
+                <input size="16" type="text" value="07/2015" readonly>
+            </div>
+        </div>
+        <h2>Dependent datepicker</h2>
+        <input type="text" class="span2" value="" id="dpd1">
+        <input type="text" class="span2" value="" id="dpd2">
+        <!-- <table class="table">
+            <thead>
+                <tr>
+                    <th>Check in:
+                        <input type="text" class="span2" value="" id="dpd1">
+                    </th>
+                    <th>Check out:
+                        <input type="text" class="span2" value="" id="dpd2">
+                    </th>
+                </tr>
+            </thead>
+        </table> -->
+    </div>
+
+    <script src="js/jquery-1.11.3.min.js"></script>
+    <script src="js/foundation-datepicker.js"></script>
+    <script src="js/locales/foundation-datepicker.zh-CN.js"></script>
+    <script>
+        $('#demo-1').fdatepicker();
+
+
+
+        $('#demo-2').fdatepicker({
+            format: 'yyyy-mm-dd hh:ii',
+            pickTime: true
+        });
+        $('#demo-3').fdatepicker();
+
+        var nowTemp = new Date();
+        var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
+
+
+        var checkin = $('#dpd1').fdatepicker({
+            format: 'yyyy-mm-dd hh:ii:ss',
+            pickTime: true,
+            onRender: function(date) {
+                return date.valueOf() < now.valueOf() ? 'disabled' : '';
+            }
+        }).data('datepicker');
+
+
+        var checkout = $('#dpd2').fdatepicker({
+
+            onRender: function(date) {
+                return date.valueOf() <= checkin.date.valueOf() ? 'disabled' : '';
+            }
+        }).on('changeDate', function(ev) {
+            checkout.hide();
+        }).data('datepicker');
+    </script>
+</body>
+
+</html>

+ 1355 - 0
plugins/datePicker/js/foundation-datepicker.js

@@ -0,0 +1,1355 @@
+/* =========================================================
+ * foundation-datepicker.js
+ * Copyright 2015 Peter Beno, najlepsiwebdesigner@gmail.com, @benopeter
+ * project website http://foundation-datepicker.peterbeno.com
+ * ========================================================= */
+! function($) {
+
+    function UTCDate() {
+        return new Date(Date.UTC.apply(Date, arguments));
+    }
+
+    function UTCToday() {
+        var today = new Date();
+        return UTCDate(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate());
+    }
+
+    var Datepicker = function(element, options) {
+        var that = this;
+
+        this.element = $(element);
+        this.autoShow = options.autoShow || true;
+        this.appendTo = options.appendTo || 'body';
+        this.closeButton = options.closeButton;
+        this.language = options.language || this.element.data('date-language') || "en";
+        this.language = this.language in dates ? this.language : this.language.split('-')[0]; //Check if "de-DE" style date is available, if not language should fallback to 2 letter code eg "de"
+        this.language = this.language in dates ? this.language : "en";
+        this.isRTL = dates[this.language].rtl || false;
+        this.format = DPGlobal.parseFormat(options.format || this.element.data('date-format') || dates[this.language].format || 'yyyy-mm-dd');
+        this.isInline = false;
+        this.isInput = this.element.is('input');
+        this.component = this.element.is('.date') ? this.element.find('.prefix, .postfix') : false;
+        this.hasInput = this.component && this.element.find('input').length;
+        this.disableDblClickSelection = options.disableDblClickSelection;
+        this.onRender = options.onRender || function() {};
+        if (this.component && this.component.length === 0) {
+            this.component = false;
+        }
+        this.linkField = options.linkField || this.element.data('link-field') || false;
+        this.linkFormat = DPGlobal.parseFormat(options.linkFormat || this.element.data('link-format') || 'yyyy-mm-dd hh:ii:ss');
+        this.minuteStep = options.minuteStep || this.element.data('minute-step') || 5;
+        this.pickerPosition = options.pickerPosition || this.element.data('picker-position') || 'bottom-right';
+        this.initialDate = options.initialDate || null;
+
+        this._attachEvents();
+
+
+        this.minView = 0;
+        if ('minView' in options) {
+            this.minView = options.minView;
+        } else if ('minView' in this.element.data()) {
+            this.minView = this.element.data('min-view');
+        }
+        this.minView = DPGlobal.convertViewMode(this.minView);
+
+        this.maxView = DPGlobal.modes.length - 1;
+        if ('maxView' in options) {
+            this.maxView = options.maxView;
+        } else if ('maxView' in this.element.data()) {
+            this.maxView = this.element.data('max-view');
+        }
+        this.maxView = DPGlobal.convertViewMode(this.maxView);
+
+        this.startViewMode = 'month';
+        if ('startView' in options) {
+            this.startViewMode = options.startView;
+        } else if ('startView' in this.element.data()) {
+            this.startViewMode = this.element.data('start-view');
+        }
+        this.startViewMode = DPGlobal.convertViewMode(this.startViewMode);
+        this.viewMode = this.startViewMode;
+
+        if (!('minView' in options) && !('maxView' in options) && !(this.element.data('min-view') && !(this.element.data('max-view')))) {
+            this.pickTime = false;
+            if ('pickTime' in options) {
+                this.pickTime = options.pickTime;
+            }
+            if (this.pickTime == true) {
+                this.minView = 0;
+                this.maxView = 4;
+            } else {
+                this.minView = 2;
+                this.maxView = 4;
+            }
+        }
+
+        this.forceParse = true;
+        if ('forceParse' in options) {
+            this.forceParse = options.forceParse;
+        } else if ('dateForceParse' in this.element.data()) {
+            this.forceParse = this.element.data('date-force-parse');
+        }
+
+
+        this.picker = $(DPGlobal.template)
+            .appendTo(this.isInline ? this.element : this.appendTo)
+            .on({
+                click: $.proxy(this.click, this),
+                mousedown: $.proxy(this.mousedown, this)
+            });
+        if (this.closeButton) {
+            this.picker.find('a.datepicker-close').show();
+        } else {
+            this.picker.find('a.datepicker-close').hide();
+        }
+
+        if (this.isInline) {
+            this.picker.addClass('datepicker-inline');
+        } else {
+            this.picker.addClass('datepicker-dropdown dropdown-menu');
+        }
+        if (this.isRTL) {
+            this.picker.addClass('datepicker-rtl');
+            this.picker.find('.prev i, .next i')
+                .toggleClass('fa-chevron-left fa-chevron-right');
+        }
+        $(document).on('mousedown', function(e) {
+            // Clicked outside the datepicker, hide it
+            if ($(e.target).closest('.datepicker.datepicker-inline, .datepicker.datepicker-dropdown').length === 0) {
+                that.hide();
+            }
+        });
+
+        this.autoclose = true;
+        if ('autoclose' in options) {
+            this.autoclose = options.autoclose;
+        } else if ('dateAutoclose' in this.element.data()) {
+            this.autoclose = this.element.data('date-autoclose');
+        }
+
+        this.keyboardNavigation = true;
+        if ('keyboardNavigation' in options) {
+            this.keyboardNavigation = options.keyboardNavigation;
+        } else if ('dateKeyboardNavigation' in this.element.data()) {
+            this.keyboardNavigation = this.element.data('date-keyboard-navigation');
+        }
+
+        this.todayBtn = (options.todayBtn || this.element.data('date-today-btn') || false);
+        this.todayHighlight = (options.todayHighlight || this.element.data('date-today-highlight') || false);
+
+        this.calendarWeeks = false;
+        if ('calendarWeeks' in options) {
+            this.calendarWeeks = options.calendarWeeks;
+        } else if ('dateCalendarWeeks' in this.element.data()) {
+            this.calendarWeeks = this.element.data('date-calendar-weeks');
+        }
+        if (this.calendarWeeks)
+            this.picker.find('tfoot th.today')
+            .attr('colspan', function(i, val) {
+                return parseInt(val) + 1;
+            });
+
+        this.weekStart = ((options.weekStart || this.element.data('date-weekstart') || dates[this.language].weekStart || 0) % 7);
+        this.weekEnd = ((this.weekStart + 6) % 7);
+        this.startDate = -Infinity;
+        this.endDate = Infinity;
+        this.daysOfWeekDisabled = [];
+        this.setStartDate(options.startDate || this.element.data('date-startdate'));
+        this.setEndDate(options.endDate || this.element.data('date-enddate'));
+        this.setDaysOfWeekDisabled(options.daysOfWeekDisabled || this.element.data('date-days-of-week-disabled'));
+
+        this.fillDow();
+        this.fillMonths();
+        this.update();
+
+        this.showMode();
+
+        if (this.isInline) {
+            this.show();
+        }
+    };
+
+    Datepicker.prototype = {
+        constructor: Datepicker,
+
+        _events: [],
+        _attachEvents: function() {
+            this._detachEvents();
+            if (this.isInput) { // single input
+                this._events = [
+                    [this.element, {
+                        focus: (this.autoShow) ? $.proxy(this.show, this) : function() {},
+                        keyup: $.proxy(this.update, this),
+                        keydown: $.proxy(this.keydown, this)
+                    }]
+                ];
+            } else if (this.component && this.hasInput) { // component: input + button
+                this._events = [
+                    // For components that are not readonly, allow keyboard nav
+                    [this.element.find('input'), {
+                        focus: (this.autoShow) ? $.proxy(this.show, this) : function() {},
+                        keyup: $.proxy(this.update, this),
+                        keydown: $.proxy(this.keydown, this)
+                    }],
+                    [this.component, {
+                        click: $.proxy(this.show, this)
+                    }]
+                ];
+            } else if (this.element.is('div')) { // inline datepicker
+                this.isInline = true;
+            } else {
+                this._events = [
+                    [this.element, {
+                        click: $.proxy(this.show, this)
+                    }]
+                ];
+            }
+
+            if (this.disableDblClickSelection) {
+                this._events[this._events.length] = [
+                    this.element, {
+                        dblclick: function(e) {
+                            e.preventDefault();
+                            e.stopPropagation();
+                            $(this).blur()
+                        }
+                    }
+                ];
+            }
+
+            for (var i = 0, el, ev; i < this._events.length; i++) {
+                el = this._events[i][0];
+                ev = this._events[i][1];
+                el.on(ev);
+            }
+        },
+        _detachEvents: function() {
+            for (var i = 0, el, ev; i < this._events.length; i++) {
+                el = this._events[i][0];
+                ev = this._events[i][1];
+                el.off(ev);
+            }
+            this._events = [];
+        },
+
+        show: function(e) {
+            this.picker.show();
+            this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
+            this.update();
+            this.place();
+            $(window).on('resize', $.proxy(this.place, this));
+            if (e) {
+                e.stopPropagation();
+                e.preventDefault();
+            }
+            this.element.trigger({
+                type: 'show',
+                date: this.date
+            });
+        },
+
+        hide: function(e) {
+            if (this.isInline) return;
+            if (!this.picker.is(':visible')) return;
+            this.picker.hide();
+            $(window).off('resize', this.place);
+            this.viewMode = this.startViewMode;
+            this.showMode();
+            if (!this.isInput) {
+                $(document).off('mousedown', this.hide);
+            }
+
+            if (
+                this.forceParse &&
+                (
+                    this.isInput && this.element.val() ||
+                    this.hasInput && this.element.find('input').val()
+                )
+            )
+                this.setValue();
+            this.element.trigger({
+                type: 'hide',
+                date: this.date
+            });
+        },
+
+        remove: function() {
+            this._detachEvents();
+            this.picker.remove();
+            delete this.element.data().datepicker;
+        },
+
+        getDate: function() {
+            var d = this.getUTCDate();
+            return new Date(d.getTime() + (d.getTimezoneOffset() * 60000));
+        },
+
+        getUTCDate: function() {
+            return this.date;
+        },
+
+        setDate: function(d) {
+            this.setUTCDate(new Date(d.getTime() - (d.getTimezoneOffset() * 60000)));
+        },
+
+        setUTCDate: function(d) {
+            this.date = d;
+            this.setValue();
+        },
+
+        setValue: function() {
+            var formatted = this.getFormattedDate();
+            if (!this.isInput) {
+                if (this.component) {
+                    this.element.find('input').val(formatted);
+                }
+                this.element.data('date', formatted);
+            } else {
+                this.element.val(formatted);
+            }
+        },
+
+        getFormattedDate: function(format) {
+            if (format === undefined)
+                format = this.format;
+            return DPGlobal.formatDate(this.date, format, this.language);
+        },
+
+        setStartDate: function(startDate) {
+            this.startDate = startDate || -Infinity;
+            if (this.startDate !== -Infinity) {
+                this.startDate = DPGlobal.parseDate(this.startDate, this.format, this.language);
+            }
+            this.update();
+            this.updateNavArrows();
+        },
+
+        setEndDate: function(endDate) {
+            this.endDate = endDate || Infinity;
+            if (this.endDate !== Infinity) {
+                this.endDate = DPGlobal.parseDate(this.endDate, this.format, this.language);
+            }
+            this.update();
+            this.updateNavArrows();
+        },
+
+        setDaysOfWeekDisabled: function(daysOfWeekDisabled) {
+            this.daysOfWeekDisabled = daysOfWeekDisabled || [];
+            if (!$.isArray(this.daysOfWeekDisabled)) {
+                this.daysOfWeekDisabled = this.daysOfWeekDisabled.split(/,\s*/);
+            }
+            this.daysOfWeekDisabled = $.map(this.daysOfWeekDisabled, function(d) {
+                return parseInt(d, 10);
+            });
+            this.update();
+            this.updateNavArrows();
+        },
+
+        place: function() {
+            if (this.isInline) return;
+            var zIndex = parseInt(this.element.parents().filter(function() {
+                return $(this).css('z-index') != 'auto';
+            }).first().css('z-index')) + 10;
+            var textbox = this.component ? this.component : this.element;
+            var offset = textbox.offset();
+            var height = textbox.outerHeight() + parseInt(textbox.css('margin-top'));
+            var width = textbox.outerWidth() + parseInt(textbox.css('margin-left'));
+            var fullOffsetTop = offset.top + height;
+            var offsetLeft = offset.left;
+            // if the datepicker is going to be below the window, show it on top of the input
+            if ((fullOffsetTop + this.picker.outerHeight()) >= $(window).scrollTop() + $(window).height()) {
+                fullOffsetTop = offset.top - this.picker.outerHeight();
+            }
+
+            // if the datepicker is going to go past the right side of the window, we want
+            // to set the right position so the datepicker lines up with the textbox
+            if (offset.left + this.picker.width() >= $(window).width()) {
+                offsetLeft = (offset.left + width) - this.picker.width();
+            }
+            this.picker.css({
+                top: fullOffsetTop,
+                left: offsetLeft,
+                zIndex: zIndex
+            });
+        },
+
+        update: function() {
+            var date, fromArgs = false;
+            var currentVal = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();
+            if (arguments && arguments.length && (typeof arguments[0] === 'string' || arguments[0] instanceof Date)) {
+                date = arguments[0];
+                fromArgs = true;
+            } else if (!currentVal && this.initialDate != null) { // If value is not set, set it to the initialDate 
+                date = this.initialDate
+            } else {
+                date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();
+            }
+
+
+
+            this.date = DPGlobal.parseDate(date, this.format, this.language);
+
+            if (fromArgs || this.initialDate != null) this.setValue();
+
+            if (this.date < this.startDate) {
+                this.viewDate = new Date(this.startDate.valueOf());
+            } else if (this.date > this.endDate) {
+                this.viewDate = new Date(this.endDate.valueOf());
+            } else {
+                this.viewDate = new Date(this.date.valueOf());
+            }
+            this.fill();
+        },
+
+        fillDow: function() {
+            var dowCnt = this.weekStart,
+                html = '<tr>';
+            if (this.calendarWeeks) {
+                var cell = '<th class="cw">&nbsp;</th>';
+                html += cell;
+                this.picker.find('.datepicker-days thead tr:first-child').prepend(cell);
+            }
+            while (dowCnt < this.weekStart + 7) {
+                html += '<th class="dow">' + dates[this.language].daysMin[(dowCnt++) % 7] + '</th>';
+            }
+            html += '</tr>';
+            this.picker.find('.datepicker-days thead').append(html);
+        },
+
+        fillMonths: function() {
+            var html = '',
+                i = 0;
+            while (i < 12) {
+                html += '<span class="month">' + dates[this.language].monthsShort[i++] + '</span>';
+            }
+            this.picker.find('.datepicker-months td').html(html);
+        },
+
+        fill: function() {
+            if (this.date == null || this.viewDate == null) {
+                return;
+            }
+
+            var d = new Date(this.viewDate.valueOf()),
+                year = d.getUTCFullYear(),
+                month = d.getUTCMonth(),
+                dayMonth = d.getUTCDate(),
+                hours = d.getUTCHours(),
+                minutes = d.getUTCMinutes(),
+                startYear = this.startDate !== -Infinity ? this.startDate.getUTCFullYear() : -Infinity,
+                startMonth = this.startDate !== -Infinity ? this.startDate.getUTCMonth() : -Infinity,
+                endYear = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity,
+                endMonth = this.endDate !== Infinity ? this.endDate.getUTCMonth() : Infinity,
+                currentDate = this.date && this.date.valueOf(),
+                today = new Date(),
+                titleFormat = dates[this.language].titleFormat || dates['en'].titleFormat;
+            // this.picker.find('.datepicker-days thead th.date-switch')
+            // 			.text(DPGlobal.formatDate(new UTCDate(year, month), titleFormat, this.language));
+
+            this.picker.find('.datepicker-days thead th:eq(1)')
+                .text(dates[this.language].months[month] + ' ' + year);
+            this.picker.find('.datepicker-hours thead th:eq(1)')
+                .text(dayMonth + ' ' + dates[this.language].months[month] + ' ' + year);
+            this.picker.find('.datepicker-minutes thead th:eq(1)')
+                .text(dayMonth + ' ' + dates[this.language].months[month] + ' ' + year);
+
+
+            this.picker.find('tfoot th.today')
+                .text(dates[this.language].today)
+                .toggle(this.todayBtn !== false);
+            this.updateNavArrows();
+            this.fillMonths();
+            var prevMonth = UTCDate(year, month - 1, 28, 0, 0, 0, 0),
+                day = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());
+            prevMonth.setUTCDate(day);
+            prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.weekStart + 7) % 7);
+            var nextMonth = new Date(prevMonth.valueOf());
+            nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);
+            nextMonth = nextMonth.valueOf();
+            var html = [];
+            var clsName;
+            while (prevMonth.valueOf() < nextMonth) {
+                if (prevMonth.getUTCDay() == this.weekStart) {
+                    html.push('<tr>');
+                    if (this.calendarWeeks) {
+                        // adapted from https://github.com/timrwood/moment/blob/master/moment.js#L128
+                        var a = new Date(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth(), prevMonth.getUTCDate() - prevMonth.getDay() + 10 - (this.weekStart && this.weekStart % 7 < 5 && 7)),
+                            b = new Date(a.getFullYear(), 0, 4),
+                            calWeek = ~~((a - b) / 864e5 / 7 + 1.5);
+                        html.push('<td class="cw">' + calWeek + '</td>');
+                    }
+                }
+                clsName = ' ' + this.onRender(prevMonth) + ' ';
+                if (prevMonth.getUTCFullYear() < year || (prevMonth.getUTCFullYear() == year && prevMonth.getUTCMonth() < month)) {
+                    clsName += ' old';
+                } else if (prevMonth.getUTCFullYear() > year || (prevMonth.getUTCFullYear() == year && prevMonth.getUTCMonth() > month)) {
+                    clsName += ' new';
+                }
+                // Compare internal UTC date with local today, not UTC today
+                if (this.todayHighlight &&
+                    prevMonth.getUTCFullYear() == today.getFullYear() &&
+                    prevMonth.getUTCMonth() == today.getMonth() &&
+                    prevMonth.getUTCDate() == today.getDate()) {
+                    clsName += ' today';
+                }
+                if (currentDate && prevMonth.valueOf() == currentDate) {
+                    clsName += ' active';
+                }
+                if (prevMonth.valueOf() < this.startDate || prevMonth.valueOf() > this.endDate ||
+                    $.inArray(prevMonth.getUTCDay(), this.daysOfWeekDisabled) !== -1) {
+                    clsName += ' disabled';
+                }
+                html.push('<td class="day' + clsName + '">' + prevMonth.getUTCDate() + '</td>');
+                if (prevMonth.getUTCDay() == this.weekEnd) {
+                    html.push('</tr>');
+                }
+                prevMonth.setUTCDate(prevMonth.getUTCDate() + 1);
+            }
+            this.picker.find('.datepicker-days tbody').empty().append(html.join(''));
+
+            html = [];
+            for (var i = 0; i < 24; i++) {
+                var actual = UTCDate(year, month, dayMonth, i);
+                clsName = '';
+                // We want the previous hour for the startDate
+                if ((actual.valueOf() + 3600000) < this.startDate || actual.valueOf() > this.endDate) {
+                    clsName += ' disabled';
+                } else if (hours == i) {
+                    clsName += ' active';
+                }
+
+                html.push('<span class="hour' + clsName + '">' + i + ':00</span>');
+            }
+            this.picker.find('.datepicker-hours td').html(html.join(''));
+
+            html = [];
+            for (var i = 0; i < 60; i += this.minuteStep) {
+                var actual = UTCDate(year, month, dayMonth, hours, i);
+                clsName = '';
+                if (actual.valueOf() < this.startDate || actual.valueOf() > this.endDate) {
+                    clsName += ' disabled';
+                } else if (Math.floor(minutes / this.minuteStep) == Math.floor(i / this.minuteStep)) {
+                    clsName += ' active';
+                }
+                html.push('<span class="minute' + clsName + '">' + hours + ':' + (i < 10 ? '0' + i : i) + '</span>');
+            }
+            this.picker.find('.datepicker-minutes td').html(html.join(''));
+
+
+            var currentYear = this.date && this.date.getUTCFullYear();
+            var months = this.picker.find('.datepicker-months')
+                .find('th:eq(1)')
+                .text(year)
+                .end()
+                .find('span').removeClass('active');
+            if (currentYear && currentYear == year) {
+                months.eq(this.date.getUTCMonth()).addClass('active');
+            }
+            if (year < startYear || year > endYear) {
+                months.addClass('disabled');
+            }
+            if (year == startYear) {
+                months.slice(0, startMonth).addClass('disabled');
+            }
+            if (year == endYear) {
+                months.slice(endMonth + 1).addClass('disabled');
+            }
+
+            html = '';
+            year = parseInt(year / 10, 10) * 10;
+            var yearCont = this.picker.find('.datepicker-years')
+                .find('th:eq(1)')
+                .text(year + '-' + (year + 9))
+                .end()
+                .find('td');
+            year -= 1;
+            for (var i = -1; i < 11; i++) {
+                html += '<span class="year' + (i == -1 || i == 10 ? ' old' : '') + (currentYear == year ? ' active' : '') + (year < startYear || year > endYear ? ' disabled' : '') + '">' + year + '</span>';
+                year += 1;
+            }
+            yearCont.html(html);
+        },
+
+        updateNavArrows: function() {
+            var d = new Date(this.viewDate),
+                year = d.getUTCFullYear(),
+                month = d.getUTCMonth(),
+                day = d.getUTCDate(),
+                hour = d.getUTCHours();
+            switch (this.viewMode) {
+                case 0:
+                    if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear() && month <= this.startDate.getUTCMonth() && day <= this.startDate.getUTCDate() && hour <= this.startDate.getUTCHours()) {
+                        this.picker.find('.prev').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.prev').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear() && month >= this.endDate.getUTCMonth() && day >= this.endDate.getUTCDate() && hour >= this.endDate.getUTCHours()) {
+                        this.picker.find('.next').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.next').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    break;
+                case 1:
+                    if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear() && month <= this.startDate.getUTCMonth() && day <= this.startDate.getUTCDate()) {
+                        this.picker.find('.prev').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.prev').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear() && month >= this.endDate.getUTCMonth() && day >= this.endDate.getUTCDate()) {
+                        this.picker.find('.next').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.next').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    break;
+                case 2:
+                    if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear() && month <= this.startDate.getUTCMonth()) {
+                        this.picker.find('.prev').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.prev').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear() && month >= this.endDate.getUTCMonth()) {
+                        this.picker.find('.next').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.next').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    break;
+                case 3:
+                case 4:
+                    if (this.startDate !== -Infinity && year <= this.startDate.getUTCFullYear()) {
+                        this.picker.find('.prev').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.prev').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    if (this.endDate !== Infinity && year >= this.endDate.getUTCFullYear()) {
+                        this.picker.find('.next').css({
+                            visibility: 'hidden'
+                        });
+                    } else {
+                        this.picker.find('.next').css({
+                            visibility: 'visible'
+                        });
+                    }
+                    break;
+            }
+        },
+
+        click: function(e) {
+            e.stopPropagation();
+            e.preventDefault();
+
+            if ($(e.target).hasClass('datepicker-close') || $(e.target).parent().hasClass('datepicker-close')) {
+                this.hide();
+            }
+
+            var target = $(e.target).closest('span, td, th');
+            if (target.length == 1) {
+                if (target.is('.disabled')) {
+                    this.element.trigger({
+                        type: 'outOfRange',
+                        date: this.viewDate,
+                        startDate: this.startDate,
+                        endDate: this.endDate
+                    });
+                    return;
+                }
+
+                switch (target[0].nodeName.toLowerCase()) {
+                    case 'th':
+                        switch (target[0].className) {
+                            case 'date-switch':
+                                this.showMode(1);
+                                break;
+                            case 'prev':
+                            case 'next':
+                                var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className == 'prev' ? -1 : 1);
+                                switch (this.viewMode) {
+                                    case 0:
+                                        this.viewDate = this.moveHour(this.viewDate, dir);
+                                        break;
+                                    case 1:
+                                        this.viewDate = this.moveDate(this.viewDate, dir);
+                                        break;
+                                    case 2:
+                                        this.viewDate = this.moveMonth(this.viewDate, dir);
+                                        break;
+                                    case 3:
+                                    case 4:
+                                        this.viewDate = this.moveYear(this.viewDate, dir);
+                                        break;
+                                }
+                                this.fill();
+                                break;
+                            case 'today':
+                                var date = new Date();
+                                date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds());
+
+                                this.viewMode = this.startViewMode;
+                                this.showMode(0);
+                                this._setDate(date);
+                                break;
+                        }
+                        break;
+                    case 'span':
+                        if (!target.is('.disabled')) {
+                            if (target.is('.month')) {
+                                if (this.minView === 3) {
+                                    var month = target.parent().find('span').index(target) || 0;
+                                    var year = this.viewDate.getUTCFullYear(),
+                                        day = 1,
+                                        hours = this.viewDate.getUTCHours(),
+                                        minutes = this.viewDate.getUTCMinutes(),
+                                        seconds = this.viewDate.getUTCSeconds();
+                                    this._setDate(UTCDate(year, month, day, hours, minutes, seconds, 0));
+                                } else {
+                                    this.viewDate.setUTCDate(1);
+                                    var month = target.parent().find('span').index(target);
+                                    this.viewDate.setUTCMonth(month);
+                                    this.element.trigger({
+                                        type: 'changeMonth',
+                                        date: this.viewDate
+                                    });
+                                }
+                            } else if (target.is('.year')) {
+                                if (this.minView === 4) {
+                                    var year = parseInt(target.text(), 10) || 0;
+                                    var month = 0,
+                                        day = 1,
+                                        hours = this.viewDate.getUTCHours(),
+                                        minutes = this.viewDate.getUTCMinutes(),
+                                        seconds = this.viewDate.getUTCSeconds();
+                                    this._setDate(UTCDate(year, month, day, hours, minutes, seconds, 0));
+                                } else {
+                                    this.viewDate.setUTCDate(1);
+                                    var year = parseInt(target.text(), 10) || 0;
+                                    this.viewDate.setUTCFullYear(year);
+                                    this.element.trigger({
+                                        type: 'changeYear',
+                                        date: this.viewDate
+                                    });
+                                }
+                            } else if (target.is('.hour')) {
+                                var hours = parseInt(target.text(), 10) || 0;
+                                var year = this.viewDate.getUTCFullYear(),
+                                    month = this.viewDate.getUTCMonth(),
+                                    day = this.viewDate.getUTCDate(),
+                                    minutes = this.viewDate.getUTCMinutes(),
+                                    seconds = this.viewDate.getUTCSeconds();
+                                this._setDate(UTCDate(year, month, day, hours, minutes, seconds, 0));
+                            } else if (target.is('.minute')) {
+                                var minutes = parseInt(target.text().substr(target.text().indexOf(':') + 1), 10) || 0;
+                                var year = this.viewDate.getUTCFullYear(),
+                                    month = this.viewDate.getUTCMonth(),
+                                    day = this.viewDate.getUTCDate(),
+                                    hours = this.viewDate.getUTCHours(),
+                                    seconds = this.viewDate.getUTCSeconds();
+                                this._setDate(UTCDate(year, month, day, hours, minutes, seconds, 0));
+                            }
+
+
+
+                            if (this.viewMode != 0) {
+
+
+
+                                var oldViewMode = this.viewMode;
+                                this.showMode(-1);
+                                this.fill();
+                                if (oldViewMode == this.viewMode && this.autoclose) {
+                                    this.hide();
+                                }
+                            } else {
+                                this.fill();
+                                if (this.autoclose) {
+                                    this.hide();
+                                }
+                            }
+                        }
+                        break;
+                    case 'td':
+
+
+
+                        if (target.is('.day') && !target.is('.disabled')) {
+                            var day = parseInt(target.text(), 10) || 1;
+                            var year = this.viewDate.getUTCFullYear(),
+                                month = this.viewDate.getUTCMonth(),
+                                hours = this.viewDate.getUTCHours(),
+                                minutes = this.viewDate.getUTCMinutes(),
+                                seconds = this.viewDate.getUTCSeconds();
+                            if (target.is('.old')) {
+                                if (month === 0) {
+                                    month = 11;
+                                    year -= 1;
+                                } else {
+                                    month -= 1;
+                                }
+                            } else if (target.is('.new')) {
+                                if (month == 11) {
+                                    month = 0;
+                                    year += 1;
+                                } else {
+                                    month += 1;
+                                }
+                            }
+                            this._setDate(UTCDate(year, month, day, hours, minutes, seconds, 0));
+                        }
+
+
+
+                        var oldViewMode = this.viewMode;
+
+
+                        this.showMode(-1);
+
+
+                        this.fill();
+                        if (oldViewMode == this.viewMode && this.autoclose) {
+                            this.hide();
+                        }
+                        break;
+                }
+            }
+        },
+
+        _setDate: function(date, which) {
+
+            if (!which || which == 'date')
+                this.date = date;
+            if (!which || which == 'view')
+                this.viewDate = date;
+            this.fill();
+            this.setValue();
+            this.element.trigger({
+                type: 'changeDate',
+                date: this.date
+            });
+            var element;
+            if (this.isInput) {
+                element = this.element;
+            } else if (this.component) {
+                element = this.element.find('input');
+            }
+            if (element) {
+                element.change();
+                if (this.autoclose && (!which || which == 'date')) {
+                    // this.hide();
+                }
+            }
+        },
+
+        moveHour: function(date, dir) {
+            if (!dir) return date;
+            var new_date = new Date(date.valueOf());
+            dir = dir > 0 ? 1 : -1;
+            new_date.setUTCHours(new_date.getUTCHours() + dir);
+            return new_date;
+        },
+
+        moveDate: function(date, dir) {
+            if (!dir) return date;
+            var new_date = new Date(date.valueOf());
+            dir = dir > 0 ? 1 : -1;
+            new_date.setUTCDate(new_date.getUTCDate() + dir);
+            return new_date;
+        },
+
+        moveMonth: function(date, dir) {
+            if (!dir) return date;
+            var new_date = new Date(date.valueOf()),
+                day = new_date.getUTCDate(),
+                month = new_date.getUTCMonth(),
+                mag = Math.abs(dir),
+                new_month, test;
+            dir = dir > 0 ? 1 : -1;
+            if (mag == 1) {
+                test = dir == -1
+                    // If going back one month, make sure month is not current month
+                    // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)
+                    ?
+
+                    function() {
+                        return new_date.getUTCMonth() == month;
+                    }
+                    // If going forward one month, make sure month is as expected
+                    // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)
+                    :
+                    function() {
+                        return new_date.getUTCMonth() != new_month;
+                    };
+                new_month = month + dir;
+                new_date.setUTCMonth(new_month);
+                // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11
+                if (new_month < 0 || new_month > 11)
+                    new_month = (new_month + 12) % 12;
+            } else {
+                // For magnitudes >1, move one month at a time...
+                for (var i = 0; i < mag; i++)
+                // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...
+                    new_date = this.moveMonth(new_date, dir);
+                // ...then reset the day, keeping it in the new month
+                new_month = new_date.getUTCMonth();
+                new_date.setUTCDate(day);
+                test = function() {
+                    return new_month != new_date.getUTCMonth();
+                };
+            }
+            // Common date-resetting loop -- if date is beyond end of month, make it
+            // end of month
+            while (test()) {
+                new_date.setUTCDate(--day);
+                new_date.setUTCMonth(new_month);
+            }
+            return new_date;
+        },
+
+        moveYear: function(date, dir) {
+            return this.moveMonth(date, dir * 12);
+        },
+
+        dateWithinRange: function(date) {
+            return date >= this.startDate && date <= this.endDate;
+        },
+
+        keydown: function(e) {
+            if (this.picker.is(':not(:visible)')) {
+                if (e.keyCode == 27) // allow escape to hide and re-show picker
+                    this.show();
+                return;
+            }
+            var dateChanged = false,
+                dir, day, month,
+                newDate, newViewDate;
+            switch (e.keyCode) {
+                case 27: // escape
+                    this.hide();
+                    e.preventDefault();
+                    break;
+                case 37: // left
+                case 39: // right
+                    if (!this.keyboardNavigation) break;
+                    dir = e.keyCode == 37 ? -1 : 1;
+                    if (e.ctrlKey) {
+                        newDate = this.moveYear(this.date, dir);
+                        newViewDate = this.moveYear(this.viewDate, dir);
+                    } else if (e.shiftKey) {
+                        newDate = this.moveMonth(this.date, dir);
+                        newViewDate = this.moveMonth(this.viewDate, dir);
+                    } else {
+                        newDate = new Date(this.date.valueOf());
+                        newDate.setUTCDate(this.date.getUTCDate() + dir);
+                        newViewDate = new Date(this.viewDate.valueOf());
+                        newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir);
+                    }
+                    if (this.dateWithinRange(newDate)) {
+                        this.date = newDate;
+                        this.viewDate = newViewDate;
+                        this.setValue();
+                        this.update();
+                        e.preventDefault();
+                        dateChanged = true;
+                    }
+                    break;
+                case 38: // up
+                case 40: // down
+                    if (!this.keyboardNavigation) break;
+                    dir = e.keyCode == 38 ? -1 : 1;
+                    if (e.ctrlKey) {
+                        newDate = this.moveYear(this.date, dir);
+                        newViewDate = this.moveYear(this.viewDate, dir);
+                    } else if (e.shiftKey) {
+                        newDate = this.moveMonth(this.date, dir);
+                        newViewDate = this.moveMonth(this.viewDate, dir);
+                    } else {
+                        newDate = new Date(this.date.valueOf());
+                        newDate.setUTCDate(this.date.getUTCDate() + dir * 7);
+                        newViewDate = new Date(this.viewDate.valueOf());
+                        newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir * 7);
+                    }
+                    if (this.dateWithinRange(newDate)) {
+                        this.date = newDate;
+                        this.viewDate = newViewDate;
+                        this.setValue();
+                        this.update();
+                        e.preventDefault();
+                        dateChanged = true;
+                    }
+                    break;
+                case 13: // enter
+                    this.hide();
+                    e.preventDefault();
+                    break;
+                case 9: // tab
+                    this.hide();
+                    break;
+            }
+            if (dateChanged) {
+                this.element.trigger({
+                    type: 'changeDate',
+                    date: this.date
+                });
+                var element;
+                if (this.isInput) {
+                    element = this.element;
+                } else if (this.component) {
+                    element = this.element.find('input');
+                }
+                if (element) {
+                    element.change();
+                }
+            }
+        },
+
+        showMode: function(dir) {
+
+            if (dir) {
+                var newViewMode = Math.max(0, Math.min(DPGlobal.modes.length - 1, this.viewMode + dir));
+                if (newViewMode >= this.minView && newViewMode <= this.maxView) {
+                    this.viewMode = newViewMode;
+                }
+            }
+            /*
+            	vitalets: fixing bug of very special conditions:
+            	jquery 1.7.1 + webkit + show inline datepicker in bootstrap popover.
+            	Method show() does not set display css correctly and datepicker is not shown.
+            	Changed to .css('display', 'block') solve the problem.
+            	See https://github.com/vitalets/x-editable/issues/37
+
+            	In jquery 1.7.2+ everything works fine.
+            */
+            //this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).show();
+            this.picker.find('>div').hide().filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName).css('display', 'block');
+            this.updateNavArrows();
+        },
+        reset: function(e) {
+            this._setDate(null, 'date');
+        }
+    };
+
+    $.fn.fdatepicker = function(option) {
+        var args = Array.apply(null, arguments);
+        args.shift();
+        return this.each(function() {
+            var $this = $(this),
+                data = $this.data('datepicker'),
+                options = typeof option == 'object' && option;
+            if (!data) {
+                $this.data('datepicker', (data = new Datepicker(this, $.extend({}, $.fn.fdatepicker.defaults, options))));
+            }
+            if (typeof option == 'string' && typeof data[option] == 'function') {
+                data[option].apply(data, args);
+            }
+        });
+    };
+
+    $.fn.fdatepicker.defaults = {
+        onRender: function(date) {
+            return '';
+        }
+    };
+    $.fn.fdatepicker.Constructor = Datepicker;
+    var dates = $.fn.fdatepicker.dates = {
+        'en': {
+            days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
+            daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
+            daysMin: ["日", "一", "二", "三", "四", "五", "六"],
+            months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
+            monthsShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
+            today: '今天',
+            titleFormat: "MM yyyy"
+        }
+    };
+
+    var DPGlobal = {
+        modes: [{
+            clsName: 'minutes',
+            navFnc: 'Hours',
+            navStep: 1
+        }, {
+            clsName: 'hours',
+            navFnc: 'Date',
+            navStep: 1
+        }, {
+            clsName: 'days',
+            navFnc: 'Month',
+            navStep: 1
+        }, {
+            clsName: 'months',
+            navFnc: 'FullYear',
+            navStep: 1
+        }, {
+            clsName: 'years',
+            navFnc: 'FullYear',
+            navStep: 10
+        }],
+        isLeapYear: function(year) {
+            return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));
+        },
+        getDaysInMonth: function(year, month) {
+            return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
+        },
+        validParts: /hh?|ii?|ss?|dd?|mm?|MM?|yy(?:yy)?/g,
+        nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
+        parseFormat: function(format) {
+            // IE treats \0 as a string end in inputs (truncating the value),
+            // so it's a bad format delimiter, anyway
+            var separators = format.replace(this.validParts, '\0').split('\0'),
+                parts = format.match(this.validParts);
+            if (!separators || !separators.length || !parts || parts.length === 0) {
+                throw new Error("Invalid date format.");
+            }
+            return {
+                separators: separators,
+                parts: parts
+            };
+        },
+        parseDate: function(date, format, language) {
+            if (date instanceof Date) return new Date(date.valueOf() - date.getTimezoneOffset() * 60000);
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(date)) {
+                format = this.parseFormat('yyyy-mm-dd');
+            }
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(date)) {
+                format = this.parseFormat('yyyy-mm-dd hh:ii');
+            }
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(date)) {
+                format = this.parseFormat('yyyy-mm-dd hh:ii:ss');
+            }
+            if (/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(date)) {
+                var part_re = /([-+]\d+)([dmwy])/,
+                    parts = date.match(/([-+]\d+)([dmwy])/g),
+                    part, dir;
+                date = new Date();
+                for (var i = 0; i < parts.length; i++) {
+                    part = part_re.exec(parts[i]);
+                    dir = parseInt(part[1]);
+                    switch (part[2]) {
+                        case 'd':
+                            date.setUTCDate(date.getUTCDate() + dir);
+                            break;
+                        case 'm':
+                            date = Datetimepicker.prototype.moveMonth.call(Datetimepicker.prototype, date, dir);
+                            break;
+                        case 'w':
+                            date.setUTCDate(date.getUTCDate() + dir * 7);
+                            break;
+                        case 'y':
+                            date = Datetimepicker.prototype.moveYear.call(Datetimepicker.prototype, date, dir);
+                            break;
+                    }
+                }
+                return UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds());
+            }
+            var parts = date && date.match(this.nonpunctuation) || [],
+                date = new Date(),
+                parsed = {},
+                setters_order = ['hh', 'h', 'ii', 'i', 'ss', 's', 'yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],
+                setters_map = {
+                    hh: function(d, v) {
+                        return d.setUTCHours(v);
+                    },
+                    h: function(d, v) {
+                        return d.setUTCHours(v);
+                    },
+                    ii: function(d, v) {
+                        return d.setUTCMinutes(v);
+                    },
+                    i: function(d, v) {
+                        return d.setUTCMinutes(v);
+                    },
+                    ss: function(d, v) {
+                        return d.setUTCSeconds(v);
+                    },
+                    s: function(d, v) {
+                        return d.setUTCSeconds(v);
+                    },
+                    yyyy: function(d, v) {
+                        return d.setUTCFullYear(v);
+                    },
+                    yy: function(d, v) {
+                        return d.setUTCFullYear(2000 + v);
+                    },
+                    m: function(d, v) {
+                        v -= 1;
+                        while (v < 0) v += 12;
+                        v %= 12;
+                        d.setUTCMonth(v);
+                        while (d.getUTCMonth() != v)
+                            d.setUTCDate(d.getUTCDate() - 1);
+                        return d;
+                    },
+                    d: function(d, v) {
+                        return d.setUTCDate(v);
+                    }
+                },
+                val, filtered, part;
+            setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
+            setters_map['dd'] = setters_map['d'];
+            date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0); //date.getHours(), date.getMinutes(), date.getSeconds());
+            if (parts.length == format.parts.length) {
+                for (var i = 0, cnt = format.parts.length; i < cnt; i++) {
+                    val = parseInt(parts[i], 10);
+                    part = format.parts[i];
+                    if (isNaN(val)) {
+                        switch (part) {
+                            case 'MM':
+                                filtered = $(dates[language].months).filter(function() {
+                                    var m = this.slice(0, parts[i].length),
+                                        p = parts[i].slice(0, m.length);
+                                    return m == p;
+                                });
+                                val = $.inArray(filtered[0], dates[language].months) + 1;
+                                break;
+                            case 'M':
+                                filtered = $(dates[language].monthsShort).filter(function() {
+                                    var m = this.slice(0, parts[i].length),
+                                        p = parts[i].slice(0, m.length);
+                                    return m == p;
+                                });
+                                val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
+                                break;
+                        }
+                    }
+                    parsed[part] = val;
+                }
+                for (var i = 0, s; i < setters_order.length; i++) {
+                    s = setters_order[i];
+                    if (s in parsed && !isNaN(parsed[s]))
+                        setters_map[s](date, parsed[s])
+                }
+            }
+            return date;
+        },
+        formatDate: function(date, format, language) {
+            if (date == null) {
+                return '';
+            }
+            var val = {
+                h: date.getUTCHours(),
+                i: date.getUTCMinutes(),
+                s: date.getUTCSeconds(),
+                d: date.getUTCDate(),
+                m: date.getUTCMonth() + 1,
+                M: dates[language].monthsShort[date.getUTCMonth()],
+                MM: dates[language].months[date.getUTCMonth()],
+                yy: date.getUTCFullYear().toString().substring(2),
+                yyyy: date.getUTCFullYear()
+            };
+            val.hh = (val.h < 10 ? '0' : '') + val.h;
+            val.ii = (val.i < 10 ? '0' : '') + val.i;
+            val.ss = (val.s < 10 ? '0' : '') + val.s;
+            val.dd = (val.d < 10 ? '0' : '') + val.d;
+            val.mm = (val.m < 10 ? '0' : '') + val.m;
+            var date = [],
+                seps = $.extend([], format.separators);
+            for (var i = 0, cnt = format.parts.length; i < cnt; i++) {
+                if (seps.length)
+                    date.push(seps.shift())
+                date.push(val[format.parts[i]]);
+            }
+            return date.join('');
+        },
+        convertViewMode: function(viewMode) {
+            switch (viewMode) {
+                case 4:
+                case 'decade':
+                    viewMode = 4;
+                    break;
+                case 3:
+                case 'year':
+                    viewMode = 3;
+                    break;
+                case 2:
+                case 'month':
+                    viewMode = 2;
+                    break;
+                case 1:
+                case 'day':
+                    viewMode = 1;
+                    break;
+                case 0:
+                case 'hour':
+                    viewMode = 0;
+                    break;
+            }
+
+            return viewMode;
+        },
+        headTemplate: '<thead>' +
+            '<tr>' +
+            '<th class="prev"><i class="fa fa-chevron-left fi-arrow-left"/></th>' +
+            '<th colspan="5" class="date-switch"></th>' +
+            '<th class="next"><i class="fa fa-chevron-right fi-arrow-right"/></th>' +
+            '</tr>' +
+            '</thead>',
+        contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
+        footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr></tfoot>'
+    };
+    DPGlobal.template = '<div class="datepicker">' +
+        '<div class="datepicker-minutes">' +
+        '<table class=" table-condensed">' +
+        DPGlobal.headTemplate +
+        DPGlobal.contTemplate +
+        DPGlobal.footTemplate +
+        '</table>' +
+        '</div>' +
+        '<div class="datepicker-hours">' +
+        '<table class=" table-condensed">' +
+        DPGlobal.headTemplate +
+        DPGlobal.contTemplate +
+        DPGlobal.footTemplate +
+        '</table>' +
+        '</div>' +
+        '<div class="datepicker-days">' +
+        '<table class=" table-condensed">' +
+        DPGlobal.headTemplate +
+        '<tbody></tbody>' +
+        DPGlobal.footTemplate +
+        '</table>' +
+        '</div>' +
+        '<div class="datepicker-months">' +
+        '<table class="table-condensed">' +
+        DPGlobal.headTemplate +
+        DPGlobal.contTemplate +
+        DPGlobal.footTemplate +
+        '</table>' +
+        '</div>' +
+        '<div class="datepicker-years">' +
+        '<table class="table-condensed">' +
+        DPGlobal.headTemplate +
+        DPGlobal.contTemplate +
+        DPGlobal.footTemplate +
+        '</table>' +
+        '</div>' +
+        '<a class="button datepicker-close tiny alert right" style="width:auto;"><i class="fa fa-remove fa-times fi-x"></i></a>' +
+        '</div>';
+
+    $.fn.fdatepicker.DPGlobal = DPGlobal;
+
+}(window.jQuery);

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
plugins/datePicker/js/foundation-datepicker.min.js


Разница между файлами не показана из-за своего большого размера
+ 16 - 0
plugins/datePicker/js/foundation.min.js


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
plugins/datePicker/js/jquery-1.11.3.min.js


+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.ar.js

@@ -0,0 +1,15 @@
+/**
+ * Arabic translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Mohammed Alshehri <alshehri866@gmail.com>
+ */
+;(function($){
+    $.fn.fdatepicker.dates['ar'] = {
+        days: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"],
+        daysShort: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت", "أحد"],
+        daysMin: ["ح", "ن", "ث", "ع", "خ", "ج", "س", "ح"],
+        months: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
+        monthsShort: ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
+        today: "هذا اليوم",
+        rtl: true
+    };
+}(jQuery));

+ 12 - 0
plugins/datePicker/js/locales/foundation-datepicker.az.js

@@ -0,0 +1,12 @@
+// Azerbaijani
+;(function($){
+    $.fn.fdatepicker.dates['az'] = {
+        days: ["Bazar", "Bazar ertəsi", "Çərşənbə axşamı", "Çərşənbə", "Cümə axşamı", "Cümə", "Şənbə"],
+        daysShort: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."],
+        daysMin: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."],
+        months: ["Yanvar", "Fevral", "Mart", "Aprel", "May", "İyun", "İyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr"],
+        monthsShort: ["Yan", "Fev", "Mar", "Apr", "May", "İyun", "İyul", "Avq", "Sen", "Okt", "Noy", "Dek"],
+        today: "Bu gün",
+        weekStart: 1
+    };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.bg.js

@@ -0,0 +1,14 @@
+/**
+ * Bulgarian translation for foundation-datepicker
+ * Apostol Apostolov <apostol.s.apostolov@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['bg'] = {
+		days: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота", "Неделя"],
+		daysShort: ["Нед", "Пон", "Вто", "Сря", "Чет", "Пет", "Съб", "Нед"],
+		daysMin: ["Н", "П", "В", "С", "Ч", "П", "С", "Н"],
+		months: ["Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"],
+		monthsShort: ["Ян", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"],
+		today: "днес"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.bs.js

@@ -0,0 +1,15 @@
+/**
+ * Bosnian translation for foundation-datepicker, language file from bootstrap-datepicker
+ */
+;(function($){
+	$.fn.fdatepicker.dates['bs'] = {
+		days: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
+		daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
+		daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
+		months: ["Januar", "Februar", "Mart", "April", "Maj", "Juni", "Juli", "August", "Septembar", "Oktobar", "Novembar", "Decembar"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
+		today: "Danas",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.ca.js

@@ -0,0 +1,17 @@
+/**
+ * Catalan translation for foundation-datepicker, language file from bootstrap-datepicker
+ * J. Garcia <jogaco.en@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ca'] = {
+		days: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"],
+		daysShort: ["Diu",  "Dil", "Dmt", "Dmc", "Dij", "Div", "Dis"],
+		daysMin: ["dg", "dl", "dt", "dc", "dj", "dv", "ds"],
+		months: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"],
+		monthsShort: ["Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Oct", "Nov", "Des"],
+		today: "Avui",
+		clear: "Esborrar",
+		weekStart: 1,
+		format: "dd/mm/yyyy"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.cs.js

@@ -0,0 +1,14 @@
+/**
+ * Czech translation for foundation-datepicker
+ * Matěj Koubík <matej@koubik.name>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['cs'] = {
+		days: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota", "Neděle"],
+		daysShort: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So", "Ne"],
+		daysMin: ["N", "P", "Ú", "St", "Č", "P", "So", "N"],
+		months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
+		monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"],
+		today: "Dnes"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.cy.js

@@ -0,0 +1,14 @@
+/**
+ * Welsh translation for foundation-datepicker, language file from bootstrap-datepicker
+ * S. Morris <s.morris@bangor.ac.uk>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['cy'] = {
+		days: ["Sul", "Llun", "Mawrth", "Mercher", "Iau", "Gwener", "Sadwrn"],
+		daysShort: ["Sul", "Llu", "Maw", "Mer", "Iau", "Gwe", "Sad"],
+		daysMin: ["Su", "Ll", "Ma", "Me", "Ia", "Gwe", "Sa"],
+		months: ["Ionawr", "Chewfror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorfennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"],
+		monthsShort: ["Ion", "Chw", "Maw", "Ebr", "Mai", "Meh", "Gor", "Aws", "Med", "Hyd", "Tach", "Rha"],
+		today: "Heddiw"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.da.js

@@ -0,0 +1,14 @@
+/**
+ * Danish translation for foundation-datepicker
+ * Christian Pedersen <http://github.com/chripede>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['da'] = {
+		days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"],
+		daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"],
+		daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø", "Sø"],
+		months: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
+		today: "I Dag"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.de.js

@@ -0,0 +1,14 @@
+/**
+ * German translation for foundation-datepicker
+ * Sam Zurcher <sam@orelias.ch>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['de'] = {
+		days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
+		daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
+		daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
+		months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
+		monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
+		today: "Heute"
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.el.js

@@ -0,0 +1,13 @@
+/**
+
+ */
+;(function($){
+	$.fn.fdatepicker.dates['el'] = {
+        days: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο", "Κυριακή"],
+        daysShort: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ", "Κυρ"],
+        daysMin: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά", "Κυ"],
+        months: ["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"],
+        monthsShort: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαϊ", "Ιου", "Ιου", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"],
+        today: "Σήμερα"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.en-GB.js

@@ -0,0 +1,17 @@
+/**
+ * British English translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Xavier Dutreilh <xavier@dutreilh.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['en-GB'] = {
+		days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
+		daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+		daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
+		months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
+		today: "Today",
+		clear: "Clear",
+		weekStart: 1,
+		format: "dd/mm/yyyy"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.eo.js

@@ -0,0 +1,17 @@
+/**
+ * Esperanto translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Emmanuel Debanne <https://github.com/debanne>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['eo'] = {
+		days: ["dimanĉo", "lundo", "mardo", "merkredo", "ĵaŭdo", "vendredo", "sabato"],
+		daysShort: ["dim.", "lun.", "mar.", "mer.", "ĵaŭ.", "ven.", "sam."],
+		daysMin: ["d", "l", "ma", "me", "ĵ", "v", "s"],
+		months: ["januaro", "februaro", "marto", "aprilo", "majo", "junio", "julio", "aŭgusto", "septembro", "oktobro", "novembro", "decembro"],
+		monthsShort: ["jan.", "feb.", "mar.", "apr.", "majo", "jun.", "jul.", "aŭg.", "sep.", "okt.", "nov.", "dec."],
+		today: "Hodiaŭ",
+		clear: "Nuligi",
+		weekStart: 1,
+		format: "yyyy-mm-dd"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.es.js

@@ -0,0 +1,14 @@
+/**
+ * Spanish translation for foundation-datepicker
+ * Bruno Bonamin <bruno.bonamin@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['es'] = {
+		days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
+		daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
+		daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
+		months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
+		monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
+		today: "Hoy"
+	};
+}(jQuery));

+ 18 - 0
plugins/datePicker/js/locales/foundation-datepicker.et.js

@@ -0,0 +1,18 @@
+/**
+ * Estonian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Ando Roots <https://github.com/anroots>
+ * Fixes by Illimar Tambek <<https://github.com/ragulka>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['et'] = {
+		days: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"],
+		daysShort: ["Pühap", "Esmasp", "Teisip", "Kolmap", "Neljap", "Reede", "Laup"],
+		daysMin: ["P", "E", "T", "K", "N", "R", "L"],
+		months: ["Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"],
+		monthsShort: ["Jaan", "Veebr", "Märts", "Apr", "Mai", "Juuni", "Juuli", "Aug", "Sept", "Okt", "Nov", "Dets"],
+		today: "Täna",
+		clear: "Tühjenda",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.eu.js

@@ -0,0 +1,15 @@
+/**
+ * Basque translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Arkaitz Etxeberria <kondi80@gmail.com>
+ */
+;(function($){
+    $.fn.fdatepicker.dates['eu'] = {
+        days: ['Igandea', 'Astelehena', 'Asteartea', 'Asteazkena', 'Osteguna', 'Ostirala', 'Larunbata'],
+        daysShort: ['Ig', 'Al', 'Ar', 'Az', 'Og', 'Ol', 'Lr'],
+        daysMin: ['Ig', 'Al', 'Ar', 'Az', 'Og', 'Ol', 'Lr'],
+        months: ['Urtarrila', 'Otsaila', 'Martxoa', 'Apirila', 'Maiatza', 'Ekaina', 'Uztaila', 'Abuztua', 'Iraila', 'Urria', 'Azaroa', 'Abendua'],
+        monthsShort: ['Urt', 'Ots', 'Mar', 'Api', 'Mai', 'Eka', 'Uzt', 'Abu', 'Ira', 'Urr', 'Aza', 'Abe'],
+        today: "Gaur"
+    };
+}(jQuery));
+

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.fa.js

@@ -0,0 +1,17 @@
+/**
+ * Persian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Mostafa Rokooie <mostafa.rokooie@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['fa'] = {
+		days: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنج‌شنبه", "جمعه", "شنبه", "یک‌شنبه"],
+		daysShort: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه", "یک"],
+		daysMin: ["ی", "د", "س", "چ", "پ", "ج", "ش", "ی"],
+		months: ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"],
+		monthsShort: ["ژان", "فور", "مار", "آور", "مه", "ژون", "ژوی", "اوت", "سپت", "اکت", "نوا", "دسا"],
+		today: "امروز",
+		clear: "پاک کن",
+		weekStart: 1,
+		format: "yyyy/mm/dd"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.fi.js

@@ -0,0 +1,14 @@
+/**
+ * Finnish translation for foundation-datepicker
+ * Jaakko Salonen <https://github.com/jsalonen>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['fi'] = {
+		days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai", "sunnuntai"],
+		daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau", "sun"],
+		daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la", "su"],
+		months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
+		monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"],
+		today: "tänään"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.fo.js

@@ -0,0 +1,15 @@
+/**
+ * Faroese translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Theodor Johannesen <http://github.com/theodorjohannesen>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['fo'] = {
+		days: ["Sunnudagur", "Mánadagur", "Týsdagur", "Mikudagur", "Hósdagur", "Fríggjadagur", "Leygardagur"],
+		daysShort: ["Sun", "Mán", "Týs", "Mik", "Hós", "Frí", "Ley"],
+		daysMin: ["Su", "Má", "Tý", "Mi", "Hó", "Fr", "Le"],
+		months: ["Januar", "Februar", "Marts", "Apríl", "Mei", "Juni", "Juli", "August", "Septembur", "Oktobur", "Novembur", "Desembur"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
+		today: "Í Dag",
+		clear: "Reinsa"
+	};
+}(jQuery));

+ 20 - 0
plugins/datePicker/js/locales/foundation-datepicker.fr-CH.js

@@ -0,0 +1,20 @@
+/**
+ * French (Switzerland) translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Christoph Jossi <c.jossi@ascami.ch>
+ * Based on 
+ * French translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Nico Mollet <nico.mollet@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['fr'] = {
+		days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
+		daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
+		daysMin: ["D", "L", "Ma", "Me", "J", "V", "S"],
+		months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
+		monthsShort: ["Jan", "Fév", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Déc"],
+		today: "Aujourd'hui",
+		clear: "Effacer",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.fr.js

@@ -0,0 +1,14 @@
+/**
+ * French translation for foundation-datepicker
+ * Nico Mollet <nico.mollet@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['fr'] = {
+		days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
+		daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
+		daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
+		months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
+		monthsShort: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec"],
+		today: "Aujourd'hui"
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.gl.js

@@ -0,0 +1,13 @@
+;(function($){
+	$.fn.fdatepicker.dates['gl'] = {
+		days: ["Domingo", "Luns", "Martes", "Mércores", "Xoves", "Venres", "Sábado"],
+		daysShort: ["Dom", "Lun", "Mar", "Mér", "Xov", "Ven", "Sáb"],
+		daysMin: ["Do", "Lu", "Ma", "Me", "Xo", "Ve", "Sa"],
+		months: ["Xaneiro", "Febreiro", "Marzo", "Abril", "Maio", "Xuño", "Xullo", "Agosto", "Setembro", "Outubro", "Novembro", "Decembro"],
+		monthsShort: ["Xan", "Feb", "Mar", "Abr", "Mai", "Xun", "Xul", "Ago", "Sep", "Out", "Nov", "Dec"],
+		today: "Hoxe",
+		clear: "Limpar",
+		weekStart: 1,
+		format: "dd/mm/yyyy"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.he.js

@@ -0,0 +1,15 @@
+/**
+ * Hebrew translation for foundation-datepicker
+ * Sagie Maoz <sagie@maoz.info>
+ */
+;(function($){
+  $.fn.fdatepicker.dates['he'] = {
+      days: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת", "ראשון"],
+      daysShort: ["א", "ב", "ג", "ד", "ה", "ו", "ש", "א"],
+      daysMin: ["א", "ב", "ג", "ד", "ה", "ו", "ש", "א"],
+      months: ["ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר"],
+      monthsShort: ["ינו", "פבר", "מרץ", "אפר", "מאי", "יונ", "יול", "אוג", "ספט", "אוק", "נוב", "דצמ"],
+      today: "היום",
+      rtl: true
+  };
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.hr.js

@@ -0,0 +1,13 @@
+/**
+ * Croatian localisation
+ */
+;(function($){
+	$.fn.fdatepicker.dates['hr'] = {
+		days: ["Nedjelja", "Ponedjelja", "Utorak", "Srijeda", "Četrtak", "Petak", "Subota", "Nedjelja"],
+		daysShort: ["Ned", "Pon", "Uto", "Srr", "Čet", "Pet", "Sub", "Ned"],
+		daysMin: ["Ne", "Po", "Ut", "Sr", "Če", "Pe", "Su", "Ne"],
+		months: ["Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"],
+		monthsShort: ["Sije", "Velj", "Ožu", "Tra", "Svi", "Lip", "Jul", "Kol", "Ruj", "Lis", "Stu", "Pro"],
+		today: "Danas"
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.hu.js

@@ -0,0 +1,13 @@
+/**
+ * Hungarian localisation
+ */
+;(function($){
+	$.fn.fdatepicker.dates['hu'] = {
+        days: ["Vasárnap", "Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat", "Vasárnap"],
+        daysShort: ["Vas", "Hét", "Kedd", "Sze", "Csü", "Pén", "Szo", "Vas"],
+        daysMin: ["Va", "Hé", "Ke", "Sz", "Cs", "Pé", "Sz", "Va"],
+        months: ["Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"],
+        monthsShort: ["Jan", "Feb", "Már", "Ápr", "Máj", "Jún", "Júl", "Aug", "Szep", "Okt", "Nov", "Dec"],
+        today: "Ma"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.hy.js

@@ -0,0 +1,17 @@
+/**
+ * Armenian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Hayk Chamyan <hamshen@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['hy'] = {
+		days: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"],
+		daysShort: ["Կիր", "Երկ", "Երք", "Չոր", "Հնգ", "Ուր", "Շաբ"],
+		daysMin: ["Կի", "Եկ", "Եք", "Չո", "Հի", "Ու", "Շա"],
+		months: ["Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր"],
+		monthsShort: ["Հնվ", "Փետ", "Մար", "Ապր", "Մայ", "Հուն", "Հուլ", "Օգս", "Սեպ", "Հոկ", "Նոյ", "Դեկ"],
+		today: "Այսօր",
+		clear: "Ջնջել",
+		format: "dd.mm.yyyy",
+		weekStart: 1
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.id.js

@@ -0,0 +1,13 @@
+/**
+ * Bahasa translation for foundation-datepicker
+ * Azwar Akbar <azwar.akbar@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['id'] = {
+		days: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu", "Minggu"],
+		daysShort: ["Mgu", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab", "Mgu"],
+		daysMin: ["Mg", "Sn", "Sl", "Ra", "Ka", "Ju", "Sa", "Mg"],
+		months: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.is.js

@@ -0,0 +1,14 @@
+/**
+ * Icelandic translation for foundation-datepicker
+ * Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['is'] = {
+		days: ["Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur", "Sunnudagur"],
+		daysShort: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau", "Sun"],
+		daysMin: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La", "Su"],
+		months: ["Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maí", "Jún", "Júl", "Ágú", "Sep", "Okt", "Nóv", "Des"],
+		today: "Í Dag"
+	};
+}(jQuery));

+ 20 - 0
plugins/datePicker/js/locales/foundation-datepicker.it-CH.js

@@ -0,0 +1,20 @@
+/**
+ * Italian (Switzerland) translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Christoph Jossi <c.jossi@ascami.ch>
+ * Based on 
+ * Italian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Enrico Rubboli <rubboli@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['it'] = {
+		days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
+		daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
+		daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
+		months: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
+		monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
+		today: "Oggi",
+		clear: "Cancella",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.it.js

@@ -0,0 +1,14 @@
+/**
+ * Italian translation for foundation-datepicker
+ * Enrico Rubboli <rubboli@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['it'] = {
+		days: ["Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato", "Domenica"],
+		daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Dom"],
+		daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"],
+		months: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
+		monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
+		today: "Oggi"
+	};
+}(jQuery));

+ 16 - 0
plugins/datePicker/js/locales/foundation-datepicker.ja.js

@@ -0,0 +1,16 @@
+/**
+ * Japanese translation for foundation-datepicker
+ * Norio Suzuki <https://github.com/suzuki/>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ja'] = {
+	    days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
+	    daysShort: ["日", "月", "火", "水", "木", "金", "土"],
+	    daysMin: ["日", "月", "火", "水", "木", "金", "土"],
+	    months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
+	    monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
+	    today: "今日",
+	    format: "yyyy/mm/dd",
+	    titleFormat: "yyyy年 mm月"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.ka.js

@@ -0,0 +1,17 @@
+/**
+ * Georgian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Levan Melikishvili <levani0101@yahoo.com>
+ */
+;(function($){
+    $.fn.fdatepicker.dates['ka'] = {
+        days: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"],
+        daysShort: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
+        daysMin: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
+        months: ["იანვარი", "თებერვალი", "მარტი", "აპრილი", "მაისი", "ივნისი", "ივლისი", "აგვისტო", "სექტემბერი", "ოქტომები", "ნოემბერი", "დეკემბერი"],
+        monthsShort: ["იან", "თებ", "მარ", "აპრ", "მაი", "ივნ", "ივლ", "აგვ", "სექ", "ოქტ", "ნოე", "დეკ"],
+        today: "დღეს",
+        clear: "გასუფთავება",
+        weekStart: 1,
+        format: "dd.mm.yyyy"
+    };
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.kh.js

@@ -0,0 +1,15 @@
+/**
+ * Cambodia (Khmer) translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Lytay TOUCH <lytaytouch@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['kh'] = {
+		days: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍", "អាទិត្យ"],
+		daysShort: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អា.ទិ"],
+		daysMin: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អា.ទិ"],
+		months: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
+		monthsShort: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
+		today: "ថ្ងៃនេះ",
+		clear: "សំអាត"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.kk.js

@@ -0,0 +1,15 @@
+/**
+ * Kazakh translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Yerzhan Tolekov <era.tolekov@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['kk'] = {
+		days: ["Жексенбі", "Дүйсенбі", "Сейсенбі", "Сәрсенбі", "Бейсенбі", "Жұма", "Сенбі"],
+		daysShort: ["Жек", "Дүй", "Сей", "Сәр", "Бей", "Жұм", "Сен"],
+		daysMin: ["Жк", "Дс", "Сс", "Ср", "Бс", "Жм", "Сн"],
+		months: ["Қаңтар", "Ақпан", "Наурыз", "Сәуір", "Мамыр", "Маусым", "Шілде", "Тамыз", "Қыркүйек", "Қазан", "Қараша", "Желтоқсан"],
+		monthsShort: ["Қаң", "Ақп", "Нау", "Сәу", "Мамыр", "Мау", "Шлд", "Тмз", "Қыр", "Қзн", "Қар", "Жел"],
+		today: "Бүгін",
+		weekStart: 1
+	};
+}(jQuery));

+ 18 - 0
plugins/datePicker/js/locales/foundation-datepicker.ko.js

@@ -0,0 +1,18 @@
+/**
+ * Korean translation for foundation-datepicker, language file from bootstrap-datepicker
+ * This is a port from https://github.com/moment/moment/blob/develop/src/locale/ko.js
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ko'] = {
+		days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
+		daysShort: ["일", "월", "화", "수", "목", "금", "토"],
+		daysMin: ["일", "월", "화", "수", "목", "금", "토"],
+		months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
+		monthsShort: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
+		today: "오늘",
+		clear: "삭제",
+		format: "YYYY-MM-DD",
+		titleFormat: "yyyy년mm월",
+		weekStart: 0
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.kr.js

@@ -0,0 +1,13 @@
+/**
+ * Korean translation for foundation-datepicker
+ * Gu Youn <http://github.com/guyoun>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['kr'] = {
+		days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"],
+		daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"],
+		daysMin: ["일", "월", "화", "수", "목", "금", "토", "일"],
+		months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
+		monthsShort: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"]
+	};
+}(jQuery));

+ 16 - 0
plugins/datePicker/js/locales/foundation-datepicker.lt.js

@@ -0,0 +1,16 @@
+/**
+ * Lithuanian translation for foundation-datepicker
+ * Šarūnas Gliebus <ssharunas@yahoo.co.uk>
+ */
+
+;(function($){
+    $.fn.fdatepicker.dates['lt'] = {
+        days: ["Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis", "Sekmadienis"],
+        daysShort: ["S", "Pr", "A", "T", "K", "Pn", "Š", "S"],
+        daysMin: ["Sk", "Pr", "An", "Tr", "Ke", "Pn", "Št", "Sk"],
+        months: ["Sausis", "Vasaris", "Kovas", "Balandis", "Gegužė", "Birželis", "Liepa", "Rugpjūtis", "Rugsėjis", "Spalis", "Lapkritis", "Gruodis"],
+        monthsShort: ["Sau", "Vas", "Kov", "Bal", "Geg", "Bir", "Lie", "Rugp", "Rugs", "Spa", "Lap", "Gru"],
+        today: "Šiandien",
+        weekStart: 1
+    };
+}(jQuery));

+ 16 - 0
plugins/datePicker/js/locales/foundation-datepicker.lv.js

@@ -0,0 +1,16 @@
+/**
+ * Latvian translation for foundation-datepicker
+ * Artis Avotins <artis@apit.lv>
+ */
+
+;(function($){
+    $.fn.fdatepicker.dates['lv'] = {
+        days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
+        daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
+        daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
+        months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
+        monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
+        today: "Šodien",
+        weekStart: 1
+    };
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.me.js

@@ -0,0 +1,17 @@
+/**
+ * Montenegrin translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Miodrag Nikač <miodrag@restartit.me>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['me'] = {
+		days: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
+		daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
+		daysMin: ["Ne", "Po", "Ut", "Sr", "Če", "Pe", "Su"],
+		months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
+		today: "Danas",
+		weekStart: 1,
+		clear: "Izbriši",
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.mk.js

@@ -0,0 +1,15 @@
+/**
+ * Macedonian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Marko Aleksic <psybaron@gmail.com>
+ */
+;(function($){
+    $.fn.fdatepicker.dates['mk'] = {
+        days: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота"],
+        daysShort: ["Нед", "Пон", "Вто", "Сре", "Чет", "Пет", "Саб"],
+        daysMin: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са"],
+        months: ["Јануари", "Февруари", "Март", "Април", "Мај", "Јуни", "Јули", "Август", "Септември", "Октомври", "Ноември", "Декември"],
+        monthsShort: ["Јан", "Фев", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Ное", "Дек"],
+        today: "Денес",
+        format: "dd.mm.yyyy"
+    };
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.mn.js

@@ -0,0 +1,17 @@
+/**
+ * Mongolian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Andrey Torsunov <andrey.torsunov@gmail.com>
+ */
+;(function($){
+    $.fn.fdatepicker.dates['mn'] = {
+        days: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"],
+        daysShort: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"],
+        daysMin: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"],
+        months: ["Хулгана", "Үхэр", "Бар", "Туулай", "Луу", "Могой", "Морь", "Хонь", "Бич", "Тахиа", "Нохой", "Гахай"],
+        monthsShort: ["Хул", "Үхэ", "Бар", "Туу", "Луу", "Мог", "Мор", "Хон", "Бич", "Тах", "Нох", "Гах"],
+        today: "Өнөөдөр",
+        clear: "Тодорхой",
+        format: "yyyy.mm.dd",
+        weekStart: 1
+    };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.ms.js

@@ -0,0 +1,14 @@
+/**
+ * Malay translation for foundation-datepicker
+ * Ateman Faiz <noorulfaiz@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ms'] = {
+		days: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu", "Ahad"],
+		daysShort: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab", "Aha"],
+		daysMin: ["Ah", "Is", "Se", "Ra", "Kh", "Ju", "Sa", "Ah"],
+		months: ["Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"],
+		today: "Hari Ini"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.nb.js

@@ -0,0 +1,14 @@
+/**
+ * Norwegian (bokmål) translation for foundation-datepicker
+ * Fredrik Sundmyhr <http://github.com/fsundmyhr>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['nb'] = {
+		days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"],
+		daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"],
+		daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø", "Sø"],
+		months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
+		today: "I Dag"
+	};
+}(jQuery));

+ 17 - 0
plugins/datePicker/js/locales/foundation-datepicker.nl-BE.js

@@ -0,0 +1,17 @@
+/**
+ * Belgium-Dutch translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Julien Poulin <poulin_julien@hotmail.com>
+ */
+;(function($){
+  $.fn.fdatepicker.dates['nl-BE'] = {
+    days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
+    daysShort: ["zo", "ma", "di", "wo", "do", "vr", "za"],
+    daysMin: ["zo", "ma", "di", "wo", "do", "vr", "za"],
+    months: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
+    monthsShort: ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
+    today: "Vandaag",
+    clear: "Leegmaken",
+    weekStart: 1,
+    format: "dd/mm/yyyy"
+  };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.nl.js

@@ -0,0 +1,14 @@
+/**
+ * Dutch translation for foundation-datepicker
+ * Reinier Goltstein <mrgoltstein@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['nl'] = {
+		days: ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"],
+		daysShort: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zo"],
+		daysMin: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zo"],
+		months: ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
+		today: "Vandaag"
+	};
+}(jQuery));

+ 13 - 0
plugins/datePicker/js/locales/foundation-datepicker.no.js

@@ -0,0 +1,13 @@
+/**
+ * Norwegian translation for foundation-datepicker
+ */
+;(function($){
+	$.fn.fdatepicker.dates['no'] = {
+        days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"],
+        daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"],
+        daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø", "Sø"],
+        months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
+        monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
+        today: "I dag"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.pl.js

@@ -0,0 +1,15 @@
+/**
+ * Polish translation for foundation-datepicker
+ * Robert <rtpm@gazeta.pl>
+ */
+;(function($){
+        $.fn.fdatepicker.dates['pl'] = {
+                days: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"],
+                daysShort: ["Nie", "Pn", "Wt", "Śr", "Czw", "Pt", "So", "Nie"],
+                daysMin: ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"],
+                months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
+                monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"],
+                today: "Dzisiaj",
+                weekStart: 1
+        };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.pt-br.js

@@ -0,0 +1,14 @@
+/**
+ * Brazilian translation for foundation-datepicker
+ * Cauan Cabral <cauan@radig.com.br>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['pt-br'] = {
+		days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado", "Domingo"],
+		daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb", "Dom"],
+		daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa", "Do"],
+		months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
+		monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
+		today: "Hoje"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.pt.js

@@ -0,0 +1,14 @@
+/**
+ * Portuguese translation for foundation-datepicker
+ * Original code: Cauan Cabral <cauan@radig.com.br>
+ * Tiago Melo <tiago.blackcode@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['pt'] = {
+		days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado", "Domingo"],
+		daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb", "Dom"],
+		daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa", "Do"],
+		months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
+		monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.ro.js

@@ -0,0 +1,15 @@
+/**
+ * Romanian translation for foundation-datepicker
+ * Cristian Vasile <cristi.mie@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ro'] = {
+		days: ["Duminică", "Luni", "Marţi", "Miercuri", "Joi", "Vineri", "Sâmbătă", "Duminică"],
+		daysShort: ["Dum", "Lun", "Mar", "Mie", "Joi", "Vin", "Sâm", "Dum"],
+		daysMin: ["Du", "Lu", "Ma", "Mi", "Jo", "Vi", "Sâ", "Du"],
+		months: ["Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie"],
+		monthsShort: ["Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", "Sep", "Oct", "Nov", "Dec"],
+		today: "Astăzi",
+		weekStart: 1
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.rs-latin.js

@@ -0,0 +1,14 @@
+/**
+ * Serbian latin translation for foundation-datepicker
+ * Bojan Milosavlević <milboj@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['rs-latin'] = {
+		days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota", "Nedelja"],
+		daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", "Ned"],
+		daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su", "N"],
+		months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
+		today: "Danas"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.rs.js

@@ -0,0 +1,14 @@
+/**
+ * Serbian cyrillic translation for foundation-datepicker
+ * Bojan Milosavlević <milboj@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['rs'] = {
+		days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота", "Недеља"],
+		daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб", "Нед"],
+		daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су", "Н"],
+		months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
+		monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
+		today: "Данас"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.ru.js

@@ -0,0 +1,14 @@
+/**
+ * Russian translation for foundation-datepicker
+ * Victor Taranenko <darwin@snowdale.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['ru'] = {
+		days: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота", "Воскресенье"],
+		daysShort: ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Вск"],
+		daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"],
+		months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
+		monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"],
+		today: "Сегодня"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.sk.js

@@ -0,0 +1,14 @@
+/**
+ * Slovak translation for foundation-datepicker
+ * Peter Beňo <najlepsiwebdesigner@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates["sk"] = {
+		days: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota", "Nedeľa"],
+		daysShort: ["Ne", "Po", "Ut", "St", "Št", "Pi", "So", "Ne"],
+		daysMin: ["Ne", "Po", "Ut", "St", "Št", "Pi", "So", "Ne"],
+		months: ["Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Máj", "Jún", "Júl", "Aug", "Sep", "Okt", "Nov", "Dec"],
+		today: "Dnes"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.sl.js

@@ -0,0 +1,14 @@
+/**
+ * Slovene translation for foundation-datepicker
+ * Gregor Rudolf <gregor.rudolf@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['sl'] = {
+		days: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota", "Nedelja"],
+		daysShort: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob", "Ned"],
+		daysMin: ["Ne", "Po", "To", "Sr", "Če", "Pe", "So", "Ne"],
+		months: ["Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
+		today: "Danes"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.sq.js

@@ -0,0 +1,15 @@
+/**
+ * Albanian translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Tomor Pupovci <http://www.github.com/ttomor>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['sq'] = {
+		days: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"],
+		daysShort: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu"],
+		daysMin: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sht"],
+		months: ["Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"],
+		monthsShort: ["Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Korr", "Gu", "Sht", "Tet", "Nën", "Dhjet"],
+		today: "Sot"
+	};
+}(jQuery));
+

+ 16 - 0
plugins/datePicker/js/locales/foundation-datepicker.sr-latin.js

@@ -0,0 +1,16 @@
+/**
+ * Serbian latin translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Bojan Milosavlević <milboj@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['sr-latin'] = {
+		days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"],
+		daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
+		daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
+		months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
+		today: "Danas",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 16 - 0
plugins/datePicker/js/locales/foundation-datepicker.sr.js

@@ -0,0 +1,16 @@
+/**
+ * Serbian cyrillic translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Bojan Milosavlević <milboj@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['sr'] = {
+		days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"],
+		daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб"],
+		daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су"],
+		months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
+		monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
+		today: "Данас",
+		weekStart: 1,
+		format: "dd.mm.yyyy"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.sv.js

@@ -0,0 +1,14 @@
+/**
+ * Swedish translation for foundation-datepicker
+ * Patrik Ragnarsson <patrik@starkast.net>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['sv'] = {
+		days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag", "Söndag"],
+		daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", "Sön"],
+		daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö", "Sö"],
+		months: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"],
+		monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
+		today: "I Dag"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.sw.js

@@ -0,0 +1,15 @@
+/**
+ * Swahili translation for foundation-datepicker, language file from bootstrap-datepicker
+ * Edwin Mugendi <https://github.com/edwinmugendi>
+ * Source: http://scriptsource.org/cms/scripts/page.php?item_id=entry_detail&uid=xnfaqyzcku
+ */
+;(function($){
+    $.fn.fdatepicker.dates['sw'] = {
+        days: ["Jumapili", "Jumatatu", "Jumanne", "Jumatano", "Alhamisi", "Ijumaa", "Jumamosi"],
+        daysShort: ["J2", "J3", "J4", "J5", "Alh", "Ij", "J1"],
+        daysMin: ["2", "3", "4", "5", "A", "I", "1"],
+        months: ["Januari", "Februari", "Machi", "Aprili", "Mei", "Juni", "Julai", "Agosti", "Septemba", "Oktoba", "Novemba", "Desemba"],
+        monthsShort: ["Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ago", "Sep", "Okt", "Nov", "Des"],
+        today: "Leo"
+    };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.th.js

@@ -0,0 +1,14 @@
+/**
+ * Thai translation for foundation-datepicker
+ * Suchau Jiraprapot <seroz24@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['th'] = {
+		days: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"],
+		daysShort: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
+		daysMin: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
+		months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
+		monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
+		today: "วันนี้"
+	};
+}(jQuery));

+ 15 - 0
plugins/datePicker/js/locales/foundation-datepicker.tr.js

@@ -0,0 +1,15 @@
+/**
+ * Turkish translation for foundation-datepicker
+ * Serkan Algur <kaisercrazy_2@hotmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['tr'] = {
+		days: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"],
+		daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts", "Pz"],
+		daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct", "Pz"],
+		months: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
+		monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
+		today: "Bugün"
+	};
+}(jQuery));
+

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.uk.js

@@ -0,0 +1,14 @@
+/**
+ * Ukrainian translation for bootstrap-datepicker
+ * Andrey Vityuk <andrey [dot] vityuk [at] gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['uk'] = {
+		days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота", "Неділя"],
+		daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Нед"],
+		daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Нд"],
+		months: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
+		monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
+		today: "Сьогодні"
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.vi.js

@@ -0,0 +1,14 @@
+/**
+ * Vietnamese translation for foundation-datepicker
+ * thanks! https://github.com/handleror
+ */
+;(function($){
+	$.fn.fdatepicker.dates['vi'] = {
+		days: ["Chủ Nhật","Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7", "Chủ Nhật"],
+		daysShort: ["CN", "T2", "T3", "T4", "T5", "T6", "T7", "CN"],
+		daysMin: ["CN", "T2", "T3", "T4", "T5", "T6", "T7", "CN"],
+		months: ["Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"],
+		monthsShort: ["Thg1", "Thg2", "Thg3", "Thg4", "Thg5", "Thg6", "Thg7", "Thg8", "Thg9", "Thg10", "Thg11", "Thg12"],
+		today: "Hôm nay"
+    };
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.zh-CN.js

@@ -0,0 +1,14 @@
+/**
+ * Simplified Chinese translation for foundation-datepicker
+ * Yuan Cheung <advanimal@gmail.com>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['zh-CN'] = {
+        days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
+        daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
+        daysMin: ["日", "一", "二", "三", "四", "五", "六"],
+        months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
+        monthsShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
+        today: '今天'
+	};
+}(jQuery));

+ 14 - 0
plugins/datePicker/js/locales/foundation-datepicker.zh-TW.js

@@ -0,0 +1,14 @@
+/**
+ * Traditional Chinese translation for fondation-datepicker
+ * Rung-Sheng Jang <daniel@i-trend.co.cc>
+ */
+;(function($){
+	$.fn.fdatepicker.dates['zh-TW'] = {
+        days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
+        daysShort: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
+        daysMin: ["日", "一", "二", "三", "四", "五", "六"],
+        months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
+        monthsShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
+        today: '今天'
+	};
+}(jQuery));

+ 164 - 0
site-manage.html

@@ -0,0 +1,164 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=750, initial-scale=1, maximum-scale=1, user-scalable=0" />
+    <meta name="keywords" content="" />
+    <meta name="description" content="" />
+    <title>站点管理</title>
+    <!-- FAVICON AND APPLE TOUCH -->
+    <link href="favicon.ico" rel="shortcut icon" />
+    <link rel="apple-touch-icon-precomposed" sizes="180x180" />
+    <meta name="msapplication-TileImage" content="mstile.png" />
+    <link rel="stylesheet" href="css/common.css" />
+    <meta name="viewport" content="width=375, user-scalable=no" />
+</head>
+
+<body>
+    <div class="page-wrapper">
+
+        <div class="fixed-section">
+            <div class="nav-tit">
+                <a class="goBack" onclick="history.back()"></a>
+                站点管理
+            </div>
+            <div class="filterSection">
+                <input type="text" placeholder="请选择传输方式">
+                <span class="search">查询</span>
+            </div>
+        </div>
+        <div class="device-list">
+            <div class="noResult">
+                <p>暂无查询结果...</p>
+            </div>
+            <ul>
+
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/site-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试站点一</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/nav.png" alt="" width="14px"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/site-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试站点二</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/nav.png" alt="" width="14px"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/site-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试站点三</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/nav.png" alt="" width="14px"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/site-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试站点四</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/nav.png" alt="" width="14px"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+                <li class="device-item">
+                    <div class="iconBox"><img src="image/site-icon.png" alt=""></div>
+                    <div class="desBox">
+                        <p class="device-tit">测试站点五</p>
+                    </div>
+                    <a href="detail.html" class="navRight"><img src="image/nav.png" alt="" width="14px"></a>
+                    <div class="operate-box">
+                        <ul>
+                            <li class="opera-edit" οnclick="javascrtpt:window.location.href='add.html'">修改设备 </li>
+                            <li class="opera-delete">删除设备</li>
+                        </ul>
+                    </div>
+                </li>
+
+
+            </ul>
+            <a href="add.html"><img class="plus" src="image/plus-icon.png" alt=""></a>
+        </div>
+
+    </div>
+
+    <script src="js/layout.js"></script>
+    <script src="js/jquery-2.2.2.min.js"></script>
+    <script>
+        // 手机长按事件
+        var timeOutEvent = 0;
+        var _this;
+        $(function() {
+            $(".desBox").on({
+                touchstart: function(e) {
+                    _this = $(this)
+                    timeOutEvent = setTimeout("longPress()", 500);
+                    // e.preventDefault();
+                },
+                touchmove: function() {
+                    clearTimeout(timeOutEvent);
+                    timeOutEvent = 0;
+                },
+                touchend: function() {
+                    clearTimeout(timeOutEvent);
+                    if (timeOutEvent != 0) {
+                        // alert("你这是点击,不是长按");
+                    }
+                    return false;
+                }
+            })
+        });
+
+        function longPress() {
+            timeOutEvent = 0;
+            // alert("长按事件触发发");
+            _this.parent().find('.operate-box').show().parent().siblings().find('.operate-box').hide()
+
+        }
+
+        //点击修改页面跳转
+        $(".device-item").on("touchend", ".opera-edit", function() {
+            // alert("子元素点击");
+            window.location.href = "add.html";
+        })
+        $(".device-item").on("touchend", ".opera-delete", function() {
+            // alert("子元素点击");
+            $(this).parent().parent().parent().remove();
+        })
+
+        // 点击除按钮和弹框之外任意地方隐藏表情
+        $("body").click(function(e) {
+            if (!$(e.target).closest(".operate-box").length) {
+                $(".operate-box").hide();
+            }
+        });
+    </script>
+</body>
+
+</html>

Некоторые файлы не были показаны из-за большого количества измененных файлов