MW WP Form - Version 1.4.1

Version Description

  • Changed : Changed flow to read saving inquiry data.
  • Bug fix : Fix tel validation.
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin MW WP Form
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4.0 to 1.4.1

css/admin.css CHANGED
@@ -287,3 +287,11 @@ span#formkey_field {
287
  display: block;
288
  }
289
 
 
 
 
 
 
 
 
 
287
  display: block;
288
  }
289
 
290
+ /**
291
+ * .mw-wp-form-table
292
+ */
293
+ .mw-wp-form-table-count,
294
+ .mw-wp-form-table-date {
295
+ width: 20%;
296
+ }
297
+
languages/mw-wp-form-ja.mo CHANGED
Binary file
languages/mw-wp-form-ja.po CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the MW WP Form package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MW WP Form 1.4.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2014-03-20 14:55:13+00:00\n"
8
- "PO-Revision-Date: 2014-03-20 23:57+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
@@ -38,7 +38,7 @@ msgstr "ボタンに表示する文字列"
38
  #: form_fields/mw_form_field_button.php:88
39
  #: form_fields/mw_form_field_checkbox.php:104
40
  #: form_fields/mw_form_field_checkbox.php:108
41
- #: form_fields/mw_form_field_checkbox.php:117
42
  #: form_fields/mw_form_field_confirm_button.php:82
43
  #: form_fields/mw_form_field_datepicker.php:126
44
  #: form_fields/mw_form_field_datepicker.php:130
@@ -56,10 +56,10 @@ msgstr "ボタンに表示する文字列"
56
  #: form_fields/mw_form_field_password.php:119
57
  #: form_fields/mw_form_field_radio.php:102
58
  #: form_fields/mw_form_field_radio.php:106
59
- #: form_fields/mw_form_field_radio.php:115
60
  #: form_fields/mw_form_field_select.php:102
61
  #: form_fields/mw_form_field_select.php:106
62
- #: form_fields/mw_form_field_select.php:115
63
  #: form_fields/mw_form_field_submit.php:88
64
  #: form_fields/mw_form_field_text.php:105
65
  #: form_fields/mw_form_field_text.php:109
@@ -88,32 +88,32 @@ msgstr "チェックボックス"
88
  msgid "Choices"
89
  msgstr "選択肢"
90
 
91
- #: form_fields/mw_form_field_checkbox.php:112
92
- #: form_fields/mw_form_field_error.php:91
93
- #: form_fields/mw_form_field_radio.php:110
94
- #: form_fields/mw_form_field_select.php:110
95
  msgid "Input one line about one item."
96
  msgstr "1項目につき1行で入力してください。"
97
 
98
- #: form_fields/mw_form_field_checkbox.php:117
99
  #: form_fields/mw_form_field_confirm_button.php:82
100
  #: form_fields/mw_form_field_datepicker.php:138
101
  #: form_fields/mw_form_field_hidden.php:98
102
  #: form_fields/mw_form_field_password.php:115
103
- #: form_fields/mw_form_field_radio.php:115
104
- #: form_fields/mw_form_field_select.php:115
105
  #: form_fields/mw_form_field_text.php:117
106
  #: form_fields/mw_form_field_textarea.php:117
107
  msgid "Default value"
108
  msgstr "初期値"
109
 
110
- #: form_fields/mw_form_field_checkbox.php:121
111
  #: form_fields/mw_form_field_datepicker.php:142
112
  #: form_fields/mw_form_field_file.php:125
113
  #: form_fields/mw_form_field_image.php:126
114
  #: form_fields/mw_form_field_password.php:123
115
- #: form_fields/mw_form_field_radio.php:119
116
- #: form_fields/mw_form_field_select.php:119
117
  #: form_fields/mw_form_field_tel.php:100
118
  #: form_fields/mw_form_field_text.php:125
119
  #: form_fields/mw_form_field_textarea.php:125
@@ -121,13 +121,13 @@ msgstr "初期値"
121
  msgid "Dsiplay error"
122
  msgstr "エラー表示"
123
 
124
- #: form_fields/mw_form_field_checkbox.php:122
125
  #: form_fields/mw_form_field_datepicker.php:143
126
  #: form_fields/mw_form_field_file.php:126
127
  #: form_fields/mw_form_field_image.php:127
128
  #: form_fields/mw_form_field_password.php:124
129
- #: form_fields/mw_form_field_radio.php:120
130
- #: form_fields/mw_form_field_select.php:120
131
  #: form_fields/mw_form_field_tel.php:101
132
  #: form_fields/mw_form_field_text.php:126
133
  #: form_fields/mw_form_field_textarea.php:126
@@ -281,43 +281,43 @@ msgstr "郵便番号の形式ではありません。"
281
  msgid "This is not the format of a tel number."
282
  msgstr "電話番号の形式ではありません。"
283
 
284
- #: system/mw_validation.php:303
285
  msgid "This is not the format of a mail address."
286
  msgstr "メールアドレスの形式ではありません。"
287
 
288
- #: system/mw_validation.php:326
289
  msgid "This is not the format of a url."
290
  msgstr "URLの形式ではありません。"
291
 
292
- #: system/mw_validation.php:346
293
  msgid "This is not in agreement."
294
  msgstr "一致しません。"
295
 
296
- #: system/mw_validation.php:372
297
  msgid "The number of characters is invalid."
298
  msgstr "文字数が正しくありません。"
299
 
300
- #: system/mw_validation.php:409
301
  msgid "The number of characters is a few."
302
  msgstr "文字数が足りません。"
303
 
304
- #: system/mw_validation.php:434
305
  msgid "This value is invalid."
306
  msgstr "値が不正です。"
307
 
308
- #: system/mw_validation.php:457
309
  msgid "This is not the format of a date."
310
  msgstr "日付の形式ではありません。"
311
 
312
- #: system/mw_validation.php:486
313
  msgid "This file is invalid."
314
  msgstr "許可されたファイルではありません。"
315
 
316
- #: system/mw_validation.php:515
317
  msgid "This file size is too big."
318
  msgstr "ファイルサイズが大きすぎます。"
319
 
320
- #: system/mw_validation.php:534
321
  msgid "The contents which you input were judged with spam."
