PHP开发简单图书后台管理系统内容页

本页面是把前面的left页面,right页面,通过代码整合,组合成完整的名称为ly_center.php文件

前面章节的left页面设置名称为ly_left.php文件

right页面名称为ly_right.php文件

ly_center.php文件代码:

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>PHP图书管理系统内容页</title>
  <style type="text/css">
    <!--
    body {
      overflow:hidden;
    }
    -->
  </style>
</head>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8" bgcolor="#353c44">&nbsp;</td>
    <td width="147" valign="top">
      <iframe height="100%" width="100%" border="0" frameborder="0" src="ly_left.php" name="leftFrame" id="leftFrame" title="leftFrame">
      </iframe>
    </td>
    <td width="10" bgcolor="#add2da">&nbsp;</td>
    <td valign="top">
      <iframe height="100%" width="100%" border="0" frameborder="0" src="ly_right.php" name="rightFrame" id="rightFrame" title="rightFrame">
      </iframe>
    </td>
    <td width="8" bgcolor="#353c44">&nbsp;</td>
  </tr>
</table>
</body>
</html>

使用<iframe>标签,iframe 元素会创建包含另外一个文档的内联框架(即行内框架)。

通过<iframe>把不同的几个页面联系起来,在同一个页面展示。


前面我们设置了top页面,命名为ly_top.php,

通过在HTML代码中使用include_once引入ly_top.php文件和ly_center.php文件。

组合成登录后跳转的管理主页面。

管理中心页面命名为:admin_index.php文件。

<!DOCTYPE html>
<html>
<head>
<title>管理中心</title>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body style="margin: 0; padding: 0;">
    <div>
       <?php include_once("ly_top.php");?>
   </div>
   <div style="height: 500px;">
      <?php include_once("ly_center.php");?>
   </div>
</body>
</html>

include_once 语句在脚本执行期间包含并运行指定文件。此行为和 include 语句类似,唯一区别是如果该文件中已经被包含过,则不会再次包含。如同此语句名字暗示的那样,只会包含一次。

继续学习
||
<!DOCTYPE html> <html> <head> <title>管理中心</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> </head> <body style="margin: 0; padding: 0;"> <div> <?php include_once("ly_top.php");?> </div> <div style="height: 500px;"> <?php include_once("ly_center.php");?> </div> </body> </html>
提交重置代码
章节
笔记
提问
课件
反馈
捐赠

PHP开发之简单图书后台管理系统教程