rhoula

Untitled

Nov 26th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.48 KB | None | 0 0
  1. <?php
  2. if (!empty($_SESSION['userId'])) {
  3. $numeDomeniu = "http://";
  4. $bought_through = "";
  5. $add_date = "";
  6. $datebuyer = "";
  7. $hostincluded = "";
  8. $hostingdetails = "";
  9. $selling_price = "";
  10. $auction_price = "";
  11. $pageRank = "";
  12. $payment_type_id = "";
  13. $domain_desscription = "";
  14. $sold = "";
  15. $btn = "Add Domain";
  16. if (!empty($_POST['hdnDom'])) {
  17. if ($_POST['hdnDom'] == "adauga") {
  18. $payment_type_id = "";
  19. if (!empty($_POST['payment_type_id'])) {
  20. foreach ($_POST['payment_type_id'] AS $key => $value) {
  21. $payment_type_id .= $value . "-";
  22. }
  23. }
  24. $payment_type_id = substr($payment_type_id, 0, -1);
  25. if (preg_match('/,/', $_POST['txtDomeniu']) == 0) {
  26. $sql_txt = "INSERT INTO domains_temp SET
  27.  
  28. userId = '{$_SESSION['userId']}',
  29.  
  30. bought_through = '{$_POST['bought_through']}',
  31.  
  32. pageRank = '{$_POST['pageRank']}',
  33.  
  34. domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
  35.  
  36. datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
  37.  
  38. add_date = NOW(),
  39.  
  40. upgrade_date = NOW(),
  41.  
  42. listing_days = '{$_POST['listing_days']}',
  43.  
  44. numeDomeniu = '{$_POST['txtDomeniu']}',
  45.  
  46. payment_type_id = '{$payment_type_id}',
  47.  
  48. hostincluded = '{$_POST['radiobutton']}',
  49.  
  50. hostingdetails = '" . mysql_real_escape_string($_POST['detalii']) . "',
  51.  
  52. selling_price = '{$_POST['selling_price']}',
  53.  
  54. auction_price = '{$_POST['auction_price']}',category = '{$_POST['category']}'";
  55. if(mysql_query($sql_txt) AND mysql_affected_rows())
  56. {
  57. // ===========================This is for paypal Added by Rajiv==================================
  58. $domainid = mysql_insert_id();
  59. $_SESSION['site_domain_id'] = $domainid;
  60.  
  61. $action = 'process';
  62. $userId = $_SESSION['userId'];
  63. $cmd = "_xclick";
  64.  
  65. $sql_txt1 = "SELECT * FROM admin";
  66. $sql_query1 = mysql_query($sql_txt1);
  67. $sc1 = mysql_fetch_assoc($sql_query1);
  68. $xx1 = $sc1['paypal'];
  69.  
  70. $business = $xx1;
  71.  
  72. $item_name = "";
  73. $currency_code = "USD";
  74. $item_number = "";
  75. $quantity = "";
  76.  
  77. $check_special_feature1 = 0;
  78. $check_special_feature2 = 0;
  79. $check_special_feature3 = 0;
  80. $check_special_feature4 = 0;
  81.  
  82. $_SESSION['special_feature_selected1'] = "no";
  83. $_SESSION['special_feature_selected2'] = "no";
  84. $_SESSION['special_feature_selected3'] = "no";
  85. $_SESSION['special_feature_selected4'] = "no";
  86. if($_POST['check_special_feature1'] != "")
  87. {
  88. $check_special_feature1 = $_POST['check_special_feature1'];
  89. $_SESSION['special_feature_selected1'] = "yes";
  90. }
  91.  
  92. if($_POST['check_special_feature2'] != "")
  93. {
  94. $check_special_feature2 = $_POST['check_special_feature2'];
  95. $_SESSION['special_feature_selected2'] = "yes";
  96. }
  97.  
  98. if($_POST['check_special_feature3'] != "")
  99. {
  100. $check_special_feature3 = $_POST['check_special_feature3'];
  101. $_SESSION['special_feature_selected3'] = "yes";
  102. }
  103.  
  104. if($_POST['check_special_feature4'] != "")
  105. {
  106. $check_special_feature4 = $_POST['check_special_feature4'];
  107. $_SESSION['special_feature_selected4'] = "yes";
  108. }
  109.  
  110. $amount = $_POST['hid_listing_charge'] + $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
  111.  
  112. $custom = $domainid;
  113.  
  114. $_SESSION['payment_for'] = "domain";
  115.  
  116. //$URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom;
  117.  
  118. $URL = "index.php?page=payment_detail&paid_amount=".$amount."&action=&".base64_encode("page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom);
  119. ?>
  120. <script type="text/javascript">
  121. document.location.href = "<?=$URL;?>";
  122. </script>
  123.  
  124. <?php
  125. //header("Location: paypal.php?action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom);
  126. //exit;
  127. // ===========================Finish for paypal Added by Rajiv==================================
  128. $msg = "Your domain name is listed";
  129. }
  130. else
  131. {
  132. $msg = "Your domain name is not listed. Please check again";
  133. }
  134. } else {
  135. //multiple
  136. $f = explode(',', $_POST['txtDomeniu']);
  137. $ff = count($f);
  138. for ($i = 0; $i < $ff; $i++) {
  139. $sql_txt = "INSERT INTO domains_temp SET
  140.  
  141. userId = '{$_SESSION['userId']}',
  142.  
  143. bought_through = '{$_POST['bought_through']}',
  144.  
  145. pageRank = '{$_POST['pageRank']}',
  146.  
  147. domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
  148.  
  149. datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
  150.  
  151. add_date = NOW(),
  152.  
  153. upgrade_date = NOW(),
  154.  
  155. listing_days = '{$_POST['listing_days']}',
  156.  
  157. numeDomeniu = '$f[$i]',
  158.  
  159. payment_type_id = '{$payment_type_id}',
  160.  
  161. hostincluded = '{$_POST['radiobutton']}',
  162.  
  163. hostingdetails = '" . mysql_real_escape_string($_POST['detalii']) . "',
  164.  
  165. selling_price = '{$_POST['selling_price']}',
  166.  
  167. auction_price = '{$_POST['auction_price']}',category = '{$_POST['category']}'";
  168. if (mysql_query($sql_txt) AND mysql_affected_rows())
  169. {
  170. // ===========================This is for paypal Added by Rajiv==================================
  171. $domainid = mysql_insert_id();
  172. $_SESSION['site_domain_id'] = $domainid;
  173.  
  174. $action = 'process';
  175. $userId = $_SESSION['userId'];
  176. $cmd = "_xclick";
  177.  
  178. $sql_txt1 = "SELECT * FROM admin";
  179. $sql_query1 = mysql_query($sql_txt1);
  180. $sc1 = mysql_fetch_assoc($sql_query1);
  181. $xx1 = $sc1['paypal'];
  182.  
  183. $business = $xx1;
  184.  
  185. $item_name = "";
  186. $currency_code = "USD";
  187. $item_number = "";
  188. $quantity = "";
  189.  
  190. $check_special_feature1 = 0;
  191. $check_special_feature2 = 0;
  192. $check_special_feature3 = 0;
  193. $check_special_feature4 = 0;
  194.  
  195. $_SESSION['special_feature_selected1'] = "no";
  196. $_SESSION['special_feature_selected2'] = "no";
  197. $_SESSION['special_feature_selected3'] = "no";
  198. $_SESSION['special_feature_selected4'] = "no";
  199. if($_POST['check_special_feature1'] != "")
  200. {
  201. $check_special_feature1 = $_POST['check_special_feature1'];
  202. $_SESSION['special_feature_selected1'] = "yes";
  203. }
  204.  
  205. if($_POST['check_special_feature2'] != "")
  206. {
  207. $check_special_feature2 = $_POST['check_special_feature2'];
  208. $_SESSION['special_feature_selected2'] = "yes";
  209. }
  210.  
  211. if($_POST['check_special_feature3'] != "")
  212. {
  213. $check_special_feature3 = $_POST['check_special_feature3'];
  214. $_SESSION['special_feature_selected3'] = "yes";
  215. }
  216.  
  217. if($_POST['check_special_feature4'] != "")
  218. {
  219. $check_special_feature4 = $_POST['check_special_feature4'];
  220. $_SESSION['special_feature_selected4'] = "yes";
  221. }
  222.  
  223. $amount = $_POST['hid_listing_charge'] + $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
  224. $custom = $domainid;
  225.  
  226. $_SESSION['payment_for'] = "domain";
  227.  
  228. // $URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom;
  229. $URL = "index.php?page=payment_detail&paid_amount=".$amount."&action=&".base64_encode("page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom);
  230. ?>
  231. <script type="text/javascript">
  232. document.location.href = "<?=$URL;?>";
  233. </script>
  234.  
  235. <?php
  236. // ===========================Finish for paypal Added by Rajiv==================================
  237. $msg = "Your domain name is listed";
  238. }
  239. else
  240. {
  241. $msg = "Your domain name is not listed. Please check again";
  242. }
  243. }
  244. }
  245. }
  246. if ($_POST['hdnDom'] == "modifica") {
  247. if ($_POST['radiobutton'] == "no") {
  248. $detalii = "";
  249. } else {
  250. $detalii = $_POST['detalii'];
  251. }
  252. $payment_type_id = "";
  253. if (!empty($_POST['payment_type_id'])) {
  254. foreach ($_POST['payment_type_id'] AS $key => $value) {
  255. $payment_type_id .= $value . "-";
  256. }
  257. }
  258. $payment_type_id = substr($payment_type_id, 0, -1);
  259. $sql_txt = "UPDATE domains SET
  260.  
  261. bought_through = '{$_POST['bought_through']}',
  262.  
  263. numeDomeniu = '{$_POST['txtDomeniu']}',
  264.  
  265. pageRank = '{$_POST['pageRank']}',
  266.  
  267. domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
  268.  
  269. datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
  270.  
  271. hostincluded = '{$_POST['radiobutton']}',
  272.  
  273. payment_type_id = '{$payment_type_id}',
  274.  
  275. hostingdetails = '" . mysql_real_escape_string($detalii) . "',
  276.  
  277. selling_price = '{$_POST['selling_price']}',
  278.  
  279. auction_price = '{$_POST['auction_price']}'
  280.  
  281. WHERE domainid='{$_POST['domainid']}' AND userId='{$_SESSION['userId']}'";
  282. if (mysql_query($sql_txt))
  283. {
  284. /*if($_SESSION['already_special_feature1'] != "yes" || $_SESSION['already_special_feature2'] != "yes" || $_SESSION['already_special_feature3'] != "yes" || $_SESSION['already_special_feature4'] != "yes")
  285. {
  286. if($_POST['check_special_feature1'] != "" || $_POST['check_special_feature2'] != "" || $_POST['check_special_feature3'] != "" || $_POST['check_special_feature4'] != "")
  287. {
  288. // ===========================This is for paypal Added by Rajiv==================================
  289. $domainid = $_POST['domainid'];
  290.  
  291. $_SESSION['site_domain_id'] = $domainid;
  292.  
  293. $action = 'process';
  294. $userId = $_SESSION['userId'];
  295. $cmd = "_xclick";
  296.  
  297. $sql_txt1 = "SELECT * FROM admin";
  298. $sql_query1 = mysql_query($sql_txt1);
  299. $sc1 = mysql_fetch_assoc($sql_query1);
  300. $xx1 = $sc1['paypal'];
  301.  
  302. $business = $xx1;
  303.  
  304. $item_name = "";
  305. $currency_code = "USD";
  306. $item_number = "";
  307. $quantity = "";
  308.  
  309. $check_special_feature1 = 0;
  310. $check_special_feature2 = 0;
  311. $check_special_feature3 = 0;
  312. $check_special_feature4 = 0;
  313.  
  314. $_SESSION['special_feature_selected1'] = "no";
  315. $_SESSION['special_feature_selected2'] = "no";
  316. $_SESSION['special_feature_selected3'] = "no";
  317. $_SESSION['special_feature_selected4'] = "no";
  318.  
  319. if($_SESSION['already_special_feature1'] != "yes")
  320. {
  321. if($_POST['check_special_feature1'] != "")
  322. {
  323. $check_special_feature1 = $_POST['check_special_feature1'];
  324. $_SESSION['special_feature_selected1'] = "yes";
  325. }
  326. }
  327.  
  328. if($_SESSION['already_special_feature2'] != "yes")
  329. {
  330. if($_POST['check_special_feature2'] != "")
  331. {
  332. $check_special_feature2 = $_POST['check_special_feature2'];
  333. $_SESSION['special_feature_selected2'] = "yes";
  334. }
  335. }
  336.  
  337. if($_SESSION['already_special_feature3'] != "yes")
  338. {
  339. if($_POST['check_special_feature3'] != "")
  340. {
  341. $check_special_feature3 = $_POST['check_special_feature3'];
  342. $_SESSION['special_feature_selected3'] = "yes";
  343. }
  344. }
  345.  
  346. if($_SESSION['already_special_feature4'] != "yes")
  347. {
  348. if($_POST['check_special_feature4'] != "")
  349. {
  350. $check_special_feature4 = $_POST['check_special_feature4'];
  351. $_SESSION['special_feature_selected4'] = "yes";
  352. }
  353. }
  354.  
  355. $amount = $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
  356. $custom = $domainid;
  357. if($amount > 0)
  358. {
  359. $_SESSION['payment_for'] = "domain";
  360.  
  361. // $URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom;
  362. $URL = "index.php?page=payment_detail&paid_amount=".$amount."&action=&".base64_encode("page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom);
  363. ?>
  364.  
  365. <script type="text/javascript">
  366. document.location.href = "<?=$URL;?>";
  367. </script>
  368.  
  369. <?php
  370. //header("Location: paypal.php?action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."&currency_code=".$currency_code."&custom=".$custom);
  371. //exit;
  372. }
  373. else
  374. {
  375. $_SESSION['payment_for'] = "";
  376. $_SESSION['special_feature_selected'] = "no";
  377. $_SESSION['site_domain_id'] = "";
  378. }
  379. // ===========================Finish for paypal Added by Rajiv==================================
  380.  
  381. }
  382. }*/
  383. $msg = "Domain name was edited!";
  384. }
  385. else
  386. {
  387. $msg = "Domain name was NOT edited!";
  388. }
  389. }
  390. }
  391. if (!empty($_GET['modifica'])) {
  392. $sql_txt_ = "SELECT d.*, u.* FROM domains d LEFT JOIN users u ON d.userId=u.userId WHERE d.domainid ='{$_GET['modifica']}' AND d.userId='{$_SESSION['userId']}'";
  393. $sql_query_ = mysql_query($sql_txt_);
  394. $sc_ = mysql_fetch_assoc($sql_query_);
  395. $numeDomeniu = $sc_['numeDomeniu'];
  396. $bought_through = $sc_['bought_through'];
  397. $add_date = $sc_['add_date'];
  398. $datebuyer = date('d-m-Y', strtotime($sc_['datebuyer']));
  399. $hostincluded = $sc_['hostincluded'];
  400. $hostingdetails = $sc_['hostingdetails'];
  401. $selling_price = $sc_['selling_price'];
  402. $auction_price = $sc_['auction_price'];
  403. $pageRank = $sc_['pageRank'];
  404. $payment_type_id = $sc_['payment_type_id'];
  405. $domain_desscription = $sc_['domain_desscription'];
  406. $sold = $sc_['sold'];
  407. $category = $sc_['category'];
  408.  
  409. $special_feature1 = $sc_['special_feature1'];
  410. $special_feature2 = $sc_['special_feature2'];
  411. $special_feature3 = $sc_['special_feature3'];
  412. $special_feature4 = $sc_['special_feature4'];
  413.  
  414. $_SESSION['already_special_feature1'] = $special_feature1;
  415. $_SESSION['already_special_feature2'] = $special_feature2;
  416. $_SESSION['already_special_feature3'] = $special_feature3;
  417. $_SESSION['already_special_feature4'] = $special_feature4;
  418.  
  419. $btn = "Modify Domain";
  420. }
  421. if (!empty($_GET['sterge'])) {
  422. $sql_txt = "DELETE FROM domains WHERE domainid='{$_GET['sterge']}' AND userId='{$_SESSION['userId']}'";
  423. $sql_query = mysql_query($sql_txt);
  424. if (mysql_affected_rows()) {
  425. $msg = "Domain name was deleted!";
  426. } else {
  427. $msg = "Domain name was NOT deleted!";
  428. }
  429. }
  430. $sql_txt1 = "SELECT * FROM admin";
  431. $sql_query1 = mysql_query($sql_txt1);
  432. $sc1 = mysql_fetch_assoc($sql_query1);
  433. $xx = $sc1['name'];
  434. $sql_txt1 = "SELECT * FROM domain_category";
  435. $sql_query2 = mysql_query($sql_txt1);
  436. ?>
  437.  
  438. <script language="javascript" src="js/fixit.js" type="text/javascript"></script>
  439.  
  440. <script src="js/CalendarPopup.js" type="text/javascript"></script>
  441.  
  442. <script language="JavaScript" type="text/javascript">document.write(CalendarPopup_getStyles());</script>
  443.  
  444. <script language="JavaScript" type="text/javascript">
  445.  
  446. var cal_date = new CalendarPopup("date");
  447.  
  448. </script>
  449.  
  450.  
  451.  
  452. <h1>Add a Domain Name For Sale at <?php
  453. echo $xx;
  454. ?></h1>
  455.  
  456. <div class="blueDots"></div>
  457.  
  458. <form action="index.php?page=add_domain" method="post" enctype="multipart/form-data" name="frmDom" id="frmDom">
  459.  
  460. <?php
  461. if (!empty($_GET['modifica'])) {
  462. ?>
  463.  
  464. <input type="hidden" name="hdnDom" value="modifica" />
  465.  
  466. <input type="hidden" name="domainid" value="<?= $_GET['modifica']; ?>" />
  467.  
  468. <?php
  469. } else {
  470. ?>
  471.  
  472. <input type="hidden" name="hdnDom" value="adauga" />
  473.  
  474. <?php
  475. }
  476. ?>
  477.  
  478.  
  479.  
  480. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  481.  
  482. <tr>
  483.  
  484. <td width="752" valign="top">
  485.  
  486. <table width="100%" border="0" cellspacing="5" cellpadding="0">
  487.  
  488. <tr>
  489.  
  490. <td colspan="2" align="center" class="error"><?php
  491. if (!empty($msg)) {
  492. ?><b><?= $msg; ?></b><?php
  493. }
  494. ?>&nbsp;</td>
  495.  
  496. </tr>
  497.  
  498. <tr>
  499.  
  500. <td height="50" colspan="2"><div align="center"><span class="error">Click <a href="index.php?page=how_it_works">HERE</a> to see more information about adding a domain name for sale at <?php
  501. echo $xx;
  502. ?> </span></div></td>
  503.  
  504. </tr>
  505. <?php
  506. // CODE001 Rajiv This is fr when data is modified or deleted than to get link find CODE001
  507. if (empty($msg))
  508. {
  509. // Rajiv Finish
  510. ?>
  511.  
  512. <tr>
  513.  
  514. <td width="250" align="right"><p>Domain Name URL: </p>
  515.  
  516. </td>
  517.  
  518. <td align="left" >
  519.  
  520.  
  521.  
  522. <textarea style="float:left" name="txtDomeniu" id="txtDomeniu" class="required validate-url" cols="45" rows="5"><?= $numeDomeniu; ?></textarea>
  523.  
  524.  
  525.  
  526. <span class="fs11" style="vertical-align:top;">ex: http://www.mydomain.com.<br/>Use comma for multiple domain.</span></td>
  527.  
  528. </tr>
  529.  
  530. <tr>
  531.  
  532. <td align="right">Domain Name Registrar: </td>
  533.  
  534. <td align="left"><input name="bought_through" type="text" class="required" style="width:250px;" value="<?= $bought_through; ?>" /> <span class="fs11">ex: GoDaddy, Name, etc.</span> </td>
  535.  
  536. </tr>
  537.  
  538. <?php
  539. $checkedD = "";
  540. $checkedN = "";
  541. if (!empty($_GET['modifica'])) {
  542. if ($sc_['hostincluded'] == "yes") {
  543. $checkedD = "checked='checked'";
  544. $checkedN = "";
  545. } else {
  546. $checkedN = "checked='checked'";
  547. $checkedD = "";
  548. }
  549. }
  550. ?>
  551.  
  552. <tr>
  553.  
  554. <td align="right">Google PageRank: </td>
  555.  
  556. <td align="left"><input type="text" name="pageRank" class="required" style="width:250px;" value="<?= $pageRank; ?>" /> <span class="fs11">Check Pagerank<a href="http://www.iwebtool.com/pagerank_checker" target="_self"> HERE</a></span></td>
  557.  
  558. </tr>
  559.  
  560. <tr>
  561.  
  562. <td align="right">Category: </td>
  563.  
  564. <td align="left"><select name="category" id="category">
  565.  
  566. <?php
  567. while ($rc = mysql_fetch_assoc($sql_query2)) {
  568. ?>
  569.  
  570. <option <?php
  571. if ($category == $rc['category'])
  572. echo 'selected="selected"';
  573. ?> value="<?= $rc['category']; ?>"><?= $rc['category']; ?></option>
  574.  
  575. <?php
  576. }
  577. ?>
  578.  
  579. </select> <span class="fs11">
  580.  
  581.  
  582.  
  583. Select a Category</span></td>
  584.  
  585. </tr>
  586.  
  587.  
  588.  
  589.  
  590.  
  591. <tr>
  592.  
  593. <td align="right">Web Hosting Included: </td>
  594.  
  595. <td align="left"><input name="radiobutton" class="validate-one-required" id="deta" type="radio" value="yes" onclick="javascript:void(0);" <?= $checkedD; ?> />&nbsp;Yes<input name="radiobutton" type="radio" class="validate-one-required" id="detal" onclick="javascript:void(0);" value="no" <?= $checkedN; ?> />&nbsp;No</td>
  596.  
  597. </tr>
  598.  
  599. <tr id="detalii">
  600.  
  601. <td align="right">Web Hosting Details: </td>
  602.  
  603. <td><textarea name="detalii" id="detail" cols="50" rows="5" class="required"><?php
  604. if (!empty($_GET['modifica'])) {
  605. echo $sc_['hostingdetails'];
  606. }
  607. ?></textarea></td>
  608.  
  609. </tr>
  610.  
  611. <tr>
  612.  
  613. <td align="right">Domain Registration Date: </td>
  614.  
  615. <td><input name="data" type="text" class="required" size="10" value="<?= $datebuyer; ?>" /><a href="javascript:void(0);" id="anchor1x" name="anchor1x" onclick="cal_date.select(document.frmDom.data,'anchor1x','dd-MM-yyyy'); return false;"><img src="images/calendar.gif" width="23" height="20" align="absmiddle" border="0" alt="" /></a></td>
  616.  
  617. </tr>
  618.  
  619. <tr>
  620.  
  621. <td align="right">Buy Now Price: </td>
  622.  
  623. <td>$<input type="text" name="selling_price" id="selling_price" size="7" class="required" value="<?= $selling_price; ?>" style=" text-align:right" />&nbsp;</td>
  624.  
  625. </tr>
  626.  
  627. <tr>
  628.  
  629. <td align="right">Starting Bid Price: </td>
  630.  
  631. <td>$<input type="text" name="auction_price" id="auction_price" size="7" class="required verif-lic" value="<?= $auction_price; ?>" style=" text-align:right" />&nbsp;</td>
  632.  
  633. </tr>
  634.  
  635. <? if (empty($_GET['modifica'])) { ?>
  636. <tr>
  637.  
  638. <td align="right">Listing Days: </td>
  639.  
  640. <td>
  641. <select name="listing_days" id="listing_days">
  642. <option value="1">1</option>
  643. <option value="2">2</option>
  644. <option value="3">3</option>
  645. <option value="4">4</option>
  646. <option value="5">5</option>
  647. <option value="6">6</option>
  648. <option value="7">7</option>
  649. <option value="8">8</option>
  650. <option value="9">9</option>
  651. <option value="10">10</option>
  652. <option value="20">20</option>
  653. <option value="30">30</option>
  654. </select>
  655. </td>
  656.  
  657. </tr>
  658. <? } ?>
  659.  
  660. <tr>
  661.  
  662. <td align="right">&nbsp;</td>
  663.  
  664. <td align="left">&nbsp;</td>
  665.  
  666. </tr>
  667.  
  668. <tr>
  669.  
  670. <td align="right">Accept Payment Via: </td>
  671.  
  672. <td align="left">
  673.  
  674. <table width="100%" border="0" cellspacing="2" cellpadding="2">
  675.  
  676. <?php
  677. $sql_txt_pl = "SELECT * FROM payment_options ORDER BY payment_type ASC";
  678. $sql_query_pl = mysql_query($sql_txt_pl) or die(mysql_error());
  679. if (!empty($payment_type_id)) {
  680. $x = explode("-", $payment_type_id);
  681. } else {
  682. $x = array();
  683. }
  684. while ($sc_pl = mysql_fetch_assoc($sql_query_pl)) {
  685. $check = "";
  686. if (in_array($sc_pl['payment_type_id'], $x)) {
  687. $check = "checked='checked'";
  688. }
  689. ?>
  690.  
  691. <tr>
  692.  
  693. <td width="20" align="center"><input type="checkbox" name="payment_type_id[]" value="<?= $sc_pl['payment_type_id']; ?>" <?= $check; ?> /></td>
  694.  
  695. <td><?= $sc_pl['payment_type']; ?></td>
  696.  
  697. </tr>
  698.  
  699. <?php
  700. }
  701. ?>
  702.  
  703. </table>
  704.  
  705. </td>
  706.  
  707. </tr>
  708.  
  709. <tr>
  710.  
  711. <td align="right">&nbsp;</td>
  712.  
  713. <td align="left">&nbsp;</td>
  714.  
  715. </tr>
  716.  
  717. <tr>
  718.  
  719. <td align="right">Domain Name Description: </td>
  720.  
  721. <td align="left"><textarea name="domain_desscription" id="domain_desscription" cols="80" rows="5" class="required"><?= $domain_desscription; ?></textarea></td>
  722.  
  723. </tr>
  724. <!-- Rajiv start -->
  725. <?php
  726. // CODE003 Rajiv This is fr when data is modified or deleted than
  727. if (empty($_GET['modifica']))
  728. {
  729. // Rajiv Finsh
  730. ?>
  731. <tr>
  732.  
  733. <td align="right">&nbsp;</td>
  734.  
  735. <td align="left">&nbsp;</td>
  736.  
  737. </tr>
  738.  
  739. <tr>
  740.  
  741. <td align="right">Special Features: </td>
  742.  
  743. <td align="left">
  744. <fieldset style="width:420px; border:1px solid #FF6600;">
  745. <legend style="color:#FF6600;">
  746. Special Features
  747. </legend>
  748. <div style="height:auto; width:auto; margin-left:5px; margin-right:5px;">&nbsp;
  749. <table width="100%" border="0">
  750. <tr>
  751. <td width="10%" valign="top">
  752. <input type="checkbox" name="check_special_feature1" id="check_special_feature1" <? if($special_feature1 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge1']; ?>" />
  753. </td>
  754. <td width="90%">
  755. Listing Title in Bold Cost:&nbsp;<b>$<?= $sc1['special_charge1']; ?>&nbsp;USD</b><br /><br />The title of your listing on the front page or in search results will appear in bold to make it stand out and get you more traffic!<br /><br />
  756. </td>
  757. </tr>
  758. <tr>
  759. <td width="10%" valign="top">
  760. <input type="checkbox" name="check_special_feature2" id="check_special_feature2" <? if($special_feature2 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge2']; ?>" />
  761. </td>
  762. <td width="90%">
  763. Listing Row Border Cost:&nbsp;<b>$<?= $sc1['special_charge2']; ?>&nbsp;USD</b><br /><br />Your listing will appear with a border around it both on the front page and on the listings page.<br /><br />
  764. </td>
  765. </tr>
  766. <tr>
  767. <td width="10%" valign="top">
  768. <input type="checkbox" name="check_special_feature3" id="check_special_feature3" <? if($special_feature3 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge3']; ?>" />
  769. </td>
  770. <td width="90%">
  771. Listing Row Highlighted Cost:&nbsp;<b>$<?= $sc1['special_charge3']; ?>&nbsp;USD</b><br /><br />Your listing will appear highlighted in color both on the front page and on the listings page.<br /><br />
  772. </td>
  773. </tr>
  774. <tr>
  775. <td width="10%" valign="top">
  776. <input type="checkbox" name="check_special_feature4" id="check_special_feature4" <? if($special_feature4 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge4']; ?>" />
  777. </td>
  778. <td width="90%">
  779. Screenshot on Listing Row Cost:&nbsp;<b>$<?= $sc1['special_charge4']; ?>&nbsp;USD</b><br /><br />Your listing will appear with a screenshot next to it on the listings page.
  780. </td>
  781. </tr>
  782. </table>
  783. </div>
  784. </fieldset>
  785.  
  786. </td>
  787.  
  788. </tr>
  789. <?php
  790. // CODE003 Rajiv This is fr when data is modified or deleted than
  791. }
  792. // Rajiv Finsh
  793. ?>
  794. <!-- Rajiv finish -->
  795.  
  796. <tr>
  797.  
  798. <td align="right">&nbsp;</td>
  799.  
  800. <td align="left">&nbsp;</td>
  801.  
  802. </tr>
  803.  
  804. <tr>
  805.  
  806. <td>&nbsp;</td>
  807.  
  808. <td align="left"><input type="submit" name="Submit" value="<?= $btn; ?>" class="button1" /></td>
  809.  
  810. </tr>
  811. <!-- Rajiv start -->
  812. <tr>
  813.  
  814. <td align="right">&nbsp;</td>
  815.  
  816. <td align="left">&nbsp;</td>
  817.  
  818. </tr>
  819. <?php
  820. // CODE002 Rajiv This is fr when data is modified or deleted than
  821. if (empty($_GET['modifica']))
  822. {
  823. // Rajiv Finsh
  824. ?>
  825. <tr>
  826.  
  827. <td align="right">&nbsp;</td>
  828.  
  829. <td align="left"><font color="#FF6600"><input type="hidden" name="hid_listing_charge" id="hid_listing_charge" value="<?= $sc1['listing_charge']; ?>" /><b>$<?= $sc1['listing_charge']; ?>&nbsp;USD</b> would be charge for new listing</font></td>
  830.  
  831. </tr>
  832. <?php
  833. // CODE002 Rajiv This is fr when data is modified or deleted than
  834. }
  835. // Rajiv Finsh
  836. ?>
  837.  
  838. <?php
  839. // CODE001 Rajiv This is fr when data is modified or deleted than
  840. }
  841. // Rajiv Finsh
  842. ?>
  843. <!-- Rajiv finish -->
  844.  
  845. </table>
  846.  
  847. </td>
  848.  
  849. </tr>
  850.  
  851. </table>
  852.  
  853.  
  854.  
  855. </form>
  856.  
  857. <div id="date" style="background-color: #ffffff; position: absolute; visibility: hidden;"></div>
  858.  
  859. <script type="text/javascript">
  860.  
  861.  
  862.  
  863. function detalii(){
  864.  
  865. alert('merge');
  866.  
  867. }
  868.  
  869. new Validation('frmDom',{stopOnFirst:true, useTitles : true});
  870.  
  871. Event.observe(
  872.  
  873. window,
  874.  
  875. 'load',
  876.  
  877. function(){
  878.  
  879. if ($('detail').value){
  880.  
  881. $('detalii').style.display = '';
  882.  
  883. Event.observe('deta','click',function(){if($('detalii').style.display=='none') $('detalii').style.display = ''; else $('detalii').style.display = '';});
  884.  
  885. Event.observe('detal','click',function(){if($('detalii').style.display=='') $('detalii').style.display = 'none'; else $('detalii').style.display = 'none';});
  886.  
  887. }else {
  888.  
  889. $('detalii').style.display = 'none';
  890.  
  891. Event.observe('deta','click',function(){if($('detalii').style.display=='none') $('detalii').style.display = ''; else $('detalii').style.display = '';});
  892.  
  893. Event.observe('detal','click',function(){if($('detalii').style.display=='') $('detalii').style.display = 'none'; else $('detalii').style.display = 'none';});
  894.  
  895. }
  896.  
  897. }
  898.  
  899. );
  900.  
  901.  
  902.  
  903.  
  904.  
  905. Validation.addAllThese([
  906.  
  907. ['verif-lic', 'Your starting BID must be lower than the Buy Now Price !',
  908.  
  909. function(v) {
  910.  
  911. if(parseFloat(v)>parseFloat($('selling_price').value)) {
  912.  
  913. return false;
  914.  
  915. }
  916.  
  917. return true;
  918.  
  919. }
  920.  
  921. ]
  922.  
  923. ]);
  924.  
  925.  
  926.  
  927.  
  928.  
  929. </script>
  930.  
  931. <?php
  932. } else {
  933. include("home.php");
  934. }
  935. ?>
Advertisement
Add Comment
Please, Sign In to add comment