<tr>
    <td>
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2">
        <tr>
          <td class="default">
          <b>Phone Calls (<?php 
echo count($this->_tpl_vars['phone_entries']);
?>
)</b>
        </td>
        <td align="right" class="default">
            <?php 
if ($this->_tpl_vars['browser']['ie5up'] || $this->_tpl_vars['browser']['ns6up'] || $this->_tpl_vars['browser']['gecko'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up']) {
    ?>
            [ <a id="phone_support_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('phone_support');"><?php 
    echo smarty_function_get_innerhtml(array('element_name' => 'phone_support', 'total' => count($this->_tpl_vars['phone_entries'])), $this);
    ?>
</a> ]
            <?php 
}
?>
        </td>
        </tr>
        <tr>
          <td colspan="2">
            <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2">
              <tr id="phone_support1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'phone_support', 'total' => count($this->_tpl_vars['phone_entries'])), $this);
?>
 bgcolor="<?php 
echo $this->_tpl_vars['internal_color'];
echo $_SERVER['PHP_SELF'];
?>
">
  <tr>
    <td width="100%">
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
        <tr>
          <td class="default" nowrap>
            <b>Custom Fields</b>
          </td>
          <td align="right" class="default">
            <?php 
if ($this->_tpl_vars['browser']['ie5up'] || $this->_tpl_vars['browser']['ns6up'] || $this->_tpl_vars['browser']['gecko'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up']) {
    ?>
            [ <a id="custom_fields_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('custom_fields');"><?php 
    echo smarty_function_get_innerhtml(array('element_name' => 'custom_fields', 'total' => count($this->_tpl_vars['custom_fields'])), $this);
    ?>
</a> ]
            <?php 
}
?>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <table width="100%" cellpadding="2" cellspacing="1">
              <?php 
if (isset($this->_sections['i'])) {
    unset($this->_sections['i']);
}
$this->_sections['i']['name'] = 'i';
  <tr>
    <td width="100%">
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
        <tr>
          <td class="default" nowrap>
            <b>Attached Files (<?php 
echo count($this->_tpl_vars['files']);
?>
)</b>
          </td>
          <td align="right" class="default">
            <?php 
if ($this->_tpl_vars['browser']['ie5up'] || $this->_tpl_vars['browser']['ns6up'] || $this->_tpl_vars['browser']['gecko'] || $this->_tpl_vars['browser']['safari']) {
    ?>
            [ <a id="attachments_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('attachments');"><?php 
    echo smarty_function_get_innerhtml(array('element_name' => 'attachments'), $this);
    ?>
</a> ]
            <?php 
}
?>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <table width="100%" cellpadding="2" cellspacing="1">
              <tr id="attachments1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'attachments'), $this);
?>
>
                <td class="default_white" bgcolor="<?php 
          <td align="right" class="default">
            <?php 
if ($this->_tpl_vars['current_role'] >= $this->_tpl_vars['roles']['standard_user']) {
    ?>
            [ <a href="mail_queue.php?iss_id=<?php 
    echo $_GET['id'];
    ?>
" class="link" title="view the history of sent emails">Mail Queue Log</a> ]
            <?php 
}
?>
            <?php 
if ($this->_tpl_vars['browser']['ie5up'] || $this->_tpl_vars['browser']['ns6up'] || $this->_tpl_vars['browser']['gecko'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up']) {
    ?>
            [ <a id="support_emails_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('support_emails');"><?php 
    echo smarty_function_get_innerhtml(array('element_name' => 'support_emails', 'total' => count($this->_tpl_vars['emails'])), $this);
    ?>
</a> ]
            <?php 
}
?>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <table width="100%" cellpadding="2" cellspacing="1">
              <tr id="support_emails1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'support_emails', 'total' => count($this->_tpl_vars['emails'])), $this);
?>
 bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
  <tr>
    <td width="100%">
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2">
        <tr>
          <td class="default" nowrap>
            <b>Time Tracking (<?php 
echo count($this->_tpl_vars['time_entries']);
?>
)</b>
          </td>
          <td align="right" class="default">
            <?php 
if ($this->_tpl_vars['browser']['ie5up'] || $this->_tpl_vars['browser']['ns6up'] || $this->_tpl_vars['browser']['gecko'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up'] || $this->_tpl_vars['browser']['safari'] || $this->_tpl_vars['browser']['opera5up']) {
    ?>
            [ <a id="time_tracker_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('time_tracker');"><?php 
    echo smarty_function_get_innerhtml(array('element_name' => 'time_tracker', 'total' => count($this->_tpl_vars['time_entries'])), $this);
    ?>
</a> ]
            <?php 
}
?>
          </td>
        </tr>
        <tr>
          <td colspan="2" class="default" width="100%">
            <table width="100%" cellpadding="2" cellspacing="1">
              <tr id="time_tracker1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'time_tracker', 'total' => count($this->_tpl_vars['time_entries'])), $this);
?>
 bgcolor="<?php 
echo $this->_tpl_vars['internal_color'];