{assign var="pgLayout" value="none"}{include_php file="shared_handle:getStats"}<html>
<head>
	<link rel="stylesheet" href="{$skinFolder}/styles/base.css" />
	<style>{literal}
	.verticalText {
		writing-mode: tb-rl;
		filter: flipv fliph;
	}
	.tch {
		height:40px;
		border-right:1px solid black;
		border-bottom:1px solid black;
		background-color:#EEE;
	}
	.tc {
		height:30px;
		border-right:1px dashed #CCC;
		border-bottom:1px dashed #CCC;
		background-color:#FFF;
		text-align:center;
	}
	
	/* Tooltip Groups - for elements which trigger tooltips */
	.tipGrp1 {
	  color:#666; border-bottom:1px dashed #000;
	  cursor:default;
	}
	.tipGrp2 {
	  color:#686; border-bottom:1px dashed #080;
	  cursor:default;
	}
	.tipGrp3 {
	  color:#866; border-bottom:1px dashed #800;
	}
	.tipGrp4 {
	  color:#668; border-bottom:1px dashed #008;
	  cursor:default;
	}
	/* Tooltip styles for each group */
	.tipGrp1s {
	  position:absolute; visibility:hidden; overflow:hidden;
	  color:#000; background:#ccc; border:1px solid #000;
	  font-size:10px; margin:0; padding:1px;
	  width:180px; height:14px;
	}
	.tipGrp2s {
	  position:absolute; visibility:hidden; overflow:hidden;
	  color:#080; background:#ccc; border:1px solid #080;
	  font-size:10px; margin:0; padding:1px;
	  width:180px; height:14px;
	}
	.tipGrp3s {
	  position:absolute; visibility:hidden; overflow:hidden;
	  color:#800; background:#fcc; border:1px solid #800;
	  font-size:10px; margin:0; padding:1px;
	  width:180px; height:14px;
	}
	.tipGrp4s {
	  position:absolute; visibility:hidden; overflow:hidden;
	  color:#008; background:#ccf; border:1px solid #008;
	  margin:0; padding:2px;
	  width:180px; height:auto;
	}
	{/literal}</style>

<script language="javascript" src="./js/cross-browser/x/x_load.js"></script>
<script language="javascript">{literal}
	var xDir = './js/cross-browser/x/';
	var hiZ = 2;
	
	xInclude(xDir+'x_core.js',
		 xDir+'x_event.js',
		 xDir+'x_dom.js',
		 xDir+'x_tip.js');
			 
	window.onload = function () {
		  new xTooltipGroup('tipGrp1', 'tipGrp1s', 'right', 4, 0);
		  new xTooltipGroup('tipGrp2', 'tipGrp2s', 'top', 0, -2);
		  new xTooltipGroup('tipGrp3', 'tipGrp3s', 'mouse', 20, -10);
		  new xTooltipGroup('tipGrp4', 'tipGrp4s', 'mouse', 20, -10);
	}
{/literal}</script>
<script language="javascript" src=""></script>

</head>
<body style="margin:0px;background-image:none;">
{* display var=$userStats *}
{* display var=$compData *}
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" align="left">
<tr>
	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}
		{foreach name="headingLoop" from=$userStats.weeks item="week" key="num"}
		<td height="40" nowrap="nowrap" align="center" class="tch"><div class="">&nbsp;<a href="?pg=myprofile/update&start={$week.weekOfTimestamp}&userId={$userProfile.id}'" target="profileUpdateFrame"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>
		{/foreach}
	{else}
		{foreach name="headingLoop" from=$userStats.weeks item="week" key="num"}
		<td height="40" nowrap="nowrap" align="center" class="tch"><div class=""><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>
		{/foreach}
	{/if}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div>{$week.weight}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div class='tipGrp2' title='An X Toy From Cross-Browser.com'>{$week.totalLost|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div class='tipGrp3' title='An X Toy From Cross-Browser.com'>{$week.bmi|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div class='tipGrp1' title='An X Toy From Cross-Browser.com'>{$week.calories|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div class='tipGrp4' title='An X Toy From Cross-Browser.com'>{$week.carbs|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div>{$week.fat|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div>{$week.minutesExercise|default:"0"}</div></td>
	{/foreach}
</tr>
<tr>
	{foreach from=$userStats.weeks item="week"}
	<td height="30" valign="middle" align="right" class="tc"><div>{$week.distanceExercised|default:"0"}</div></td>
	{/foreach}
</tr>
</table><a name="recent"></a>
</body>
</html>
