السلام عليكم و رحمة الله
لا اعتقد انه يوجد اى مشكله فى تصميم صفحة HTML و ادراج كود PHP بداخلها و لكن بشرط تغير امتداد الصفحه الىPHP. مثلآ YOURPAGE.PHP
مثال لصفحه HTML :
كود HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font : 12pt Verdana, Arial, Helvetica, sans-serif;
color : #0066cc;
}
a:link {
color : #0066cc;
font-weight : bold;
text-decoration : none;
}
a:visited {
color : #0066cc;
font-weight : bold;
text-decoration : none;
}
a:hover {
color : #ff7c21;
text-decoration : underline;
}
table.c1 {width: 100%; border-style:solid; border-color:#82c0ff; border-collapse: collapse; text-align: right;}
</style>
</head>
<body>
<p>محتوى صفحتك من جداول و قوائم و غيره </p>
<table summary="index" border="1" cellpadding="0" cellspacing="5" class="c1" width="100%" = dir="rtl">
<tr>
<td width="100%" align="center" valign="middle">
<?php
if (isset($s)==0) {
$s="main";
}
if ($s == "main") {
echo "<table width=\"0%table height=\00%border=\"0\" align=\"center\">";
$url = "http://www.aljazeera.net/NR/exeres/4E190DB9-1C92-43A3-A209-8E5DE79CC343.htm";
$string = implode("\n", file($url));
$site= "http://www.aljazeera.net";
$string2 = explode('<!-- BreakingNews End -->', $string);
$string3 = explode('<!-- Body End -->', $string2[1]);
$news = str_replace('href="','style="text-decoration: none" href="index.php?s=dtgez&t=',$string3[0]);
$news = str_replace('src="','SRC="'.$site,$news);
echo "$news";
echo "</table>";
} elseif ($s == "dtgez") {
echo "<table width=\"100%\" border=\"0\" align=\"center\">"; // echo "</table>";
$site= "http://www.aljazeera.net";
$url = "http://www.aljazeera.net".$t;
$string = implode("\n", file($url));
$string2 = explode('<!-- PageServices End -->', $string);
$string3 = explode('<td class="tdSourceAgency" noWrap width="10%"><span id="ReadOnlyMetadataPlaceholder5"><span>C?????E </span></span></td>', $string2[1]);
$news = str_replace('src="','src="'.$site,$string3[0]);
//ews = str_replace('<FONT face="MS Sans Serif">','',$news);
//ews = str_replace('</FONT>','',$news);
//ews = str_replace('class=title','align=center style="font-size: 10pt; font-weight: bold"',$news);
echo "$news";
echo "</table>";
}
?>
</td>
</tr>
</table>
</body>
</html>