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,'.',''); ?>
  Choose a category

 
 
 
     
 
     
 
     
 
     
 

 
  List Details  
     
 
Listing title *
Trading Type > Registered > Sole Trade
Business Career
Fee Idea / Hour
GST Registered > Yes > No
Contract Type > Full Contract > Sub-Contract
Available Location
State
City / Town
Payment Condition
Service Description *
Any Condition
Photo
 
    

 
  Options (Options apply for a month from the date you list.)  
     
"; echo ""; echo " "; echo $sec_opt_row[section]; echo "

"; echo "
"; echo " "; echo " "; echo " "; $title_opt_qry = "SELECT * FROM sv_fee WHERE section='$sec_opt_row[section]' GROUP BY title ORDER BY title;"; $title_opt_res = mysqli_query($title_opt_qry,$connect); $title_num = mysqli_num_rows($title_opt_res); for($j=0;$j<$title_num;$j++) { // Selects out all kinds of titles under the current section $title_opt_row = mysqli_fetch_array($title_opt_res); if($scategory && ($title_opt_row[title] == 'Special Event')) { // Makes the special event tick box readonly $chk_onclick = "checked onClick='return false'"; } else if(!$scategory && ($title_opt_row[title] == 'Special Event')) { // Makes the special event disappear when it's for special event break; } else { // Sets a tick box to work with chkOptSum function when it's not for special event nor specific closing time $chk_onclick = "onClick=chkOptSum(this.value,this.getAttribute('value2'),this)"; } echo ""; echo ""; } echo "
"; echo ""; $desc_opt_qry = "SELECT * FROM sv_fee WHERE section='$title_opt_row[section]' AND title='$title_opt_row[title]' ORDER BY description;"; $desc_opt_res = mysqli_query($desc_opt_qry,$connect); $desc_num = mysqli_num_rows($desc_opt_res); echo ""; echo "
"; echo $title_opt_row[title]; if($title_opt_row[title] == 'Duration') { echo " *"; } echo ""; if($desc_num > 1) { // Makes optioins to be a select(drop down menu) type when there are descriptions more than one echo ""; echo ""; echo ""; if($title_opt_row[title] == 'Duration') { echo ""; } echo $title_opt_row[details]; } else { // Makes optioins to be a tick box type when there is only one options(description) // Selects out all the options under the current titile. $desc_opt_row = mysqli_fetch_array($desc_opt_res); ?> > ($)   "; echo " 
"; echo " "; echo ""; echo ""; echo " "; echo " "; echo " "; echo ""; echo ""; } ?>
 
  Total / Your Current Balance : $