322
  msgstr "あなたの入力した内容はスパムと判定されました。"
323
 
@@ -415,7 +415,7 @@ msgid "Example: {ID}, {post_title}, {post_meta} etc..."
415
  msgstr "例:{ID}、{post_title}、{post_meta}など…"
416
 
417
  #: system/mw_wp_form_admin_page.php:351
418
- msgid "Saving contact data in database"
419
  msgstr "問い合わせデータをデータベースに保存"
420
 
421
  #: system/mw_wp_form_admin_page.php:355
@@ -532,7 +532,7 @@ msgstr "メールアドレス"
532
 
533
  #: system/mw_wp_form_admin_page.php:550
534
  msgid "URL"
535
- msgstr ""
536
 
537
  #: system/mw_wp_form_admin_page.php:551
538
  msgid "Date"
@@ -564,7 +564,7 @@ msgstr "サイズ制限"
564
 
565
  #: system/mw_wp_form_admin_page.php:576
566
  msgid "bytes"
567
- msgstr ""
568
 
569
  #: system/mw_wp_form_admin_page.php:592
570
  msgid "Select Style"
@@ -574,53 +574,87 @@ msgstr "スタイルを選択"
574
  msgid "Add form tag"
575
  msgstr "フォームタグを追加"
576
 
577
- #: system/mw_wp_form_contact_data_page.php:92
578
  msgid "Edit "
579
  msgstr "編集"
580
 
581
- #: system/mw_wp_form_contact_data_page.php:93
582
  msgid "View"
583
  msgstr "表示"
584
 
585
- #: system/mw_wp_form_contact_data_page.php:94
586
  msgid "Search"
587
  msgstr "検索"
588
 
589
- #: system/mw_wp_form_contact_data_page.php:95
590
  msgid "No data found"
591
  msgstr "データがありません"
592
 
593
- #: system/mw_wp_form_contact_data_page.php:96
594
  msgid "No data found in Trash"
595
  msgstr "ゴミ箱にデータはありません"
596
 
597
- #: system/mw_wp_form_contact_data_page.php:137
598
  msgid "CSV Download"
599
  msgstr "CSVダウンロード"
600
 
601
- #: system/mw_wp_form_contact_data_page.php:225
602
  msgid "Custom Fields"
603
  msgstr "カスタムフィールド"
604
 
605
- #: system/mw_wp_form_contact_data_page.php:249
606
  msgid "Registed Date"
607
  msgstr "登録日時"
608
 
609
- #: system/mw_wp_form_contact_data_page.php:340
610
  msgid "Memo"
611
  msgstr "メモ"
612
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  #: system/mw_wp_form_file.php:152
614
  msgid "Uploaded from "
615
- msgstr ""
616
 
617
  #. Plugin Name of the plugin/theme
618
  msgid "MW WP Form"
619
- msgstr ""
620
 
621
  #. Plugin URI of the plugin/theme
622
  msgid "http://plugins.2inc.org/mw-wp-form/"
623
- msgstr ""
624
 
625
  #. Description of the plugin/theme
626
  msgid "MW WP Form can create mail form with a confirmation screen."
@@ -635,6 +669,12 @@ msgstr ""
635
  msgid "http://2inc.org"
636
  msgstr ""
637
 
 
 
 
 
 
 
638
  #~ msgid "If empty: Using admin E-mail address."
639
  #~ msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
640
 
2
  # This file is distributed under the same license as the MW WP Form package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MW WP Form 1.4.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2014-04-02 13:45:53+00:00\n"
8
+ "PO-Revision-Date: 2014-04-02 22:47+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
38
  #: form_fields/mw_form_field_button.php:88
39
  #: form_fields/mw_form_field_checkbox.php:104
40
  #: form_fields/mw_form_field_checkbox.php:108
41
+ #: form_fields/mw_form_field_checkbox.php:115
42
  #: form_fields/mw_form_field_confirm_button.php:82
43
  #: form_fields/mw_form_field_datepicker.php:126
44
  #: form_fields/mw_form_field_datepicker.php:130
56
  #: form_fields/mw_form_field_password.php:119
57
  #: form_fields/mw_form_field_radio.php:102
58
  #: form_fields/mw_form_field_radio.php:106
59
+ #: form_fields/mw_form_field_radio.php:113
60
  #: form_fields/mw_form_field_select.php:102
61
  #: form_fields/mw_form_field_select.php:106
62
+ #: form_fields/mw_form_field_select.php:113
63
  #: form_fields/mw_form_field_submit.php:88
64
  #: form_fields/mw_form_field_text.php:105
65
  #: form_fields/mw_form_field_text.php:109
88
  msgid "Choices"
89
  msgstr "選択肢"
90
 
91
+ #: form_fields/mw_form_field_checkbox.php:111
92
+ #: form_fields/mw_form_field_error.php:90
93
+ #: form_fields/mw_form_field_radio.php:109
94
+ #: form_fields/mw_form_field_select.php:109
95
  msgid "Input one line about one item."
96
  msgstr "1項目につき1行で入力してください。"
97
 
98
+ #: form_fields/mw_form_field_checkbox.php:115
99
  #: form_fields/mw_form_field_confirm_button.php:82
100
  #: form_fields/mw_form_field_datepicker.php:138
101
  #: form_fields/mw_form_field_hidden.php:98
102
  #: form_fields/mw_form_field_password.php:115
103
+ #: form_fields/mw_form_field_radio.php:113
104
+ #: form_fields/mw_form_field_select.php:113
105
  #: form_fields/mw_form_field_text.php:117
106
  #: form_fields/mw_form_field_textarea.php:117
107
  msgid "Default value"
108
  msgstr "初期値"
109
 
110
+ #: form_fields/mw_form_field_checkbox.php:119
111
  #: form_fields/mw_form_field_datepicker.php:142
112
  #: form_fields/mw_form_field_file.php:125
113
  #: form_fields/mw_form_field_image.php:126
114
  #: form_fields/mw_form_field_password.php:123
115
+ #: form_fields/mw_form_field_radio.php:117
116
+ #: form_fields/mw_form_field_select.php:117
117
  #: form_fields/mw_form_field_tel.php:100
