Jump to content

techker

Members
  • Posts

    812
  • Joined

  • Last visited

Everything posted by techker

  1. thx for the reply.sorry about the nob error.. when i add this to the page it works but the previous code does not? <script> $(document).ready(function(){ $('#calx').calx({ autocalculate: false }); $('#calculate').click(function(){ $('#calx').calx('update'); }); $("#P1").autocomplete("autocomplete.php", { selectFirst: true }); $("#P2").autocomplete("autocomplete.php", { selectFirst: true }); $("#P3").autocomplete("autocomplete.php", { selectFirst: true }); $("#P4").autocomplete("autocomplete.php", { selectFirst: true }); $("#P5").autocomplete("autocomplete.php", { selectFirst: true }); $("#P6").autocomplete("autocomplete.php", { selectFirst: true }); $("#P7").autocomplete("autocomplete.php", { selectFirst: true }); }); </script>
  2. sorry but im lost?
  3. hey guys i have this invoice script im doing for my friend and it works until i add the auto suggest function that includes the jquery.js why is it that when i combine different java scripts it cancel's out another?should i separate all my scripts in different pages and include them?? so basic <html debug="true"> <head> <title></title> <script type="text/javascript" src="jquery-1.9.1.min.js"></script> <script type="text/javascript" src="jquery-calx-1.1.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#calx').calx({ autocalculate: false }); $('#calculate').click(function(){ $('#calx').calx('update'); }); }); </script> <style> input[type="text"]{ width:100%; } td{ padding:5px 10px; } </style> </head> <body> <form id="calx"> <table> <thead> <tr> <td width="268" style="width:250px">Item Name</td> <td width="162" style="width:80px">Price</td> <td width="162" style="width:30px">Qty</td> <td width="168" style="width:150px">Sub Total</td> </tr> </thead> <tbody> <tr> <td><input id="item1" type="text" name="item[]" value=""/></td> <td><input id="price1" type="text" name="price[]" value="" data-format="$ 0,0[.]00" /></td> <td><input id="qty1" type="text" name="qty[]" value="" data-format="0" /></td> <td><input id="subtotal1" type="text" name="subtotal[]" value="" data-format="$ 0,0[.]00" data-formula="($price1*$qty1)" /></td> </tr> <tr> <td><input id="item2" type="text" name="item[]" value="" /></td> <td><input id="price2" type="text" name="price[]" value="" data-format="$ 0,0[.]00" /></td> <td><input id="qty2" type="text" name="qty[]" value="" data-format="0" /></td> <td><input id="subtotal2" type="text" name="subtotal[]" value="" data-format="$ 0,0[.]00" data-formula="($price2*$qty2)" /></td> </tr> <tr> <td><input id="item3" type="text" name="item[]" value="" /></td> <td><input id="price3" type="text" name="price[]" value="" data-format="$ 0,0[.]00" /></td> <td><input id="qty3" type="text" name="qty[]" value="" data-format="0" /></td> <td><input id="subtotal3" type="text" name="subtotal[]" value="" data-format="$ 0,0[.]00" data-formula="($price3*$qty3)" /></td> </tr> <tr> <td><input id="item4" type="text" name="item[]" value="" /></td> <td><input id="price4" type="text" name="price[]" value="" data-format="$ 0,0[.]00" /></td> <td><input id="qty4" type="text" name="qty[]" value="" data-format="0" /></td> <td><input id="subtotal4" type="text" name="subtotal[]" value="" data-format="$ 0,0[.]00" data-formula="($price4*$qty4)" /></td> </tr> <tr> <td><input id="item5" type="text" name="item[]" value="" /></td> <td><input id="price5" type="text" name="price[]" value="" data-format="$ 0,0[.]00" /></td> <td><input id="qty5" type="text" name="qty[]" value="" data-format="0" /></td> <td><input id="subtotal5" type="text" name="subtotal[]" value="" data-format="$ 0,0[.]00" data-formula="($price5*$qty5)" /></td> </tr> <tr> <td height="39"> </td> <td>Total Price : </td> <td colspan="2"><input id="total" type="text" name="total" value="" data-format="$ 0,0[.]00" data-formula="($subtotal1+$subtotal2+$subtotal3+$subtotal4+$subtotal5)" /></td> </tr> <tr> <td height="29"> </td> <td>Tax1:</td> <td colspan="2"><input id="totaltax1" type="text" name="totaltax" value="" data-format="$ 0,0[.]00" data-formula="($total+($total*5.00/100))" /></td> </tr> <tr> <td height="29"> </td> <td>Tax2:</td> <td colspan="2"><input id="totaltax2" type="text" name="totaltax" value="" data-format="$ 0,0[.]00" data-formula="($total+($total*9.975/100))" /></td> </tr> <tr> <td height="42"><input id="calculate" type="button" value="calculate" /></td> <td>Tax in :</td> <td colspan="2"><input id="totaltax" type="text" name="totaltax" value="" data-format="$ 0,0[.]00" data-formula="($total+($total*5.00/100+$total*9.975/100))" /></td> </tr> </tbody> </table> </form> </body> </html>
  4. well it is just part of the form. but it is just that part i need to display.. i have a field upc code,so i won't to onblur refresh but show the upc from the text field in the url so my query can grab it and search the database for the corresponding product mylink.com?upc=
  5. hey guys i need to refresh on blur to get to post the upc code inserted in the textarea for product search.. i got the but i can't find the way to post the item <script> function reload() { window.location.assign("http://store.radioauto.ca/POS/auto.php?Item=upc code here") } </script> <input type="text" id="upc" name="upc" onblur="reload()" value="<?=$_GET['item']?>"/>
  6. is there a tutorial on how to make a form that when i scan it updates the field with the product info from database?im making a POS system for my body's store..
  7. i got it going with this $TAX1=5.00;$TAX2 =9.974;///this is suppose to be 9.975 but i get a penny more..so i doped it a penny and im ok.. $price1 = ($price * $TAX1/100) ;$price2 = ($price * $TAX2/100) ;$price3 = $price + $price1 + $price2; $total1= round($price1, 2);$total2= round($price2, 2);$total= round($price3, 2);
  8. hey guys can i get some help in putting this in php ? i need to calculate taxes but in quebec...so 2 taxes exapl SUBTOTAL 3.99 TAX1: 18% TAX2: 15% Calculating when Compound tax is enabled: Amount with Compound tax = (SUBTOTAL + TAX1) + TAX2 in digits: (SUBTOTAL + TAX1) = 3.99 + 18% = 3.99 + 3.99 / 100 * 18 = 3.99 * 1.18 = 4.7082 (SUBTOTAL + TAX1) + TAX2 = 4.7082 + 15% = 4.7082 + 4.7082 / 100 * 15 = 4.7082 + 0.70623 = 4.7082 * 1.15 = 5.41443 Amount with Compound tax = 5.41443
  9. Ah.igot this now..lol thx for the help
  10. how can i show the client name?
  11. thx for the reply,think you can export your database? i can't seem to be able to make it work..
  12. Well its part mysql cause the dates are in the database....
  13. Its the shading part im confused. Shades between 10and 3pm
  14. hey guys i wan't to make a type of booking calendar and was wondering what to look for in tutorial or examples? i want to pull time slots from mysql lets say :10 to 3pm working with dan so on the visual side i would like to make a time grid and grey out the time slots.. thx
  15. Hey guys i got this friend that has a dealership for used cars..so i did him a web site and his wife really wanted an accordion style view..... so i got it going it works great but buggy..is there a way to fix when you click it goes back to the top of the page? here is the link maybe it will be easier to understand when you view it. http://autosspeedy.ca/TEMP/ code css: .wrapper{ width: 95%; background-color: #FFF; padding-left: 15px; height:100%; } .wrapperleft{ width: 100%; background-color: #FFF; } .st-accordion{ width:100%; hight:100%; margin: 0 auto; } .st-accordion ul li{ height: 180px; border-bottom: 1px solid #c7deef; border-top:1px solid #fff; overflow: hidden; } .st-accordion ul li:first-child{ border-top: none; color: #000; } .st-accordion ul li > a{ font-family: 'Josefin Slab',Georgia, serif; text-shadow: 1px 1px 1px #ccc; font-size: 36px; display: block; position: relative; line-height: 100px; outline:none; -webkit-transition: color 0.2s ease-in-out; -moz-transition: color 0.2s ease-in-out; -o-transition: color 0.2s ease-in-out; -ms-transition: color 0.2s ease-in-out; transition: color 0.2s ease-in-out; } .st-accordion ul li > a span{ background: transparent url(../images/down.png) no-repeat center center; text-indent:-9000px; width: 26px; height: 14px; position: absolute; top: 50%; right: -26px; margin-top: -7px; opacity:0; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; font-style:normal; } .st-accordion ul li > a:hover{ color: #1693eb; } .st-accordion ul li > a:hover span{ opacity:1; right: 10px; } .st-accordion ul li.st-open > a{ color: #1693eb; } .st-accordion ul li.st-open > a span{ -webkit-transform:rotate(180deg); -moz-transform:rotate(180deg); transform:rotate(180deg); right:10px; opacity:1; } .st-content{ padding: 5px 0px 30px 0px; } .st-content p{ font-size: 16px; font-family: Georgia, serif; font-style: italic; line-height: 28px; padding: 0px 4px 15px 4px; color:#333 ; } .st-content img{ width:125px; border-right:1px solid #fff; border-bottom:1px solid #fff; } @media screen and (max-width: 320px){ .st-accordion ul li > a{ font-size:36px; } }
  16. ok i got it..lol so i added in my css .va-slice-1:nth-child(odd) { background:#CCC; } .va-slice-1:nth-child(even) { background:#999; } works great!
  17. but you see where im confused is that i have no table?it's all css..the only table i have is when i expand the accordion to see the content.but that part don't need any colours.. its the <div class="va-slice va-slice-1"> that should be on odd change colours..
  18. bump please?
  19. so how would i call the php in the wrapper?
  20. Hey guys i have a script that has accordian content but i would like it to have odd and even colors? <div id="va-accordion" class="va-container"> <div class="va-wrapper"> <?php while($info = mysql_fetch_array($result)){?> <div class="va-slice va-slice-1"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" valign="top"><img src="images/recent3.jpg" width="160" height="140" ></td> <td valign="top"> <h3 class="va-title"> <? echo $info['Make'] ?> <? echo $info['Model'] ?> <? echo $info['Year'] ?></h3></td> </tr> <tr> <td valign="top"> </td> </tr> </table> <div class="va-content"> <p><div class="bubble"><? echo $info['Retail_price']?>$</p> <? echo "<span class='echo_short'>".$info['Description_short_FR']."</span>"; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="16%"><img src="images/recent3.jpg" width="126" height="120" ></td> <td width="84%"><img src="images/recent3.jpg" width="126" height="120" ></td> </tr> </table> </div> </div> </div> <? } ?> </div></div> i tried: .odd{ color:red; } .even{ color:blue; } <script type="text/javascript"> $(function(){ $(".va-slice div.post:odd").addClass('odd'); $(".va-slice div.post:even").addClass('even'); }); </script>
  21. the issue i get with ajax is the link is <li><a id="various1" href="#inline1" title="Lorem ipsum dolor sit amet">Inline</a></li> but i need to add a php echo to post ID.so when the box opens i see the info of the ID in Database...
  22. Ha!i didnt notice it was that old..lol im looking at ajax now.thx
  23. hey guys i did a popup window <a class="more" href="javascript:window.open('More.php?ID=<? echo $info['ID'] ?>','MoreInfo','width=700,height=500')"> in chrome works great! but in IE11 the pop up works but on the parent page i get [object] on white page... need to press back to go back to main page.... why is that?
  24. i updated it..it seems better..but like you say i need to do some choices...thx!!
×
×
  • 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.