PDA

View Full Version : Add columns to account manager



Chysostomos Floros
September 15, 2023, 10:23 AM
Hello...

How can i add a column from database to account manager at admin panel?
eg. i want to add from database-> table -> fl_accounts the column Pay_date to admin panel -> account manager

Viktor
September 15, 2023, 10:48 AM
Open file: ftp://admin>>tpl>>controllers>>accounts.tpl
find code at line ~2316

{name: 'Date', mapping: 'Date', type: 'date', dateFormat: 'Y-m-d H:i:s'},
and add a new line below:

{name: 'Pay_date', mapping: 'Pay_date', type: 'date', dateFormat: 'Y-m-d H:i:s'},

then at line ~2373 find code:


{
header: lang['ext_join_date'],
dataIndex: 'Date',
width: 13,
renderer: Ext.util.Format.dateRenderer(rlDateFormat.replace(/%/g, '').replace('b', 'M'))
},


and add new code below:



{
header: lang['ext_pay_date'],
dataIndex: 'Pay_date',
width: 13,
renderer: Ext.util.Format.dateRenderer(rlDateFormat.replace(/%/g, '').replace('b', 'M'))
},

save and check again

Chysostomos Floros
September 15, 2023, 04:24 PM
code added but no pay_date at users appear and no title at column
Only one extra column empty added at account manager.

Viktor
September 18, 2023, 01:14 PM
I suggest you create a new ticket, I will add it as soon as posible.