コード例 #1
0
if (isset($_POST) && isset($_POST["consult_to_spacs"])) {
    global $db;
    $arr = array("car_id" => $_POST['car_id'], "name" => $_POST['name'] . " " . $_POST['prename'], "email" => $_POST['email'], "time" => $_POST['recall'], "question" => $_POST['question'], "phone" => $_POST['phone'], "message" => $_POST['message'], "type" => 3);
    $common->save("contact", $arr);
    $carid = $_POST['car_id'];
    // get car details
    $ebayid = $common->CustomQuery("Select * from ebay_car where itemId = " . $carid);
    $item = '';
    if (mysql_num_rows($ebayid) > 0) {
        $item = mysql_fetch_object($ebayid);
        //echo "<pre>";print_r($item);die;
        if ($item->vin == '') {
            $ebayid = fetchEbayCar($carid, "update");
        }
    } else {
        $ebayid = fetchEbayCar($carid, "save");
        $item = mysql_fetch_object($ebayid);
    }
    $arr_new = array("itemId" => $_POST['car_id'], "title" => $_POST['title'], "buyItNowPrice" => $_POST['buyItNowPrice'], "postalCode" => $_POST['postalCode'], "location" => $_POST['location'], "listingType" => $_POST['listingType'], "endson" => $_POST['endson'], "endtimestamp" => $_POST['endtimestamp'], "buyItNowAvailable" => $_POST['buyItNowAvailable']);
    $common->save("ebay_car", $arr_new);
    // Send Admin notifications
    $comment1 = str_replace("\\'", "'", $_POST['message']);
    $question = str_replace("\\'", "'", $_POST['question']);
    // Your subject
    $subject = $_POST['name'] . " " . $_POST['prename'] . ' demande à entrer en contact avec un spécialiste';
    $heading = $subject;
    // = html_entity_decode(htmlentities($subject, ENT_NOQUOTES, "UTF-8"));
    $subHeading = 'Les détails sont ci-dessous:';
    $emailData['Nom'] = $_POST['name'] . ' ' . $_POST['prename'];
    $emailData['Adresse e-mail'] = $_POST['email'];
    $emailData['Numéro de téléphone'] = $_POST['phone'];
コード例 #2
0
						<a href="<?php 
        echo DEFAULT_URL;
        ?>
/ebay/<?php 
        echo $jtemId;
        ?>
"><i class="fa fa-arrow-right"></i></a>
					  </div>
					</div>
				  </div>
				</div>
			  </div>
			</div>
        <?php 
        if ($data->vin == '') {
            $ebayids = fetchEbayCar($jtemId, "update");
        }
    }
    ?>
      </div>
    </div>
  </div>  
</section>
<?php 
}
?>
<link href="<?php 
echo DEFAULT_URL;
?>
/css/owl.carousel.css" rel="stylesheet">
<script src="<?php