Location: PHPKode > projects > PhpDivingLog > tpl/divestats.tpl
{include file='header.tpl'}
<div id="content">
<!-- Include links_overview -->
	{include file='links_overview.tpl'}
<!-- End include links_overview -->
{if isset($diver_overview)}
{include file='diver_overview.tpl'}
{else}
<table class="divetable" cellspacing="0" cellpadding="0" width="100%">

<tr><td colspan="4" class="spacing">&nbsp;</td></tr>

<tr class="divesection">
 <td colspan="4">{$stats_sect_stats}</td>
</tr>

{* Show overall details *}
<tr class="divetitle">
 <td>{$stats_totaldives}</td>
 <td>{$stats_divedatemax}</td>
 <td>{$stats_divedatemin}</td>
 <td>&nbsp;</td>
</tr>

<tr class="divecontent">
 <td>{$end}</td>
 {if isset($multiuser_id)}
<td>{$DivedateMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DivedateMaxNr}"
title="{$dlog_number_title}{$DivedateMaxNr}">{$DivedateMaxNr}</a></td>
<td>{$DivedateMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DivedateMinNr}"
title="{$dlog_number_title}{$DivedateMinNr}">{$DivedateMinNr}</a></td>

{else}
 <td>{$DivedateMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DivedateMaxNr}" 
 title="{$dlog_number_title}{$DivedateMaxNr}">{$DivedateMaxNr}</a></td>
 <td>{$DivedateMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DivedateMinNr}" 
 title="{$dlog_number_title}{$DivedateMinNr}">{$DivedateMinNr}</a></td>

{/if}
 <td>&nbsp;</td>
</tr>

{* Show dive length details *}
<tr class="divetitle">
 <td>{$stats_totaltime}</td>
 <td>{$stats_divetimemax}</td>
 <td>{$stats_divetimemin}</td>
 <td>{$stats_divetimeavg}</td>
</tr>

<tr class="divecontent">
 <td>{$total_abt}</td>
 {if isset($multiuser_id)}
<td>{$DivetimeMax}&nbsp;{$unit_time}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DivetimeMaxNr}"  title="{$dlog_number_title}{$DivetimeMaxNr}">{$DivetimeMaxNr}</a></td>
<td>{$DivetimeMin}&nbsp;{$unit_time}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DivetimeMinNr}"  title="{$dlog_number_title}{$DivetimeMinNr}">{$DivetimeMinNr}</a></td>
{else}
<td>{$DivetimeMax}&nbsp;{$unit_time}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DivetimeMaxNr}"  title="{$dlog_number_title} {$DivetimeMaxNr}">{$DivetimeMaxNr}</a></td>
<td>{$DivetimeMin}&nbsp;{$unit_time}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DivetimeMinNr}"  title="{$dlog_number_title} {$DivetimeMinNr}">{$DivetimeMinNr}</a></td>
{/if}
<td>{$DivetimeAvg}&nbsp;{$unit_time}</td>
</tr>

{* Show dive depth details *}
<tr class="divetitle">
 <td>&nbsp;</td>
 <td>{$stats_depthmax}</td>
 <td>{$stats_depthmin}</td>
 <td>{$stats_depthavg}</td>
</tr>

<tr class="divecontent">
 <td>&nbsp;</td>
 {if isset($multiuser_id)}
<td>{$DepthMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DepthMaxNr}"  
title="{$dlog_number_title}{$DepthMaxNr}">{$DepthMaxNr}</a></td>
<td>{$DepthMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$DepthMinNr}"  
title="{$dlog_number_title}{$DepthMinNr}">{$DepthMinNr}</a></td>
 {else}
<td>{$DepthMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DepthMaxNr}"  title="{$dlog_number_title}{$DepthMaxNr}">{$DepthMaxNr}</a></td>
 <td>{$DepthMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep2}{$DepthMinNr}"  title="{$dlog_number_title}{$DepthMinNr}">{$DepthMinNr}</a></td>

 {/if}
 <td>{$DepthAvg}</td>
</tr>

{* Show dive depth tablea *}
<tr class="divecontent">
<td colspan="4">
            {if isset($multiuser_id)}
		        <img src="{$app_path}/drawpiechart.php{$sep1}{$multiuser_id}{$sep2}{$get_nr}"  alt="" title="">
            {else}
                <img src="{$app_path}/drawpiechart.php"  alt="" title="">
            {/if}
		    </td>


{* Show water temp details *}
<tr class="divetitle">
 <td>{$stats_watertempmin}</td>
 <td>{$stats_watertempmax}</td>
 <td>{$stats_decodives}</td>
 <td>{$stats_repdives}</td>
</tr>

<tr class="divecontent">
 {if isset($multiuser_id)}
