?>
                    <?php 
            echo is_array($_tmp = $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['icf_value']) ? $this->_run_mod_handler('formatCustomValue', true, $_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true) : Custom_Field::formatValue($_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true);
            ?>

                  <?php 
        }
        ?>
                </td>
              </tr>
              <?php 
    }
} else {
    ?>
              <tr id="custom_fields1" <?php 
    echo smarty_function_get_display_style(array('element_name' => 'custom_fields', 'total' => count($this->_tpl_vars['custom_fields'])), $this);
    ?>
>
                <td colspan="2" bgcolor="<?php 
    echo $this->_tpl_vars['light_color'];
    ?>
" align="center" class="default">
                  <i>No custom fields could be found.</i>
                </td>
              </tr>
              <?php 
}
?>
              <tr id="trans_frame_td" style="display: none" valign="top">
                <td bgcolor="<?php 
if ($this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_min_role'] > $this->_tpl_vars['roles']['customer']) {
        echo $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_phone_type'];
        ?>
)</td>
              </tr>
              <?php 
        $_smarty_tpl_vars = $this->_tpl_vars;
        $this->_smarty_include(array('smarty_include_tpl_file' => "expandable_cell/body.tpl.html", 'smarty_include_vars' => array('ec_id' => 'phone', 'list_id' => $this->_tpl_vars['phone_entries'][$this->_sections['i']['index']]['phs_id'], 'colspan' => '9')));
        $this->_tpl_vars = $_smarty_tpl_vars;
        unset($_smarty_tpl_vars);
        ?>
              <?php 
    }
} else {
    ?>
              <tr id="phone_support2" <?php 
    echo smarty_function_get_display_style(array('element_name' => 'phone_support', 'total' => count($this->_tpl_vars['phone_entries'])), $this);
    ?>
>
                <td colspan="9" bgcolor="<?php 
    echo $this->_tpl_vars['light_color'];
    ?>
" class="default" align="center">
                  <i>No phone calls recorded yet.</i>
                </td>
              </tr>
              <?php 
}
?>
              <?php 
if ($this->_tpl_vars['current_role'] > $this->_tpl_vars['roles']['customer']) {
    ?>
<?php

/* Smarty version 2.6.2, created on 2006-10-26 01:57:58
   compiled from current_filters.tpl.html */
require_once SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'get_display_style', 'current_filters.tpl.html', 1, false), array('modifier', 'substr', 'current_filters.tpl.html', 56, false), array('modifier', 'escape', 'current_filters.tpl.html', 76, false))), $this);
?>
<div id="current_filters1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'current_filters'), $this);
?>
>
<table bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td>
      <table bgcolor="#FFFFAA" width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td class="default">Current filters:&nbsp;<?php 
$this->assign('displayed_count', 0);
if (count($_from = (array) $this->_tpl_vars['filter_info'])) {
    foreach ($_from as $this->_tpl_vars['filter_key'] => $this->_tpl_vars['filter']) {
        $this->assign('filter_param', $this->_tpl_vars['filter']['param']);
        if ($this->_tpl_vars['filter']['is_custom'] == 1) {
            $this->assign('fld_id', $this->_tpl_vars['filter']['fld_id']);
            $this->assign('filter_details', $this->_tpl_vars['options']['custom_field'][$this->_tpl_vars['fld_id']]);
        } else {
            $this->assign('filter_details', $this->_tpl_vars['options'][$this->_tpl_vars['filter_param']]);
        }
        if ($this->_tpl_vars['filter_param'] != 'sort_order' && $this->_tpl_vars['filter_param'] != 'sort_by' && $this->_tpl_vars['filter_param'] != 'rows' && $this->_tpl_vars['filter_param'] != 'search_type' && $this->_tpl_vars['filter_details'] != '' && $this->_tpl_vars['filter_details'] != '0' && ($this->_tpl_vars['filter_details']['Year'] != '' || $this->_tpl_vars['filter_details']['time_period'] != '' || $this->_tpl_vars['filter']['is_custom'] == 1 && ($this->_tpl_vars['filter']['fld_type'] != 'date' || $this->_tpl_vars['filter']['Year'] != ''))) {
?>

          </td>
        </tr>
		<tr>
		  <td align="left" valign="top" bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" width="150"> 
		  <span class="default_white"><b>Last Response:</b></span><br />
          </td>
          <td colspan="3" bgcolor="<?php 
echo $this->_tpl_vars['dark_color'];
?>
" class="default"><span style="white-space:pre" <?php 
echo smarty_function_get_display_style(array('element_name' => 'description'), $this);
?>
><?php 
echo is_array($_tmp = $this->_tpl_vars['issue']['last_seb_body']) ? $this->_run_mod_handler('activateLinks', true, $_tmp, 'link') : Link_Filter::activateLinks($_tmp, 'link');
?>
</span>
          </td>
		</tr>
      </table>
    </td>
  </tr>
</table>
<table width="100%" bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" border="0" cellspacing="0" cellpadding="0" align="center" style="padding-left: 1;padding-right: 1;padding-top: 0;padding-bottom: 1">
<?php

/* Smarty version 2.6.2, created on 2006-10-26 03:22:57
   compiled from bulk_update.tpl.html */
require_once SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'get_display_style', 'bulk_update.tpl.html', 1, false), array('function', 'html_options', 'bulk_update.tpl.html', 34, false), array('modifier', 'count', 'bulk_update.tpl.html', 14, false))), $this);
?>
<table id="bulk_update1" bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" border="0" cellspacing="0" cellpadding="1" align="center" <?php 
echo smarty_function_get_display_style(array('element_name' => 'bulk_update'), $this);
?>
>
  <tr>
    <td>
      <table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr>
          <td bgcolor="#FFFFFF" class="default" colspan="3">
            <b>Bulk Update Tool</b>
          </td>
        </tr>
        <tr>
          <?php 
