<?php 
/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #

##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# This script may not be distributed, sold, given away for free  #
# to third party, or used as a part of any internet services 	 #
# such as webdesign etc.                                         #
##################################################################
*/

require_once ("config.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("classes/misc.class.php");
require_once ("classes/settings.class.php");
require_once ("classes/userside.class.php");


$message	= "";
$mail		= "";
$scripts	= "";

if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
	$objM		= new misc($objDB);
	if (isset($_POST['SM'])) {
		$message	= $objM->tell_friend_mail($_POST);
	}
	$objS	= new settings($objDB);
	$mail	= $objS->getone();
	$sitename	= $objS->getone('sitename');
	$siteurl	= $objS->getone('site_normal_url');
	$mail		= str_replace("{SITELINK}","<a href='".$siteurl."'>".$sitename."</a>" , $mail);
}
include_once ("title.inc.php");
include_once ("tophtml.inc.php");
?>

<link type="text/css" rel="stylesheet" href="editor/jquery-te-1.3.5.css">

<script type="text/javascript" src="editor/jquery-te-1.3.5.min.js" charset="utf-8"></script>


<div class="row">
	<div class="eight columns">
		<div class="row">
			<div class="inenr-hd"><h2>Tell A Friend</h2></div>
		</div>
		<div class="search-rslts">
			 <!--<tr><td class="headings2">Fill following details</td></tr>-->
			<div class="row maintext1">
				<form name="frmTells" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" onSubmit="return validate();">
					<div  class="row warning">
						<?php if(isset($message) && trim($message)!='')
							{
								echo $message;
							}//end if
						?>
					</div>
					<div class="full_row">
						
						<div class="row">
							<div class="five columns">
								<div class="row">Your Name<span class="warning">*</span></div>
								<div class="row">
									<input name="fname" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row">Your Email<span class="warning">*</span></div>
								<div class="row"><input name="fmail" type="text" class="textbox txt-bx01" size="30" maxlength="100"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">Friend's Name<span class="warning">*</span></div>
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name1">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row">Friend's Email<span class="warning">*</span></div>
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email1"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name2">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email2"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name3">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email3"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name4">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email4"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name5">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email5"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name6">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email6"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name7">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email7"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name8">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email8"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name9">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email9"></div>
							</div>
						</div>
						
						<div class="row padtop_15">
							<div class="five columns">
								<div class="row">
									<input name="name[]" type="text" class="textbox txt-bx01 tell_a_friend_feild_L" size="30" maxlength="100" placeholder="Friend's name10">
								</div>
							</div>
							<div class="five columns tell_a_friend_R_outer">
								<div class="row"><input name="mail[]" type="text" class="textbox txt-bx01" size="30" maxlength="100" placeholder="Friend's Email10"></div>
							</div>
						</div>
						
						<div class="row twelve">
							<textarea name="message" cols="75" rows="10" class="textbox_textarea jqte-test"><?php echo $mail?></textarea>
							
							<span class="help"><a title="The words inside the braces will automaticaly replace with your inputs"><img src="images/question_mark.jpg" border="0" height="15"></a></span>
							<script>
							$('.jqte-test').jqte();
							</script>
						</div>
						
						<div class="row">
							<div class="five columns" style="padding-top:15px; "><input name="SM" type="submit" class="loginbutton" value="Send Mail"></div>
						</div>
						
						
						
					</div>
				</form>
			</div>
		</div>
	</div>

	<div class="four columns right search_result_R">
		<?php include_once ("left.inc.php");?>
	</div>
	
</div>

<?php include_once('bottomhtml.inc.php');?>
