- /process/list -pagination and search -fix tab counter to reflect actual counts - remove and added back search by pem_nama - /approval/list -pagination and search -fix tab counter to reflect actual counts - /report/report1 -changed border to 1 2012-03-02 -- /process/list: - Counter for each tab doesn't reflect actual when searching is done - t_ref_kepala: remove 02002E: Kecemasan Daerah - to confirm with shafiq any change in report etc - Pending -- PDT mohon bajet MB -- Kewangan -- Ulasan PDT /kewangan/listselectivehandler -- email pemohon when check / warrant is ready Kod Peruntukan Auto Select based on Jenis Pemohon var base_space = 1073741824000; var base_users = 5; var base_cost = 795.00; var num_users = 0; var user_cost = 0; function recompute_user_cost() { num_users = $('user_quantity').value; if (num_users == 45) { $('moreusers').show(); } else { $('moreusers').hide(); } $('total_users').update( parseInt(base_users) + parseInt(num_users) ); $('total_space').update( Util.formatGB(parseInt(base_space) + parseInt(num_users) * 214748364800, true) ); user_cost = num_users * 125; $('user_total_cost').update( '$' + user_cost.toFixed(0) ); recompute_total_cost(); } function recompute_total_cost() { // if the cost is somehow negative (due to prorating), it currently // just gets set to 0 ... in the future this may need to be handled // better $('total_cost').update( '$' + Math.max(base_cost + user_cost, 0).toFixed(0) ); } Monitor Controller. public function listAction() { //why status starts one month before? (eg lulus Jan2015, start month Dec2014) $mon_month = date ( 'm', strtotime ( '-1 month', strtotime ( date ( 'Y-m-d' ) ) ) ); $mon_year = date ( 'Y', strtotime ( '-1 month', strtotime ( date ( 'Y-m-d' ) ) ) );