6 Replies Latest reply on Jun 20, 2008 9:19 AM by

    Design View - nothing Code View Everything

    EmpireLandscaping
      I am VERY new to DW so please forgive my amateur knowledge.
      My problem is that I was working on a PHP file that I was having a little trouble with. I seemed to have fixed what I was trying to fix but the next thing I knew the design view would only show the dotted line tables. It is not even expanded and shows no content. However, the code is still fine and viewable in the code section. I have searched the forums and read that View/Style Rendering/Display Styles, was the fix for others. However, that was already turned on for me. An added strange thing is that ALL my other php files are displaying fine in both Code and Design views.
      Maybe there is an issue with my code (no doubt there is!) and so I have pasted it to this... if anyone sees something... Please let me know.
      So very clueless.
      <?php

      $title = "Empire Gardening - Services";
      include("header.php");

      ?>
      <table class="content" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td width="0" colspan="2">
      <td colspan="2" valign="top">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr>
      <td width="800" bordercolor="#996600" bgcolor="#99CC66" class="pageName"><span class="style9">Services</span> <br /> </td>
      </tr>
      <tr><td colspan="2" height="15"> </td></tr>
      <tr>
      <td width="340" height="36" rowspan="2" align="center" class="subHeader"><img src="WSGrass_small.jpg" alt="Lawn Care" width="340" height="224" border="0" /></td>
      <td width="398" height="36" class="subHeader"><div align="center">Lawn Care
      </div></td>
      </tr>
      <tr>
      <td valign="top" class="bodyText"><ul>
      <ul>
      <li> Mowing</li>
      <li> Horizontal Trimming</li>
      <li>Vertical Trimming</li>
      <li> Aerating</li>
      <li> Power Raking</li>
      <li> Over Seed </li>
      </ul>
      </ul>
      <blockquote>
      <p>-Empire provides many levels of these services.</p>
      </blockquote></td>
      </tr>
      </table>
      <table width="800" height="0" border="0" cellpadding="0" cellspacing="0">
      <tr>
      <td width="340" height="36" rowspan="2" align="center" class="subHeader"><img src="WSHedge_smallresize2.jpg" alt="pruning and shearing" width="340" height="224" border="0" /></td>
      <td width="398" height="36" class="subHeader"><div align="center">Pruning and Shearing</div></td>
      </div></td>
      </tr>
      <tr>
      <td valign="top" class="bodyText"><blockquote>
      <p align="justify">Pruning and shearing can have drastic affects on the appearance and health of your plants. Empire uses shearing and pruning technicques set by the standards of the BCLNA. Empire will prune and shear plants to optimize appearance, as well as, health. Empire has the precision and talent to give you beautiful and healthy plants throughout your property. </p>
      </blockquote></td>
      </tr>
      </table>
      <table width="800" height="0" border="0" cellpadding="2" cellspacing="0">
      <tr>
      <td width="340" height="36" rowspan="2" align="center" class="subHeader"><img src="WSPondresize2.jpg" alt="Water Features" width="340" height="224" border="0" /></div></td>
      <td width="398" height="36" class="subHeader"><div align="center">Water Features &amp; Landscape Construction
      </div></td>
      </tr>
      <tr>
      <td valign="top" class="bodyText"><blockquote>
      <p align="justify">Whether you are looking for a relaxing pond with a rippling fountain, or beautiful tiers Empire provides consultation for water features and landscape construction. Please contact us to book an appointment for an estimate. </p>
      </blockquote></td>
      </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="2" width="800">

      <tr>
      <td width="340" height="36" rowspan="2" align="center" class="subHeader"><div align="center"><img src="WSTulips_small.jpg" alt="Installations" width="340" height="224" border="0" /></div></td>
      <td width="398" class="subHeader"><div align="center">Plantings </div></td>
      </tr>
      <tr>
      <td valign="top" class="bodyText"><blockquote>
      <p align="justify">Empire can bring new life ro you property with new plants, trees and shrubs to provide structure, privacy or shading. As well, each season your garden can be customized with a display of annuals. We also provide plants that will bring colour all year round. </p>
      <p align="justify"> </p>
      </blockquote></td>
      </tr>
      </table></td>
      <td width="20"> </td>
      </tr>
      <tr>
      <td width="312" height="0"></td>
      <td width="624" height="0"></td>
      <td width="20" height="0"> </td>
      <td width="18" height="0"> </td>
      <td width="5" height="0"> </td>
      </tr>
      </table>

      <?php

      include("footer.php");

      ?>
        • 1. Re: Design View - nothing Code View Everything
          Level 7
          What's in header.php?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "EmpireLandscaping" <webforumsuser@macromedia.com> wrote in message
          news:g2usbj$abl$1@forums.macromedia.com...
          >I am VERY new to DW so please forgive my amateur knowledge.
          > My problem is that I was working on a PHP file that I was having a little
          > trouble with. I seemed to have fixed what I was trying to fix but the next
          > thing I knew the design view would only show the dotted line tables. It is
          > not
          > even expanded and shows no content. However, the code is still fine and
          > viewable in the code section. I have searched the forums and read that
          > View/Style Rendering/Display Styles, was the fix for others. However, that
          > was
          > already turned on for me. An added strange thing is that ALL my other php
          > files
          > are displaying fine in both Code and Design views.
          > Maybe there is an issue with my code (no doubt there is!) and so I have
          > pasted
          > it to this... if anyone sees something... Please let me know.
          > So very clueless.
          > <?php
          >
          > $title = "Empire Gardening - Services";
          > include("header.php");
          >
          > ?>
          > <table class="content" border="0" cellspacing="0" cellpadding="0">
          > <tr>
          > <td width="0" colspan="2">
          > <td colspan="2" valign="top">
          > <table border="0" cellpadding="0" cellspacing="0">
          > <tr>
          > <td width="800" bordercolor="#996600" bgcolor="#99CC66"
          > class="pageName"><span class="style9">Services</span> <br />
          > </td>
          > </tr>
          > <tr><td colspan="2" height="15"> </td></tr>
          > <tr>
          > <td width="340" height="36" rowspan="2" align="center"
          > class="subHeader"><img src="WSGrass_small.jpg" alt="Lawn Care" width="340"
          > height="224" border="0" /></td>
          > <td width="398" height="36" class="subHeader"><div
          > align="center">Lawn
          > Care
          > </div></td>
          > </tr>
          > <tr>
          > <td valign="top" class="bodyText">

          >

          • >
          • Mowing</li>
            >
          • Horizontal Trimming</li>
            >
          • Vertical Trimming</li>
            >
          • Aerating</li>
            >
          • Power Raking</li>
            >
          • Over Seed </li>
            >

          >

          > <blockquote>
          > <p>-Empire provides many levels of these services.</p>
          > </blockquote></td>
          > </tr>
          > </table>
          > <table width="800" height="0" border="0" cellpadding="0" cellspacing="0">
          > <tr>
          > <td width="340" height="36" rowspan="2" align="center"
          > class="subHeader"><img src="WSHedge_smallresize2.jpg" alt="pruning and
          > shearing" width="340" height="224" border="0" /></td>
          > <td width="398" height="36" class="subHeader"><div
          > align="center">Pruning
          > and Shearing</div></td>
          > </div></td>
          > </tr>
          > <tr>
          > <td valign="top" class="bodyText"><blockquote>
          > <p align="justify">Pruning and shearing can have drastic affects
          > on
          > the appearance and health of your plants. Empire uses shearing and pruning
          > technicques set by the standards of the BCLNA. Empire will prune and shear
          > plants to optimize appearance, as well as, health. Empire has the
          > precision and
          > talent to give you beautiful and healthy plants throughout your property.
          > </p>
          > </blockquote></td>
          > </tr>
          > </table>
          > <table width="800" height="0" border="0" cellpadding="2" cellspacing="0">
          > <tr>
          > <td width="340" height="36" rowspan="2" align="center"
          > class="subHeader"><img src="WSPondresize2.jpg" alt="Water Features"
          > width="340"
          > height="224" border="0" /></div></td>
          > <td width="398" height="36" class="subHeader"><div
          > align="center">Water
          > Features &amp; Landscape Construction
          > </div></td>
          > </tr>
          > <tr>
          > <td valign="top" class="bodyText"><blockquote>
          > <p align="justify">Whether you are looking for a relaxing pond
          > with
          > a rippling fountain, or beautiful tiers Empire provides consultation for
          > water
          > features and landscape construction. Please contact us to book an
          > appointment
          > for an estimate. </p>
          > </blockquote></td>
          > </tr>
          > </table>
          > <table border="0" cellspacing="0" cellpadding="2" width="800">
          >
          > <tr>
          > <td width="340" height="36" rowspan="2" align="center"
          > class="subHeader"><div align="center"><img src="WSTulips_small.jpg"
          > alt="Installations" width="340" height="224" border="0" /></div></td>
          > <td width="398" class="subHeader"><div align="center">Plantings
          > </div></td>
          > </tr>
          > <tr>
          > <td valign="top" class="bodyText"><blockquote>
          > <p align="justify">Empire can bring new life ro you property
          > with
          > new plants, trees and shrubs to provide structure, privacy or shading. As
          > well,
          > each season your garden can be customized with a display of annuals. We
          > also
          > provide plants that will bring colour all year round. </p>
          > <p align="justify"> </p>
          > </blockquote></td>
          > </tr>
          > </table></td>
          > <td width="20"> </td>
          > </tr>
          > <tr>
          > <td width="312" height="0"></td>
          > <td width="624" height="0"></td>
          > <td width="20" height="0"> </td>
          > <td width="18" height="0"> </td>
          > <td width="5" height="0"> </td>
          > </tr>
          > </table>
          >
          > <?php
          >
          > include("footer.php");
          >
          > ?>
          >
          >

          • 2. Re: Design View - nothing Code View Everything
            EmpireLandscaping Level 1
            Header.php is the top of the webpage. It is the logo and tagline... it was just an easy way to keep them all in sync.
            • 3. Re: Design View - nothing Code View Everything
              Level 7
              Let's see the code in it, please.

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "EmpireLandscaping" <webforumsuser@macromedia.com> wrote in message
              news:g2uuc8$c79$1@forums.macromedia.com...
              > Header.php is the top of the webpage. It is the logo and tagline... it was
              > just an easy way to keep them all in sync.

              • 4. Re: Design View - nothing Code View Everything
                EmpireLandscaping Level 1
                <!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">
                <!-- DW6 -->
                <head>
                <title><?php echo $title ?></title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />

                <script language="JavaScript" type="text/javascript">
                //--------------- LOCALIZEABLE GLOBALS ---------------
                var d=new Date();
                var monthname=new Array("January","February","March","April","May","June","July","August","September","Octo ber","November","December");
                //Ensure correct for language. English is "January 1, 2004"
                var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
                //--------------- END LOCALIZEABLE ---------------
                </script>
                </head>
                <body>
                <table class="layout" cellspacing="0px" cellpadding="0px">
                <tr bgcolor="#D5EDB3">
                <td colspan="3" rowspan="2"><img src="WSDew_small.jpg" width="375" height="240" /></td>
                <td height="273" colspan="3" id="logo" valign="middle" align="center" nowrap="nowrap"><img src="../EmpireWebLogo2.png" width="619" height="221" /> </td>
                <td width="5"> </td>
                </tr>

                <tr bgcolor="#D5EDB3">
                <td height="22" colspan="3" align="center" valign="top" class="style2" id="tagline"><div align="center">Mother Nature's Helping Hands</div></td>
                <td width="5"> </td>
                </tr>

                <tr>
                <td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
                </tr>

                <tr>
                <td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
                </tr>

                <tr bgcolor="#99CC66">
                <td colspan="7" id="dateformat" height="20"> </td>
                </tr>
                <tr>
                <td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
                </tr>

                <tr>
                <td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
                </tr>
                <tr>
                <td width="167" valign="top" bgcolor="#5C743D">
                <table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
                <tr>
                <td width="165"> <br />
                 <br /></td>
                </tr>
                <tr>
                <td width="165"><a href="index.php" class="navText">Home</a></td>
                </tr>
                <tr>
                <td width="165"><a href="about.php" class="navText">About</a></td>
                </tr>
                <tr>
                <td width="165"><a href="services.php" class="navText">Services</a></td>
                </tr>
                <tr>
                <td width="165"><a href="faq.php" class="navText">FAQ</a></td>
                </tr>
                <tr>
                <td height="24"><span class="style1"><a href="gardening-tips.php">Gardening Tips</a></span></td>
                </tr>
                <tr>
                <td><a href="gallery.php">Gallery</a></td>
                </tr>
                <tr>
                <td width="165"><a href="contact-us.php" class="navText">Contact Us</a></td>
                </tr>
                </table>
                </td>
                <td colspan="6" valign="top" class="content-cell">
                • 5. Re: Design View - nothing Code View Everything
                  Level 7
                  There is your problem. If you want to continue working in DW, your include
                  files cannot contain <html>, <head>, or <body> tags.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "EmpireLandscaping" <webforumsuser@macromedia.com> wrote in message
                  news:g2v03f$dte$1@forums.macromedia.com...
                  > <!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">
                  > <!-- DW6 -->
                  > <head>
                  > <title><?php echo $title ?></title>
                  > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                  > <link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
                  >
                  > <script language="JavaScript" type="text/javascript">
                  > //--------------- LOCALIZEABLE GLOBALS ---------------
                  > var d=new Date();
                  > var monthname=new
                  > Array("January","February","March","April","May","June","July","August","Septemb
                  > er","October","November","December");
                  > //Ensure correct for language. English is "January 1, 2004"
                  > var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " +
                  > d.getFullYear();
                  > //--------------- END LOCALIZEABLE ---------------
                  > </script>
                  > </head>
                  > <body>
                  > <table class="layout" cellspacing="0px" cellpadding="0px">
                  > <tr bgcolor="#D5EDB3">
                  > <td colspan="3" rowspan="2"><img src="WSDew_small.jpg" width="375"
                  > height="240" /></td>
                  > <td height="273" colspan="3" id="logo" valign="middle" align="center"
                  > nowrap="nowrap"><img src="../EmpireWebLogo2.png" width="619" height="221"
                  > />
                  > </td>
                  > <td width="5"> </td>
                  > </tr>
                  >
                  > <tr bgcolor="#D5EDB3">
                  > <td height="22" colspan="3" align="center" valign="top" class="style2"
                  > id="tagline"><div align="center">Mother Nature's Helping Hands</div></td>
                  > <td width="5"> </td>
                  > </tr>
                  >
                  > <tr>
                  > <td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt=""
                  > width="1" height="2" border="0" /></td>
                  > </tr>
                  >
                  > <tr>
                  > <td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img
                  > src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0"
                  > /></td>
                  > </tr>
                  >
                  > <tr bgcolor="#99CC66">
                  > <td colspan="7" id="dateformat" height="20"> </td>
                  > </tr>
                  > <tr>
                  > <td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img
                  > src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0"
                  > /></td>
                  > </tr>
                  >
                  > <tr>
                  > <td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt=""
                  > width="1" height="2" border="0" /></td>
                  > </tr>
                  > <tr>
                  > <td width="167" valign="top" bgcolor="#5C743D">
                  > <table border="0" cellspacing="0" cellpadding="0" width="165"
                  > id="navigation">
                  > <tr>
                  > <td width="165"> <br />
                  >  <br /></td>
                  > </tr>
                  > <tr>
                  > <td width="165"><a href="index.php"
                  > class="navText">Home</a></td>
                  > </tr>
                  > <tr>
                  > <td width="165"><a href="about.php"
                  > class="navText">About</a></td>
                  > </tr>
                  > <tr>
                  > <td width="165"><a href="services.php"
                  > class="navText">Services</a></td>
                  > </tr>
                  > <tr>
                  > <td width="165"><a href="faq.php" class="navText">FAQ</a></td>
                  > </tr>
                  > <tr>
                  > <td height="24"><span class="style1"><a
                  > href="gardening-tips.php">Gardening Tips</a></span></td>
                  > </tr>
                  > <tr>
                  > <td><a href="gallery.php">Gallery</a></td>
                  > </tr>
                  > <tr>
                  > <td width="165"><a href="contact-us.php" class="navText">Contact
                  > Us</a></td>
                  > </tr>
                  > </table>
                  > </td>
                  > <td colspan="6" valign="top" class="content-cell">
                  >

                  • 6. Re: Design View - nothing Code View Everything
                    The information was usefull thank you