[ djovan01 @ 12.12.2006. 16:39 ] @
Nikada pre nisam radila sa include funkcijom i danas sam pokusala medjutim nije dalo rezultate kakve sam ocekivala. Nije mi jasno gde sam pogresila. Evo ovako izgleda ceo dokument koji funkcionise. Posle sam samo isekla i kopirala sve informacije od pocetka dokumenta do <body> tag-a i sacuvala kao header.php , sve ostalo sacuvala kao bladokument.php i posle u okviru main.php ispisala sledece: <html> <head> <title>Untitled Document</title> <?php include ("header.php"); ?> </head> <body> <?php include ("bladokument.php"); ?> </body> </html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-13" /> <title>Quote Request</title> <link rel="stylesheet" type="text/css" href="slashfiles/menu.css" /> <script type="text/javascript" src="slashfiles/menu.js"> </script> <style> .styleForTable { font-family: Verdana; font-size: 8.5pt; color: #0099CC; border: 1px solid #E0E0E0; border-collapse: collapse; } </style> </head> <body> <p align="left"> </p> <div class="sdmenu"> <span class="title" id="top"><img src="slashfiles/expanded.gif" class="arrow" alt="-" />Electrical</span> <div class="submenu"> <a> <form action="" method="post"> <table width="560" border="1" class="styleForTable"> <tr> <td width="189" class="styleForTable">Buss Manufacturer</td> <td width="355" class="styleForTable"><select name="select" woi"woi"> <option value="American">American</option> <option value="Bryant">Bryant</option> <option value="Challenger">Challenger</option> <option value="Crouse Hinds">Crouse Hinds</option> <option value="Cutler Hammer">Cutler Hammer</option> <option value="Federal Pacific">Federal Pacific</option> <option value="General Electric">General Electric</option> <option value="ITE Siemens">ITE Siemens</option> <option value="Murray">Murray</option> <option value="Square D">Square D</option> <option value="Sylvania">Sylvania</option> <option value="Thomas & Betts">Thomas & Betts</option> <option value="Wadsworth">Wadsworth</option> <option value="Westinghouse">Westinghouse</option> <option value="Zinsco">Zinsco</option> <option value="Select" selected="selected">Select</option> </select></td> </tr> <tr> <td class="styleForTable">Buss Voltage</td> <td class="styleForTable"><input type="text" name="textfield2" /></td> </tr> <tr> <td class="styleForTable">Buss Amperage</td> <td class="styleForTable"><input type="text" name="textfield3" /></td> </tr> <tr> <td class="styleForTable">Panel Board Manufacturer</td> <td class="styleForTable"><select name="select2" woi"woi""> <option value="American">American</option> <option value="Bryant">Bryant</option> <option value="Challenger">Challenger</option> <option value="Crouse Hinds">Crouse Hinds</option> <option value="Cutler Hammer">Cutler Hammer</option> <option value="Federal Pacific">Federal Pacific</option> <option value="General Electric">General Electric</option> <option value="ITE Siemens">ITE Siemens</option> <option value="Murray">Murray</option> <option value="Square D">Square D</option> <option value="Sylvania">Sylvania</option> <option value="Thomas & Betts">Thomas & Betts</option> <option value="Wadsworth">Wadsworth</option> <option value="Westinghouse">Westinghouse</option> <option value="Zinsco">Zinsco</option> <option value="Select" selected="selected">Select</option> </select></td> </tr> <tr> <td class="styleForTable">Panel Board Voltage</td> <td class="styleForTable"><input type="text" name="textfield102" /></td> </tr> <tr> <td class="styleForTable">Panel Board Amperage</td> <td class="styleForTable"><input type="text" name="textfield11" /></td> </tr> <tr> <td class="styleForTable">What is the full load amperage of the equipment? </td> <td class="styleForTable"><input type="text" name="textfield5" /></td> </tr> <tr> <td class="styleForTable">How far is the power source from the machine including up, over and down?</td> <td class="styleForTable"><input type="text" name="textfield6" /></td> </tr> </table> </form> </a> </div> <span class="title"><img src="slashfiles/expanded.gif" class="arrow" alt="-" />Rigging </span> <div class="submenu"> <a> <form action="" method="post"> <table width="560" border="1" class="styleForTable"> <tr> <td width="188" class="styleForTable">Machine Manufacturer</td> <td width="356" class="styleForTable"><input type="text" name="textfield7" /></td> </tr> <tr> <td class="styleForTable">Machine Serial Number</td> <td class="styleForTable"><input type="text" name="textfield72" /></td> </tr> <tr> <td class="styleForTable">Machine Weight</td> <td class="styleForTable"><input type="text" name="textfield73" /></td> </tr> <tr> <td class="styleForTable">Dimensions</td> <td class="styleForTable"><font color="#FFCC33"><strong>Height</strong></font> <input name="textfield9252322" type="text" size="5" /> <font color="#FFCC33"> <strong>Width</strong></font> <input name="textfield92523222" type="text" size="5" /> <strong> <font color="#FFCC33">Length</font></strong> <input name="textfield92523223" type="text" size="5" /></td> </tr> </table> </form> </a> </div> <span class="title"><img src="slashfiles/expanded.gif" class="arrow" alt="-" />Foundation</span> <div class="submenu"> <a> <form action="" method="post"> <table width="560" border="1" class="styleForTable"> <tr> <td width="182" class="styleForTable">Local soil conditions if known</td> <td width="362" class="styleForTable"><input type="text" name="textfield83" /></td> </tr> <tr> <td class="styleForTable">Size and Depth</td> <td class="styleForTable"><input type="text" name="textfield82" /></td> </tr> <tr> <td class="styleForTable">Cad Drawings/Print</td> <td class="styleForTable"><font color="#FFCC33"><strong>Yes </strong></font> <input type="checkbox" name="checkbox" value="checkbox" /> <strong> <font color="#FFCC33"> No</font></strong> <input type="checkbox" name="checkbox2" value="checkbox" /></td> </tr> <tr> <td class="styleForTable">Closest dimensions from wall of footing's</td> <td class="styleForTable"><input type="text" name="textfield8" /></td> </tr> </table> </form> </a> </div> <span class="title"><img src="slashfiles/expanded.gif" class="arrow" alt="-" />Piping</span> <div class="submenu"> <a> <form action="" method="post"> <table width="560" border="1" class="styleForTable"> <tr> <td width="210" class="styleForTable">Size of Piping</td> <td colspan="2" class="styleForTable"><input type="text" name="textfield92523242" /></td> </tr> <tr> <td class="styleForTable">Length of run</td> <td colspan="2" class="styleForTable"><input type="text" name="textfield92523243" /></td> </tr> <tr> <td class="styleForTable">Materials to be used</td> <td colspan="2" class="styleForTable"><input type="text" name="textfield92523244" /></td> </tr> <tr> <td class="styleForTable">What kind of substances are running through pipes? </td> <td colspan="2" class="styleForTable"><input type="text" name="textfield92523245" /></td> </tr> <tr> <td class="styleForTable">Are lifts required?<br /> <strong><font color="#FFCC33">Yes</font></strong> <input type="checkbox" name="checkbox3" value="checkbox" /> <strong> <font color="#FFCC33">No</font></strong> <input type="checkbox" name="checkbox4" value="checkbox" /></td> <td width="141" valign="top" class="styleForTable">If yes,what size?<br /> <br /> Lift Type: </td> <td width="187" valign="top" class="styleForTable"><div align="left"> <input type="text" name="textfield925232452" /> <br /> <font color="#FFCC33"><strong>Scissors</strong> <input type="checkbox" name="checkbox5" value="checkbox" /> <strong>Boom </strong></font> <input type="checkbox" name="checkbox52" value="checkbox" /> <font color="#FFCC33"> </font></div></td> </tr> </table> </form> </a> </div> </div> <p> </p> </body> </html> Gde gresim????? |