118
  #: form_fields/mw_form_field_text.php:125
119
  #: form_fields/mw_form_field_textarea.php:125
121
  msgid "Dsiplay error"
122
  msgstr "エラー表示"
123
 
124
+ #: form_fields/mw_form_field_checkbox.php:120
125
  #: form_fields/mw_form_field_datepicker.php:143
126
  #: form_fields/mw_form_field_file.php:126
127
  #: form_fields/mw_form_field_image.php:127
128
  #: form_fields/mw_form_field_password.php:124
129
+ #: form_fields/mw_form_field_radio.php:118
130
+ #: form_fields/mw_form_field_select.php:118
131
  #: form_fields/mw_form_field_tel.php:101
132
  #: form_fields/mw_form_field_text.php:126
133
  #: form_fields/mw_form_field_textarea.php:126
281
  msgid "This is not the format of a tel number."
282
  msgstr "電話番号の形式ではありません。"
283
 
284
+ #: system/mw_validation.php:304
285
  msgid "This is not the format of a mail address."
286
  msgstr "メールアドレスの形式ではありません。"
287
 
288
+ #: system/mw_validation.php:327
289
  msgid "This is not the format of a url."
290
  msgstr "URLの形式ではありません。"
291
 
292
+ #: system/mw_validation.php:347
293
  msgid "This is not in agreement."
294
  msgstr "一致しません。"
295
 
296
+ #: system/mw_validation.php:373
297
  msgid "The number of characters is invalid."
298
  msgstr "文字数が正しくありません。"
299
 
300
+ #: system/mw_validation.php:410
301
  msgid "The number of characters is a few."
302
  msgstr "文字数が足りません。"
303
 
304
+ #: system/mw_validation.php:435
305
  msgid "This value is invalid."
306
  msgstr "値が不正です。"
307
 
308
+ #: system/mw_validation.php:458
309
  msgid "This is not the format of a date."
310
  msgstr "日付の形式ではありません。"
311
 
312
+ #: system/mw_validation.php:487
313
  msgid "This file is invalid."
314
  msgstr "許可されたファイルではありません。"
315
 
316
+ #: system/mw_validation.php:516
317
  msgid "This file size is too big."
318
  msgstr "ファイルサイズが大きすぎます。"
319
 
320
+ #: system/mw_validation.php:535
321
  msgid "The contents which you input were judged with spam."
322
  msgstr "あなたの入力した内容はスパムと判定されました。"
323
 
415
  msgstr "例:{ID}、{post_title}、{post_meta}など…"
416
 
417
  #: system/mw_wp_form_admin_page.php:351
418
+ msgid "Saving inquiry data in database"
419
  msgstr "問い合わせデータをデータベースに保存"
420
 
421
  #: system/mw_wp_form_admin_page.php:355
532
 
533
  #: system/mw_wp_form_admin_page.php:550
534
  msgid "URL"
535
+ msgstr "URL"
536
 
537
  #: system/mw_wp_form_admin_page.php:551
538
  msgid "Date"
564
 
565
  #: system/mw_wp_form_admin_page.php:576
566
  msgid "bytes"
567
+ msgstr "バイト"
568
 
569
  #: system/mw_wp_form_admin_page.php:592
570
  msgid "Select Style"
574
  msgid "Add form tag"
575
  msgstr "フォームタグを追加"
576
 
577
+ #: system/mw_wp_form_contact_data_page.php:93
578
  msgid "Edit "
579
  msgstr "編集"
580
 
581
+ #: system/mw_wp_form_contact_data_page.php:94
582
  msgid "View"
583
  msgstr "表示"
584
 
585
+ #: system/mw_wp_form_contact_data_page.php:95
586
  msgid "Search"
587
  msgstr "検索"
588
 
589
+ #: system/mw_wp_form_contact_data_page.php:96
590
  msgid "No data found"
591
  msgstr "データがありません"
592
 
593
+ #: system/mw_wp_form_contact_data_page.php:97
594
  msgid "No data found in Trash"
595
  msgstr "ゴミ箱にデータはありません"
596
 
597
+ #: system/mw_wp_form_contact_data_page.php:138
598
  msgid "CSV Download"
599
  msgstr "CSVダウンロード"
600
 
601
+ #: system/mw_wp_form_contact_data_page.php:226
602
  msgid "Custom Fields"
603
  msgstr "カスタムフィールド"
604
 
605
+ #: system/mw_wp_form_contact_data_page.php:250
606
  msgid "Registed Date"
607
  msgstr "登録日時"
608
 
609
+ #: system/mw_wp_form_contact_data_page.php:341
610
  msgid "Memo"
611
  msgstr "メモ"
612
 
613
+ #: system/mw_wp_form_contact_data_page.php:381
614
+ #: system/mw_wp_form_contact_data_page.php:382
615
+ #: system/mw_wp_form_contact_data_page.php:396
616
+ msgid "Inquiry data"
617
+ msgstr "問い合わせデータ"
618
+
619
+ #: system/mw_wp_form_contact_data_page.php:398
620
+ msgid ""
621
+ "You can see the inquiry data that are saved in the database by clicking on "
622
+ "the link below."
623
+ msgstr ""
624
+ "リンクをクリックすることでデータベースに保存された問い合わせデータを見ること"
625
+ "ができます。"
626
+
627
+ #: system/mw_wp_form_contact_data_page.php:402
628
+ msgid "Form title"
629
+ msgstr "フォーム名"
630
+
631
+ #: system/mw_wp_form_contact_data_page.php:403
632
+ msgid "The number of inquiries"
633
+ msgstr "問い合わせ件数"
634
+
635
+ #: system/mw_wp_form_contact_data_page.php:404
636
+ msgid "Updated date"
637
+ msgstr "更新日"
638
+
639
+ #: system/mw_wp_form_contact_data_page.php:405
640
+ msgid "Created date"
641
+ msgstr "作成日"
642
+
643
+ #: system/mw_wp_form_contact_data_page.php:412
644
+ msgid "cases"
645
+ msgstr "件"
646
+
647
  #: system/mw_wp_form_file.php:152
648
  msgid "Uploaded from "
649
+ msgstr "Uploaded from "
650
 
651
  #. Plugin Name of the plugin/theme
