All pastes #901134 Raw Edit

Untitled

public php v1 · immutable
·published 2008-02-12 13:01 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><?php session_start();?><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><LINK HREF="style.css" TYPE="text/css" REL="stylesheet">   <title>      Your Order Details    </title><?php    //Get Data	$mondaytimes   = $_POST['mondaytimes'];	$mondayhrs     = $_POST['mondayhrs'];	$monday        = $_POST['monday'];	$mtotal        = $mondayhrs *3.00 *6.5;	$tuesdaytimes  = $_POST['tuesdaytimes'];	$tuesdayhrs    = $_POST['tuesdayhrs'];	$tuesday       = $_POST['tuesday'];	$ttotal        =  $tuesdayhrs *3.00 *6.5;	$wednesdaytimes= $_POST['wednesdaytimes'];	$wednesdayhrs  = $_POST['wednesdayhrs'];	$wednesday     = $POST['wednesday'];	if(!$wednesdayhrs ){	$wtotal        = 0;	}	else	{	$wtotal        = $wednesdayhrs   *3.00 *6.5;	}	$thursdaytimes = $_POST['thursdaytimes'];	$thursdayhrs   = $_POST['thrusdayhrs'];	$thursday      = $_POST['thursday'];	if(!$thursdayhrs){	$thtotal       = 0;	}	else {	$thtotal       = $thursdayhrs   *3.00 *6.5;	}	$fridaytimes   = $_POST['fridaytimes'];	$fridayhrs     = $_POST['fridayhrs'];	$friday        = $_POST['friday'];	if(!$fridayhrs ){	$thtotal       = 0;	}	else	{	$ftotal        = $fridayhrs    *3.00 *6.5;	}	$saturdaytimes = $_POST['saturdaytimes'];	$saturdayhrs   = $_POST['saturdayhrs'];	$saturday      = $_POST['saturday'];	if(!$$saturdayhrs ){	$stotal        = 0;	}	else	{	$stotal        = $fridayhrs    *3.00 *6.5;	}	$firstname     = $_POST['firstname'];	$surname       = $_POST['surname'];	$address       = $_POST['address'];	$city          = $_POST['city'];	$postcode      = $_POST['postcode'];	$contactno     = $_POST['contactno'];	$email         = $_POST['email'];	$pets           = $_POST['pets'];	$keys           = $_POST['keys'];	$iron          = $_POST['iron'];	$comments       = $_POST['comments']; 	$total         = $mtotal + $ttotal + $wtotal + $thtotal + $ftotal + $stotal;$totalhrs =	$mondayhrs + 	$tuesdayhrs +$wednesdayhrs +$thursdayhrs  +$fridayhrs +	$saturdayhrs ;//mail function mail_details(){$to ="miguelsullivan@gmail.com";$subject ="Cleaner Booking";$headers = 'From:' .$email . "\r\n" .    'Reply-To:'. $email . "\r\n" .    'X-Mailer: PHP/' . phpversion();$message='Name:' .$firstname .'\r\n'.		 'Surname:' .$surname. '\r\n'.		 'Address:' .$address. '\r\n'.		 'City:' .$city. '\r\n'.		 'Post Code:' .$postcode. '\r\n'.		 'Contact Number:' .$conactno. '\r\n'.		 'E-mail:' .$email . '\r\n'.		 'Pets ?:' .$pets. '\r\n'.		 'Keys?:' .$keys. '\r\n'.		 'Iron?:' .$iron. '\r\n'.		 'Comments:'.$comments. '\r\n';mail($to, $subject, $headers, $message);}	?>		<style type="text/css"><!--.style11 {	font-family: Arial, Helvetica, sans-serif;	font-size: 12px;	font-weight: bold;}.style12 {color: #006600}.style13 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #006600; }.style22 {font-size: 14px; font-weight: bold; }--></style></head><body><table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-repeat:repeat-x; background-position:top; height:100%; background-image:url(images/til_1.jpg) ">  <tr>    <td style="background-image:url(images/til_1.gif); background-position:top; background-repeat:repeat-x ">&nbsp;</td>    <td width="673" align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">      <tr>        <td height="9" align="left" valign="top"><img alt=""  src="images/spacer.gif" width="1" height="9"></td>      </tr>      <tr>        <td height="344" align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">          <tr>            <td height="301" align="left" valign="top"><img alt=""  src="images/top_1.gif" width="673" height="301"></td>          </tr>          <tr>            <td align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">              <tr>               <td width="29"><img alt=""  src="images/p_1.gif" width="29" height="43"></td>                <td><a href="index.html"><img alt=""  src="images/home_3.gif" width="93" height="43" border="0"></a></td>                <td><a href="index-1.html"><img alt=""  src="images/about_4.gif" width="85" height="43" border="0"></a></td>                <td><a href="index-2.html"><img alt=""  src="images/services_4.gif" width="93" height="43" border="0"></a></td>                <td><a href="index-3.html"><img alt=""  src="images/estimates_3.gif" width="114" height="43" border="0"></a></td>                <td><a href="index-4.html"><img alt=""  src="images/cleaning_7.gif" width="81" height="43" border="0"></a></td>                <td><a href="index-5.html"><img alt=""  src="images/tips.gif" width="58" height="43" border="0"></a></td>                <td><a href="index-6.html"><img alt=""  src="images/contacts.gif" width="89" height="43" border="0"></a></td>                <td><img alt=""  src="images/p_2.gif" width="31" height="43"></td>              </tr>            </table></td>          </tr>        </table></td>      </tr>      <tr>        <td align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">          <tr align="left" valign="top">            <td width="16" height="100%"><table width="100%"  border="0" cellspacing="0" cellpadding="0" style="height:100%; background-image:url(images/rep_l.jpg) ">              <tr>                <td height="9" align="left" valign="top"><img alt=""  src="images/l_1.jpg" width="16" height="9"></td>              </tr>              <tr>                <td height="100%" align="left" valign="bottom"><img alt=""  src="images/l_2.jpg" width="16" height="5"></td>              </tr>            </table></td>            <td height="100%" bgcolor="#FFFFFF" style="border-top: 5px solid #ffffff "><table width="639"  border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F3D9" style="height:100%; background-image:url(images/rep_1.jpg); background-position:bottom; background-repeat:repeat-x ">              <tr align="left" valign="top">                <td width="5" height="5"><img alt=""  src="images/y_1.jpg" width="5" height="5"></td>                <td height="5"><p class="style11"><img alt=""  src="images/spacer.gif" width="1" height="1">  <font face="arial">        <table>                          <tr>                                                    <td>                           <span class="style13">Your Order Details</span>                              <p>                                Name : <b><?php echo($firstname);?></b>                              </p>                              <p>                                Surname :<b> <?php echo($surname);?></b>                              </p>                              <p>                                Address :<b> <?php echo ($address);?></b>                              </p>                              <p>                                City :<b> <?php echo( $city);?></b>                              </p>                                                           <p>                                Post Code : <b><?php echo($postcode);?></b>                              </p>                              <p>                                Contact Number : <b><?php echo($contactno);?></b>                              </p>                              <p>                                E-mail : <b><?php echo($email);?></b>                              </p>                            <p>Your Comments: <b><?php if(!$comments){echo('You have no comment');}else{echo ($comments);}?></b></P>							<p>Pets? <b><?php echo ($pets);?></b> Cleaner need keys? <b><?php echo($keys);?></b> Iron? <b><?php echo($iron);?></b>							</td>                          </tr>                        </table>                        <table align="center" bgcolor="#F8F3D9">                                              <tr>                            <td>                             <p>You have chosen to have a cleaner visit you for a total of <?php echo($totalhrs);?> hours a week. Your chosen cleaning schedule is as follows:-</p><?php if(!$monday){$monday=="";}else{print('<b>'.$monday.'</b> &nbsp;at&nbsp;<b>' .$mondaytimes. '</b>&nbsp;for&nbsp;<b>' .$mondayhrs.'</b>&nbsp;hrs <br/>' );}?> <?php if(!$tuesday ){$tuesday=="";}else{print('<b>'.$tuesday. '</b>&nbsp;at&nbsp;<b>' .$tuesdaytimes. '</b>&nbsp;for&nbsp;<b>' .$tuesdayhrs. '</b>&nbsp;hrs <br/>');}?>	<?php if(!$wednesday){$wednesday=="";}else{print('<b>'.$wednesday. '</b>&nbsp;at&nbsp;<b>' .$wednesdaytimes. '</b>&nbsp;for&nbsp;<b>' .$wednesdayhrs. '</b>&nbsp;hrs <br/>' );}?>                            	<?php if(!$thursday){$thursday=="";}else{print('<b>'.$thursday. '</b>&nbsp;at&nbsp;<b>' .$thursdaytimes. '</b>&nbsp;for&nbsp;<b>' .$thursdayhrs. '</b>&nbsp;hrs </br>') ;}?><?php if(!$friday){$friday=="";}else{print('<b>'.$friday. '</b>&nbsp;at&nbsp;<b>'. $fridaytimes. '</b>&nbsp;for&nbsp;<b>'. $fridayhrs. '</b>&nbsp;hrs<br/>');}?><?php if(!$saturday){$saturday=="";}else{print('<b>'.$saturday. '</b>&nbsp;at&nbsp;<b>' .$saturdaytimes. '</b>&nbsp;for&nbsp;<b>' .$saturdayhrs.'</b>&nbsp;hrs <br/>');}?>											<P>You will be paying &pound;9/hr, the cost is divided as follows</p><p>* The &pound;6.00/hr to the cleaner is paid weekly.</br>* The &pound;3/hr to the agency is paid quarterly = &pound; 3/hr x <?php echo($totalhrs);?>  x 6.5 weeks </p>		                                              <p>                              <h3>                                This Will Cost you <b>&pound; <?php echo($total);?>      </form></b>                              </h3>                            </p>						<p>                              <form action="https://www.paypal.com/cgi-bin/webscr" method="post">                                <input type="hidden" name="cmd" value="_xclick" /> <input type=                                "hidden" name="business" value="sales@cleancluster.co.uk" />                                <input type="hidden" name="item_name" value="Weekly Cleaning" />                                <input type="hidden" name="item_number" value="001" /> <input type=                                "hidden" name="amount" value="<?php echo($total);?>" />                                <input type="hidden" name="no_shipping" value="0" /> <input type=                                "hidden" name="no_note" value="1" /> <input type="hidden" name=                                "currency_code" value="GBP" /> <input type="hidden" name="lc"                                value="GB" /> <input type="hidden" name="bn" value="PP-BuyNowBF" />                                <input type="image" src=                                "https://www.paypal.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0"                                name="submit" alt=                                "Make payments with PayPal - it's fast, free and secure!" />                                <img alt="" border="0" src=                                "https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height=                                "1" />                              </form>                      </p>                            </td>                          </tr>                        </table></font>                <td width="5" height="5"><img alt=""  src="images/y_2.jpg" width="5" height="5"></td>              </tr>              <tr align="left" valign="top">                <td height="5"><img alt=""  src="images/y_3.jpg" width="5" height="5"></td>                <td height="5"><img alt=""  src="images/spacer.gif" width="1" height="1"></td>                <td height="5"><img alt=""  src="images/y_4.jpg" width="5" height="5"></td>              </tr>            </table></td>            <td width="18" height="100%"><table width="100%"  border="0" cellspacing="0" cellpadding="0" style="height:100%; background-image:url(images/rep_r.jpg) ">              <tr>                <td height="9" align="left" valign="top"><img alt=""  src="images/spacer.gif" width="1" height="1"></td>              </tr>              <tr>                <td height="100%" align="left" valign="bottom"><img alt=""  src="images/r_2.jpg" width="18" height="5"></td>              </tr>            </table></td>          </tr>        </table></td>      </tr>      <tr>        <td height="55" align="center" valign="top" style="background-image:url(images/bottom_1.jpg) "><div class="style1" style="padding-left:0px; padding-top:20px">Copyright 2007-2008 &copy; Clean Cluster Ltd. All rights reserved.&nbsp;&nbsp;&nbsp;<a href="index-7.html">Terms of use<span class="style2">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;</span>Privacy Policy</a> <span class="style1" style="padding-left:0px; padding-top:20px">&amp;<a href="FAQ.html"> <span class="style22">FAQ </span></a></span></div></td>      </tr>    </table></td>    <td style="background-image:url(images/til_1.gif); background-position:top; background-repeat:repeat-x ">&nbsp;</td>  </tr></table></body></html>