Jump to content

nosher

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by nosher

  1. Try Joomla, will do what you want http://www.joomla.org/ Nosher
  2. Thanks for your time 8ball, But i am having no luck with this one, even posted on Joomla and one Guy told me to try this Component (http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,765/Itemid,35/) but with no luck, just cant see a way through this at the moment. Nosher
  3. Hi Guys, I need some help if possible or pointing me in the right direction, I am running Vcalendar alongside Joomla 1.5.7 After my users logs in to Joomla they can then click on the link to take them to Vcalendar, which is running on the same server. Now I contacted Vcalendar to see if they was any way that the user only had to login once to Joomla and when they click the Link to Vcalendar it would automatically log them in as the login details are the same. This is what they said: I then contacted them and asked if the could point me in the right direction on what to do next but unfortunately they cant help me anymore. Please if someone knows what I should do to make this work I would be so grateful on any advice as I’m lost!!!!!! Many Thanks Nosher
  4. Hi All, I would like to use a login script or a .HTACCES File for logging in users but not sure if this is going to be a easy or not? ??? Basically I would like a user to login and then be redirect to there own page which I have created for them. Do I have to use PHP & SQL or can I just use .HTACCESS Any thoughts or help to point me in the right direction would be much appreciated I am currently using the , Uniform Server for my website Nosher
  5. Well what can I say to you Cep, apart from a BIG Thank you And I really mean this Many Many Thanks Nosher
  6. *******Sorry Cep forgot to add in this code below******** Yes I have Cep it just displays: £1 for the stamp duty I just can’t seem to work out how to get the stamp duty to display the percentage. On the old form he had this to display the stamp duty Stamp Duty £"; echo $electric * 1 /100;} if ($electric >= 150001 and $electric <=200000) { echo "<BR><BR> Total = $t2£"; echo $electric * 1 /100 + 581.63 + 150 +274.25;} Purchasing Estimate Local Search £140 Our Fees £581.63 inc VAT Land Registry Fees £150 Environmental search £34.08 Local registry search £4 Bankruptcy search £2 Telegraphic Transfer Fee £35.25 inc VAT Stamp duty land transaction return £58.75 inc VAT Stamp duty £1 Total = £2565.88 Sales Estimate Our Fees £464.13 inc VAT Telegraphic Transfer Fee £ 35.25 inc VAT Office Copy Entries £8 inc VAT Total = 507.38 Total: 3073.26
  7. Yes I have Cep it just displays: £1 for the stamp duty I just can’t seem to work out how to get the stamp duty to display the percentage. On the old form he had this to display the stamp duty Purchasing Estimate Local Search £140 Our Fees £581.63 inc VAT Land Registry Fees £150 Environmental search £34.08 Local registry search £4 Bankruptcy search £2 Telegraphic Transfer Fee £35.25 inc VAT Stamp duty land transaction return £58.75 inc VAT Stamp duty £1 Total = £2565.88 Sales Estimate Our Fees £464.13 inc VAT Telegraphic Transfer Fee £ 35.25 inc VAT Office Copy Entries £8 inc VAT Total = 507.38 Total: 3073.26
  8. I have tried this loads of different ways and failed! at this moment in time I have added the Stamp Duty to display but to be honest with you I am just trying, lol Nosher <?php $is_start = true; $html = ""; $total = 0; if (isset($_POST['purchase'])) { //Read in and validate the post purchase $electric = (int)htmlentities($_POST['purchase'], ENT_QUOTES); // Purchase estimate variables // Local search $purchase_lsearch = 140; // Our fee $purchase_ofee = 0.00; // Land registry fee $purchase_lrfee = 60.00; // Environmental search $purchase_esearch = 34.08; // Local registry search $purchase_lrsearch = 4.00; // Bankruptcy search $purchase_bsearch = 2.00; // Telegraphic transfer fee $purchase_ttfee = 35.25; // Stamp duty land transaction return $purchase_sdltr = 58.75; // Total of purchase estimate $purchase_total = 0.00; //Unknown figure of 274.25 from original script $purchase_unknown = 274.25; //Purchase divider $purchase_divider = 0; /** PURCHASE ESTIMATES **/ if (($electric >= 0) && ($electric <= 65000)) { $purchase_ofee = 464.13; } if (($electric >= 65001) && ($electric <=85000)) { $purchase_ofee = 499.38; } if (($electric >= 85001) && ($electric <=119999)) { $purchase_ofee = 499.38; $purchase_lrfee = 100; } if (($electric >= 120000) && ($electric <=150000)) { $purchase_ofee = 558.13; $purchase_lrfee = 150; $purchase_divider = 1; } if (($electric >= 150001) && ($electric <=200000)) { $purchase_ofee = 581.63; $purchase_lrfee = 150; $purchase_divider = 1; } if (($electric >= 200001) && ($electric <=250000)) { $purchase_ofee = 616.87; $purchase_lrfee = 220; $purchase_divider = 1; } if (($electric >= 250001) && ($electric <=300000)) { $purchase_ofee = 675.62; $purchase_lrfee = 220; $purchase_divider = 3; } $purchase_total = ($electric * $purchase_divider / 100) + $purchase_ofee + $purchase_lrfee + $purchase_unknown; $purchase_est = "Our area <br /> <br /> Purchasing Estimate <br /> <br />Local Search £{$purchase_lsearch} <br /> Our Fees £{$purchase_ofee} inc VAT <br /> Land Registry Fees £{$purchase_lrfee} <br /> Environmental search £{$purchase_esearch} <br /> Local registry search £{$purchase_lrsearch} <br /> Bankruptcy search £{$purchase_bsearch} <br /> Telegraphic Transfer Fee £{$purchase_ttfee} inc VAT <br /> Stamp duty land transaction return £{$purchase_sdltr} inc VAT <br /> Stamp duty £{$purchase_divider} <br /> Total = £{$purchase_total}"; $is_start = false; $total = $total + $purchase_total; } else { $purchase_est = ""; } if (isset($_POST['sales'])) { //Read in and validate the post purchase $price = (int)htmlentities($_POST['sales'], ENT_QUOTES); // Sales estimate variables // Our fee $sales_ofee = 0.00; // Telegraphic transfer fee $sales_ttfee = 35.25; // Out copy entries $sales_ocentries = 8.00; // Sales total $sales_total = 0.00; /***** SALES ESTIMATES *****/ if (($price >= 0) && ($price <=65000)) { $sales_ofee = 464.13; } if (($price >= 65001) && ($price <= 119999)) { $sales_ofee = 499.38; } if (($price >= 120000) && ($price <=150000)) { $sales_ofee = 558.13; } if (($price >= 150001) && ($price <=200000)) { $sales_ofee = 581.63; } if (($price >= 200001) && ($price <=250000)) { $sales_ofee = 616.87; } if (($price >= 250001) && ($price <=300000)) { $sales_ofee = 675.62; } $sales_total = $sales_ofee + $sales_ttfee + $sales_ocentries; $sales_est = "<br /> <br /> Sales Estimate <br /> <br /> Our Fees £{$sales_ofee} inc VAT <br /> Telegraphic Transfer Fee £ {$sales_ttfee} inc VAT <br /> Office Copy Entries £{$sales_ocentries} inc VAT <br /> <br /> Total = {$sales_total}"; $is_start = false; $total = $total + $sales_total; } else { $sales_est = ""; } if ($is_start===true) { $html = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <title>Calculator</title> </head> <body> <form method='post' action='calculate.php'> Purchase price <br /> £<input name='purchase' type='text' value='0' size='20' /> <br /> <br /> Sales price <br /> £<input name='sales' type='text' value='0' size='20' /> <br /> <br /> <input name='calc' type='submit' value='Calculate' /> </form> </body> </html>"; } else { $html = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> <title>Calculator</title> </head> <body> {$purchase_est} <br /> <br /> {$sales_est} <br /> <br /> Total: {$total} </body> </html>"; } echo $html; ?>
  9. Ok Cep I am stuck!!!! :'( I have been trying all day and now am failing to get this to display the stamp duty (divider) is there anyway this can be achieved? ??? Nosher
  10. Cep, That is fantastic - Thank You I have just noticed that the Purchase divider, which is the (stamp duty), I need to get this to display the divider figure but its not Sorry to be a pain, am trying to have a go myself in the mean time Nosher
  11. Yes this works, Great Now is it easy to get a grand total? Sorry for the delay I have been traveling around a lot today Many Thanks for all your help Cep Nosher
  12. purchase HTML Form <form method="get" action="purchase.php"> <BODY> <table width='50%' border=0> <FONT SIZE=2><FONT FACE="Verdana"><strong></strong><BR><BR> <FONT SIZE=2><FONT FACE="Verdana"></FONT><BR><BR> <BR><BR> £<input type=text name='electric'></td></tr> <input type="submit" name="Submit" value="Submit"><BR><BR> </form> Sale HTML Form <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> <TITLE></TITLE> </HEAD> <BODY LANG="en-US" DIR="LTR"> <FORM ACTION="sale.php"> <P><FONT SIZE=2><FONT FACE="Verdana"><BR><BR></FONT><BR><BR>£<INPUT TYPE=TEXT NAME="price" SIZE=20> <INPUT TYPE=SUBMIT NAME="Submit" VALUE="Calculate"><BR><BR></FONT> </P> </FORM> </BODY> </HTML> Sale & Purchase HTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> <TITLE></TITLE> </HEAD> <BODY LANG="en-US" DIR="LTR"> <P STYLE="margin-bottom: 0cm"><FONT SIZE=2 FACE="Verdana"> </FONT></P> <FORM ACTION="sp.php"> <TABLE WIDTH=50% BORDER=0 CELLPADDING=2 CELLSPACING=2> <TR> <TD> <P><STRONG>Purchase Price</STRONG></P> </TD> <TD> <P><STRONG>£</STRONG><INPUT TYPE=TEXT NAME="electric" SIZE=20></P> </TD> </TR> <TR> <TD> <P><STRONG>Sale Price</STRONG></P> </TD> <TD> <P><STRONG>£</STRONG><INPUT TYPE=TEXT NAME="price" SIZE=20></P> </TD> </TR> <TR> <TD> <P><INPUT TYPE=SUBMIT NAME="Submit" VALUE="Calculate"></P> </TD> <TD VALIGN=TOP></TD> </TR> </TABLE> </FORM> <P><BR><BR> </P> </BODY> </HTML> Hope this helps Many Many Thanks Nosher
  13. Thanks for your help on this but as I mentioned before I am very new to PHP and know basically nothing, my firm paid some guy to develop this calculator, so I am trying to help them out as best as I can to resolve some issues The calculator is working but it just doesn’t display the grand total at the bottom of the page. Our calculator is setup as follows: Purchase – HTML, form post (electric) Purchase.php, results page Sale – HTML, form post (price) Sale.php, - results page Sale & Purchase – HTML, form post (electric, price) Sp.php, - for results page He has then just put the purchase & sale results on the same page which display both balances correctly but it doesn’t add up both figures for purchase & sale and display the grand total Sorry to muck you about with this but Its way out of my depth Nosher
  14. Thank you so much for replying to me and amending this code, Unfortunately the results are not being displayed I just get a blank page after the calculation any idea? What I am doing wrong here I have just saved your code as the new page Many Thanks Nosher
  15. Dear All , I am a complete beginner with PHP and would love some help with this issue if possible? We had a calculator made for us by someone who has now left the country, so no way of contacting him. I have had some issues I posted another issue regarding the echo error code which ‘Friedemann Bach’ was able to resolve (Thanks Again) On our Sale & Purchase form the totals display fine, but, I can’t get his grand total figure to work on the bottom. This is the original code that the guy has left me so you can see it untouched, I have since modified all this to display better. <?php $errors=0; $error="The following errors occured while processing your Quotation.<ul>"; if($electric==""){$errors=1; $error.="<li>You did not enter a Property Price. Please go back and try again.<BR><BR>"; } if($errors==1) echo $error; if ($electric >= 0 and $electric <=65000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £464.13 inc VAT <BR> Land Registry Fees £60<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR><BR> Total = £"; echo $electric * 0 /100 + 464.13 + 60 +274.25;} if ($price >= 0 and $price <=65000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £464.13 inc VAT <BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t2£"; echo + 464.13 +43.25;} if ($electric >= 65001 and $electric <=85000) { echo " <strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £499.38 inc VAT<BR> Land Registry Fees £60<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR><BR> Total = $t2£"; echo $electric * 0 /100 + 499.38 + 60 +274.25;} if ($electric >= 85001 and $electric <=110000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £499.38 inc VAT<BR> Land Registry Fees £100<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR><BR> Total = $t2£"; echo $electric * 0 /100 + 528.75 + 100 +274.25;} if ($electric >= 110001 and $electric <=119999) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £499.38 inc VAT<BR> Land Registry Fees £100<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR><BR> Total = $t2£"; echo $electric * 0 /100 + 528.75 + 100 +274.25;} if ($electric >= 120000 and $electric <=150000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £558.13 inc VAT<BR> Land Registry Fees £150<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR> Stamp Duty £"; echo $electric * 1 /100;} if ($electric >= 120000 and $electric <=150000) { echo "<BR><BR> Total = $t2£"; echo $electric * 1 /100 + 558.13 + 150 +274.25;} if ($electric >= 150001 and $electric <=200000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £581.63 inc VAT<BR> Land Registry Fees £150<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR> Stamp Duty £"; echo $electric * 1 /100;} if ($electric >= 150001 and $electric <=200000) { echo "<BR><BR> Total = $t2£"; echo $electric * 1 /100 + 581.63 + 150 +274.25;} if ($electric >= 200001 and $electric <=250000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £616.87 inc VAT<BR> Land Registry Fees £220<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR> Stamp Duty £"; echo $electric * 1 /100;} if ($electric >= 200001 and $electric <=250000) { echo "<BR><BR>Total = $t2£"; echo $electric * 1 /100 + 616.87 + 220 +274.25;} if ($electric >= 250001 and $electric <=300000) { echo "<strong>our area</strong><BR><BR><strong>Purchasing Estimate</strong><BR><BR>Local Search £140<BR> Our Fees £675.62 inc VAT<BR> Land Registry Fees £220<BR> Environmental search £34.08<BR> Local registry search £4.00<BR> Bankruptcy search £2.00<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Stamp duty land transaction return £58.75 inc VAT<BR> Stamp Duty £"; echo $electric * 3 /100;} if ($electric >= 250001 and $electric <=300000) { echo "<BR><BR>Total = $t2£"; echo $electric * 3 /100 + 675.62 + 220 +274.25;} if ($price >= 65001 and $price <=85000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £499.38 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 499.38 +43.25;} if ($price >= 85001 and $price <=110000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £499.38 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 528.75 +43.25;} if ($price >= 110001 and $price <=119999) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £499.38 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 528.75 +43.25;} if ($price >= 120000 and $price <=150000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £558.13 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 558.13 +43.25;} if ($price >= 150001 and $price <=200000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £581.63 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 581.63 +43.25;} if ($price >= 200001 and $price <=250000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £616.87 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 616.87 +43.25;} if ($price >= 250001 and $price <=300000) { echo "<strong><BR><BR>Sales Estimate</strong> <BR><BR>Our Fees £675.62 inc VAT<BR> Telegraphic Transfer Fee £35.25 inc VAT<BR> Office Copy Entries £8.00 inc VAT<BR><BR> Total = $t1£"; echo + 675.62 +43.25;} //if ($electric >= 0 and $electric <=65000) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 0 /100 + 464.13 + 60 +274.25 +($price >= 65001 and $price <=85000) +499.38 +43.25;} //if ($electric >= 65001 and $electric <=85000) { echo "<BR><BR><strong>Grand Total = </strong> £"; echo $electric * 0 /100 + 499.38 + 60 +274.25 +($price >= 85001 and $price <=110000)+ 499.38 +43.25;} //if ($electric >= 85001 and $electric <=110000) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 0 /100 + 528.75 + 100 +274.25 +($price >= 110001 and $price <=119999) + 528.75 +43.25;} //if ($electric >= 110001 and $electric <=119999) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 0 /100 + 528.75 + 100 +274.25 + ($price >= 110001 and $price <=119999) + 528.75 +43.25;} //if ($electric >= 120000 and $electric <=150000) { echo "<BR><BR><strong>Grand Total = </strong>£";echo $electric * 1 /100 + 558.13 + 150 +274.25 +($price >= 120000 and $price <=150000) + 558.13 +43.25;} //if ($electric >= 150001 and $electric <=200000) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 1 /100 + 581.63 + 150 +274.25 +($price >= 150001 and $price <=200000) + 581.63 +43.25;} //if ($electric >= 200001 and $electric <=250000) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 1 /100 + 616.87 + 220 +274.25 +($price >= 200001 and $price <=250000) + 616.87 +43.25;} //if ($electric >= 250001 and $electric <=300000) { echo "<BR><BR><strong>Grand Total = </strong>£"; echo $electric * 3 /100 + 675.62 + 220 +274.25 +($price >= 250001 and $price <=300000) + 675.62 +43.25;} {?> <BR><BR>If you are happy with our Estimate please fill in this form and we will contact you shortly <A href="/ll/request/form1.html">Click Here</A> <?php } ?> Many Thanks for any help with this Nosher
  16. Love the look of this Do you have the facility to look at other peoples diary’s or share them with other users? ??? Good work Nosher
  17. Thank you so Much The following errors occurred while processing your Quotation. • You did not enter a numeric value ('test'). Please go back and try again. Now the error code is being displayed lovely, but a calculation is still being displayed under the error message is there anyway to stop the calculation being displayed Just asking if this cant be done that’s fine Many Thanks Nosher
  18. Dear All I am a complete beginner with PHP and would love some help with this issue if possible? We had a calculator made for us by someone who has now left the country, so no way of contacting him. Basically if nothing is entered into the filed it displays the error: **You did not enter a Property Price. Please go back and try again** If any letter is entered into the filed it makes a calculation, so what I would really like to be able to do is anything that is inputted into the filed other then numbers is shown the error code. Is this at all possible? Am I missing something stupid here ? :'( This is the error code below <?php $error="The following errors occurred while processing your Quotation.<ul>"; if($electric==""){$errors=1; $error.="<li>You did not enter a Property Price. Please go back and try again.<BR><BR>";} if($errors==1) echo $error; Any help with this issue would be greatly appreciated Nosher
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.