include_once("library/config.php"); ?>
$cid=0;
if(isset($_REQUEST['cid']))
{
$cid = $_REQUEST['cid'];
$cid = escapeString($cid);
}
$sql_contributor = "SELECT
celebrant_id, email, first_name, last_name, gender, street_address, subrub, state, zipcode,
postal_address, phone, mobile, search_txt, profile_txt, photo1, photo2, photo3, thumbnail
FROM celebrants
WHERE is_contributor='1' AND celebrant_id='$cid'
";
$rs_contributor = $db->ExecuteQuery($sql_contributor);
$rows_contributor = $rs_contributor->GetSelectedRows();
list($celebrant_id, $email, $first_name, $last_name, $gender, $street_address, $subrub, $state, $zipcode,
$postal_address, $phone, $mobile, $search_txt, $profile_txt, $photo1, $photo2, $photo3, $thumbnail)=$rs_contributor->FetchAsArray();
$celebrant_name = trim(ucwords("$first_name $last_name")) ;
?>
celebrante :: helping you find the right celebrant
if(!empty($celebrant_name))
{
?>=ucwords($celebrant_name)?> -
}
?>Contributor
if($rows_contributor > 0)
{
?>
// for photo1
if($thumbnail=="p1")
{
$photo = $photo1;
}elseif($thumbnail=="p2")
{
$photo = $photo2;
}elseif($thumbnail=="p3")
{
$photo = $photo3;
}
$file = CELEBRANTS_DIR.$photo;
if(file_exists($file) && !empty($photo))
{
$file = CELEBRANTS_DIR.$photo;
$file = base64_encode($file);
$i_widht = base64_encode(CELEBRANT_SMIWIDTH);
$i_height = base64_encode(CELEBRANT_SMIHEIGHT);
$img_src = SHOW_PIC."?img=".$file."&mw=".$i_widht."&mh=".$i_height;
}
else
{
$file = NO_IMAGE;
$file = base64_encode($file);
$i_widht = base64_encode(CELEBRANT_SMIWIDTH);
$i_height = base64_encode(CELEBRANT_SMIHEIGHT);
$img_src = SHOW_PIC."?img=".$file."&mw=".$i_widht."&mh=".$i_height;
}
?>
=ucwords($celebrant_name)?> is a contributor and a celebrant
if(!empty($subrub) && $subrub != "--")
{
?> based in =ucwords($subrub)?>
}
?>
=stripslashes($profile_txt)?>
}else{?>
}?>
include ("includes/news_search.php"); ?>