-1

i want to add a row which will show the total value of a column in grocery crud.I don't want it for every table just for few tables which has numerical values,so I don't wan't to modify the template indeed.Is it possible then how? and what if I change the template and how will I add a row that will calculate the total for few tables?

Thanks in Advance

Rahat Islam Khan
  • 125
  • 1
  • 6
  • 25

1 Answers1

0

You can extend not modify the codeigniter HTML table class to have a TFOOT element, then you add the totals to the footer. this post will show you how to extend the codeigniter html table class:

Community
  • 1
  • 1
pgee70
  • 3,707
  • 4
  • 35
  • 41
  • See my question care fully – Rahat Islam Khan Mar 08 '14 at 14:16
  • think about tables semantically. a total of a column is either a header or footer element. that is what you should use. the CI frame work does not use a footer element, i showed you how to do that. reading your question carefully is difficult with your writing skills. – pgee70 Mar 08 '14 at 21:18
  • He was asking a question about grocery CRUD, not CI – JG Estiot Oct 01 '15 at 06:40