I modify the php codes (in index.php) on my website but I do not see any changes on the site

advertisements

Here is the part of my index.php::

<?php include("header.php");
$containerClass="container"; $rowClass="row";
?>
<div id='wrapper'>
<div class='<?php print $containerClass; ?>' >
<?php
if(($ptype=="" && $fullScreenEnabled!="true") || $ptype=="home" ||     $ptype=="viewMemberListing" || $ptype=="viewFullListing" || ($ptype=="showOnMap"      && $fullScreenEnabled!="true") || $ptype=="adminOptions"  ||     $ptype=="UpdateAdminOptions" || $ptype=="allMembers" || $ptype=="contactus" ||     $ptype=="page" || $_GET["cpage"]==1){
if($ptype=="viewMemberListing") $reextraMessage=" ".$relanguage_tags["your     listings"]." ";
else $reextraMessage=" ".$relanguage_tags["all listings"]." ";
?>

<div class='<?php print $rowClass; ?>'>
<div class='col-md-4 col-lg-4 sbar'>
  <div id="sidebar">

  <div id="sidebar1">
  <div class='a_block'>
    <h3><?php print $relanguage_tags["Search"].$reextraMessage; ?></h3>
    <?php include("reSearchForm.php"); ?>

</div>
  </div>  <!-- end #sidebar1 -->

To this I add:

<div id="sidebar1">
<div class='a_block'>
<h3><?php print $relanguage_tags["Add Listing"].$reextraMessage; ?></h3>
<?php include("submitReListing.php"); ?>

</div>
</div>  <!-- end #sidebar1 -->

// submitReListing.php is already there on my website and working but i just want this button to be on the home page so that users can search and submit listing from the homepage.

After I added the second part, I go to filezilla and it asks me if i want to upload file back to the server. I select yes. ( Do i need to check "Finish editing and delete local file"??) But i dont see any changes in my website.

Please suggest. I am new to php so please bear with these questions. I can also provide the entire index file or other file if required. Thanks

Entire code:

<?php include("header.php");
$containerClass="container"; $rowClass="row";
?>
<div id='wrapper'>
<div class='<?php print $containerClass; ?>' >
<?php
if(($ptype=="" && $fullScreenEnabled!="true") || $ptype=="home" ||     $ptype=="viewMemberListing" || $ptype=="viewFullListing" || ($ptype=="showOnMap"      && $fullScreenEnabled!="true") || $ptype=="adminOptions"  || $ptype=="UpdateAdminOptions" || $ptype=="allMembers" || $ptype=="contactus" ||     $ptype=="page" || $_GET["cpage"]==1){
if($ptype=="viewMemberListing") $reextraMessage=" ".$relanguage_tags["your     listings"]." ";
else $reextraMessage=" ".$relanguage_tags["all listings"]." ";
?>

<div class='<?php print $rowClass; ?>'>
<div class='col-md-4 col-lg-4 sbar'>
<div id="sidebar">

<div id="sidebar1">
<div class='a_block'>
<h3><?php print $relanguage_tags["Search"].$reextraMessage; ?></h3>
<?php include("reSearchForm.php"); ?>

</div>
</div>  <!-- end #sidebar1 -->

<div id="sidebar2">
<div class='a_block'>
<h3><?php print $relanguage_tags["Add listing"].$reextraMessage; ?></h3>
<?php include("submitReListing.php"); ?>

</div>
</div>  <!-- end #sidebar1 -->

<?php  if(trim($sidebarad)!=""){ ?>
<div id='sidebarad1'><?php print $sidebarad; ?></div>
<?php } ?>
</div> <!-- end #sidebar -->
</div>
<div class='col-md-8 col-lg-8'>
<div id="mainContent">
<div id='reResults'>
<?php if($ptype=="viewFullListing") include("viewFullListing.php"); ?>
<?php if($ptype=="adminOptions" || $ptype=="UpdateAdminOptions")     include("adminOptions.php"); ?>
<?php if($ptype=="allMembers") include("allMembers.php"); ?>
<?php if($ptype=="showOnMap"  && $fullScreenEnabled!="true") print "<div     id='mapResults'></div>" ?>
<?php if($ptype=="contactus") include("contactus.php"); ?>
<?php if($ptype=="page"){ include("page.php"); $fullScreenEnabled="false"; }     ?>
<?php if($_GET["cpage"]==1) include("pluginPage.php"); ?>
<?php if($ptype=="categoriesEdit") loadPage("categoriesEdit.php"); ?>
</div>
</div><!-- end #mainContent -->
</div>
</div>

<?php
} 

if($fullScreenEnabled=="true"){
?>
<div style="width:100%;">

<div style="width:248px;" id='mapSidebar' >
<div id='showbar' data-original-title="<?php print $relanguage_tags["Show the     sidebar"]; ?>"></div>
<div id="sidebar" class='ui-widget-content'>
<div id="sidebarTabs"><div id='hidebar' data-original-title="<?php print $relanguage_tags["Hide the sidebar"]; ?>"></div>
<ul>
<li><a href="#sidebar1"><?php print __("Search"); ?></a></li>
<li id='resultTab'><a href="#sidebarResults"><?php print __("Results"); ?> </a></li>
</ul>
<div id="sidebar1">
<div class='a_block'>
<!-- <div id="logo2"></div> -->
<h3><?php print $relanguage_tags["Search"].$reextraMessage; ?></h3>
<?php include("reSearchForm.php"); ?>
</div>

<?php  if(trim($sidebarad)!=""){ ?>
 <div id='sidebarad1'><?php print $sidebarad; ?></div>
<?php } ?>

</div>  <!-- end #sidebar1 -->
<div id='sidebarResults'></div>
</div>

</div> <!-- end #sidebar -->
</div> <!-- end mapSidebar -->

<div style="width:80%;" id='mapContainer'>
<div id="mainContent"><div id='mapResults'></div><div id='theListing'></div>        <div id='MapLoadingImage'><img src='images/maploading1.gif' alt='loading' />        </div>
<div id='modeButton'><a class='btn btn-primary btn-large' href='index.php?    ptype=home&<?php print str_replace("ptype=", "",htmlspecialchars($_SERVER['QUERY_STRING'])); ?>'><i class='icon-align-    justify'></i> <?php print $relanguage_tags["Switch to text mode"]; ?></a></div>
</div> <!-- end span8 -->
</div>

</div> <!-- end row -->
<div class="nolisting alert alert-info"><a class="close"      onclick="$('.alert').hide()" data-dismiss="alert" href="#">x</a>
<h4 style="text-align:'center'"><?php print $relanguage_tags["No listings found     for your search criteria"]; ?>.
<?php if($isThisDemo=="yes") print "The demo has limited listings."  ?>
</h4></div>
<?php
}

if($ptype=="checklogin") loadPage("checklogin.php");
if($ptype=="submitReListing") loadPage("submitReListing.php");
if($ptype=="addReListing") loadPage("addReListing.php");
if($ptype=="editReListingForm") loadPage("editReListingForm.php");
if($ptype=="updateReListing") loadPage("updateReListing.php");
if($ptype=="myprofile") loadPage("myprofile.php");
if($ptype=="languagetags" || $ptype=="updateLanguageTags") loadPage("languagetags.php");
if($ptype=="categories" || $ptype=="updateCategories") loadPage("categories.php");
if($ptype=="pricerange" || $ptype=="updatePriceRange")   loadPage("pricerange.php");
if($ptype=="countries" || $ptype=="updateCountries") loadPage("countries.php");
if($ptype=="towns" || $ptype=="updateTowns") loadPage("towns.php");
if($ptype=="addeditpage") loadPage("addeditpage.php");
if($ptype=="oodle" || $ptype=="updateOodle")     loadPage("plugins/oodle/options.php");

?>
<!--
<div id="a_c" style="display:none;"><?php print $authorization_code; ?></div>
<div id="p_c" style="display:none;"><?php print md5($purchase_code); ?>    </div>
-->
</div>
</div>

<?php
//if($fullScreenEnabled!="true")
include("footer.php"); ?>


Please Check whether it is going into the IF statement.