<table width="550" border="0" cellspacing="0" cellpadding="0" class="tableBorder">

  <tr>
    <td class="mainTableTitle">

      <span>&nbsp;&nbsp;&raquo;</span> <?=TITLE070?>

    </td>
  </tr>


  <tr>
    <td>
<div style="height: 150px;overflow: auto;">
<table class="gbTable" width="100%">
<tr class="header">
        <td width="4%">Nr</td>
        <td width="21%"><div align="left" style="padding-left:5px;">Date</div></td>
        <td width="15%"><div align="left" style="padding-left:5px;">Total Hits</div></td>
        <td width="15%"><div align="left" style="padding-left:5px;">Total Calls</div></td>
        <td width="15%"><div align="left" style="padding-left:5px;">Duration</div></td>
        <td width="15%"><div align="left" style="padding-left:5px;">ASR</div></td>
        <td width="15%"><div align="left" style="padding-left:5px;">ACD</div></td>
        </tr>

<?
$i=1;
if(is_array($callSummary))
{
foreach($callSummary as $row)
{
$passid =$i;


$acdSeconds = floor($row->totalDuration/$row->totalSucessCall);
$acdMin = $this->generallib->sec_to_time($acdSeconds);

$totalFailedCall = $this->generallib->getTotalFaildCall($row->callDate);
$totalHits = $totalFailedCall + $row->totalSucessCall;

$asr = ($row->totalSucessCall*100/$totalHits);

$totalDuration = $this->generallib->sec_to_time($row->totalDuration);





?>

      <?

	  		if($i%2==0)
	  		 {

	  		 $str = "
	  		 		 <TR id = \"$passid\" class=\"row2 \"
	  		 		               onmousedown=\"rowPointer(this, 'down', 'row2', 'rowSel', 'rowMark')\"
	  		 		               onmouseover=\"rowPointer(this, 'over', 'row2', 'rowSel', 'rowMark')\"
	  		               onmouseout=\"rowPointer(this, 'out', 'row2', 'rowSel', 'rowMark')\">";


	  		 }
	  		else
	  		 {
	  			$str = "
	  					 <TR id = \"$passid\" class=\"row1 \"
	  					               onmousedown=\"rowPointer(this, 'down', 'row1', 'rowSel', 'rowMark')\"
	  					               onmouseover=\"rowPointer(this, 'over', 'row1', 'rowSel', 'rowMark')\"
	  		               onmouseout=\"rowPointer(this, 'out', 'row1', 'rowSel', 'rowMark')\">";
	  		 }



	  echo $str;

	  ?>

         <td align=center class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;"><input name="cehckRate" type="checkbox"  id="cehckRate" value="<?=$passid?>" /></td>
         <td align=left class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;padding-left:5px;"><?=$row->callDate?></td>
         <td align=left class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;padding-left:5px;"><?=$totalHits?></td>
         <td align=left class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;padding-left:5px;"><?=$row->totalSucessCall?></td>
         <td align=left class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;padding-left:5px;"><?=$totalDuration?></td>
         <td align=left class="tableBorderAll" style="padding-top:2px;padding-bottom:2px;padding-left:5px;"><?=number_format($asr, 2, '.', '')?> %</td>
         <td align=left style="padding-left:10px;"><?=$acdMin?></td>
        </tr>





        <?
        $i++;
        }

        }
        ?>


    </table>
    </div>

    </td>
  </tr>
</table>



