rails_jq_grid 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/COPYRIGHT.txt +17 -0
  2. data/GPL-LICENSE +675 -0
  3. data/README.rdoc +176 -0
  4. data/Rakefile +47 -0
  5. data/VERSION +1 -0
  6. data/app/helpers/rails_jq_grid/jq_grid_css_helper.rb +29 -0
  7. data/app/helpers/rails_jq_grid/jq_grid_helper.rb +21 -0
  8. data/app/helpers/rails_jq_grid/jq_grid_js_helper.rb +30 -0
  9. data/app/models/rails_jq_grid/jq_grid.rb +315 -0
  10. data/app/models/rails_jq_grid/jq_grid_column.rb +33 -0
  11. data/app/models/rails_jq_grid/jq_grid_method_missing.rb +50 -0
  12. data/app/models/rails_jq_grid/jq_grid_option_or_method.rb +46 -0
  13. data/lib/rails_jq_grid/acts_as_jq_grid_able.rb +76 -0
  14. data/lib/rails_jq_grid/acts_as_jq_grid_data_source.rb +34 -0
  15. data/lib/rails_jq_grid/engine.rb +23 -0
  16. data/lib/rails_jq_grid.rb +7 -0
  17. data/lib/tasks/rails_jq_grid.rake +1 -0
  18. data/public/javascripts/rails-jqgrid/Changes.txt +1160 -0
  19. data/public/javascripts/rails-jqgrid/i18n/grid.locale-bg.js +1 -0
  20. data/public/javascripts/rails-jqgrid/i18n/grid.locale-bg1251.js +1 -0
  21. data/public/javascripts/rails-jqgrid/i18n/grid.locale-cat.js +1 -0
  22. data/public/javascripts/rails-jqgrid/i18n/grid.locale-cn.js +1 -0
  23. data/public/javascripts/rails-jqgrid/i18n/grid.locale-cs.js +1 -0
  24. data/public/javascripts/rails-jqgrid/i18n/grid.locale-de.js +1 -0
  25. data/public/javascripts/rails-jqgrid/i18n/grid.locale-dk.js +1 -0
  26. data/public/javascripts/rails-jqgrid/i18n/grid.locale-el.js +1 -0
  27. data/public/javascripts/rails-jqgrid/i18n/grid.locale-en.js +1 -0
  28. data/public/javascripts/rails-jqgrid/i18n/grid.locale-es.js +1 -0
  29. data/public/javascripts/rails-jqgrid/i18n/grid.locale-fa.js +1 -0
  30. data/public/javascripts/rails-jqgrid/i18n/grid.locale-fi.js +1 -0
  31. data/public/javascripts/rails-jqgrid/i18n/grid.locale-fr.js +1 -0
  32. data/public/javascripts/rails-jqgrid/i18n/grid.locale-he.js +1 -0
  33. data/public/javascripts/rails-jqgrid/i18n/grid.locale-hu.js +1 -0
  34. data/public/javascripts/rails-jqgrid/i18n/grid.locale-is.js +1 -0
  35. data/public/javascripts/rails-jqgrid/i18n/grid.locale-it.js +1 -0
  36. data/public/javascripts/rails-jqgrid/i18n/grid.locale-ja.js +1 -0
  37. data/public/javascripts/rails-jqgrid/i18n/grid.locale-nl.js +1 -0
  38. data/public/javascripts/rails-jqgrid/i18n/grid.locale-no.js +1 -0
  39. data/public/javascripts/rails-jqgrid/i18n/grid.locale-pl.js +1 -0
  40. data/public/javascripts/rails-jqgrid/i18n/grid.locale-pt-br.js +1 -0
  41. data/public/javascripts/rails-jqgrid/i18n/grid.locale-pt.js +1 -0
  42. data/public/javascripts/rails-jqgrid/i18n/grid.locale-ro.js +1 -0
  43. data/public/javascripts/rails-jqgrid/i18n/grid.locale-ru.js +1 -0
  44. data/public/javascripts/rails-jqgrid/i18n/grid.locale-sk.js +1 -0
  45. data/public/javascripts/rails-jqgrid/i18n/grid.locale-sv.js +1 -0
  46. data/public/javascripts/rails-jqgrid/i18n/grid.locale-tr.js +1 -0
  47. data/public/javascripts/rails-jqgrid/i18n/grid.locale-ua.js +1 -0
  48. data/public/javascripts/rails-jqgrid/install.txt +43 -0
  49. data/public/javascripts/rails-jqgrid/jquery-1.4.2.min.js +154 -0
  50. data/public/javascripts/rails-jqgrid/jquery-ui-1.8.4.custom.min.js +763 -0
  51. data/public/javascripts/rails-jqgrid/jquery.jqGrid.min.js +445 -0
  52. data/public/javascripts/rails-jqgrid/src/JsonXml.js +330 -0
  53. data/public/javascripts/rails-jqgrid/src/css/ellipsis-xbl.xml +13 -0
  54. data/public/javascripts/rails-jqgrid/src/css/jquery.searchFilter.css +7 -0
  55. data/public/javascripts/rails-jqgrid/src/css/ui.jqgrid.css +129 -0
  56. data/public/javascripts/rails-jqgrid/src/css/ui.multiselect.css +30 -0
  57. data/public/javascripts/rails-jqgrid/src/grid.base.js +3003 -0
  58. data/public/javascripts/rails-jqgrid/src/grid.celledit.js +486 -0
  59. data/public/javascripts/rails-jqgrid/src/grid.common.js +636 -0
  60. data/public/javascripts/rails-jqgrid/src/grid.custom.js +818 -0
  61. data/public/javascripts/rails-jqgrid/src/grid.formedit.js +1872 -0
  62. data/public/javascripts/rails-jqgrid/src/grid.import.js +201 -0
  63. data/public/javascripts/rails-jqgrid/src/grid.inlinedit.js +250 -0
  64. data/public/javascripts/rails-jqgrid/src/grid.jqueryui.js +503 -0
  65. data/public/javascripts/rails-jqgrid/src/grid.loader.js +47 -0
  66. data/public/javascripts/rails-jqgrid/src/grid.postext.js +64 -0
  67. data/public/javascripts/rails-jqgrid/src/grid.setcolumns.js +126 -0
  68. data/public/javascripts/rails-jqgrid/src/grid.subgrid.js +260 -0
  69. data/public/javascripts/rails-jqgrid/src/grid.tbltogrid.js +106 -0
  70. data/public/javascripts/rails-jqgrid/src/grid.treegrid.js +483 -0
  71. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-bg.js +132 -0
  72. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-bg1251.js +132 -0
  73. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-cat.js +128 -0
  74. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-cn.js +132 -0
  75. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-cs.js +128 -0
  76. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-de.js +128 -0
  77. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-dk.js +128 -0
  78. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-el.js +126 -0
  79. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-en.js +128 -0
  80. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-es.js +128 -0
  81. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-fa.js +125 -0
  82. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-fi.js +130 -0
  83. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-fr.js +126 -0
  84. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-he.js +127 -0
  85. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-hu.js +129 -0
  86. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-is.js +126 -0
  87. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-it.js +1 -0
  88. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-ja.js +155 -0
  89. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-nl.js +149 -0
  90. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-no.js +1 -0
  91. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-pl.js +127 -0
  92. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-pt-br.js +127 -0
  93. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-pt.js +125 -0
  94. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-ro.js +139 -0
  95. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-ru.js +127 -0
  96. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-sk.js +127 -0
  97. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-sv.js +127 -0
  98. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-tr.js +126 -0
  99. data/public/javascripts/rails-jqgrid/src/i18n/grid.locale-ua.js +127 -0
  100. data/public/javascripts/rails-jqgrid/src/jqDnR.js +68 -0
  101. data/public/javascripts/rails-jqgrid/src/jqModal.js +69 -0
  102. data/public/javascripts/rails-jqgrid/src/jquery.fmatter.js +542 -0
  103. data/public/javascripts/rails-jqgrid/src/jquery.searchFilter.js +716 -0
  104. data/public/javascripts/rails-jqgrid/src/ui.multiselect.js +314 -0
  105. data/public/stylesheets/rails-jqgrid/ellipsis-xbl.xml +13 -0
  106. data/public/stylesheets/rails-jqgrid/themes/AUTHORS.txt +30 -0
  107. data/public/stylesheets/rails-jqgrid/themes/GPL-LICENSE.txt +278 -0
  108. data/public/stylesheets/rails-jqgrid/themes/MIT-LICENSE.txt +25 -0
  109. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  110. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  111. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  112. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  113. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  114. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  115. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  116. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  117. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  118. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  119. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  120. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  121. data/public/stylesheets/rails-jqgrid/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  122. data/public/stylesheets/rails-jqgrid/themes/smoothness/jquery-ui-1.8.4.custom.css +572 -0
  123. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_flat_55_999999_40x100.png +0 -0
  124. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  125. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_glass_45_0078ae_1x400.png +0 -0
  126. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  127. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  128. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  129. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  130. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  131. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  132. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_0078ae_256x240.png +0 -0
  133. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_056b93_256x240.png +0 -0
  134. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_d8e7f3_256x240.png +0 -0
  135. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_e0fdff_256x240.png +0 -0
  136. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_f5e175_256x240.png +0 -0
  137. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_f7a50d_256x240.png +0 -0
  138. data/public/stylesheets/rails-jqgrid/themes/start/images/ui-icons_fcd113_256x240.png +0 -0
  139. data/public/stylesheets/rails-jqgrid/themes/start/jquery-ui-1.8.4.custom.css +573 -0
  140. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  141. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  142. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_glass_20_555555_1x400.png +0 -0
  143. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
  144. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  145. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  146. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  147. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  148. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  149. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-icons_222222_256x240.png +0 -0
  150. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-icons_4b8e0b_256x240.png +0 -0
  151. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-icons_a83300_256x240.png +0 -0
  152. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-icons_cccccc_256x240.png +0 -0
  153. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/images/ui-icons_ffffff_256x240.png +0 -0
  154. data/public/stylesheets/rails-jqgrid/themes/ui-darkness/jquery-ui-1.8.4.custom.css +572 -0
  155. data/public/stylesheets/rails-jqgrid/themes/version.txt +1 -0
  156. data/public/stylesheets/rails-jqgrid/ui.jqgrid.css +2 -0
  157. data/rails_jq_grid.gemspec +200 -0
  158. data/spec/spec.opts +1 -0
  159. data/spec/spec_helper.rb +8 -0
  160. metadata +240 -0
