<style>
#TB_ajaxContent.TB_modal {
    padding: 15px;
}
</style>
<div style="border:1px solid #EEE;margin-right:28px;padding:5px;">
	<div style="text-align:right;">
		<a href="#" onclick="tb_remove();return false;">%%LNG_PopupCloseWindow%%</a>
	</div>
	<div>
	</div>
</div>
<div style="border:0px solid #EEE;margin-right:28px;padding:5px;height:163px;overflow: auto;margin-top:2px;">
<table border="0" cellspacing="0" cellpadding="0" class="Text" id="SubscriberListManageList" style="width:99%; margin-top: 7px;">
<tr>
<td style="width:50%;vertical-align:top;">
<table border="0" cellspacing="0" cellpadding="0" class="Text" id="SubscriberListManageList" style="width:99%;">
    					<tr>
    						<td></td>
    						<td  style="width:70%;text-align:center;border-bottom:2px solid #CCC;">
    							<b>%%LNG_Addon_geostats_region%%</b>
    						</td>
    						<td  style="width:30%;text-align:center;border-bottom:2px solid #CCC;">
    							Total
    						</td>
    					</tr>
    					{foreach key=key item=item from=$data_rhtml}
    					<tr class="GridRow">
    						<td></td>
    						<td style="font-size:8pt;" class="{if ($maborak.lastindex.$key % 2) == 0}te_r2{/if}">
    							&nbsp;{$item.region}
    							  <span style="font-size:7pt;">
    								[<a style="font-size:7pt;color:#006699;" href="index.php?Page=Addons&Addon=geostats&Action=export&region={$item.region}&c={$country}&t={$t}&statid={$statid}&Ajax=1" >%%LNG_Addon_geostats_export%%</a>]
    							  </span>
    						</td>
    						<td nowrap="nowrap" style="background-color:#FFF;">
    							{$item.total}
    						</td>
    					</tr>
    					{/foreach}
</table>
</td>
<td style="width:50%;vertical-align:top;">
<table border="0" cellspacing="0" cellpadding="0" class="Text" id="SubscriberListManageList" style="width:99%;">
    					<tr>
    						<td  style="width:70%;text-align:center;border-bottom:2px solid #CCC;">
    							<b>%%LNG_Addon_geostats_city%%</b>
    						</td>
    						<td  style="width:30%;text-align:center;border-bottom:2px solid #CCC;" nowrap="nowrap">
    							Total
    						</td>
    					</tr>
    					{foreach key=key item=item from=$data}
    					<tr class="GridRow">
    						<td nowrap="nowrap" style="font-size:8pt;" class="{if ($maborak.lastindex.$key % 2) == 0}te_r2{/if}">
    							&nbsp;{$item.city}
    							 <span style="font-size:7pt;">
    								[<a style="font-size:7pt;color:#006699;" href="index.php?Page=Addons&Addon=geostats&Action=export&city={$item.city}&c={$country}&t={$t}&statid={$statid}&Ajax=1" >%%LNG_Addon_geostats_export%%</a>]
    							 </span>
    						</td>
    						<td nowrap="nowrap" style="background-color:#FFF;">
    							{$item.total}
    						</td>
    					</tr>
    					{/foreach}
</table>
</td>
</tr>
</table>
</div>
<br>
{if $data_count>0}
		<div id="copenners_chart" style="border:2px solid #006699;margin-right:28px;height:400px;overflow:hidden;"></div>
		<script type="text/javascript">
		$(function(){
			/*Opens*/
		      var data = new google.visualization.DataTable();
		      data.addRows({$data_count});
		      data.addColumn('string', 'Region');
		      data.addColumn('number', '{$dtype}');
		      {foreach from=$data_r item=item key=key}
		      	data.setValue({$key}, 0, '{$item.region}');
			    data.setValue({$key}, 1, {$item.total});
		      {/foreach}
			  var region="{$region}";
		      new google.visualization.GeoMap(document.getElementById('copenners_chart')).draw(data, {'width':"100%",'height':400,colors:[0xFFEBDB,0xFF7200],dataMode:'{$data_mode}','region':region,'showLegend':true});
	      });
		</script>
{/if}