652
  msgid "MW WP Form"
653
+ msgstr "MW WP Form"
654
 
655
  #. Plugin URI of the plugin/theme
656
  msgid "http://plugins.2inc.org/mw-wp-form/"
657
+ msgstr "http://plugins.2inc.org/mw-wp-form/"
658
 
659
  #. Description of the plugin/theme
660
  msgid "MW WP Form can create mail form with a confirmation screen."
669
  msgid "http://2inc.org"
670
  msgstr ""
671
 
672
+ #~ msgid "Inquiry count"
673
+ #~ msgstr "問い合わせ件数"
674
+
675
+ #~ msgid "Title"
676
+ #~ msgstr "タイトル"
677
+
678
  #~ msgid "If empty: Using admin E-mail address."
679
  #~ msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
680
 
languages/mw-wp-form.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: MW WP Form 1.4.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2014-03-20 14:55:13+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -37,7 +37,7 @@ msgstr ""
37
  #: form_fields/mw_form_field_button.php:88
38
  #: form_fields/mw_form_field_checkbox.php:104
39
  #: form_fields/mw_form_field_checkbox.php:108
40
- #: form_fields/mw_form_field_checkbox.php:117
41
  #: form_fields/mw_form_field_confirm_button.php:82
42
  #: form_fields/mw_form_field_datepicker.php:126
43
  #: form_fields/mw_form_field_datepicker.php:130
@@ -55,10 +55,10 @@ msgstr ""
55
  #: form_fields/mw_form_field_password.php:119
56
  #: form_fields/mw_form_field_radio.php:102
57
  #: form_fields/mw_form_field_radio.php:106
58
- #: form_fields/mw_form_field_radio.php:115
59
  #: form_fields/mw_form_field_select.php:102
60
  #: form_fields/mw_form_field_select.php:106
61
- #: form_fields/mw_form_field_select.php:115
62
  #: form_fields/mw_form_field_submit.php:88
63
  #: form_fields/mw_form_field_text.php:105
64
  #: form_fields/mw_form_field_text.php:109
@@ -87,45 +87,45 @@ msgstr ""
87
  msgid "Choices"
88
  msgstr ""
89
 
90
- #: form_fields/mw_form_field_checkbox.php:112
91
- #: form_fields/mw_form_field_error.php:91
92
- #: form_fields/mw_form_field_radio.php:110
93
- #: form_fields/mw_form_field_select.php:110
94
  msgid "Input one line about one item."
95
  msgstr ""
96
 
97
- #: form_fields/mw_form_field_checkbox.php:117
98
  #: form_fields/mw_form_field_confirm_button.php:82
99
  #: form_fields/mw_form_field_datepicker.php:138
100
  #: form_fields/mw_form_field_hidden.php:98
101
  #: form_fields/mw_form_field_password.php:115
102
- #: form_fields/mw_form_field_radio.php:115
103
- #: form_fields/mw_form_field_select.php:115
104
  #: form_fields/mw_form_field_text.php:117
105
  #: form_fields/mw_form_field_textarea.php:117
106
  msgid "Default value"
107
  msgstr ""
108
 
109
- #: form_fields/mw_form_field_checkbox.php:121
110
  #: form_fields/mw_form_field_datepicker.php:142
111
  #: form_fields/mw_form_field_file.php:125
112
  #: form_fields/mw_form_field_image.php:126
113
  #: form_fields/mw_form_field_password.php:123
114
- #: form_fields/mw_form_field_radio.php:119
115
- #: form_fields/mw_form_field_select.php:119
116
  #: form_fields/mw_form_field_tel.php:100 form_fields/mw_form_field_text.php:125
117
  #: form_fields/mw_form_field_textarea.php:125
118
  #: form_fields/mw_form_field_zip.php:100
119
  msgid "Dsiplay error"
120
  msgstr ""
121
 
122
- #: form_fields/mw_form_field_checkbox.php:122
123
  #: form_fields/mw_form_field_datepicker.php:143
124
  #: form_fields/mw_form_field_file.php:126
125
  #: form_fields/mw_form_field_image.php:127
126
  #: form_fields/mw_form_field_password.php:124
127
- #: form_fields/mw_form_field_radio.php:120
128
- #: form_fields/mw_form_field_select.php:120
129
  #: form_fields/mw_form_field_tel.php:101 form_fields/mw_form_field_text.php:126
130
  #: form_fields/mw_form_field_textarea.php:126
131
  #: form_fields/mw_form_field_zip.php:101
@@ -278,43 +278,43 @@ msgstr ""
278
  msgid "This is not the format of a tel number."
279
  msgstr ""
280
 
281
- #: system/mw_validation.php:303
282
  msgid "This is not the format of a mail address."
283
  msgstr ""
284
 
285
- #: system/mw_validation.php:326
286
  msgid "This is not the format of a url."
287
  msgstr ""
288
 
289
- #: system/mw_validation.php:346
290
  msgid "This is not in agreement."
291
  msgstr ""
292
 
293
- #: system/mw_validation.php:372
294
  msgid "The number of characters is invalid."
295
  msgstr ""
296
 
297
- #: system/mw_validation.php:409
298
  msgid "The number of characters is a few."
299
  msgstr ""
300
 
301
- #: system/mw_validation.php:434
302
  msgid "This value is invalid."
303
  msgstr ""
304
 
305
- #: system/mw_validation.php:457
306
  msgid "This is not the format of a date."
307
  msgstr ""
308
 
309
- #: system/mw_validation.php:486
310
  msgid "This file is invalid."
311
  msgstr ""
312
 
313
- #: system/mw_validation.php:515
314
  msgid "This file size is too big."
315
  msgstr ""
316
 
317
- #: system/mw_validation.php:534
318
  msgid "The contents which you input were judged with spam."
319
  msgstr ""
320
 
@@ -407,7 +407,7 @@ msgid "Example: {ID}, {post_title}, {post_meta} etc..."
407
  msgstr ""
408
 
409
  #: system/mw_wp_form_admin_page.php:351
410
- msgid "Saving contact data in database"
411
  msgstr ""
412
 
413
  #: system/mw_wp_form_admin_page.php:355
