AnsweredAssumed Answered

question?

Question asked by milerdoug on Dec 2, 2014

I wrote the code below:

<div id="mapContainer">

<?php

   if (basename($_SERVER['SCRIPT_FILENAME']) == 'xxxxxxx.php'){

?>

    <script src="<?php echo $fileSeperator; ?>rrrrr/kkkk.js"></script>

    <div id="search"></div>

    <div id="map"></div>

 

<?php

   }else{

?>

<script src="<?php echo $fileSeperator; ?>rrrrr/gggg.js"></script>

<div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%;height:100%;">

      <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'right'" style="width:250px;">       

        <div id="dir"></div>

      </div>

      <div id="map"

           data-dojo-type="dijit/layout/ContentPane"

           data-dojo-props="region:'center'">

      </div>

    </div>

<?php

  }

?>

</div>   

    <!-- end of mapContainer --> 

The issue is with the else statement, It doesn't display anything. When I delete the row with borderContainer everything runs ok.

Any suggestion?

Outcomes