<html {$html_attrs}>
<head>
<title>HO - Calls Summary</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#height100{$id} {height:auto;padding:10px;}
/*#search_block{$id} div {padding:5px 7px;}*/
#global_block{$id} {padding:5px 12px;/*min-height:800px;*/ border: 1px solid #516C81;}
#search_block_center{$id} {padding:3px 5px;text-align:center;}
#center_block{$id} {text-align:center;padding:4px;}
#center_block_caption{$id} {text-align:center;padding:4px;}
#left_block{$id} { position:absolute;width:202px; {BEGIN RTL_block} right:20px;{END RTL_block}{BEGIN LTR_block} left:20px;{END LTR_block} overflow:visible; margin-top:10px}
#right_block{$id} { padding:10px 0px 0px 0px;}
{BEGIN shiftstyle_block}
#right_block{$id} {padding-left:220px;{BEGIN RTL_block}padding-left:0px;padding-right:220px;{END RTL_block}}
{END shiftstyle_block}
#toplinks_block{$id} {padding:0 5px 5px 5px;}
#toplinks_block{$id} > * {margin:4px 6px;vertical-align:middle;}
#menu_block{$id} {clear:left;padding:5px 0px; width:auto;}
#details_block{$id}, #pages_block{$id}, .rppBlock {white-space:nowrap;padding:5px 7px;text-align:center;}
#recordcontrols_block{$id} {padding:13px 10px 9px 10px;text-align:left}
#record_controls{$id} > *,#newrecord_controls{$id} > * {margin:2px 2px;vertical-align:middle}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.menuitem {padding:6px 18px 10px 13px}
.menuitem_active {padding:6px 18px 11px 13px}
.message_block {text-align:center;}
.grid_recordheader {padding-top:5px;}
.grid_recordheader a {margin:0 5px;}
#grid_block{$id} {margin-top:10px;}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
body{margin:0px;padding:0px;}

#searchPanelContainer{$id}{
	width: 200px

}

/*report styles*/
table.report {border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px; border-style: solid; border-color: #cccccc;}
.message_block {clear:left;}
td.group_1{background-color: 90EE90;}
td.group_2{background-color: ADD8E6;}
td.group_3{background-color: AFEEEE;}
td.nbgroup_1{background-color: 90EE90;border-style:none;}
td.nbgroup_2{background-color: ADD8E6;border-style:none;}
td.nbgroup_3{background-color: AFEEEE;border-style:none;}
td.header_1{background-color: 7ACA7A;}
td.header_2{background-color: 93B7C3;}
td.header_3{background-color: 94CACA;}
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}
#export_links{$id} * {padding:0}
</style>
{END style_block}
<!--[if IE]>
{BEGIN iestyle_block}
<style>
#right_block{$id} { width:100%}
.list_table, .list_table1,.grid  {height:100%;}
</style>
{END iestyle_block}
<![endif]-->
</head>

<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
{$header}
<div id="height100{$id}">
<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>
{BEGIN toplinks_block}
<div id="toplinks_block{$id}" class="upeditmenu">
<span><font style="FONT-FAMILY: Verdana, Arial;">Logged on as</font>&nbsp;<b>{$username}</b>&nbsp;</span>
<span class=buttonborder><input type=button class=button value="Log out" {$logoutlink_attrs}></span>


{BEGIN changepwd_link}
<span class=buttonborder><input type=button class=button value="Change password" {$changepwdlink_attrs}></span>
{END changepwd_link}

{BEGIN asearch_link}
<span class=buttonborder><input type=button class=button value="Advanced search" {$asearchlink_attrs}></span>
{END asearch_link}



{BEGIN print_link}
<span class=buttonborder><input type=button class=button value="Printer-friendly version" {$printlink_attrs}></span>
{END print_link}

{BEGIN printall_link}
<span class=buttonborder><input type=button class=button value="Print whole report" {$printalllink_attrs}></span>
{END printall_link}


{BEGIN export_link}
<span id="export_links{$id}">
<a href="HO___Calls_Summary_print.php?all=1&format=excel" {$excellink_attrs}><img alt="Expot to Excel" src="images/excel.gif" border="0"></a>
<a href="HO___Calls_Summary_print.php?all=1&format=word" {$wordlink_attrs}><img alt="Export to Word" src="images/word.gif" border="0" ></a>
</span>
{END export_link}

</div>
{END toplinks_block}

<div class="main_table_border2 main_table" id="global_block{$id}">
{BEGIN left_block}
<div id="left_block{$id}" >
    <b class="xtop"><b class="xb1b1"></b><b class="xb2b1"></b><b class="xb3b1"></b><b class="xb4b1"></b></b>
	<!-- MenuBegin -->
{BEGIN menu_block}
<div class="menu_table" id="menu_block{$id}">
<!-- MainMenuBegin -->
{$mainmenu}
<!-- MainMenuEnd -->
</div>
{END menu_block}
		
	<!-- MenuEnd -->	
	{BEGIN search_records_block}
	<div>
        		{BEGIN searchform}
        <div class="menu_table" id="search_block{$id}">
            <!-- search panel and window -->
            <style>
<!--

#center_block{$id}{
	padding: 5px;
}
#searchPanelHeader{$id}{
	padding: 5px 0px 5px 5px;
}

-->
</style>

<!-- search panel and window header -->
<div class="blackshade2" id="center_block{$id}">
	Search for:
	{BEGIN searchPanelTopButtons}	
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
		&nbsp;		
		<span class="buttonborder"><input class="button" type="button" id="showOptPanel{$id}" style="width: 18px; background-image: url(images/search/showOptions.gif);" {$showHideSearchPanel_attrs} ></span>
	{END searchPanelTopButtons}