@@ -560,42 +560,72 @@ msgstr ""
560
  msgid "Add form tag"
561
  msgstr ""
562
 
563
- #: system/mw_wp_form_contact_data_page.php:92
564
  msgid "Edit "
565
  msgstr ""
566
 
567
- #: system/mw_wp_form_contact_data_page.php:93
568
  msgid "View"
569
  msgstr ""
570
 
571
- #: system/mw_wp_form_contact_data_page.php:94
572
  msgid "Search"
573
  msgstr ""
574
 
575
- #: system/mw_wp_form_contact_data_page.php:95
576
  msgid "No data found"
577
  msgstr ""
578
 
579
- #: system/mw_wp_form_contact_data_page.php:96
580
  msgid "No data found in Trash"
581
  msgstr ""
582
 
583
- #: system/mw_wp_form_contact_data_page.php:137
584
  msgid "CSV Download"
585
  msgstr ""
586
 
587
- #: system/mw_wp_form_contact_data_page.php:225
588
  msgid "Custom Fields"
589
  msgstr ""
590
 
591
- #: system/mw_wp_form_contact_data_page.php:249
592
  msgid "Registed Date"
593
  msgstr ""
594
 
595
- #: system/mw_wp_form_contact_data_page.php:340
596
  msgid "Memo"
597
  msgstr ""
598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
  #: system/mw_wp_form_file.php:152
600
  msgid "Uploaded from "
601
  msgstr ""
4
  msgstr ""
5
  "Project-Id-Version: MW WP Form 1.4.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2014-04-02 13:45:53+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
37
  #: form_fields/mw_form_field_button.php:88
38
  #: form_fields/mw_form_field_checkbox.php:104
39
  #: form_fields/mw_form_field_checkbox.php:108
40
+ #: form_fields/mw_form_field_checkbox.php:115
41
  #: form_fields/mw_form_field_confirm_button.php:82
42
  #: form_fields/mw_form_field_datepicker.php:126
43
  #: form_fields/mw_form_field_datepicker.php:130
55
  #: form_fields/mw_form_field_password.php:119
56
  #: form_fields/mw_form_field_radio.php:102
57
  #: form_fields/mw_form_field_radio.php:106
58
+ #: form_fields/mw_form_field_radio.php:113
59
  #: form_fields/mw_form_field_select.php:102
60
  #: form_fields/mw_form_field_select.php:106
61
+ #: form_fields/mw_form_field_select.php:113
62
  #: form_fields/mw_form_field_submit.php:88
63
  #: form_fields/mw_form_field_text.php:105
64
  #: form_fields/mw_form_field_text.php:109
87
  msgid "Choices"
88
  msgstr ""
89
 
90
+ #: form_fields/mw_form_field_checkbox.php:111
91
+ #: form_fields/mw_form_field_error.php:90
92
+ #: form_fields/mw_form_field_radio.php:109
93
+ #: form_fields/mw_form_field_select.php:109
94
  msgid "Input one line about one item."
95
  msgstr ""
96
 
97
+ #: form_fields/mw_form_field_checkbox.php:115
98
  #: form_fields/mw_form_field_confirm_button.php:82
99
  #: form_fields/mw_form_field_datepicker.php:138
100
  #: form_fields/mw_form_field_hidden.php:98
101
  #: form_fields/mw_form_field_password.php:115
102
+ #: form_fields/mw_form_field_radio.php:113
103
+ #: form_fields/mw_form_field_select.php:113
104
  #: form_fields/mw_form_field_text.php:117
105
  #: form_fields/mw_form_field_textarea.php:117
106
  msgid "Default value"
107
  msgstr ""
108
 
109
+ #: form_fields/mw_form_field_checkbox.php:119
110
  #: form_fields/mw_form_field_datepicker.php:142
111
  #: form_fields/mw_form_field_file.php:125
112
  #: form_fields/mw_form_field_image.php:126
113
  #: form_fields/mw_form_field_password.php:123
114
+ #: form_fields/mw_form_field_radio.php:117
115
+ #: form_fields/mw_form_field_select.php:117
116
  #: form_fields/mw_form_field_tel.php:100 form_fields/mw_form_field_text.php:125
117
  #: form_fields/mw_form_field_textarea.php:125
118
  #: form_fields/mw_form_field_zip.php:100
119
  msgid "Dsiplay error"
120
  msgstr ""
121
 
122
+ #: form_fields/mw_form_field_checkbox.php:120
123
  #: form_fields/mw_form_field_datepicker.php:143
124
  #: form_fields/mw_form_field_file.php:126
125
  #: form_fields/mw_form_field_image.php:127
126
  #: form_fields/mw_form_field_password.php:124
127
+ #: form_fields/mw_form_field_radio.php:118
128
+ #: form_fields/mw_form_field_select.php:118
129
  #: form_fields/mw_form_field_tel.php:101 form_fields/mw_form_field_text.php:126
130
  #: form_fields/mw_form_field_textarea.php:126
131
  #: form_fields/mw_form_field_zip.php:101
278
  msgid "This is not the format of a tel number."
279
  msgstr ""
280
 
281
+ #: system/mw_validation.php:304
282
  msgid "This is not the format of a mail address."
283
  msgstr ""
284
 
285
+ #: system/mw_validation.php:327
286
  msgid "This is not the format of a url."
287
  msgstr ""
288
 
289
+ #: system/mw_validation.php:347
290
  msgid "This is not in agreement."
291
  msgstr ""
292
 
293
+ #: system/mw_validation.php:373
294
  msgid "The number of characters is invalid."
295
  msgstr ""
296
 
297
+ #: system/mw_validation.php:410
298
  msgid "The number of characters is a few."
299
  msgstr ""
300
 
301
+ #: system/mw_validation.php:435
302
  msgid "This value is invalid."
303
  msgstr ""
304
 
305
+ #: system/mw_validation.php:458
306
  msgid "This is not the format of a date."
307
  msgstr ""
308
 
309
+ #: system/mw_validation.php:487
310
  msgid "This file is invalid."
311
  msgstr ""
312
 
313
+ #: system/mw_validation.php:516
314
  msgid "This file size is too big."
315
  msgstr ""
316
 
317
+ #: system/mw_validation.php:535
318
  msgid "The contents which you input were judged with spam."
319
  msgstr ""
320
 
407
  msgstr ""
408
 
409
  #: system/mw_wp_form_admin_page.php:351
410
+ msgid "Saving inquiry data in database"
411
  msgstr ""
412
 
413
  #: system/mw_wp_form_admin_page.php:355
560
  msgid "Add form tag"
561
  msgstr ""
562
 
563
+ #: system/mw_wp_form_contact_data_page.php:93
564
  msgid "Edit "
565
  msgstr ""
566
 
567
+ #: system/mw_wp_form_contact_data_page.php:94
568
  msgid "View"
569
  msgstr ""
570
 
571
+ #: system/mw_wp_form_contact_data_page.php:95
572
  msgid "Search"
573
  msgstr ""
574
 
575
+ #: system/mw_wp_form_contact_data_page.php:96
576
  msgid "No data found"
577
  msgstr ""
578
 
579
+ #: system/mw_wp_form_contact_data_page.php:97
580
  msgid "No data found in Trash"
581
  msgstr ""
582
 
583
+ #: system/mw_wp_form_contact_data_page.php:138
584
  msgid "CSV Download"
585
  msgstr ""
586
 
587
+ #: system/mw_wp_form_contact_data_page.php:226
588
  msgid "Custom Fields"
589
  msgstr ""
590
 
591
+ #: system/mw_wp_form_contact_data_page.php:250
592
  msgid "Registed Date"
593
  msgstr ""
594
 
595
+ #: system/mw_wp_form_contact_data_page.php:341
596
  msgid "Memo"
597
  msgstr ""
598
 
599
+ #: system/mw_wp_form_contact_data_page.php:381
600
+ #: system/mw_wp_form_contact_data_page.php:382
601
+ #: system/mw_wp_form_contact_data_page.php:396
602
+ msgid "Inquiry data"
603
+ msgstr ""
604
+
605
+ #: system/mw_wp_form_contact_data_page.php:398
606
+ msgid "You can see the inquiry data that are saved in the database by clicking on the link below."
607
+ msgstr ""
608
+
609
+ #: system/mw_wp_form_contact_data_page.php:402
610
+ msgid "Form title"
611
+ msgstr ""
612
+
613
+ #: system/mw_wp_form_contact_data_page.php:403
614
+ msgid "The number of inquiries"
615
+ msgstr ""
616
+
617
+ #: system/mw_wp_form_contact_data_page.php:404
618
+ msgid "Updated date"
619
+ msgstr ""
620
+
621
+ #: system/mw_wp_form_contact_data_page.php:405
622
+ msgid "Created date"
623
+ msgstr ""
624
+
625
+ #: system/mw_wp_form_contact_data_page.php:412
626
+ msgid "cases"
627
+ msgstr ""
628
+
629
  #: system/mw_wp_form_file.php:152
630
  msgid "Uploaded from "
631
  msgstr ""
mw-wp-form.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
- * Version: 1.4.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: March 20, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
+ * Version: 1.4.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 2, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode
5
  Requires at least: 3.4
6
  Tested up to: 3.8.0
7
- Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -47,6 +47,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
47
 
48
  == Changelog ==
49
 
 
 
 
 
50
  = 1.4.0 =
51
  * Added : Add form tag generator.
52
 
4
  Tags: plugin, form, confirm, preview, shortcode
5
  Requires at least: 3.4
6
  Tested up to: 3.8.0
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.4.1 =
51
+ * Changed : Changed flow to read saving inquiry data.
52
+ * Bug fix : Fix tel validation.
53
+
54
  = 1.4.0 =
55
  * Added : Add form tag generator.
56
 
system/mw_validation.php CHANGED
@@ -3,14 +3,14 @@
3
  * Name: MW Validation
4
  * URI: http://2inc.org
5
  * Description: バリデーションクラス
6
- * Version: 1.6.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : July 20, 2012
10
- * Modified: December 23, 2013
11
  * License: GPL2
12
  *