<td>{$WatertempMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$WatertempMinNr}" title="{$dlog_number_title} {$WatertempMinNr}">{$WatertempMinNr}</a></td>
<td>{$WatertempMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$multiuser_id}{$sep2}{$WatertempMaxNr}" title="{$dlog_number_title} {$WatertempMaxNr}">{$WatertempMaxNr}</a></td>
 {else}
<td>{$WatertempMin}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$WatertempMinNr}" title="{$dlog_number_title} {$WatertempMinNr}">{$WatertempMinNr}</a></td>
<td>{$WatertempMax}&nbsp;&nbsp;<a href="{$app_path}/index.php{$sep1}{$WatertempMaxNr}" title="{$dlog_number_title} {$WatertempMaxNr}">{$WatertempMaxNr}</a></td>
 {/if}
 <td>{$decodives} ({$decodives_per}%)</td>
 <td>{$repdives} ({$repdives_per}%)</td>
</tr>

{*  Show water type details *}
<tr class="divetitle">
 <td>{$stats_saltwaterdives}</td>
 <td>{$stats_freshwaterdives}</td>
 <td>{$stats_brackishdives}</td>
 <td>&nbsp;</td>
</tr>

<tr class="divecontent">
 <td>{$saltwaterdives} ({$saltwaterdives_per}%)</td>
 <td>{$freshwaterdives} ({$freshwaterdives_per}%)</td>
 <td>{$brackishdives} ({$brackishdives_per})%)</td>
 <td>&nbsp;</td>
</tr>

{* Show dive type details *}
<tr class="divetitle">
 <td>{$stats_shoredives}</td>
 <td>{$stats_boatdives}</td>
 <td>{$stats_nightdives}</td>
 <td>{$stats_driftdives}</td>
</tr>

<tr class="divecontent">
 <td>{$shoredives} ({$shoredives_per}%)</td>
 <td>{$boatdives} ({$boatdives_per}%)</td>
 <td>{$nightdives} ({$nightdives_per}%)</td>
 <td>{$driftdives} ({$driftdives_per}%)</td>
</tr>

{*  Show more dive type details *}
<tr class="divetitle">
 <td>{$stats_deepdives}</td>
 <td>{$stats_cavedives}</td>
 <td>{$stats_wreckdives}</td>
 <td>{$stats_photodives}</td>
</tr>

<tr class="divecontent">
 <td>{$deepdives} ({$deepdives_per}%)</td>
 <td>{$cavedives} ({$cavedives_per}%)</td>
 <td>{$wreckdives} ({$wreckdives_per}%)</td>
 <td>{$photodives} ({$photodives_per}%)</td>
</tr>


</table>

{* Dive Certifications *}
{* Get the certification details *}
{if isset($count)}

	<table class="divetable" cellspacing="0" cellpadding="0" width="100%">
	<tr><td colspan="4" class="spacing">&nbsp;</td></tr>
	<tr class="divesection"><td colspan="5">{$stats_sect_certs}</td></tr>

	{* Show dive certification titles *}
	<tr class="divetitle">
	 <td>{$cert_brevet}</td>
	 <td>{$cert_org}</td>
	 <td>{$cert_certdate}</td>
	 <td>{$cert_number}</td>
	 <td>{$cert_instructor}</td>
	</tr>

    {* Loop through the array *}
    {section name=cell_data loop=$cells }
        <tr class="divecontent">
            <td>{$cells[cell_data].brevet}</td>
			<td>{$cells[cell_data].org}</td>
			<td>{$cells[cell_data].certdate}</td>
			<td>{$cells[cell_data].number}</td>
			<td>{$cells[cell_data].instructor}</td>
		</tr>
		{if isset($cells[cell_data].scan1path) or  isset($cells[cell_data].scan2path)}
			<tr class="divecontent">
			 <td colspan="5" align="center">
			{if isset($cells[cell_data].scan1path)}
                <img src="{$app_path}/{$cells[cell_data].userpath_web}{$cells[cell_data].scan1path}" title="{$cells[cell_data].title} {$cells[cell_data].cert_scan_front}" alt="{$cells[cell_data].title} {$cells[cell_data].cert_scan_front}">
			{/if}
			{if isset($cells[cell_data].scan2path)}
				<img src="{$app_path}/{$cells[cell_data].userpath_web}{$cells[cell_data].scan2path}" title="{$cells[cell_data].title} {$cells[cell_data].cert_scan_back}" alt="{$cells[cell_data].title} {$cells[cell_data].cert_scan_back}">
			{/if}
			<br>
			 &nbsp;</td>
			</tr>
        {/if}
    {/section}
    {/if}
    <tr class="divesection">
	    <td colspan="5">&nbsp;</td>
	</tr>
</table>
{/if}
<!-- Include links_overview -->
	{include file='links_overview.tpl'}
<!-- End include links_overview -->
</div>
{include file='footer.tpl'}

Return current item: PhpDivingLog