Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!empty($_SESSION['userId'])) {
- $numeDomeniu = "http://";
- $bought_through = "";
- $add_date = "";
- $datebuyer = "";
- $hostincluded = "";
- $hostingdetails = "";
- $selling_price = "";
- $auction_price = "";
- $pageRank = "";
- $payment_type_id = "";
- $domain_desscription = "";
- $sold = "";
- $btn = "Add Domain";
- if (!empty($_POST['hdnDom'])) {
- if ($_POST['hdnDom'] == "adauga") {
- $payment_type_id = "";
- if (!empty($_POST['payment_type_id'])) {
- foreach ($_POST['payment_type_id'] AS $key => $value) {
- $payment_type_id .= $value . "-";
- }
- }
- $payment_type_id = substr($payment_type_id, 0, -1);
- if (preg_match('/,/', $_POST['txtDomeniu']) == 0) {
- $sql_txt = "INSERT INTO domains_temp SET
- userId = '{$_SESSION['userId']}',
- bought_through = '{$_POST['bought_through']}',
- pageRank = '{$_POST['pageRank']}',
- domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
- datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
- add_date = NOW(),
- upgrade_date = NOW(),
- listing_days = '{$_POST['listing_days']}',
- numeDomeniu = '{$_POST['txtDomeniu']}',
- payment_type_id = '{$payment_type_id}',
- hostincluded = '{$_POST['radiobutton']}',
- hostingdetails = '" . mysql_real_escape_string($_POST['detalii']) . "',
- selling_price = '{$_POST['selling_price']}',
- auction_price = '{$_POST['auction_price']}',category = '{$_POST['category']}'";
- if(mysql_query($sql_txt) AND mysql_affected_rows())
- {
- // ===========================This is for paypal Added by Rajiv==================================
- $domainid = mysql_insert_id();
- $_SESSION['site_domain_id'] = $domainid;
- $action = 'process';
- $userId = $_SESSION['userId'];
- $cmd = "_xclick";
- $sql_txt1 = "SELECT * FROM admin";
- $sql_query1 = mysql_query($sql_txt1);
- $sc1 = mysql_fetch_assoc($sql_query1);
- $xx1 = $sc1['paypal'];
- $business = $xx1;
- $item_name = "";
- $currency_code = "USD";
- $item_number = "";
- $quantity = "";
- $check_special_feature1 = 0;
- $check_special_feature2 = 0;
- $check_special_feature3 = 0;
- $check_special_feature4 = 0;
- $_SESSION['special_feature_selected1'] = "no";
- $_SESSION['special_feature_selected2'] = "no";
- $_SESSION['special_feature_selected3'] = "no";
- $_SESSION['special_feature_selected4'] = "no";
- if($_POST['check_special_feature1'] != "")
- {
- $check_special_feature1 = $_POST['check_special_feature1'];
- $_SESSION['special_feature_selected1'] = "yes";
- }
- if($_POST['check_special_feature2'] != "")
- {
- $check_special_feature2 = $_POST['check_special_feature2'];
- $_SESSION['special_feature_selected2'] = "yes";
- }
- if($_POST['check_special_feature3'] != "")
- {
- $check_special_feature3 = $_POST['check_special_feature3'];
- $_SESSION['special_feature_selected3'] = "yes";
- }
- if($_POST['check_special_feature4'] != "")
- {
- $check_special_feature4 = $_POST['check_special_feature4'];
- $_SESSION['special_feature_selected4'] = "yes";
- }
- $amount = $_POST['hid_listing_charge'] + $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
- $custom = $domainid;
- $_SESSION['payment_for'] = "domain";
- //$URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."¤cy_code=".$currency_code."&custom=".$custom;
- $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."¤cy_code=".$currency_code."&custom=".$custom);
- ?>
- <script type="text/javascript">
- document.location.href = "<?=$URL;?>";
- </script>
- <?php
- //header("Location: paypal.php?action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."¤cy_code=".$currency_code."&custom=".$custom);
- //exit;
- // ===========================Finish for paypal Added by Rajiv==================================
- $msg = "Your domain name is listed";
- }
- else
- {
- $msg = "Your domain name is not listed. Please check again";
- }
- } else {
- //multiple
- $f = explode(',', $_POST['txtDomeniu']);
- $ff = count($f);
- for ($i = 0; $i < $ff; $i++) {
- $sql_txt = "INSERT INTO domains_temp SET
- userId = '{$_SESSION['userId']}',
- bought_through = '{$_POST['bought_through']}',
- pageRank = '{$_POST['pageRank']}',
- domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
- datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
- add_date = NOW(),
- upgrade_date = NOW(),
- listing_days = '{$_POST['listing_days']}',
- numeDomeniu = '$f[$i]',
- payment_type_id = '{$payment_type_id}',
- hostincluded = '{$_POST['radiobutton']}',
- hostingdetails = '" . mysql_real_escape_string($_POST['detalii']) . "',
- selling_price = '{$_POST['selling_price']}',
- auction_price = '{$_POST['auction_price']}',category = '{$_POST['category']}'";
- if (mysql_query($sql_txt) AND mysql_affected_rows())
- {
- // ===========================This is for paypal Added by Rajiv==================================
- $domainid = mysql_insert_id();
- $_SESSION['site_domain_id'] = $domainid;
- $action = 'process';
- $userId = $_SESSION['userId'];
- $cmd = "_xclick";
- $sql_txt1 = "SELECT * FROM admin";
- $sql_query1 = mysql_query($sql_txt1);
- $sc1 = mysql_fetch_assoc($sql_query1);
- $xx1 = $sc1['paypal'];
- $business = $xx1;
- $item_name = "";
- $currency_code = "USD";
- $item_number = "";
- $quantity = "";
- $check_special_feature1 = 0;
- $check_special_feature2 = 0;
- $check_special_feature3 = 0;
- $check_special_feature4 = 0;
- $_SESSION['special_feature_selected1'] = "no";
- $_SESSION['special_feature_selected2'] = "no";
- $_SESSION['special_feature_selected3'] = "no";
- $_SESSION['special_feature_selected4'] = "no";
- if($_POST['check_special_feature1'] != "")
- {
- $check_special_feature1 = $_POST['check_special_feature1'];
- $_SESSION['special_feature_selected1'] = "yes";
- }
- if($_POST['check_special_feature2'] != "")
- {
- $check_special_feature2 = $_POST['check_special_feature2'];
- $_SESSION['special_feature_selected2'] = "yes";
- }
- if($_POST['check_special_feature3'] != "")
- {
- $check_special_feature3 = $_POST['check_special_feature3'];
- $_SESSION['special_feature_selected3'] = "yes";
- }
- if($_POST['check_special_feature4'] != "")
- {
- $check_special_feature4 = $_POST['check_special_feature4'];
- $_SESSION['special_feature_selected4'] = "yes";
- }
- $amount = $_POST['hid_listing_charge'] + $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
- $custom = $domainid;
- $_SESSION['payment_for'] = "domain";
- // $URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."¤cy_code=".$currency_code."&custom=".$custom;
- $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."¤cy_code=".$currency_code."&custom=".$custom);
- ?>
- <script type="text/javascript">
- document.location.href = "<?=$URL;?>";
- </script>
- <?php
- // ===========================Finish for paypal Added by Rajiv==================================
- $msg = "Your domain name is listed";
- }
- else
- {
- $msg = "Your domain name is not listed. Please check again";
- }
- }
- }
- }
- if ($_POST['hdnDom'] == "modifica") {
- if ($_POST['radiobutton'] == "no") {
- $detalii = "";
- } else {
- $detalii = $_POST['detalii'];
- }
- $payment_type_id = "";
- if (!empty($_POST['payment_type_id'])) {
- foreach ($_POST['payment_type_id'] AS $key => $value) {
- $payment_type_id .= $value . "-";
- }
- }
- $payment_type_id = substr($payment_type_id, 0, -1);
- $sql_txt = "UPDATE domains SET
- bought_through = '{$_POST['bought_through']}',
- numeDomeniu = '{$_POST['txtDomeniu']}',
- pageRank = '{$_POST['pageRank']}',
- domain_desscription = '" . mysql_real_escape_string($_POST['domain_desscription']) . "',
- datebuyer = '" . date('y-m-d', strtotime($_POST['data'])) . "',
- hostincluded = '{$_POST['radiobutton']}',
- payment_type_id = '{$payment_type_id}',
- hostingdetails = '" . mysql_real_escape_string($detalii) . "',
- selling_price = '{$_POST['selling_price']}',
- auction_price = '{$_POST['auction_price']}'
- WHERE domainid='{$_POST['domainid']}' AND userId='{$_SESSION['userId']}'";
- if (mysql_query($sql_txt))
- {
- /*if($_SESSION['already_special_feature1'] != "yes" || $_SESSION['already_special_feature2'] != "yes" || $_SESSION['already_special_feature3'] != "yes" || $_SESSION['already_special_feature4'] != "yes")
- {
- if($_POST['check_special_feature1'] != "" || $_POST['check_special_feature2'] != "" || $_POST['check_special_feature3'] != "" || $_POST['check_special_feature4'] != "")
- {
- // ===========================This is for paypal Added by Rajiv==================================
- $domainid = $_POST['domainid'];
- $_SESSION['site_domain_id'] = $domainid;
- $action = 'process';
- $userId = $_SESSION['userId'];
- $cmd = "_xclick";
- $sql_txt1 = "SELECT * FROM admin";
- $sql_query1 = mysql_query($sql_txt1);
- $sc1 = mysql_fetch_assoc($sql_query1);
- $xx1 = $sc1['paypal'];
- $business = $xx1;
- $item_name = "";
- $currency_code = "USD";
- $item_number = "";
- $quantity = "";
- $check_special_feature1 = 0;
- $check_special_feature2 = 0;
- $check_special_feature3 = 0;
- $check_special_feature4 = 0;
- $_SESSION['special_feature_selected1'] = "no";
- $_SESSION['special_feature_selected2'] = "no";
- $_SESSION['special_feature_selected3'] = "no";
- $_SESSION['special_feature_selected4'] = "no";
- if($_SESSION['already_special_feature1'] != "yes")
- {
- if($_POST['check_special_feature1'] != "")
- {
- $check_special_feature1 = $_POST['check_special_feature1'];
- $_SESSION['special_feature_selected1'] = "yes";
- }
- }
- if($_SESSION['already_special_feature2'] != "yes")
- {
- if($_POST['check_special_feature2'] != "")
- {
- $check_special_feature2 = $_POST['check_special_feature2'];
- $_SESSION['special_feature_selected2'] = "yes";
- }
- }
- if($_SESSION['already_special_feature3'] != "yes")
- {
- if($_POST['check_special_feature3'] != "")
- {
- $check_special_feature3 = $_POST['check_special_feature3'];
- $_SESSION['special_feature_selected3'] = "yes";
- }
- }
- if($_SESSION['already_special_feature4'] != "yes")
- {
- if($_POST['check_special_feature4'] != "")
- {
- $check_special_feature4 = $_POST['check_special_feature4'];
- $_SESSION['special_feature_selected4'] = "yes";
- }
- }
- $amount = $check_special_feature1 + $check_special_feature2 + $check_special_feature3 + $check_special_feature4;
- $custom = $domainid;
- if($amount > 0)
- {
- $_SESSION['payment_for'] = "domain";
- // $URL = "index.php?page=paypal&action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."¤cy_code=".$currency_code."&custom=".$custom;
- $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."¤cy_code=".$currency_code."&custom=".$custom);
- ?>
- <script type="text/javascript">
- document.location.href = "<?=$URL;?>";
- </script>
- <?php
- //header("Location: paypal.php?action=".$action."&cmd=".$cmd."&business=".$business."&item_name=".$item_name."&item_number=".$item_number."&quantity=".$quantity."&amount=".$amount."¤cy_code=".$currency_code."&custom=".$custom);
- //exit;
- }
- else
- {
- $_SESSION['payment_for'] = "";
- $_SESSION['special_feature_selected'] = "no";
- $_SESSION['site_domain_id'] = "";
- }
- // ===========================Finish for paypal Added by Rajiv==================================
- }
- }*/
- $msg = "Domain name was edited!";
- }
- else
- {
- $msg = "Domain name was NOT edited!";
- }
- }
- }
- if (!empty($_GET['modifica'])) {
- $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']}'";
- $sql_query_ = mysql_query($sql_txt_);
- $sc_ = mysql_fetch_assoc($sql_query_);
- $numeDomeniu = $sc_['numeDomeniu'];
- $bought_through = $sc_['bought_through'];
- $add_date = $sc_['add_date'];
- $datebuyer = date('d-m-Y', strtotime($sc_['datebuyer']));
- $hostincluded = $sc_['hostincluded'];
- $hostingdetails = $sc_['hostingdetails'];
- $selling_price = $sc_['selling_price'];
- $auction_price = $sc_['auction_price'];
- $pageRank = $sc_['pageRank'];
- $payment_type_id = $sc_['payment_type_id'];
- $domain_desscription = $sc_['domain_desscription'];
- $sold = $sc_['sold'];
- $category = $sc_['category'];
- $special_feature1 = $sc_['special_feature1'];
- $special_feature2 = $sc_['special_feature2'];
- $special_feature3 = $sc_['special_feature3'];
- $special_feature4 = $sc_['special_feature4'];
- $_SESSION['already_special_feature1'] = $special_feature1;
- $_SESSION['already_special_feature2'] = $special_feature2;
- $_SESSION['already_special_feature3'] = $special_feature3;
- $_SESSION['already_special_feature4'] = $special_feature4;
- $btn = "Modify Domain";
- }
- if (!empty($_GET['sterge'])) {
- $sql_txt = "DELETE FROM domains WHERE domainid='{$_GET['sterge']}' AND userId='{$_SESSION['userId']}'";
- $sql_query = mysql_query($sql_txt);
- if (mysql_affected_rows()) {
- $msg = "Domain name was deleted!";
- } else {
- $msg = "Domain name was NOT deleted!";
- }
- }
- $sql_txt1 = "SELECT * FROM admin";
- $sql_query1 = mysql_query($sql_txt1);
- $sc1 = mysql_fetch_assoc($sql_query1);
- $xx = $sc1['name'];
- $sql_txt1 = "SELECT * FROM domain_category";
- $sql_query2 = mysql_query($sql_txt1);
- ?>
- <script language="javascript" src="js/fixit.js" type="text/javascript"></script>
- <script src="js/CalendarPopup.js" type="text/javascript"></script>
- <script language="JavaScript" type="text/javascript">document.write(CalendarPopup_getStyles());</script>
- <script language="JavaScript" type="text/javascript">
- var cal_date = new CalendarPopup("date");
- </script>
- <h1>Add a Domain Name For Sale at <?php
- echo $xx;
- ?></h1>
- <div class="blueDots"></div>
- <form action="index.php?page=add_domain" method="post" enctype="multipart/form-data" name="frmDom" id="frmDom">
- <?php
- if (!empty($_GET['modifica'])) {
- ?>
- <input type="hidden" name="hdnDom" value="modifica" />
- <input type="hidden" name="domainid" value="<?= $_GET['modifica']; ?>" />
- <?php
- } else {
- ?>
- <input type="hidden" name="hdnDom" value="adauga" />
- <?php
- }
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="752" valign="top">
- <table width="100%" border="0" cellspacing="5" cellpadding="0">
- <tr>
- <td colspan="2" align="center" class="error"><?php
- if (!empty($msg)) {
- ?><b><?= $msg; ?></b><?php
- }
- ?> </td>
- </tr>
- <tr>
- <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
- echo $xx;
- ?> </span></div></td>
- </tr>
- <?php
- // CODE001 Rajiv This is fr when data is modified or deleted than to get link find CODE001
- if (empty($msg))
- {
- // Rajiv Finish
- ?>
- <tr>
- <td width="250" align="right"><p>Domain Name URL: </p>
- </td>
- <td align="left" >
- <textarea style="float:left" name="txtDomeniu" id="txtDomeniu" class="required validate-url" cols="45" rows="5"><?= $numeDomeniu; ?></textarea>
- <span class="fs11" style="vertical-align:top;">ex: http://www.mydomain.com.<br/>Use comma for multiple domain.</span></td>
- </tr>
- <tr>
- <td align="right">Domain Name Registrar: </td>
- <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>
- </tr>
- <?php
- $checkedD = "";
- $checkedN = "";
- if (!empty($_GET['modifica'])) {
- if ($sc_['hostincluded'] == "yes") {
- $checkedD = "checked='checked'";
- $checkedN = "";
- } else {
- $checkedN = "checked='checked'";
- $checkedD = "";
- }
- }
- ?>
- <tr>
- <td align="right">Google PageRank: </td>
- <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>
- </tr>
- <tr>
- <td align="right">Category: </td>
- <td align="left"><select name="category" id="category">
- <?php
- while ($rc = mysql_fetch_assoc($sql_query2)) {
- ?>
- <option <?php
- if ($category == $rc['category'])
- echo 'selected="selected"';
- ?> value="<?= $rc['category']; ?>"><?= $rc['category']; ?></option>
- <?php
- }
- ?>
- </select> <span class="fs11">
- Select a Category</span></td>
- </tr>
- <tr>
- <td align="right">Web Hosting Included: </td>
- <td align="left"><input name="radiobutton" class="validate-one-required" id="deta" type="radio" value="yes" onclick="javascript:void(0);" <?= $checkedD; ?> /> Yes<input name="radiobutton" type="radio" class="validate-one-required" id="detal" onclick="javascript:void(0);" value="no" <?= $checkedN; ?> /> No</td>
- </tr>
- <tr id="detalii">
- <td align="right">Web Hosting Details: </td>
- <td><textarea name="detalii" id="detail" cols="50" rows="5" class="required"><?php
- if (!empty($_GET['modifica'])) {
- echo $sc_['hostingdetails'];
- }
- ?></textarea></td>
- </tr>
- <tr>
- <td align="right">Domain Registration Date: </td>
- <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>
- </tr>
- <tr>
- <td align="right">Buy Now Price: </td>
- <td>$<input type="text" name="selling_price" id="selling_price" size="7" class="required" value="<?= $selling_price; ?>" style=" text-align:right" /> </td>
- </tr>
- <tr>
- <td align="right">Starting Bid Price: </td>
- <td>$<input type="text" name="auction_price" id="auction_price" size="7" class="required verif-lic" value="<?= $auction_price; ?>" style=" text-align:right" /> </td>
- </tr>
- <? if (empty($_GET['modifica'])) { ?>
- <tr>
- <td align="right">Listing Days: </td>
- <td>
- <select name="listing_days" id="listing_days">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- </select>
- </td>
- </tr>
- <? } ?>
- <tr>
- <td align="right"> </td>
- <td align="left"> </td>
- </tr>
- <tr>
- <td align="right">Accept Payment Via: </td>
- <td align="left">
- <table width="100%" border="0" cellspacing="2" cellpadding="2">
- <?php
- $sql_txt_pl = "SELECT * FROM payment_options ORDER BY payment_type ASC";
- $sql_query_pl = mysql_query($sql_txt_pl) or die(mysql_error());
- if (!empty($payment_type_id)) {
- $x = explode("-", $payment_type_id);
- } else {
- $x = array();
- }
- while ($sc_pl = mysql_fetch_assoc($sql_query_pl)) {
- $check = "";
- if (in_array($sc_pl['payment_type_id'], $x)) {
- $check = "checked='checked'";
- }
- ?>
- <tr>
- <td width="20" align="center"><input type="checkbox" name="payment_type_id[]" value="<?= $sc_pl['payment_type_id']; ?>" <?= $check; ?> /></td>
- <td><?= $sc_pl['payment_type']; ?></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </td>
- </tr>
- <tr>
- <td align="right"> </td>
- <td align="left"> </td>
- </tr>
- <tr>
- <td align="right">Domain Name Description: </td>
- <td align="left"><textarea name="domain_desscription" id="domain_desscription" cols="80" rows="5" class="required"><?= $domain_desscription; ?></textarea></td>
- </tr>
- <!-- Rajiv start -->
- <?php
- // CODE003 Rajiv This is fr when data is modified or deleted than
- if (empty($_GET['modifica']))
- {
- // Rajiv Finsh
- ?>
- <tr>
- <td align="right"> </td>
- <td align="left"> </td>
- </tr>
- <tr>
- <td align="right">Special Features: </td>
- <td align="left">
- <fieldset style="width:420px; border:1px solid #FF6600;">
- <legend style="color:#FF6600;">
- Special Features
- </legend>
- <div style="height:auto; width:auto; margin-left:5px; margin-right:5px;">
- <table width="100%" border="0">
- <tr>
- <td width="10%" valign="top">
- <input type="checkbox" name="check_special_feature1" id="check_special_feature1" <? if($special_feature1 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge1']; ?>" />
- </td>
- <td width="90%">
- Listing Title in Bold Cost: <b>$<?= $sc1['special_charge1']; ?> 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 />
- </td>
- </tr>
- <tr>
- <td width="10%" valign="top">
- <input type="checkbox" name="check_special_feature2" id="check_special_feature2" <? if($special_feature2 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge2']; ?>" />
- </td>
- <td width="90%">
- Listing Row Border Cost: <b>$<?= $sc1['special_charge2']; ?> 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 />
- </td>
- </tr>
- <tr>
- <td width="10%" valign="top">
- <input type="checkbox" name="check_special_feature3" id="check_special_feature3" <? if($special_feature3 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge3']; ?>" />
- </td>
- <td width="90%">
- Listing Row Highlighted Cost: <b>$<?= $sc1['special_charge3']; ?> USD</b><br /><br />Your listing will appear highlighted in color both on the front page and on the listings page.<br /><br />
- </td>
- </tr>
- <tr>
- <td width="10%" valign="top">
- <input type="checkbox" name="check_special_feature4" id="check_special_feature4" <? if($special_feature4 == "yes"){ ?> checked="checked" <? } ?> value="<?= $sc1['special_charge4']; ?>" />
- </td>
- <td width="90%">
- Screenshot on Listing Row Cost: <b>$<?= $sc1['special_charge4']; ?> USD</b><br /><br />Your listing will appear with a screenshot next to it on the listings page.
- </td>
- </tr>
- </table>
- </div>
- </fieldset>
- </td>
- </tr>
- <?php
- // CODE003 Rajiv This is fr when data is modified or deleted than
- }
- // Rajiv Finsh
- ?>
- <!-- Rajiv finish -->
- <tr>
- <td align="right"> </td>
- <td align="left"> </td>
- </tr>
- <tr>
- <td> </td>
- <td align="left"><input type="submit" name="Submit" value="<?= $btn; ?>" class="button1" /></td>
- </tr>
- <!-- Rajiv start -->
- <tr>
- <td align="right"> </td>
- <td align="left"> </td>
- </tr>
- <?php
- // CODE002 Rajiv This is fr when data is modified or deleted than
- if (empty($_GET['modifica']))
- {
- // Rajiv Finsh
- ?>
- <tr>
- <td align="right"> </td>
- <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']; ?> USD</b> would be charge for new listing</font></td>
- </tr>
- <?php
- // CODE002 Rajiv This is fr when data is modified or deleted than
- }
- // Rajiv Finsh
- ?>
- <?php
- // CODE001 Rajiv This is fr when data is modified or deleted than
- }
- // Rajiv Finsh
- ?>
- <!-- Rajiv finish -->
- </table>
- </td>
- </tr>
- </table>
- </form>
- <div id="date" style="background-color: #ffffff; position: absolute; visibility: hidden;"></div>
- <script type="text/javascript">
- function detalii(){
- alert('merge');
- }
- new Validation('frmDom',{stopOnFirst:true, useTitles : true});
- Event.observe(
- window,
- 'load',
- function(){
- if ($('detail').value){
- $('detalii').style.display = '';
- Event.observe('deta','click',function(){if($('detalii').style.display=='none') $('detalii').style.display = ''; else $('detalii').style.display = '';});
- Event.observe('detal','click',function(){if($('detalii').style.display=='') $('detalii').style.display = 'none'; else $('detalii').style.display = 'none';});
- }else {
- $('detalii').style.display = 'none';
- Event.observe('deta','click',function(){if($('detalii').style.display=='none') $('detalii').style.display = ''; else $('detalii').style.display = '';});
- Event.observe('detal','click',function(){if($('detalii').style.display=='') $('detalii').style.display = 'none'; else $('detalii').style.display = 'none';});
- }
- }
- );
- Validation.addAllThese([
- ['verif-lic', 'Your starting BID must be lower than the Buy Now Price !',
- function(v) {
- if(parseFloat(v)>parseFloat($('selling_price').value)) {
- return false;
- }
- return true;
- }
- ]
- ]);
- </script>
- <?php
- } else {
- include("home.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment