lhs logo

 

970-226-3647

Mon- Fri: 11am - 7pm
Sat-Sun: 10am - 5pm

"Larimer Humane Society's mission is to promote and provide the humane care and treatment of animals."

<?php

// These are escaped just to keep people from fooling around with weird strings in the URL
//$animalType = mysql_real_escape_string($_GET['type']);
//$animalStatus = mysql_real_escape_string($_GET['status']);
//$animalID = mysql_real_escape_string($_GET['animalID']);

$animalType = $_GET['type'];
$animalStatus = $_GET['status'];
$animalID = $_GET['animalID'];

$dataPath = "./petUploads/" . $animalType . "_" . $animalStatus . ".xml";
$xml_string = file_get_contents($dataPath);
$petData = simplexml_load_string($xml_string);

$imgPath = "http:&#47;&#47;www.larimerhumane.org/petUploads/images/".strtolower($animalType)."/".strtolower($animalStatus)."/";

foreach ($result = $petData->xpath("/pets/pet[contains(id,'".$animalID."')]") as $pet) {
$breed = $pet->breeds->primaryBreed;
if ($pet->breeds->secondaryBreed == "Mix") {
$secBreed = " mix";
} elseif ($pet->breeds->secondaryBreed != "Unknown" and $pet->breeds->secondaryBreed) {
$secBreed = " / ".$pet->breeds->secondaryBreed;
} else {
$secBreed = "";
}
$color = $pet->colors->primaryColor;
$secColor = $pet->colors->secondaryColor;

if ($secColor != "Unknown") {
$secColor = " / ". $secColor;
} else {
$secColor = "";
}

echo "<h3 class='singlePetName'>".$pet->name."</h3>
<table width='550px' border='0' cellpadding='10'>
<tr>
<td style='padding:1px; border:1px solid #000000' width='350px'>";
if (!empty($pet->image)) {
echo"<img src='".$imgPath.$pet->image."?".date("hisudmy")."' width='350px' style='float: left' />";
} else {
echo"<img src='http:&#47;&#47;www.larimerhumane.org/petUploads/nopic-".strtolower($animalType).".jpg' width='350px' style='float: left' />";
}
echo"</td>
<td style='vertical-align: top'>";
if ($animalStatus == "AVAILABLE") {
if ($pet->hold == "No") {
$borderColor = "5BBF21";
echo "\t\t<img src='http:&#47;&#47;www.larimerhumane.org/petUploads/adoptable.jpg' style='padding:1px; border: 1px solid #".$borderColor.";' /><br />";
} else if ($pet->hold == "ADOPT" || $pet->hold == "PAREST") {
$borderColor = "E23D29";
echo "\t\t<img src='http:&#47;&#47;www.larimerhumane.org/petUploads/onhold.jpg' style='padding:1px; border: 1px solid #".$borderColor.";' /><br />";
} else if ($pet->hold == "OFFSITE") {
$borderColor = "FFC61D";
echo "\t\t<img src='http:&#47;&#47;www.larimerhumane.org/petUploads/offsite.jpg' style='padding:1px; border: 1px solid #".$borderColor.";' /><br />";
}
}
echo"
<br />
<p><strong>Breed:</strong> ".$breed.$secBreed."<br />";
if ($animalStatus == "AVAILABLE") {
echo "<strong>Age:</strong> ".$pet->age."<br />";
}
echo "<strong>Sex:</strong> ";
if ($pet->sex == "S" || $pet->sex == "F") {
echo "Female";
} elseif ($pet->sex == "N" || $pet->sex == "M") {
echo "Male";
} else {
echo "Unknown";
}
echo "<br />
<strong>Color:</strong> ".$color.$secColor. "<br />";
if ($animalStatus == "AVAILABLE") {
echo "<strong>MYM:</strong> ".$pet->mymDesc."<br />";
}
echo "<strong>Pet ID:</strong> ".$pet->id."<br />";
if ($animalStatus == "AVAILABLE") {
echo "<strong>Price:</strong> ";
if (empty($pet->adoptFee)) {
echo "Call to inquire.<br />";
} else {
echo "$".$pet->adoptFee."<br />";
}
if ($pet->declawed == "FRONT") {
echo "My previous owners had my front feet declawed<br />";
} elseif ($pet->declawed == "ALL FOUR") {
echo "My previous owners had me declawed<br />";
}
echo"</p>
<!-- AddThis Button BEGIN -->
<script type='text/javascript'>
var addthis_share = {
templates: { twitter: 'Check out ".$pet->name." (".$pet->id.") @ {{url}}' }
}
</script>
<div class='addthis_toolbox addthis_default_style addthis_32x32_style'>
<a class='addthis_button_facebook'></a>
<a class='addthis_button_twitter'></a>
<a class='addthis_button_email'></a>
</div>
<script type='text/javascript'>var addthis_config = {'data_track_clickback':true};</script>
<script type='text/javascript' src='http:&#47;&#47;s7.addthis.com/js/250/addthis_widget.js#pubid=larimerhumane'></script>
<!-- AddThis Button END -->";
}
echo"
</td>
</tr>
</table>";
if (!empty($pet->webNotes->webNote)) {
echo "<div style='padding:10px;'><span style='font-size:13px;font-weight:bold;color:#CC6600;font-family:arial;line-height:110%;'>Extra Info:</span><br />".str_replace(array("\r", "\r\n", "\n"), '<br />', $pet->webNotes->webNote)."</div>";
}
if ($pet->hold == "PAREST" || $pet->hold == "RESTRICT") {
echo "I have special needs. Please call Larimer Humane Society to inquire, or ask when you come vist me!";
}
if ($animalStatus == "AVAILABLE") {
echo "<br /><br />
<table cellpadding='10px' cellspacing='0'>
<tr>
<td width='200px' style='vertical-align: top;'>
<span style='font-size:13px;font-weight:bold;color:#CC6600;font-family:arial;line-height:110%;'>Sponsor My Care</span><br />

<p>I'm sure you'd love to adopt me, but if you can't, would you consider sponsoring my care? Your generous donation will help offset the costs incurred by the shelter in providing shelter, veterinary care and daily enrichment for the nearly 12,000 animals entrusted to Larimer Humane Society each year. Every dollar counts! <a target='_blank' href='https:&#47;&#47;www.larimerhumane.org/petUploads/how_fur_does_your_donation_go.pdf' class='jce_file' title='How Fur Does your Donation Go'>Read more</a> to find out how 'fur' your donation will go. Thank you!</p><br />
<form name='sponsorMe' action='https://www.larimerhumane.org/donate/online-donation?campaign_id=1' method='POST'>
<input type='hidden' name='comment' value='My donation is to ".$pet->name." (".$pet->id.")'>
</td>
<td width='110px' style='vertical-align: top;'>
<div>
<ul style='list-style-type: none;'>
<li><input type='radio' name='amount' value='10'>$10</li>
<li><input type='radio' name='amount' value='25'>$25</li>
<li><input type='radio' name='amount' value='50'>$50</li>
<li><input type='radio' name='amount' value='100'>$100</li>
<li><input type='radio' name='amount' value=''>Other</li>
</ul>
</div>
</td>
<td style='vertical-align: top;'>
<input type='image' src='http:&#47;&#47;www.larimerhumane.org/petUploads/donatepaw.jpg' value='Sponsor'>
</td>
</tr>
</table>
</form>";
}
}

?>

donate license newsletter

Location

Shelter
6317 Kyle Ave.
Ft. Collins, CO 80525

Administration
5137 S. College Ave.
Ft. Collins, CO 80525

bbb logo

Hills_and_Science_Diet_Logos