$this->assign('colspan', 2);
?>
          <td bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" class="default_white">Assignment</td>
          <td bgcolor="<?php 
        }
        ?>
                </td>
              </tr>
              <?php 
        $_smarty_tpl_vars = $this->_tpl_vars;
        $this->_smarty_include(array('smarty_include_tpl_file' => "expandable_cell/body.tpl.html", 'smarty_include_vars' => array('ec_id' => 'email', 'list_id' => $this->_tpl_vars['emails'][$this->_sections['i']['index']]['composite_id'], 'colspan' => $this->_tpl_vars['email_col_count'], 'row_color' => $this->_tpl_vars['row_color'])));
        $this->_tpl_vars = $_smarty_tpl_vars;
        unset($_smarty_tpl_vars);
        ?>
              <?php 
    }
} else {
    ?>
              <tr id="support_emails2" <?php 
    echo smarty_function_get_display_style(array('element_name' => 'support_emails', 'total' => count($this->_tpl_vars['emails'])), $this);
    ?>
>
                <td colspan="<?php 
    echo $this->_tpl_vars['email_col_count'];
    ?>
" bgcolor="<?php 
    echo $this->_tpl_vars['light_color'];
    ?>
" class="default" align="center">
                  <i>No associated emails could be found.</i>
                </td>
              </tr>
              <?php 
}
?>
        field.name = \'filter[arrival_date]\';
        field.value = \'no\';
    }
    return true;
}
//-->
</script>
';
?>

<table bgcolor="<?php 
echo $this->_tpl_vars['cell_color'];
?>
" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr id="filter_form1" <?php 
echo smarty_function_get_display_style(array('element_name' => 'filter_form'), $this);
?>
>
    <td>
      &nbsp;
    </td>
    <td>
      <table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="0" cellpadding="4">
        <form action="emails.php" method="get" name="email_filter_form" onSubmit="javascript:return validateForm(this);">
        <input type="hidden" name="cat" value="search">
        <input type="hidden" name="hidden1" value="">
        <tr>
          <td>
            <span class="default">Subject/Body:</span><br />
            <input class="default" type="text" name="keywords" size="20" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['options']['keywords']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
        ?>
                <td class="default" width="15%" nowrap><?php 
        echo $this->_tpl_vars['files'][$this->_sections['i']['index']]['iat_created_date'];
        ?>
</td>
                <td class="default" width="45%"><?php 
        echo $this->_tpl_vars['files'][$this->_sections['i']['index']]['iat_description'];
        ?>
</td>
              </tr>
              <?php 
    }
} else {
    ?>
              <tr id="attachments2" <?php 
    echo smarty_function_get_display_style(array('element_name' => 'attachments'), $this);
    ?>
>
                <td colspan="<?php 
    if ($this->_tpl_vars['current_role'] > $this->_tpl_vars['roles']['customer']) {
        ?>
5<?php 
    } else {
        ?>
4<?php 
    }
    ?>
" bgcolor="<?php 
    echo $this->_tpl_vars['light_color'];
    ?>
" align="center" class="default">
            echo $this->_tpl_vars['dark_color'];
            ?>
" colspan="3" class="default"><?php 
            echo $this->_tpl_vars['total_time_spent'];
            ?>
</td>
              </tr>
              <?php 
        }
        ?>
              <?php 
    }
} else {
    ?>
              <tr id="time_tracker2" <?php 
    echo smarty_function_get_display_style(array('element_name' => 'time_tracker', 'total' => count($this->_tpl_vars['time_entries'])), $this);
    ?>
>
                <td colspan="6" bgcolor="<?php 
    echo $this->_tpl_vars['light_color'];
    ?>
" align="center" class="default">
                  <i>No time tracking entries could be found.</i>
                </td>
              </tr>
              <?php 
}
?>
              <?php 
if ($this->_tpl_vars['current_role'] > $this->_tpl_vars['roles']['viewer']) {
    ?>