discourse-legacysite-perl/site/coaches/include_store.php

28 lines
1.4 KiB
PHP
Raw Normal View History

2024-06-17 12:42:14 +00:00
<div class="list-block grid">
<div class="col-1-1 clearfix">
<h3 class="float-left"><a href="<? echo "individual.php?coach_id=$row[coach_id]"; ?>"><? echo $row[coach_name]; ?></a> <? if ($row[coach_certifications]) {
$temp_arr = explode(",", $row[coach_certifications]);
if (in_array($st_id, $temp_arr)) {echo "<img src='images/st_cert_16.gif' alt='Slowtwitch Certified Coach'></h3>"; } else { echo "</h3>";}
}
?>
</div>
<? if ($rating_text) { ?>
<p>(Avg. rating <? echo($row[score]); ?> based on <? echo(int_to_words($row[respondents])); if($row[respondents] == 1) { echo(" respondent"); } else { echo(" respondents"); } ?>)</p>
<? } ?>
<div class="col-1-2">
<?
echo ("$row[coach_address]");
if ($row[coach_address_two]) { echo ("<br />$row[coach_address_two]"); }
echo("<br />$row[coach_city], $row[coach_state] $row[coach_zip]");
?>
<br />Phone: <? echo $row[coach_phone] ?>
<br />Fax: <? echo $row[coach_fax] ?>
</div>
<div class="col-1-2">
Email: <? echo "<a href='mailto:$row[coach_email]'>$row[coach_email]</a>"; ?><br/>
Website: <? echo "<a href='$row[coach_website]' target='_blank'>$row[coach_website]</a>"; ?><br/>
<? if ($row[coach_cart] == 1) { echo ("**eCommerce Shopping Cart**<br />"); } ?>
<a href="<? echo "individual.php?coach_id=$row[coach_id]"; ?>">More info &gt;</a>
</div>
</div>