Basic question
Posted: Fri Oct 07, 2011 2:44 pm
This is a basic question:
I am trying to change this code so that if a team hasnt played "vs." is the separator, but if they have ":" is the separator.
<tr id="score" valign="top">
<th id="match_thome" width="44%" nowrap="nowrap"><?php echo $match->home?> </th>
<th id="match_rhome" align="right" width="6%" nowrap="nowrap"><?php echo ($match->m_played?$match->score1.(($match->bonus1 && $match->bonus1 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus1)."</font>)":""):'').' :'?></th>
<th id="match_raway" width="6%" nowrap="nowrap"> <?php echo ($match->m_played?$match->score2.(($match->bonus2 && $match->bonus2 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus2)."</font>)":""):'');?></th>
<th id="match_taway" width="44%" nowrap="nowrap"><?php echo '<div style="float: left; "> '.$match->away.'</div>'; if($this->enbl_extra && $match->is_extra){ echo "<div id='overtime' style='float: left;'> (".JText::_('BL_RES_EXTRA').")</div>";}?></th>
I am trying to change this code so that if a team hasnt played "vs." is the separator, but if they have ":" is the separator.
<tr id="score" valign="top">
<th id="match_thome" width="44%" nowrap="nowrap"><?php echo $match->home?> </th>
<th id="match_rhome" align="right" width="6%" nowrap="nowrap"><?php echo ($match->m_played?$match->score1.(($match->bonus1 && $match->bonus1 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus1)."</font>)":""):'').' :'?></th>
<th id="match_raway" width="6%" nowrap="nowrap"> <?php echo ($match->m_played?$match->score2.(($match->bonus2 && $match->bonus2 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus2)."</font>)":""):'');?></th>
<th id="match_taway" width="44%" nowrap="nowrap"><?php echo '<div style="float: left; "> '.$match->away.'</div>'; if($this->enbl_extra && $match->is_extra){ echo "<div id='overtime' style='float: left;'> (".JText::_('BL_RES_EXTRA').")</div>";}?></th>