?? blcar_ajax.php
字號:
<?php
/*
http://www.biihu.com
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
header("Cache-Control:no-cache,must-revalidate");
header("Content-type:text/html;charset= utf-8");
header("Content-Type: text/plain; charset=gb2312");
if($taction==1){ //轉到好友的停車位
$query = $db -> query("select * from bl_mypose where uid='$uid'");
$bl_mypose = $db -> fetch_array($query);
if(empty($bl_mypose[uid])){
echo "empty";
exit;
}else{
$query = $db -> query("select username from {$tablepre}members where uid='$uid'");
$username = $db -> fetch_array($query);
if($bl_mypose[bl_pose_uid_1]){
$bl_mypose_pose1_uid = $bl_mypose[bl_pose_uid_1];
$bl_mypose_pose1_user = $bl_mypose[bl_pose_user_1];
$bl_mypose_pose1_blmid = $bl_mypose[bl_pose_blmid_1];
$bl_mypose_pose1_blid = $bl_mypose[bl_pose_blid_1];
$query = $db -> query("select a.bl_last_time,b.bl_car_img,b.bl_car_img_logo from bl_mycar as a,bl_carlist as b where a.uid='$bl_mypose_pose1_uid' and a.blmid='$bl_mypose_pose1_blmid' and b.blid='$bl_mypose_pose1_blid'");
$bl_mypose_pose1 = $db -> fetch_array($query);
$get_money_1 = getmoney($bl_mypose_pose1[bl_last_time],$bl_stop);
}
if($bl_mypose[bl_pose_uid_2]){
$bl_mypose_pose2_uid = $bl_mypose[bl_pose_uid_2];
$bl_mypose_pose2_user = $bl_mypose[bl_pose_user_2];
$bl_mypose_pose2_blmid = $bl_mypose[bl_pose_blmid_2];
$bl_mypose_pose2_blid = $bl_mypose[bl_pose_blid_2];
$query = $db -> query("select a.bl_last_time,b.bl_car_img,b.bl_car_img_logo from bl_carlist as b,bl_mycar as a where a.uid='$bl_mypose_pose2_uid' and a.blmid='$bl_mypose_pose2_blmid' and b.blid='$bl_mypose_pose2_blid'");
$bl_mypose_pose2 = $db -> fetch_array($query);
$get_money_2 = getmoney($bl_mypose_pose2[bl_last_time],$bl_stop);
}
if($bl_mypose[bl_pose_uid_3]){
$bl_mypose_pose3_uid = $bl_mypose[bl_pose_uid_3];
$bl_mypose_pose3_user = $bl_mypose[bl_pose_user_3];
$bl_mypose_pose3_blmid = $bl_mypose[bl_pose_blmid_3];
$bl_mypose_pose3_blid = $bl_mypose[bl_pose_blid_3];
$query = $db -> query("select a.bl_last_time,b.bl_car_img,b.bl_car_img_logo from bl_carlist as b,bl_mycar as a where a.uid='$bl_mypose_pose3_uid' and a.blmid='$bl_mypose_pose3_blmid' and b.blid='$bl_mypose_pose3_blid'");
$bl_mypose_pose3 = $db -> fetch_array($query);
$get_money_3 = getmoney($bl_mypose_pose3[bl_last_time],$bl_stop);
}
if($bl_mypose[bl_pose_uid_4]){
$bl_mypose_pose4_uid = $bl_mypose[bl_pose_uid_4];
$bl_mypose_pose4_user = $bl_mypose[bl_pose_user_4];
$bl_mypose_pose4_blmid = $bl_mypose[bl_pose_blmid_4];
$bl_mypose_pose4_blid = $bl_mypose[bl_pose_blid_4];
$query = $db -> query("select a.bl_last_time,b.bl_car_img,b.bl_car_img_logo from bl_carlist as b,bl_mycar as a where a.uid='$bl_mypose_pose4_uid' and a.blmid='$bl_mypose_pose4_blmid' and b.blid='$bl_mypose_pose4_blid'");
$bl_mypose_pose4 = $db -> fetch_array($query);
$get_money_4 = getmoney($bl_mypose_pose4[bl_last_time],$bl_stop);
}
if($uid==$discuz_uid){
echo '<div class="a1">
<div class="a2" style="background:url('.$bl_scene.');"></div>
<div class="a3"></div>
<div class="a4">
<div class="p1"><img src="images/blcar/stop.gif"></div>
<div class="p2"><img src="images/blcar/stop.gif"></div>
<div class="p3"><img src="images/blcar/stop.gif"></div>
<div class="p4"><img src="images/blcar/stop.gif"></div>
</div>
<div class="a5">
<div class="scenetop">
<div class="scenetop_l">'.$username[username].$bl_scene_name.'</div>
<div class="scenetop_r"></div>
</div>
<div class="scenemiddle">
<table cellspacing="0" cellpadding="0" style="width:580px;text-align:left;float:right">
<tr>';
if ($bl_mypose_pose1){
echo '<td width="145" style="border:0;line-height:0;padding:0;"><img src="'.$attachurl.$bl_mypose_pose1[bl_car_img].'" width="100" height="50"></td>';
}else{
echo '<td width="145" style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose2){
echo '<td width="145" style="border:0;line-height:0;padding:0;"><img src="'.$attachurl.$bl_mypose_pose2[bl_car_img].'" width="100" height="50"></td>';
}else{
echo '<td width="145" style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose3){
echo '<td width="145" style="border:0;line-height:0;padding:0;"><img src="'.$attachurl.$bl_mypose_pose3[bl_car_img].'" width="100" height="50"></td>';
}else{
echo '<td width="145" style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose4){
echo '<td width="145" style="border:0;line-height:0;padding:0;"><img src="'.$attachurl.$bl_mypose_pose4[bl_car_img].'" width="100" height="50"></td>';
}else{
echo '<td width="145" style="border:0;line-height:0;padding:0;"></td>';
}
echo '</tr>
<tr>';
if ($bl_mypose_pose1){
echo '<td style="border:0;line-height:0;padding:0;"><img src="images/blcar/money.gif" width="'.intval($get_money_1/$bl_credits_max*100).'" height="6"></td>';
}else{
echo '<td style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose2){
echo '<td style="border:0;line-height:0;padding:0;"><img src="images/blcar/money.gif" width="'.intval($get_money_2/$bl_credits_max*100).'" height="6"></td>';
}else{
echo '<td style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose3){
echo '<td style="border:0;line-height:0;padding:0;"><img src="images/blcar/money.gif" width="'.intval($get_money_3/$bl_credits_max*100).'" height="6"></td>';
}else{
echo '<td style="border:0;line-height:0;padding:0;"></td>';
}
if ($bl_mypose_pose4){
echo '<td style="border:0;line-height:0;padding:0;"><img src="images/blcar/money.gif" width="'.intval($get_money_4/$bl_credits_max*100).'" height="6"></td>';
}else{
echo '<td style="border:0;line-height:0;padding:0;"></td>';
}
echo '</tr>
<tr>';
if ($bl_mypose_pose1){
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;">收入:'.$get_money_1.$bl_credit_unit.'</td>';
}else{
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose2){
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;">收入:'.$get_money_2.$bl_credit_unit.'</td>';
}else{
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose3){
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;">收入:'.$get_money_3.$bl_credit_unit.'</td>';
}else{
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose4){
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;">收入:'.$get_money_4.$bl_credit_unit.'</td>';
}else{
echo '<td style="border:0;color:#ff0000;height:18px;line-height:16px;padding:0;"></td>';
}
echo '</tr>
<tr>';
if ($bl_mypose_pose1){
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;">好友:'.$bl_mypose_pose1_user.'</td>';
}else{
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose2){
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;">好友:'.$bl_mypose_pose2_user.'</td>';
}else{
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose3){
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;">好友:'.$bl_mypose_pose3_user.'</td>';
}else{
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;"></td>';
}
if ($bl_mypose_pose4){
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;">好友:'.$bl_mypose_pose4_user.'</td>';
}else{
echo '<td style="border:0;color:#ffffff;height:18px;line-height:16px;padding:0;"></td>';
}
echo '</tr>
<tr>';
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -