From f34cad338bc0b8963df2c4abddbdf5f437ad35af Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 13 Dec 2011 18:27:44 +0100 Subject: [PATCH] Minor - commenting code --- main/admin/session_list.php | 19 ++++++++++++ main/template/default/agenda/month.tpl | 42 +++++++++++++++++--------- 2 files changed, 47 insertions(+), 14 deletions(-) diff --git a/main/admin/session_list.php b/main/admin/session_list.php index e98b8048b5..ce35633c21 100644 --- a/main/admin/session_list.php +++ b/main/admin/session_list.php @@ -60,6 +60,7 @@ $column_model = array( $extra_params['autowidth'] = 'true'; //height auto $extra_params['height'] = 'auto'; +$extra_params['excel'] = 'excel'; $extra_params['rowList'] = array(10, 20 ,30); @@ -86,6 +87,24 @@ $("#sessions").jqGrid('navGrid','#sessions_pager', {edit:false,add:false,del:fal {reloadAfterSubmit:false}, // del options {width:500} // search options ); +/* +// add custom button to export the data to excel +jQuery("#sessions").jqGrid('navButtonAdd','#sessions_pager',{ + caption:"", + onClickButton : function () { + jQuery("#sessions").excelExport(); + } +}); + +jQuery('#sessions').jqGrid('navButtonAdd','#sessions_pager',{id:'pager_csv',caption:'',title:'Export To CSV',onClickButton : function(e) +{ + try { + jQuery("#sessions").jqGrid('excelExport',{tag:'csv', url:'grid.php'}); + } catch (e) { + window.location= 'grid.php?oper=csv'; + } +},buttonicon:'ui-icon-document'}) +*/ }); diff --git a/main/template/default/agenda/month.tpl b/main/template/default/agenda/month.tpl index c5620350ec..ebfde7253c 100644 --- a/main/template/default/agenda/month.tpl +++ b/main/template/default/agenda/month.tpl @@ -1,4 +1,23 @@