Advertisement
Guest User

Untitled

a guest
May 6th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. <?
  2. include("../../config.php");
  3.  
  4. session_start();
  5. if(!isset($_SESSION['login'])) die;
  6. $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `login`='{$_SESSION['login']}'");
  7. $data = mysql_fetch_object($dbres);
  8. ?>
  9. <div id="sett-title"> Simple. Easy. Affordable. </div>
  10. We have made the process of buying social media services ultra simple and user friendly. Just simply follow these steps.
  11. </br>
  12. <a class="glyphicons circle_arrow_right"><i></i></a>Choose a service from below</br>
  13. <a class="glyphicons circle_arrow_right"><i></i></a>Select your package</br>
  14. <a class="glyphicons circle_arrow_right"><i></i></a>Enter your details (URL, username etc.)</br>
  15. <a class="glyphicons circle_arrow_right"><i></i></a>Pay for your order</br>
  16. <a class="glyphicons circle_arrow_right"><i></i></a>We deliver your order within 72 hours.</br>
  17.  
  18. </br>
  19. <div class="infobox"><center>
  20. <a href="javascript:void(0)" onclick="$('#content').load('fb.php'); window.location.hash = 'Shop';" class="button" style="width:120px;text-align:center">Facebook</a></center></div>
  21. <hr style="margin: 20px 20px 20px 20px">
  22. <div align="center">
  23.  
  24. <table width="100%"><tr><td>
  25. <?php
  26. $queryRes = mysql_query("SELECT * FROM `shop` ORDER BY `id` ASC");
  27. for($j=1; $shop = mysql_fetch_object($queryRes); $j++) {
  28.  
  29. ?>
  30. <div class="buy_boxs">
  31. <table width="100%">
  32. <tr style="height:40px">
  33.  
  34.  
  35. <div id="title-premium-boxs"><span style="margin: 30px"><span class="glyphicons face"><i></i><?=$shop->name?> </span></span></div>
  36.  
  37. <div class="gray-area">24-72 hour delivery</div>
  38. <ul class="special" style="margin: 10px 22px 10px 40px">
  39.  
  40.  
  41.  
  42. <li>
  43. <strong><?=$shop->nr1?></strong>
  44. <?=$shop->media?>
  45. <span class="away">$<?=$shop->price1?></span>
  46. </li>
  47. <li>
  48. <strong><?=$shop->nr2?></strong>
  49. <?=$shop->media?>
  50. <span class="away">$<?=$shop->price2?></span>
  51. </li>
  52. <li>
  53. <strong><?=$shop->nr3?></strong>
  54. <?=$shop->media?>
  55. <span class="away">$<?=$shop->price3?></span>
  56. </li>
  57. <li>
  58. <strong><?=$shop->nr4?></strong>
  59. <?=$shop->media?>
  60. <span class="away">$<?=$shop->price4?></span>
  61. </li>
  62. <li>
  63. <strong><?=$shop->nr5?></strong>
  64. <?=$shop->media?>
  65. <span class="away">$<?=$shop->price5?></span>
  66. </li>
  67. </ul></a>
  68.  
  69.  
  70.  
  71.  
  72. <script language="javascript">
  73. function setPrice<?=$j?>()
  74. {
  75.  
  76. value = $("#item_number<?=$j?> :selected").val();
  77. option_text<?=$j?> = $("#item_number<?=$j?> :selected").text();
  78. arr_data<?=$j?> = option_text<?=$j?>.split("—");
  79. price<?=$j?> = arr_data<?=$j?>[1].replace('$','');
  80. custom<?=$j?> = $("#custom<?=$j?>").val();
  81.  
  82. $("#item_name<?=$j?>").val(option_text<?=$j?>+' '+custom<?=$j?>);
  83. $("#item_number<?=$j?>").val(value);
  84. $("#amount<?=$j?>").val(price<?=$j?>);
  85.  
  86. }
  87. </script>
  88.  
  89. <select class="selection" name="item_number<?=$j?>" id="item_number<?=$j?>" style="margin: 10px 22px 10px 25px; width: 201px" onchange="setPrice<?=$j?>();">
  90. <option value="">Select</option>
  91. <option data-price="15" value="TF1000"> <?=$shop->nr1?> <?=$shop->media?> — $0.02 </option>
  92. <option data-price="20" value="TF5000"> <?=$shop->nr3?> <?=$shop->media?> — $<?=$shop->price2?> </option>
  93. <option data-price="30" value="TF10000"> <?=$shop->nr3?> <?=$shop->media?> — $<?=$shop->price3?> </option>
  94. <option data-price="75" value="TF50000"> <?=$shop->nr4?> <?=$shop->media?> — $<?=$shop->price4?> </option>
  95. <option data-price="150" value="TF100000"> <?=$shop->nr5?> <?=$shop->media?> — $<?=$shop->price5?> </option>
  96. </select>
  97. <div class="gray-area extrapadding">
  98. <input style="margin: -14px 23px 10px 25px; width: 188px;" type="text" placeholder="<?=$shop->placeholder?>" name="custom<?=$j?>" id="custom<?=$j?>">
  99. </div>
  100.  
  101.  
  102. <script language="javascript">
  103. function checkerror<?=$j?>()
  104. {
  105.  
  106. value = $("#item_number<?=$j?> :selected").val();
  107. option_text<?=$j?> = $("#item_number<?=$j?> :selected").text();
  108. custom<?=$j?> = $("#custom<?=$j?>").val();
  109. $("#item_name<?=$j?>").val(option_text<?=$j?>+' '+custom<?=$j?>);
  110.  
  111.  
  112. custom<?=$j?> = $("#custom<?=$j?>").val();
  113.  
  114. if(custom<?=$j?>=="")
  115. {
  116. alert("Fanpage URL / Facebook Username is a required filed");
  117. return false;
  118. }
  119.  
  120. }
  121. </script>
  122.  
  123. <div style="text-align:right">
  124. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return checkerror<?=$j?>();">
  125. <input type="hidden" name="cmd" value="_xclick">
  126. <input type="hidden" name="business" id="business" value="ciupinamihai@yahoo.com">
  127. <input type="hidden" name="item_name" id="item_name<?=$j?>" value="<? echo $site->site_brand;?> <? echo $pack->name;?>">
  128. <input type="hidden" name="item_number" id="item_number<?=$j?>" value="<? echo $pack->coins;?>+ Credits">
  129. <input type="hidden" name="custom" value="<? echo $data->id; ?>">
  130. <input type="hidden" name="amount" id="amount<?=$j?>" value="<? echo $pack->price;?>">
  131. <input type="hidden" name="currency_code" value="USD">
  132. <input type="hidden" name="button_subtype" value="services">
  133. <input type="hidden" name="no_note" value="1">
  134. <input type="hidden" name="no_shipping" value="2">
  135. <input type="hidden" name="rm" value="1">
  136. <input type="hidden" name="return" value="<?echo $site->site_url;?>/return.php">
  137. <input type="hidden" name="cancel_return" value="<?echo $site->site_url;?>">
  138. <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
  139. <input type="hidden" name="notify_url" value="<?echo $site->site_url;?>/ipn.php">
  140. <!--<input style="width:80px;border:none;background:none;" type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynow_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" /><img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />-->
  141. <input style="width: 151px;border: 1px solid #b6b6b6; margin: 10px 22px 10px 25px; width: 201px" type="submit" name="submit" value="Buy Now" class="button" />
  142.  
  143. </form>
  144.  
  145.  
  146.  
  147.  
  148. </div>
  149.  
  150. </td>
  151.  
  152. </tr>
  153.  
  154. </table>
  155.  
  156. </div>
  157. <?php } ?>
  158.  
  159. </td></tr></table>
  160.  
  161. <br clear="all">
  162. <br>
  163. <b><?=$lang['sp85']?></b><br>
  164. <br>
  165. <span style="font-size: 10pt;font-family: Arial;"><?=$lang['sp86']?></span>
  166. <?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement