This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"台北市": | |
{ | |
"100": "中正", | |
"103": "大同", | |
"104": "中山", | |
"105": "松山", | |
"106": "大安", | |
"108": "萬華", | |
"110": "信義", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 要求: | |
// 1. 列印收據(點陣式) | |
// 2. 報表依捐款人、捐款金額、手續費、實收金額列印 | |
// 3. 可供期間查詢:包含螢幕查詢及報表 | |
// 4. 以捐款人、捐款日期、捐款種類、捐款管道分類,日期則以倒序法排列(最近的日期在最上方) | |
// 5. 捐款管道、手續費、捐款種類可以由使用者設定 | |
// 6. 捐款人快速查詢:姓名排列、連絡地址排列(分類) | |
// 7. 捐款人組織或個人分類 | |
var donators = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// patch an array so it add 0 as 1st element and Infinite as last element | |
function checkArr( arr ) { | |
try { | |
Array.isArray( arr ); | |
} catch(e) { | |
console.log( 'Input arguments is not an array' ); | |
return false; | |
}; | |
// validate element types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id": null, | |
"organizationName": null, | |
"orgContactName": null, | |
"orgAddress": null, | |
"phone": null, | |
"fax": null, | |
"relatedURL": null, | |
"zip": null, | |
"orgContactTitle": null, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "organizationName": "", | |
"zip": "", | |
"county": "", | |
"address": "", | |
"organizationId": "", | |
"orgContactName": "", | |
"orgContactPhone": "", | |
"orgContactMobile": "", | |
"orgContactEmail": "", | |
"orgAddress": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "id": "", | |
"format": "", | |
"metadata_modified": "", | |
"title": "", | |
"type": "", | |
"display_name": "", | |
"author": "", | |
"attirbuteCategory": "", | |
"baseLaw": "", | |
"publishCategory": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"編號" : "id", | |
"計費方式" : "cost", | |
"資料集描述" : "description", | |
"資料集語系" : "language", | |
"資料集所屬管理機關聯絡人電子郵件" : "", | |
"收錄期間(迄)" : "", | |
"資料集說明網址" : "", | |
"資料集所屬管理機關名稱" : "", | |
"資料集所屬管理機關聯絡人電話" : "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$prefix = 'tdva_'; | |
$application_unit_info = array( | |
array( | |
'type' => 'text', | |
'name' => $prefix . '運用單位' | |
), | |
array( | |
'type' => 'text', | |
'name' => $prefix . '承辦人' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var digits = '0123456789'; // 阿拉伯數字 | |
var small_chinese_digits = '〇一二三四五六七八九'; // 中文小寫數字 | |
var capital_chinese_digits = '零壹貮參肆伍陸㭍捌玖拾佰仟萬億兆'; // 中文大寫數字,應用侷限在金融,例如支票、匯款單、存款/提款單等 | |
// 由阿拉伯數字轉換成小寫中文數字 | |
var year = '106'; | |
year.split('').map( function( item ) { | |
return small_chinese_digits.split('')[item]; | |
}).join(''); | |
// 回傳 "一〇五" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var digits = '0123456789'; // 阿拉伯數字 | |
var small_chinese_digits = '〇一二三四五六七八九'; // 中文小寫數字 | |
var capital_chinese_digits = '零壹貮參肆伍陸㭍捌玖拾佰仟萬億兆'; // 中文大寫數字,應用侷限在金融,例如支票、匯款單、存款/提款單等 | |
// 由阿拉伯數字轉換成小寫中文數字 | |
var year = '106'; | |
year.split('').map( function( item ) { | |
return small_chinese_digits.split('')[item]; | |
}).join(''); | |
// 回傳 "一〇五" |
NewerOlder