@@ -0,0 +1,126 @@
1
+ ;(function($){
2
+ /**
3
+ * jqGrid Turkish Translation
4
+ * Erhan Gündoğan (erhan@trposta.net)
5
+ * http://blog.zakkum.com
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ **/
10
+ $.jgrid = {
11
+ defaults : {
12
+ recordtext: "{0}-{1} listeleniyor. Toplam:{2}",
13
+ emptyrecords: "Kayıt bulunamadı",
14
+ loadtext: "Yükleniyor...",
15
+ pgtext : "{0}/{1}. Sayfa"
16
+ },
17
+ search : {
18
+ caption: "Arama...",
19
+ Find: "Bul",
20
+ Reset: "Temizle",
21
+ odata : ['eşit', 'eşit değil', 'daha az', 'daha az veya eşit', 'daha fazla', 'daha fazla veya eşit', 'ile başlayan', 'ile başlamayan', 'içinde', 'içinde değil', 'ile biten', 'ile bitmeyen', 'içeren', 'içermeyen'],
22
+ groupOps: [ { op: "VE", text: "tüm" }, { op: "VEYA", text: "herhangi" } ],
23
+ matchText: " uyan",
24
+ rulesText: " kurallar"
25
+ },
26
+ edit : {
27
+ addCaption: "Kayıt Ekle",
28
+ editCaption: "Kayıt Düzenle",
29
+ bSubmit: "Gönder",
30
+ bCancel: "İptal",
31
+ bClose: "Kapat",
32
+ saveData: "Veriler değişti! Kayıt edilsin mi?",
33
+ bYes : "Evet",
34
+ bNo : "Hayıt",
35
+ bExit : "İptal",
36
+ msg: {
37
+ required:"Alan gerekli",
38
+ number:"Lütfen bir numara giriniz",
39
+ minValue:"girilen değer daha büyük ya da buna eşit olmalıdır",
40
+ maxValue:"girilen değer daha küçük ya da buna eşit olmalıdır",
41
+ email: "geçerli bir e-posta adresi değildir",
42
+ integer: "Lütfen bir tamsayı giriniz",
43
+ url: "Geçerli bir URL değil. ('http://' or 'https://') ön eki gerekli.",
44
+ nodefined : " is not defined!",
45
+ novalue : " return value is required!",
46
+ customarray : "Custom function should return array!",
47
+ customfcheck : "Custom function should be present in case of custom checking!"
48
+ }
49
+ },
50
+ view : {
51
+ caption: "Kayıt Görüntüle",
52
+ bClose: "Kapat"
53
+ },
54
+ del : {
55
+ caption: "Sil",
56
+ msg: "Seçilen kayıtlar silinsin mi?",
57
+ bSubmit: "Sil",
58
+ bCancel: "İptal"
59
+ },
60
+ nav : {
61
+ edittext: " ",
62
+ edittitle: "Seçili satırı düzenle",
63
+ addtext:" ",
64
+ addtitle: "Yeni satır ekle",
65
+ deltext: " ",
66
+ deltitle: "Seçili satırı sil",
67
+ searchtext: " ",
68
+ searchtitle: "Kayıtları bul",
69
+ refreshtext: "",
70
+ refreshtitle: "Tabloyu yenile",
71
+ alertcap: "Uyarı",
72
+ alerttext: "Lütfen bir satır seçiniz",
73
+ viewtext: "",
74
+ viewtitle: "Seçilen satırı görüntüle"
75
+ },
76
+ col : {
77
+ caption: "Sütunları göster/gizle",
78
+ bSubmit: "Gönder",
79
+ bCancel: "İptal"
80
+ },
81
+ errors : {
82
+ errcap : "Hata",
83
+ nourl : "Bir url yapılandırılmamış",
84
+ norecords: "İşlem yapılacak bir kayıt yok",
85
+ model : "colNames uzunluğu <> colModel!"
86
+ },
87
+ formatter : {
88
+ integer : {thousandsSeparator: " ", defaultValue: '0'},
89
+ number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
90
+ currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
91
+ date : {
92
+ dayNames: [
93
+ "Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts",
94
+ "Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"
95
+ ],
96
+ monthNames: [
97
+ "Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara",
98
+ "Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"
99
+ ],
100
+ AmPm : ["am","pm","AM","PM"],
101
+ S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
102
+ srcformat: 'Y-m-d',
103
+ newformat: 'd/m/Y',
104
+ masks : {
105
+ ISO8601Long:"Y-m-d H:i:s",
106
+ ISO8601Short:"Y-m-d",
107
+ ShortDate: "n/j/Y",
108
+ LongDate: "l, F d, Y",
109
+ FullDateTime: "l, F d, Y g:i:s A",
110
+ MonthDay: "F d",
111
+ ShortTime: "g:i A",
112
+ LongTime: "g:i:s A",
113
+ SortableDateTime: "Y-m-d\\TH:i:s",
114
+ UniversalSortableDateTime: "Y-m-d H:i:sO",
115
+ YearMonth: "F, Y"
116
+ },
117
+ reformatAfterEdit : false
118
+ },
119
+ baseLinkUrl: '',
120
+ showAction: '',
121
+ target: '',
122
+ checkbox : {disabled:true},
123
+ idName : 'id'
124
+ }
125
+ };
126
+ })(jQuery);
@@ -0,0 +1,127 @@
1
+ ;(function($){
2
+ /**
3
+ * jqGrid Ukrainian Translation v1.0 02.07.2009
4
+ * Sergey Dyagovchenko
5
+ * http://d.sumy.ua
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ **/
10
+ $.jgrid = {
11
+ defaults : {
12
+ recordtext: "Перегляд {0} - {1} з {2}",
13
+ emptyrecords: "Немає записів для перегляду",
14
+ loadtext: "Завантаження...",
15
+ pgtext : "Стор. {0} з {1}"
16
+ },
17
+ search : {
18
+ caption: "Пошук...",
19
+ Find: "Знайти",
20
+ Reset: "Скидання",
21
+ odata : ['рівно', 'не рівно', 'менше', 'менше або рівне','більше','більше або рівне', 'починається з','не починається з','знаходиться в','не знаходиться в','закінчується на','не закінчується на','містить','не містить'],
22
+ groupOps: [ { op: "AND", text: "все" }, { op: "OR", text: "будь-який" } ],
23
+ matchText: " збігається",
24
+ rulesText: " правила"
25
+ },
26
+ edit : {
27
+ addCaption: "Додати запис",
28
+ editCaption: "Змінити запис",
29
+ bSubmit: "Зберегти",
30
+ bCancel: "Відміна",
31
+ bClose: "Закрити",
32
+ saveData: "До данних були внесені зміни! Зберегти зміни?",
33
+ bYes : "Так",
34
+ bNo : "Ні",
35
+ bExit : "Відміна",
36
+ msg: {
37
+ required:"Поле є обов'язковим",
38
+ number:"Будь ласка, введіть правильне число",
39
+ minValue:"значення повинне бути більше або дорівнює",
40
+ maxValue:"значення повинно бути менше або дорівнює",
41
+ email: "некоректна адреса електронної пошти",
42
+ integer: "Будь ласка, введення дійсне ціле значення",
43
+ date: "Будь ласка, введення дійсне значення дати",
44
+ url: "не дійсний URL. Необхідна приставка ('http://' or 'https://')",
45
+ nodefined : " is not defined!",
46
+ novalue : " return value is required!",
47
+ customarray : "Custom function should return array!",
48
+ customfcheck : "Custom function should be present in case of custom checking!"
49
+ }
50
+ },
51
+ view : {
52
+ caption: "Переглянути запис",
53
+ bClose: "Закрити"
54
+ },
55
+ del : {
56
+ caption: "Видалити",
57
+ msg: "Видалити обраний запис(и)?",
58
+ bSubmit: "Видалити",
59
+ bCancel: "Відміна"
60
+ },
61
+ nav : {
62
+ edittext: " ",
63
+ edittitle: "Змінити вибраний запис",
64
+ addtext:" ",
65
+ addtitle: "Додати новий запис",
66
+ deltext: " ",
67
+ deltitle: "Видалити вибраний запис",
68
+ searchtext: " ",
69
+ searchtitle: "Знайти записи",
70
+ refreshtext: "",
71
+ refreshtitle: "Оновити таблицю",
72
+ alertcap: "Попередження",
73
+ alerttext: "Будь ласка, виберіть запис",
74
+ viewtext: "",
75
+ viewtitle: "Переглянути обраний запис"
76
+ },
77
+ col : {
78
+ caption: "Показати/Приховати стовпці",
79
+ bSubmit: "Зберегти",
80
+ bCancel: "Відміна"
81
+ },
82
+ errors : {
83
+ errcap : "Помилка",
84
+ nourl : "URL не задан",
85
+ norecords: "Немає записів для обробки",
86
+ model : "Число полів не відповідає числу стовпців таблиці!"
87
+ },
88
+ formatter : {
89
+ integer : {thousandsSeparator: " ", defaultValue: '0'},
90
+ number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'},
91
+ currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'},
92
+ date : {
93
+ dayNames: [
94
+ "Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб",
95
+ "Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"
96
+ ],
97
+ monthNames: [
98
+ "Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру",
99
+ "Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"
100
+ ],
101
+ AmPm : ["am","pm","AM","PM"],
102
+ S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
103
+ srcformat: 'Y-m-d',
104
+ newformat: 'd.m.Y',
105
+ masks : {
106
+ ISO8601Long:"Y-m-d H:i:s",
107
+ ISO8601Short:"Y-m-d",
108
+ ShortDate: "n.j.Y",
109
+ LongDate: "l, F d, Y",
110
+ FullDateTime: "l, F d, Y G:i:s",
111
+ MonthDay: "F d",
112
+ ShortTime: "G:i",
113
+ LongTime: "G:i:s",
114
+ SortableDateTime: "Y-m-d\\TH:i:s",
115
+ UniversalSortableDateTime: "Y-m-d H:i:sO",
116
+ YearMonth: "F, Y"
117
+ },
118
+ reformatAfterEdit : false
119
+ },
120
+ baseLinkUrl: '',
121
+ showAction: '',
122
+ target: '',
123
+ checkbox : {disabled:true},
124
+ idName : 'id'
125
+ }
126
+ };
127
+ })(jQuery);
@@ -0,0 +1,68 @@
1
+ /*
2
+ * jqDnR - Minimalistic Drag'n'Resize for jQuery.
3
+ *
4
+ * Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net
5
+ * Licensed under the MIT License:
6
+ * http://www.opensource.org/licenses/mit-license.php
7
+ *
8
+ * $Version: 2007.08.19 +r2
9
+ */
10
+
11
+ (function($){
12
+ $.fn.jqDrag=function(h){return i(this,h,'d');};
13
+ $.fn.jqResize=function(h,ar){return i(this,h,'r',ar);};
14
+ $.jqDnR={
15
+ dnr:{},
16
+ e:0,
17
+ drag:function(v){
18
+ if(M.k == 'd')E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY});
19
+ else {
20
+ E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)});
21
+ if(M1){E1.css({width:Math.max(v.pageX-M1.pX+M1.W,0),height:Math.max(v.pageY-M1.pY+M1.H,0)});}
22
+ }
23
+ return false;
24
+ },
25
+ stop:function(){
26
+ //E.css('opacity',M.o);
27
+ $(document).unbind('mousemove',J.drag).unbind('mouseup',J.stop);
28
+ }
29
+ };
30
+ var J=$.jqDnR,M=J.dnr,E=J.e,E1,
31
+ i=function(e,h,k,aR){
32
+ return e.each(function(){
33
+ h=(h)?$(h,e):e;
34
+ h.bind('mousedown',{e:e,k:k},function(v){
35
+ var d=v.data,p={};E=d.e;E1 = aR ? $(aR) : false;
36
+ // attempt utilization of dimensions plugin to fix IE issues
37
+ if(E.css('position') != 'relative'){try{E.position(p);}catch(e){}}
38
+ M={
39
+ X:p.left||f('left')||0,
40
+ Y:p.top||f('top')||0,
41
+ W:f('width')||E[0].scrollWidth||0,
42
+ H:f('height')||E[0].scrollHeight||0,
43
+ pX:v.pageX,
44
+ pY:v.pageY,
45
+ k:d.k
46
+ //o:E.css('opacity')
47
+ };
48
+ // also resize
49
+ if(E1 && d.k != 'd'){
50
+ M1={
51
+ X:p.left||f1('left')||0,
52
+ Y:p.top||f1('top')||0,
53
+ W:E1[0].offsetWidth||f1('width')||0,
54
+ H:E1[0].offsetHeight||f1('height')||0,
55
+ pX:v.pageX,
56
+ pY:v.pageY,
57
+ k:d.k
58
+ };
59
+ } else {M1 = false;}
60
+ //E.css({opacity:0.8});
61
+ $(document).mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);
62
+ return false;
63
+ });
64
+ });
65
+ },
66
+ f=function(k){return parseInt(E.css(k))||false;};
67
+ f1=function(k){ return parseInt(E1.css(k))||false;};
68
+ })(jQuery);
@@ -0,0 +1,69 @@
1
+ /*
2
+ * jqModal - Minimalist Modaling with jQuery
3
+ * (http://dev.iceburg.net/jquery/jqmodal/)
4
+ *
5
+ * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net>
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ *
10
+ * $Version: 07/06/2008 +r13
11
+ */
12
+ (function($) {
13
+ $.fn.jqm=function(o){
14
+ var p={
15
+ overlay: 50,
16
+ closeoverlay : true,
17
+ overlayClass: 'jqmOverlay',
18
+ closeClass: 'jqmClose',
19
+ trigger: '.jqModal',
20
+ ajax: F,
21
+ ajaxText: '',
22
+ target: F,
23
+ modal: F,
24
+ toTop: F,
25
+ onShow: F,
26
+ onHide: F,
27
+ onLoad: F
28
+ };
29
+ return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;
30
+ H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};
31
+ if(p.trigger)$(this).jqmAddTrigger(p.trigger);
32
+ });};
33
+
34
+ $.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide');};
35
+ $.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');};
36
+ $.fn.jqmShow=function(t){return this.each(function(){$.jqm.open(this._jqm,t);});};
37
+ $.fn.jqmHide=function(t){return this.each(function(){$.jqm.close(this._jqm,t)});};
38
+
39
+ $.jqm = {
40
+ hash:{},
41
+ open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index')));z=(z>0)?z:3000;var o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);
42
+ if(c.modal) {if(!A[0])setTimeout(function(){L('bind');},1);A.push(s);}
43
+ else if(c.overlay > 0) {if(c.closeoverlay) h.w.jqmAddClose(o);}
44
+ else o=F;
45
+
46
+ h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;
47
+ if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}
48
+
49
+ if(c.ajax) {var r=c.target||h.w,u=c.ajax;r=(typeof r == 'string')?$(r,h.w):$(r);u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u;
50
+ r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});}
51
+ else if(cc)h.w.jqmAddClose($(cc,h.w));
52
+
53
+ if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);
54
+ (c.onShow)?c.onShow(h):h.w.show();e(h);return F;
55
+ },
56
+ close:function(s){var h=H[s];if(!h.a)return F;h.a=F;
57
+ if(A[0]){A.pop();if(!A[0])L('unbind');}
58
+ if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();
59
+ if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return F;
60
+ },
61
+ params:{}};
62
+ var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version == "6.0"),F=false,
63
+ e=function(h){var i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0});if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i); f(h);},
64
+ f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}},
65
+ L=function(t){$(document)[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},
66
+ m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;},
67
+ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function() {
68
+ if(!this[c]){this[c]=[];$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F;});}this[c].push(s);});});};
69
+ })(jQuery);