Table not closed properly

  • Dycon
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago - 12 years 7 months ago #20230 by Dycon
Table not closed properly was created by Dycon
Hi Tuan, I want to thank you for the help via Skype,
Best support ever!!!!!!!! B)
To the topic.

I was changing a few thing on:
com_eventbooking / view / event /tmpl / default.php

and before you go with a face palm thinking "No more color_code", NO is not related to it... lol... I got that cover thanks to you, now I can do it on any "view"...

I was looking at the code of that file, and I notice that the second row is not closed, and before the table you have a div tag:

here is the piece of code
Code:
<div id="detail_left"> <table cellspacing="0"> <tbody> <tr> <td style="width: 60%;"> <strong><?php echo JText::_('EB_EVENT_DATE') ?>:</strong> </td> <td> <?php if ($item->event_date == EB_TBC_DATE) { echo JText::_('EB_TBC'); } else { echo JHTML::_('date', $item->event_date, $this->config->event_date_format, $param) ; } ?> </td> </tr> <?php if ($item->event_end_date != $this->nullDate) { ?> <tr> <td> <strong><?php echo JText::_('EB_EVENT_END_DATE'); ?>:</strong> </td> <td> <?php echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, $param) ; ?> </td> </div> <!-- Closing DIV --> </tr> <!-- does not exist --> <?php } if ($this->config->show_capacity) { ?> ... the code coninue ...

I put some marks so you can see what I'm talking about...
<!-- Closing DIV -->
<!-- does not exist -->

is there a reason why you have it like that?

I'm asking because I want to change tables to div tags...

Thank you
Last edit: 12 years 7 months ago by Dycon.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc