Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Html Pattio klausimai 2

Parašė Faitas.· 2011 Spa. 26 21:10:23
#21

Susikuri failą (index.php):

Tame faile:


<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf8" />
		<title>Title</title>
		<link rel="stylesheet" type="text/css" href="application/assets/css/styles.css" media="screen" />
	</head>
	<body>
 
		<div class='bodyDU'>
 
			<div class='header'>
 
			</div>
 
			<div class='content'>
 
			</div>
 
			<div class='footer'>
 
			</div>
 
		</div>
 
	</body>
</html>


Ir į content div'ą įterpi savo php kodą:


<?php
 
//Kodas
 
?>


Visas galutinis vaizdas:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8" />
<title>Title</title>
<link rel="stylesheet" type="text/css" href="application/assets/css/styles.css" media="screen" />
</head>
<body>

<div class='bodyDU'>

<div class='header'>

</div>

<div class='content'>


<?php
 
//Kodas
 
?>


</div>

<div class='footer'>

</div>

</div>

</body>
</html>