$top_menu = "sell"; $grey_box = "Supply Service > List a Service"; $green_box_img = "bar_icon02.gif"; $green_box = "List a Service"; $bors = "supply"; include "../include/header.php"; //�ο� if(!$_SESSION[p_id]){ include "../member/login_page.php"; }else{ if(!$mycom_row[company_no]) { echo(" "); exit; } else { if(!$_REQUEST[no]) { $selling_no = cntHistory('supplying',$_SESSION[p_seq_no],$connect); $list_limit = $mycom_row[list_limit]; $expiry = date("Ymd",strtotime($mycom_row[valid])); $today = date("Ymd"); if($today > $expiry) { echo (" "); exit; } if($list_limit <= $selling_no) { echo (" "); exit; } $show_option = "Y"; if($sc2){ $scategory=$sc2; }elseif(($sc1)&&(!$sc2)){ $scategory=$sc1; } if($scategory) { $special_event_row = select_qry('sv_fee','title','Special Event',$connect); $s_event_price = $special_event_row[price]; $pre_charged = $s_event_price; } } else { $query = "select * from sv_s_auct_master where anum=$no"; $result = mysqli_query($query); $row = mysqli_fetch_array($result); if($row[seq_num] != $_SESSION[p_seq_no]) { $message = "Sorry, only the member who posted this list has permission to access this page."; include("../help/error_page.php"); include("../include/footer.php"); exit; } if(substr($row[catenum],-6,6) != "000000") { $c1 = substr($row[catenum],0,-6)."000000"; if(substr($row[catenum],-4,4) != "0000") { $c2 = substr($row[catenum],0,-4)."0000"; if(substr($row[catenum],-2,2) != "00") { $c3 = substr($row[catenum],0,-2)."00"; $c4 = $row[catenum]; } else { $c3 = $row[catenum]; $c4 = ""; } } else { $c2 = $row[catenum]; $c3 = ""; $c4 = ""; } } else { $c1 = $row[catenum]; $c2 = ""; $c3 = ""; $c4 = ""; } $auct_start = strtotime($row[reg_date]); $within_hr = date("YmdHis",mktime(date("H",$auct_start)+1,date("i",$auct_start),date("s",$auct_start),date("m",$auct_start),date("d",$auct_start),date("Y",$auct_start))); if(date("YmdHis") < $within_hr) { $show_option = "Y"; $charged_qry = "SELECT * FROM account WHERE seq_num=$_SESSION[p_seq_no] AND site='Serviceinfo' AND a_code=$row['anum'] AND description LIKE '%VS%' ORDER BY no DESC LIMIT 1"; $charged_res = mysqli_query($charged_qry,$connect); $charged_tot = mysqli_num_rows($charged_res); if($charged_tot) { $charged_row = mysqli_fetch_array($charged_res); $pre_charged = $charged_row[debit]; } else { $pre_charged = ""; } } else { $show_option = "N"; } $state = $row[state_no]; $town = $row[location]; $photo = $row[photo]; if($sc2){ $scategory=$sc2; }elseif(($sc1)&&(!$sc2)){ $scategory=$sc1; } } if($photo) { $photo_src = "http://serviceimg.totalinfo.co.nz/img/thumb/".$photo; } else { $photo_src = "/images/noimg02.gif"; } $service_no = explode(";",$row[opt2]); $pre_charged = number_format($pre_charged,2,'.',''); ?>
} } include "../include/footer.php"; //�ο� ?>