13
- * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
@@ -278,6 +278,7 @@ class MW_Validation {
278
  preg_match( '/^\d{2}-\d{4}-\d{4}$/', $value ) ||
279
  preg_match( '/^\d{3}-\d{3,4}-\d{4}$/', $value ) ||
280
  preg_match( '/^\d{4}-\d{2}-\d{4}$/', $value ) ||
 
281
  preg_match( '/^\d{5}-\d{1}-\d{4}$/', $value )
282
  ) ) {
283
  return $options['message'];
3
  * Name: MW Validation
4
  * URI: http://2inc.org
5
  * Description: バリデーションクラス
6
+ * Version: 1.6.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : July 20, 2012
10
+ * Modified: April 2, 2014
11
  * License: GPL2
12
  *
13
+ * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
278
  preg_match( '/^\d{2}-\d{4}-\d{4}$/', $value ) ||
279
  preg_match( '/^\d{3}-\d{3,4}-\d{4}$/', $value ) ||
280
  preg_match( '/^\d{4}-\d{2}-\d{4}$/', $value ) ||
281
+ preg_match( '/^\d{4}-\d{3}-\d{3}$/', $value ) ||
282
  preg_match( '/^\d{5}-\d{1}-\d{4}$/', $value )
283
  ) ) {
284
  return $options['message'];
system/mw_wp_form_admin_page.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW WP Form Admin Page
4
  * URI: http://2inc.org
5
  * Description: 管理画面クラス
6
- * Version: 1.8.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
- * Modified: March 20, 2014
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
@@ -269,7 +269,7 @@ class MW_WP_Form_Admin_Page {
269
  return $post_ID;
270
  if ( !wp_verify_nonce( $_POST[MWF_Config::NAME . '_nonce'], MWF_Config::NAME ) )
271
  return $post_ID;
272
- if ( !current_user_can( 'edit_pages' ) )
273
  return $post_ID;
274
 
275
  $data = $_POST[MWF_Config::NAME];
@@ -348,7 +348,7 @@ class MW_WP_Form_Admin_Page {
348
  <?php _e( 'Example: {ID}, {post_title}, {post_meta} etc...', MWF_Config::DOMAIN ); ?></span>
349
  </p>
350
  <p>
351
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]" value="1" <?php checked( $this->get_post_data( 'usedb' ), 1 ); ?> /> <?php _e( 'Saving contact data in database', MWF_Config::DOMAIN ); ?></label>
352
  </p>
353
  <table border="0" cellpadding="0" cellspacing="0" class="akismet">
354
  <tr>
3
  * Name: MW WP Form Admin Page
4
  * URI: http://2inc.org
5
  * Description: 管理画面クラス
6
+ * Version: 1.8.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
+ * Modified: April 2, 2014
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
269
  return $post_ID;
270
  if ( !wp_verify_nonce( $_POST[MWF_Config::NAME . '_nonce'], MWF_Config::NAME ) )
271
  return $post_ID;
272
+ if ( !current_user_can( MWF_Config::CAPABILITY ) )
273
  return $post_ID;
274
 
275
  $data = $_POST[MWF_Config::NAME];
348
  <?php _e( 'Example: {ID}, {post_title}, {post_meta} etc...', MWF_Config::DOMAIN ); ?></span>
349
  </p>
350
  <p>
351
+ <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]" value="1" <?php checked( $this->get_post_data( 'usedb' ), 1 ); ?> /> <?php _e( 'Saving inquiry data in database', MWF_Config::DOMAIN ); ?></label>
352
  </p>
353
  <table border="0" cellpadding="0" cellspacing="0" class="akismet">
354
  <tr>
system/mw_wp_form_contact_data_page.php CHANGED
@@ -3,14 +3,14 @@
3
  * Name: MW WP Form Contact Data Page
4
  * URI: http://2inc.org
5
  * Description: DB保存データを扱うクラス
6
- * Version: 1.0.5
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : October 10, 2013
10
- * Modified: December 26, 2013
11
  * License: GPL2
12
  *
13
- * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
@@ -37,13 +37,14 @@ class MW_WP_Form_Contact_Data_Page {
37
  public function __construct() {
38
  $this->POST_DATA_NAME = '_' . MWF_Config::NAME . '_data';
39
  add_action( 'init', array( $this, 'register_post_type' ) );
40
- add_action( 'admin_print_styles', array( $this, 'admin_style' ) );
41
  add_action( 'admin_head', array( $this, 'cpt_public_false' ) );
42
  add_action( 'admin_head', array( $this, 'add_forms_columns' ) );
43
  add_action( 'admin_head', array( $this, 'add_meta_box' ) );
44
  add_action( 'save_post', array( $this, 'save_post' ) );
45
  add_action( 'in_admin_footer', array( $this, 'add_csv_download_button' ) );
46
  add_action( 'wp_loaded', array( $this, 'csv_download' ) );
 
47
  }
48
 
49
  /**
@@ -64,8 +65,8 @@ class MW_WP_Form_Contact_Data_Page {
64
  $post_type = get_post_type();
65
  if ( in_array( $post_type, $this->form_post_type ) ) {
66
  $url = plugin_dir_url( __FILE__ );
67
- wp_register_style( MWF_Config::DOMAIN.'-admin', $url.'../css/admin.css' );
68
- wp_enqueue_style( MWF_Config::DOMAIN.'-admin' );
69
  }
70
  }
71
 
@@ -98,7 +99,7 @@ class MW_WP_Form_Contact_Data_Page {
98
  'capability_type' => 'page',
99
  'public' => false,
100
  'show_ui' => true,
101
- 'show_in_menu' => 'edit.php?post_type=' . MWF_Config::NAME,
102
  'supports' => array( 'title' ),
103
  ) );
104
  $this->form_post_type[] = $post_type;
@@ -354,7 +355,7 @@ class MW_WP_Form_Contact_Data_Page {
354
  return $post_ID;
355
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
356
  return $post_ID;
357
- if ( !current_user_can( 'edit_pages' ) )
358
  return $post_ID;
359
 
360
  // 保存可能なキー
@@ -366,4 +367,109 @@ class MW_WP_Form_Contact_Data_Page {
366
  }
367
  update_post_meta( $post_ID, $this->POST_DATA_NAME, $data, $this->postdata );
368
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  }
3
  * Name: MW WP Form Contact Data Page
4
  * URI: http://2inc.org
5
  * Description: DB保存データを扱うクラス
6
+ * Version: 1.0.6
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : October 10, 2013
10
+ * Modified: April 2, 2014
11
  * License: GPL2
12
  *
13
+ * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
37
  public function __construct() {
38
  $this->POST_DATA_NAME = '_' . MWF_Config::NAME . '_data';
39
  add_action( 'init', array( $this, 'register_post_type' ) );
40
+ add_action( 'admin_enqueue_scripts', array( $this, 'admin_style' ) );
41
  add_action( 'admin_head', array( $this, 'cpt_public_false' ) );
42
  add_action( 'admin_head', array( $this, 'add_forms_columns' ) );
43
  add_action( 'admin_head', array( $this, 'add_meta_box' ) );
44
  add_action( 'save_post', array( $this, 'save_post' ) );
45
  add_action( 'in_admin_footer', array( $this, 'add_csv_download_button' ) );
46
  add_action( 'wp_loaded', array( $this, 'csv_download' ) );
47
+ add_action( 'admin_menu', array( $this, 'admin_menu' ) );
48
  }
49
 
50
  /**
65
  $post_type = get_post_type();
66
  if ( in_array( $post_type, $this->form_post_type ) ) {
67
  $url = plugin_dir_url( __FILE__ );
68
+ wp_register_style( MWF_Config::DOMAIN . '-admin', $url . '../css/admin.css' );
69
+ wp_enqueue_style( MWF_Config::DOMAIN . '-admin' );
70
  }
71
  }
72
 
99
  'capability_type' => 'page',
100
  'public' => false,
101
  'show_ui' => true,
102
+ 'show_in_menu' => false,
103
  'supports' => array( 'title' ),
104
  ) );
105
  $this->form_post_type[] = $post_type;
355
  return $post_ID;
356
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
357
  return $post_ID;
358
+ if ( !current_user_can( MWF_Config::CAPABILITY ) )
359
  return $post_ID;
360
 
361
  // 保存可能なキー
367
  }
368
  update_post_meta( $post_ID, $this->POST_DATA_NAME, $data, $this->postdata );
369
  }
370
+
371
+ /**
372
+ * admin_menu
373
+ * 問い合わせデータ閲覧ページへのメニューを追加
374
+ */
375
+ public function admin_menu() {
376
+ if ( empty( $this->form_post_type ) )
377
+ return;
378
+
379
+ add_submenu_page(
380
+ 'edit.php?post_type=' . MWF_Config::NAME,
381
+ __( 'Inquiry data', MWF_Config::DOMAIN ), // ページタイトル
382
+ __( 'Inquiry data', MWF_Config::DOMAIN ), // メニュー名
383
+ MWF_Config::CAPABILITY, // 権限
384
+ MWF_Config::NAME . '-save-data', // 画面のパス
385
+ array( $this, 'inquiry_data_page' ) // 表示用の関数
386
+ );
387
+ }
388
+
389
+ /**
390
+ * inquiry_data_page
391
+ * 問い合わせデータ閲覧ページを表示
392
+ */
393
+ public function inquiry_data_page() {
394
+ ?>
395
+ <div class="wrap">
396
+ <h2><?php _e( 'Inquiry data', MWF_Config::DOMAIN ); ?></h2>
397
+ <p>
398
+ <?php _e( 'You can see the inquiry data that are saved in the database by clicking on the link below.', MWF_Config::DOMAIN ); ?>
399
+ </p>
400
+ <table class="wp-list-table widefat fixed" cellspacing="0">
401
+ <thead>
402
+ <th class="<?php echo MWF_Config::NAME; ?>-table-title"><?php _e( 'Form title', MWF_Config::DOMAIN ); ?></th>
403
+ <th class="<?php echo MWF_Config::NAME; ?>-table-count"><?php _e( 'The number of inquiries', MWF_Config::DOMAIN ); ?></th>
404
+ <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php _e( 'Updated date', MWF_Config::DOMAIN ); ?></th>
405
+ <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php _e( 'Created date', MWF_Config::DOMAIN ); ?></th>
406
+ </thead>
407
+ <tbody>
408
+ <?php $i = 0; foreach ( $this->form_post_type as $post_type ) : $i ++; ?>
409
+ <?php $post_type_object = get_post_type_object( $post_type ); ?>
410
+ <tr <?php if ( $i % 2 == 1 ) echo 'class="alternate"'; ?>>
411
+ <td class="<?php echo MWF_Config::NAME; ?>-table-title"><?php echo esc_html( $post_type_object->labels->singular_name ) ; ?></td>
412
+ <td class="<?php echo MWF_Config::NAME; ?>-table-count"><a href="edit.php?post_type=<?php echo esc_attr( $post_type ); ?>"><?php echo esc_html( $this->get_count( $post_type ) ) ?> <?php _e( 'cases', MWF_Config::DOMAIN ); ?></a></td>
413
+ <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $this->get_modified_datetime( $post_type ) ); ?></td>
414
+ <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $this->get_created_datetime( $post_type ) ); ?></td>
415
+ </tr>
416
+ <?php endforeach; ?>
417
+ </tbody>
418
+ </table>
419
+ <!-- end .wrap --></div>
420
+ <?php
421
+ }
422
+
423
+ /**
424
+ * get_count
425
+ * @param string $post_type 投稿タイプ名
426
+ * @return numeric 投稿数
427
+ */
428
+ private function get_count( $post_type ) {
429
+ global $wpdb;
430
+ $count = $wpdb->prepare(
431
+ "SELECT count(*) FROM $wpdb->posts WHERE post_type = '%s'",
432
+ $post_type
433
+ );
434
+ return number_format( $wpdb->get_var( $count ) );
435
+ }
436
+
437
+ /**
438
+ * get_created_datetime
439
+ * フォームの作成日時を取得
440
+ * @param string $post_type 投稿タイプ名
441
+ * @return string 作成日
442
+ */
443
+ private function get_created_datetime( $post_type ) {
444
+ global $post;
445
+ $post_id = preg_replace( '/^mwf_(.+?)$/', '$1', $post_type );
446
+ $post = get_post( $post_id );
447
+ $post_date = get_the_date();
448
+ wp_reset_postdata();
449
+ return $post_date;
450
+ }
451
+
452
+ /**
453
+ * get_modified_datetime
454
+ * 問い合わせデータの最新保存日を取得
455
+ * @param string $post_type 投稿タイプ名
456
+ * @return string 問い合わせデータの最新保存日
457
+ */
458
+ private function get_modified_datetime( $post_type ) {
459
+ global $post;
460
+ $inquiry_posts = get_posts( array(
461
+ 'post_type' => $post_type,
462
+ 'posts_per_page' => 1,
463
+ 'orderby' => 'modified',
464
+ ) );
465
+
466
+ $modified_datetime = '';
467
+ foreach ( $inquiry_posts as $post ) {
468
+ setup_postdata( $post );
469
+ $modified_datetime = get_the_modified_date();
470
+ break;
471
+ }
472
+ wp_reset_postdata();
473
+ return $modified_datetime;
474
+ }
475
  }
system/mwf_config.php CHANGED
@@ -3,14 +3,14 @@
3
  * Name: MWF_Config
4
  * URI: http://2inc.org
5
  * Description: 設定ファイル
6
- * Version: 1.1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 29, 2013
10
- * Modified: December, 19, 2013
11
  * License: GPL2
12
  *
13
- * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
@@ -62,4 +62,10 @@ class MWF_Config {
62
  * akismetのエラーを格納するValidationのキー
63
  */
64
  const AKISMET = 'mwf_akismet';
 
 
 
 
 
 
65
  }
3
  * Name: MWF_Config
4
  * URI: http://2inc.org
5
  * Description: 設定ファイル
6
+ * Version: 1.2.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 29, 2013
10
+ * Modified: April, 2, 2014
11
  * License: GPL2
12
  *
13
+ * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
62
  * akismetのエラーを格納するValidationのキー
63
  */
64
  const AKISMET = 'mwf_akismet';
65
+
66
+ /**
67
+ * CAPABILITY
68
+ * 権限
69
+ */
70
+ const CAPABILITY = 'edit_pages';
71
  }