-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathform.php
More file actions
26 lines (24 loc) · 1.01 KB
/
form.php
File metadata and controls
26 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/*
form.php
2013/10/27- (c) yoya@awm.jp
*/
function get_formData() {
$t = time();
$resign_date = date("Y-m-d", $t + 14 * 24 * 3600);
$commit_date = date("Y-m-d", $t);
$form = array(
array('種類', 'radio', 'type', 'notification', 'notification', '退職届', 'wish', '退職願'),
array('理由', 'textarea', 'reason', 'このたび一身上の都合により、'),
array('退職日', 'date', 'resign_date', $resign_date),
array('提出日', 'date', 'commit_date', $commit_date),
array('所属部署', 'textarea', 'mypart', '庶務二課'),
array('自分の名前', 'text', 'myname', ''),
array('会社名', 'text', 'campany', 'ダミー株式会社'),
array('社長', 'text', 'president', '代表取締役 山田太郎様'),
array('画像ID', 'text', 'image_id', ''),
array('QRコード', 'radio', 'qrcode', 'no', 'yes', 'あり', 'no', 'なし'),
array('申し送り', 'textarea', 'note', ''),
);
return $form;
}