</div>
<div id="searchform{$id}">
	<div class="blackshade" id="searchPanelHeader{$id}">
		{$simpleSearchFieldCombo}
		
		{$simpleSearchTypeCombo}
		
		{BEGIN searchform_text}
			<input type=text {$searchfor_attrs} size="25">
		{END searchform_text}
		&nbsp;
		{BEGIN searchform_search}
			<span class="buttonborder"><input class="button" type="button" style="width: 18px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} /></span>
		{END searchform_search}
		&nbsp;		
		{BEGIN searchform_showall}
			<span id="showall{$id}" class=buttonborder {$showAllCont_attrs}><input type=button class="button" value="Show all" {$showallbutton_attrs}></span>
		{END searchform_showall}
	</div>
</div>  
			<div id="searchPanelContainer{$id}" class="searchPanelContainer">			
				{$adv_search_panel}
			</div>                      
            
            <div class="blackshade2" id="details_block{$id}">
				                {BEGIN details_block}
                <span {$details_attrs}>Details found: {$records_found}</span>
                {END details_block}
            </div>
            <div class="menu_text blackshade" id="pages_block{$id}">
				                {BEGIN pages_block}
                <span {$pages_attrs}>Page {$page} of {$maxpages}</span>
                {END pages_block}
            </div>
        </div>
		{END searchform}
		
        <div class="menu_table2">
						{BEGIN recordspp_block}
			<div class="menu_text blackshade rppBlock" align="center">
			            	{$grpsPerPage}
            </div>
			{END recordspp_block}
        </div>
	</div>
	{END search_records_block}
</div>
{END left_block}

    <div id="right_block{$id}">
        
        
        <div class="list_table1" >
        <div class="list_table">
        
        <div class=blackshade2 id="center_block_caption{$id}">
        HO&nbsp;-&nbsp;Calls&nbsp;Summary
        </div>
        {BEGIN recordcontrols_block}
        <div class=blackshade id="recordcontrols_block{$id}">
	        {BEGIN newrecord_controls}
		<span id="newrecord_controls{$id}">
                {BEGIN add_link}
        <span class=buttonborder><input type=button class="button" value="Add new" {$addlink_attrs}></span>
        {END add_link}

                {BEGIN inlineadd_link}
        <span class=buttonborder><input type=button class="button" value="Inline Add" {$inlineaddlink_attrs} ></span>
        {END inlineadd_link}
        </span>
		{END newrecord_controls}
		
		{$lookupSearchControls}
		
		{BEGIN record_controls}
		<span id="record_controls{$id}">
        
                        {BEGIN editselected_link}
        <span class=buttonborder {$editselectedlink_span}> <input type=button class="button" value="Edit selected" {$editselectedlink_attrs}></span>
        {END editselected_link}
        {BEGIN saveall_link}
        <span class=buttonborder {$savealllink_span}><input type=button class="button" value="Save all" {$savealllink_attrs}></span>
        {END saveall_link}
        {BEGIN cancelall_link}
        <span class=buttonborder {$cancelalllink_span}><input type=button class="button" value="Cancel" {$cancelalllink_attrs}></span>
        {END cancelall_link}

                {BEGIN deleteselected_link}
        <span class=buttonborder {$deleteselectedlink_span}><input type=button class="button" value="Delete selected" {$deleteselectedlink_attrs}></span>
        {END deleteselected_link}

        
        		</span>
		{END record_controls}
        </div>
        {END recordcontrols_block}
		<div class="message" id="usermessage{$id}">{$user_message}</div>
{BEGIN grid_block}
<div id="grid_block{$id}">
<TABLE class="report" WIDTH="auto" CELLPADDING=1 CELLSPACING=0 BORDER=0 style="border: solid; border-width: 1px; border-color: black;">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN Region_newgroup}
<tr>
<td class=blackshade>Region</td>
<td class=blackshade>Date</td>
<td class=blackshade>Executive Name</td>
<td class=blackshade>COUNT</td>
<td class=blackshade>Customer Status</td>
</tr>
<tr>
		<td colspan=5 class=header_1><font style="font-weight:900">{$Region_grval}</font></td>
				</tr>
{END Region_newgroup}
{BEGIN Date_newgroup}
<tr>
		<td class="noborder group_1" style="border-style:none;">&nbsp;</td>
		<td colspan=4 class=header_2><font style="font-weight:900">{$Date_grval}</font></td>
		</tr>
{END Date_newgroup}
{BEGIN Executive_Name_newgroup}
<tr>
		<td class="noborder group_1" style="border-style:none;">&nbsp;</td>
		<td class="noborder group_2" style="border-style:none;">&nbsp;</td>
		<td colspan=3 class=header_3><font style="font-weight:900">{$Executive_Name_grval}</font></td>
</tr>
{END Executive_Name_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
			<td class="noborder group_1" style="border-style:none; border-right:solid 1px">&nbsp;</td>
			<td class="noborder group_2" style="border-style:none; border-right:solid 1px">&nbsp;</td>
			<td class="noborder group_3" style="border-style:none; border-right:solid 1px">&nbsp;</td>
	<td class=data>{$COUNT_value}</td>
	<td class=data>{$Customer_Status_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{END grid_row}
</table>
</div>
{END grid_block}
</div>

{BEGIN pagination_block}
<div id="pagination_block{$id}">{$pagination}</div>
{END pagination_block}

</div>
<b class="xbottom"><b class="xb4b"></b><b class="xb3b"></b><b class="xb2b"></b><b class="xb1b"></b></b>
</div>
{$footer}
{END body}
</body>
</html>