footer rows dan json

Ony · Aug 19, 2013
apakah bisa *.json melakukan perkalian ato penjumlahan?
apakah bisa *.json menampilkan isi database?
maaf sy msh blm begitu paham mengenai json ... :) mohon tutorialnya :)
Terimakasih :)

footer.php
<!DOCTYPE html>
<html>
<head>
   <meta charset="UTF-8">
   <title>Footer Rows</title>
       <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
       <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
       <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
       <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
       <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<table class="easyui-datagrid" style="width:700px;height:350px" data-options="url:'data.json', fitColumns:true, singleSelect:true, rownumbers:true, showFooter:true">
		<thead>
			<tr>
				<th data-options="field:'kantor',width:80">Kantor</th>
				<th data-options="field:'brg',width:250">Barang</th>
				<th data-options="field:'tahun',width:80,align:'center'">Tahun</th>
				<th data-options="field:'jmlh',width:80,align:'right'">Jumlah</th>
				<th data-options="field:'harga',width:80,align:'right'">Harga</th>
				<th data-options="field:'total',width:80,align:'right'">Total</th>
			</tr>
		</thead>
	</table>
</body>
</html>

data.json
{"total":28,"rows":[
	{"kantor":"Kantor-01","brg":"Buku kwitansi","tahun":"2013","jmlh":5,"harga":1000,"total":0},
	{"kantor":"Kantor-02","brg":"Kertas HVS F4 70gr warna","tahun":"2013","jmlh":2,"harga":2000,"total":0},
	{"kantor":"Kantor-03","brg":"Buku kwitansi","tahun":"2013","jmlh":4,"harga":5000,"total":0},
	{"kantor":"Kantor-04","brg":"Snelhecter map","tahun":"2013","jmlh":8,"harga":1500,"total":0},
	{"kantor":"Kantor-05","brg":"Tinta refill printer hitam","tahun":"2013","jmlh":5,"harga":3000,"total":0},
	{"kantor":"Kantor-06","brg":"Amplop polos 90 APS PPL","tahun":"2013","jmlh":3,"harga":2500,"total":0},
	{"kantor":"Kantor-07","brg":"Isi staples","tahun":"2013","jmlh":5,"harga":1000,"total":0},
	{"kantor":"Kantor-08","brg":"Double Klip","tahun":"2013","jmlh":2,"harga":1500,"total":0},
	{"kantor":"Kantor-09","brg":"Ordner","tahun":"2013","jmlh":1,"harga":2000,"total":0},
	{"kantor":"Kantor-10","brg":"Tinta refill printer hitam","tahun":"2013","jmlh":3,"harga":4000,"total":0}
],"footer":[
	{"tahun":"SubTotal","jmlh":0,"harga":0,"total":0},
	{"tahun":"Total","jmlh":0,"harga":0,"total":0}
]}
Silahkan login untuk menjawab!