<?php
include('header.html');
$pid = $_GET['pid'];
include('mysqlconnect.php');
$res = mysql_query("select * from product where productId= '$pid'");
$cnt= mysql_num_rows($res);
if($cnt>0){
while($row = mysql_fetch_array($res)){
$img = $row['image'];
$price = $row['price'];
$name = $row['deviceName'];
}
}else{
header('Location:search.php');
}
?>
<div class="container">
<div class="row">
<img src="./img/bc_addphones.gif" alt="" style=" width: 100%; height:50px">
</div>
</div>
<br/>
<div class="container" style="background-color:white;">
<table id="main_table" cellpadding="0" cellspacing="0" style="width:100%; border:1px solid #dfdfdf; ">
<tr>
<td rowspan="3" style="width:15px;"></td>
<td style="padding-bottom:10px; padding-top:10px;">
<table style="width:100%;margin-right:auto;margin-left:auto;" cellpadding="0" cellspacing="0">
<tr>
<td style="width:100%; vertical-align:top;">
<div id="ctl00_ContentPlaceHolder1_pnlmodel" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_ContentPlaceHolder1_lbaddcart')">
<div style="width:100%;">
<span id="ctl00_ContentPlaceHolder1_lblmfrstring" style="font-size: 14pt; font-weight:bold; display:none;">phone</span>
<span id="ctl00_ContentPlaceHolder1_lblworkingstatus" style="font-size:14pt; font-weight:bold; display:none;"></span>
</div>
<div style="display:block; width:280px; margin-left:14px; height:20px;">
<table cellpadding="0" cellspacing="0" style="width:280px;" align="right">
<tr>
<td style="padding-top:0px;padding-right:5px;"><div class="fb-like" data-href="#" data-send="false" data-layout="button_count" data-width="80" data-show-faces="false"></div></td>
<td style="padding-top:0px;padding-right:10px;width:80px;">
<a href="#" class="twitter-share-button" data-hashtags="fonebank">Tweet</a>
<script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script>
</td>
<td style="padding-top:0px;padding-right:5px;width:100px;">
<g:plusone size="medium"></g:plusone>
<script type="text/javascript">
(function () {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();</script>
</td>
</tr>
</table>
</div>
<br />
<span id="ctl00_ContentPlaceHolder1_lblmodelname" style="font-size:14px;color:black;font-weight:bold;"><?php echo $name ?></span>
<br />
<div style="padding-top:7px;width:100%;">
<div style="width:100%;height:30px;line-height:30px;background-color:#0071bc; background-repeat:repeat-x;">
<div style="padding-left:15px; font-family:Verdana; font-weight:bold; color:White; font-size:14px;"><span>1. Condition and Quantity</span></div>
</div>
</div>
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr style="display:none;">
<td style="width:139px;padding-top:10px;">
<img id="ctl00_ContentPlaceHolder1_imgmodel2" alt="mobile phone" src="<?php echo $img ?>" style="width:100px;height:184px;" />
</td>
<td style="width:10px;"></td>
<td style="padding-top:10px;">
<div id="ctl00_ContentPlaceHolder1_div_working" style="display:block;">
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
<td style="width:265px;">
<div style="width:100%; padding-top:5px;">
<span id="ctl00_ContentPlaceHolder1_lblpricetypeworking" style="font-size: 14px;color:#b41e16">Working Price</span>
</div>
<div style="padding-top:2px;">
<span style="font-size: 28px;color:#b41e16;font-weight:bold;">£</span></asp:Label>
</div>
<div id="ctl00_ContentPlaceHolder1_pnlworkingprice" style="font-weight: normal; border:none;width:265px;height:140px;">
<div style="width:100%; padding-top:5px;color:Black;">
<b>Working Mobile Phones Must: </b>
<a href="#terms" onclick="javascript:document.getElementById('divterms').style.display = 'inline'; document.getElementById('frame_terms').src = '/terms_text.aspx?src=viewmodel#working'; " style="color:#000000;font-size:11px;text-decoration:none;"><span style="color:#0071BC;">Click here</span> for full working T&C's</a>
</div>
</div>
</td>
<td style="width:10px;border-left: 1px solid #cccccc;"> </td>
<td style="width:190px;">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="color:Black;font-weight:bold; width:83px;">Condition</td>
<td style="color:#606061;">
</td>
</tr>
<tr>
<td></td>
<td style="padding-top:3px; vertical-align:middle;"></td>
</tr>
</table>
<div style="line-height:5px; height:5px;"> </div>
<table id="ctl00_ContentPlaceHolder1_tblLocked" cellpadding="0" cellspacing="0" style="width:100%; border-top:1px solid #cccccc;">
<tr>
<td colspan="2" style="font-size:10px; color:#b41e16; border:1px solid #cccccc; padding:5px;">
An extra £X is paid for UNLOCKED iPhones. Your network may be able to unlock your iPhone for FREE if you are coming to the end of your contract.
</td>
</tr>
</table>
<div style="width:100%;padding-top:10px;padding-bottom:10px;font-size:10px;">
If you have a mixture of working and Damaged/Faulty, please add them as separate items.
</div>
<div style="width:190px;padding-top:10px;padding-bottom:10px;border-bottom: 1px solid #cccccc;border-top: 1px solid #cccccc;font-size:10px;">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="vertical-align:middle;width:55px;"><span id="ctl00_ContentPlaceHolder1_lblqtyw" style="font-size:12px;color:black;font-weight:bold;">Quantity</span></td>
<td style="padding-left:5px;vertical-align:middle;width:40px;"></td>
<td style="padding-left:5px;vertical-align:middle;"></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
</div>
<div style="width:190px;padding-top:10px;color:Black;font-weight:bold; font-size:14px;">
Total Value: <span style="color:#b41e16;font-weight:bold;">£</span><span id="ctl00_ContentPlaceHolder1_lblvaluew" style="color:#b41e16;font-weight:bold; font-size:14px;">165.00</span>
</div>
</td>
</tr>
</table>
</div>
<div id="ctl00_ContentPlaceHolder1_div_not_working" style="display:none;">
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
<td style="width:265px;">
<span id="ctl00_ContentPlaceHolder1_lblnonworkingmodelname" style="font-size:14px;color:black;font-weight:bold;">Sony Xperia Z3 </span><br />
<div style="width:100%; padding-top:5px;">
<span id="ctl00_ContentPlaceHolder1_lblpricetypenonworking" style="font-size: 14px;color:#b41e16">Damaged/Faulty Price</span>
</div>
<div style="padding-top:2px;">
<span style="font-size: 28px;color:#b41e16;font-weight:bold;">£</span>
</div>
<div id="ctl00_ContentPlaceHolder1_pnlnonworkingprice" style="font-weight: normal; border:none;width:240px;height:140px;">
<div style="width:100%; padding-top:5px;color:Black;">
<b>Damaged/Faulty Mobile Phones Must: </b>
<div id="nonworkingtersm"></div>
<a href="#terms" onclick="javascript:document.getElementById('divterms').style.display = 'inline'; document.getElementById('frame_terms').src = '/terms_text.aspx?src=viewmodel#nonworking';" style="color:#000000;font-size:11px;text-decoration:none;"><span style="color:#0071BC;">Click here</span> for full Damaged/Faulty T&C's</a>
</div>
</div>
</td>
<td style="width:5px; border-left:1px solid #cccccc;"> </td>
<td style="width:203px;">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="color:Black;font-weight:bold;">Condition</td>
<td style="color:Black;">
<span style="color:Black;"><input id="ctl00_ContentPlaceHolder1_rbconditionnw_w" type="radio" name="ctl00$ContentPlaceHolder1$rbconditionnw" value="rbconditionnw_w" checked="checked" /></span> Working<br />
<span style="color:Black;"><input id="ctl00_ContentPlaceHolder1_rbconditionnw_nw" type="radio" name="ctl00$ContentPlaceHolder1$rbconditionnw" value="rbconditionnw_nw" onclick="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$rbconditionnw_nw\',\'\')', 0)" /></span> Damaged/Faulty
</td>
</tr>
</table>
<div style="width:100%;padding-top:10px;padding-bottom:10px;font-size:10px;">
If you have a mixture of working and Damaged/Faulty, please add them as separate items.
</div>
<div style="width:100%;padding-top:10px;padding-bottom:10px;border-bottom: 1px solid #cccccc;border-top: 1px solid #cccccc;font-size:10px;">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="vertical-align:middle;width:55px;"><span id="ctl00_ContentPlaceHolder1_lblqtynw" style="font-size:12px;color:black;font-weight:bold;">Quantity</span></td>
<td style="padding-left:5px;vertical-align:middle;width:40px;"></td>
<td style="padding-left:5px;vertical-align:middle;"></td>
</tr>
<tr>
<td colspan="3">
</td>
</tr>
</table>
</div>
<div style="width:100%;padding-top:10px;color:Black;font-weight:bold;">
Total Value: <span style="color:#b41e16;font-weight:bold;">£</span><span id="ctl00_ContentPlaceHolder1_lblvaluenw" style="color:#b41e16;font-weight:bold;">40.00</span>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="width:139px;padding-top:10px;">
<img id="ctl00_ContentPlaceHolder1_imgmodel" title="Sell my Sony Xperia Z3 ." alt="mobile phone" src="<?= $img ?>" alt="<?= $img ?> ." style="border-width:0px;width:135px;" />
</td>
<td style="width:10px;"></td>
<td style="padding-top:10px;">
<div id="divBoth">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td class="handset_td" style="border-bottom:1px solid #b9b9b9;width:150px;"><b>Condition:</b></td>
<td style="border-bottom:1px solid #b9b9b9; padding-top:10px; padding-bottom:10px;">
<div class="working_container">
<span style="color:#000000;"><input id="ctl00_ContentPlaceHolder1_rbconditionw_w" type="radio" name="ctl00$ContentPlaceHolder1$rbconditionw" value="rbconditionw_w" checked="checked" /><label for="ctl00_ContentPlaceHolder1_rbconditionw_w"> Working</label></span>
<br>
<span style="color:#000000;"><input id="ctl00_ContentPlaceHolder1_rbconditionw_nw" type="radio" name="ctl00$ContentPlaceHolder1$rbconditionw" value="rbconditionw_nw" /><label for="ctl00_ContentPlaceHolder1_rbconditionw_nw"> Damaged/Faulty</label></span>
<br />
</div>
</td>
<td style="border-bottom:1px solid #b9b9b9;"> </td>
</tr>
</table>
<span id="ctl00_ContentPlaceHolder1_lblunlocked_price_increase" style="display:none;">0.00</span>
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td class="handset_td" style="border-bottom:1px solid #b9b9b9; width:90px;"><b>Quantity:</b></td>
<td style="border-bottom:1px solid #b9b9b9;padding-top:10px; padding-bottom:5px; width:150px;">
<div id="ctl00_ContentPlaceHolder1_working_qty" style="float:left;display:block;">
<input name="ctl00$ContentPlaceHolder1$txtqty" type="text" value="1" maxlength="3" size="3" id="ctl00_ContentPlaceHolder1_txtqty" style="font-size: 10px; width: 26px; vertical-align: top; height: 21px; line-height: 21px; padding: 0px; margin: 0px; margin-top:1px;border-spacing: 0px; border: 1px solid #b9b9b9; text-align:center; " />
<input type="image" name="ctl00$ContentPlaceHolder1$btnupdateqtyworking" id="ctl00_ContentPlaceHolder1_btnupdateqtyworking" src="img/btnupdateqty2.gif" alt="update quantity" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions( & quot; ctl00$ContentPlaceHolder1$btnupdateqtyworking & quot; , & quot; & quot; , true, & quot; & quot; , & quot; & quot; , false, false))" style="border-width:0px;" />
<span id="ctl00_ContentPlaceHolder1_rfv_qty" style="color:Red;font-size:10px;display:none;"><br/>You must enter a quantity value</span>
<span id="ctl00_ContentPlaceHolder1_cfv_qty" style="color:Red;font-size:10px;display:none;"><br/>Please enter numbers only</span>
</div>
<div id="ctl00_ContentPlaceHolder1_nonworking_qty" style="float:left;display:none;">
<input name="ctl00$ContentPlaceHolder1$txtqtynw" type="text" value="1" maxlength="3" size="3" id="ctl00_ContentPlaceHolder1_txtqtynw" style="font-size:10px;width:25px; vertical-align:top;" />
<input type="image" name="ctl00$ContentPlaceHolder1$btnupdateqtynonworking" id="ctl00_ContentPlaceHolder1_btnupdateqtynonworking" src="/images/v3/btnupdateqty2.gif" alt="update quantity" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions( & quot; ctl00$ContentPlaceHolder1$btnupdateqtynonworking & quot; , & quot; & quot; , true, & quot; & quot; , & quot; & quot; , false, false))" style="border-width:0px;" />
<span id="ctl00_ContentPlaceHolder1_rfv_qtynw" style="color:Red;font-size:10px;display:none;"><br/>You must enter a quantity value</span>
<span id="ctl00_ContentPlaceHolder1_cfv_qtynw" style="color:Red;font-size:10px;display:none;"><br/>Please enter numbers only</span>
</div>
<div id="ctl00_ContentPlaceHolder1_div_network_description" style="background-color:white;display:none;padding-top:0px;padding-left:0px;float:right;width:230px;">
<span style="color:#B32317;">iPhone Pricing</span><br />Please note pricing for iPhones is subject to Network.
</div>
</td>
<td style="border-bottom:1px solid #b9b9b9;"> </td>
</tr>
<tr>
<td colspan="3" style="padding-top:15px;">
<div style="color:black;">
If you have a mixture of working and Damaged/Faulty or locked and unlocked, please add them as separate items.
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="3" style="padding-top:20px;">
<div style="100%;height:30px;line-height:30px;background-color:#0071bc; background-repeat:repeat-x;">
<div style="padding-left:15px; font-family:Verdana; font-weight:bold; color:White; font-size:14px;">2. IMEI and Network</div>
</div>
</td>
</tr>
<tr>
<td colspan="3" class="handset_td" style="padding-left:10px; padding-right:10px;">
<table cellpadding="0" cellspacing="0" style="width:100%; margin-bottom:10px; margin-top:10px;">
<tr>
<td style="width:265px;">
<span id="ctl00_ContentPlaceHolder1_lblimeilbl" style="color:black;"><b>Enter IMEI</b></span>
</td>
<td>
<span id="ctl00_ContentPlaceHolder1_lblnetworklbl" style="color:black;"><b>Enter Network</b></span>
</td>
</tr>
</table>
<div id="ctl00_ContentPlaceHolder1_divImeiMaximized">
<input name="ctl00$ContentPlaceHolder1$txtimei1" type="text" value="Please enter 15 digits" maxlength="15" size="15" id="ctl00_ContentPlaceHolder1_txtimei1" class="imeifield" onfocus="WatermarkFocus(this, 'Please enter 15 digits');" onblur="WatermarkBlur(this, 'Please enter 15 digits');" onkeyup="javascript:if (event.keyCode == 13){event.keyCode = 9; event.keyCode = 9; event.keyCode = 9; } removecharsfromimei('ctl00_ContentPlaceHolder1_txtimei1', '1');" onkeydown="javascript:if (event.keyCode == 13){event.keyCode = 9; event.keyCode = 9; event.keyCode = 9; }" style="font-size:11px; width:200px; padding-left:7px; line-height:20px; height:25px; border:1px solid #b9b9b9; vertical-align:top; margin-bottom:7px;" />
<select name="ctl00$ContentPlaceHolder1$ddlimeiworking1" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$ddlimeiworking1\',\'\')', 0)" id="ctl00_ContentPlaceHolder1_ddlimeiworking1" class="networkfield" style="vertical-align:top; margin-bottom:7px;margin-left:60px;">
<option selected="selected" value="">-- Select Network --</option>
<option value="3">3</option>
<option value="O2">O2</option>
<option value="Orange">Orange</option>
<option value="EE">EE</option>
<option value="TalkEE">Talk EE</option>
<option value="TMobile">T-Mobile</option>
<option value="Tesco">Tesco</option>
<option value="Virgin">Virgin</option>
<option value="Vodafone">Vodafone</option>
<option value="Unlocked">Unlocked</option>
<option value="ForBlocked">Foreign Network</option>
</select><br/>
</div>
</td>
</tr>
<tr>
<td colspan="3" style="padding-top:20px;">
<div style="width:100%;height:30px;line-height:30px;background-color:#0071bc; background-repeat:repeat-x;">
<div style="padding-left:15px; font-family:Verdana; font-weight:bold; color:White; font-size:14px;">3. Choose Payment Method</div>
</div>
</td>
</tr>
<tr>
<td colspan="3" style="padding-top:10px;">
<div id="ctl00_ContentPlaceHolder1_payment_normal">
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="width:199px;">
<div id="container_cheque" class="payment_container" onclick="change_payment_method(document.getElementById('ctl00_ContentPlaceHolder1_lblCartUserID').innerHTML, 'cheque');">
<div class="divhelp"><div class="helpinfo">Cheque are issued and posted First Class the day we receive your order. The cheque will be made payable to the name on your account unless otherwise specified. It can be banked into any UK bank that you have an account with.</div></div>
<div style="border:solid;border-width:1px;border-color:#ccc;padding:10px;">
<div style="margin:0px; padding:0px; font-size:12px; font-weight:bold; font-family:Verdana; color:#0071BC; height:30px;">Cheque</div>
<span style="color:red;font-size:22px;font-weight:bold;">£<span id="ctl00_ContentPlaceHolder1_lblprice" style="display:inline;">
<?= $price ?></span><span id="ctl00_ContentPlaceHolder1_lblpricenonworking" style="display:none;">40.00</span><span id="ctl00_ContentPlaceHolder1_lblpricenew" style="display:none;">0.00</span></span>
<br />
<img src="img/payment_cheque.gif" id="payment_cheque" class="payment_image" style="border:solid;border-width:1px;border-color:#ccc"/>
<input type="radio" name="pay" style="float:right"/>
</div>
</div>
</td>
<td style="width:10px;"> </td>
<td style="width:198px;">
<div id="container_bacs" class="payment_container" onclick="change_payment_method(document.getElementById('ctl00_ContentPlaceHolder1_lblCartUserID').innerHTML, 'bacs');">
<div class="divhelp"><div class="helpinfo">BACS bank transfer is issued the day we receive your order. The payment will take up to 48 hours to clear. It can transferred into any UK bank that you have an account with.</div></div><br>
<div style="border:solid;border-width:1px;border-color:#ccc;padding:10px;">
<div style="margin:0px; padding:0px; font-size:12px; font-weight:bold; font-family:Verdana; color:#0071BC; height:30px;">BACS Bank Transfer</div>
<span style="color:red;font-size:22px;font-weight:bold;">£<span id="ctl00_ContentPlaceHolder1_lblprice2" style="display:inline;"><?= $price ?></span><span id="ctl00_ContentPlaceHolder1_lblpricenonworking2" style="display:none;">40.00</span><span id="ctl00_ContentPlaceHolder1_lblpricenew2" style="display:none;">0.00</span></span>
<br />
<img src="img/payment_bacs.gif" style="border:solid;border-width:1px;border-color:#ccc" id="payment_bacs" class="payment_image" />
<input type="radio" name="pay" style="float:right"/>
</div>
</div>
</td>
<td style="width:10px;"> </td>
<td style="width:199px;"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<td rowspan="3" style="width:15px;"></td>
</tr>
</table>
</div>