Web Programming Language/PHP

도서관 사이트

D4tai1 2018. 8. 21.

1. index.php

<html>
<head>
  <title>도서관에 오신 것을 환영합니다.</title>

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="css/style.css" />
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script type="text/javascript" src="js/jquery.easing.min.js"></script>
  <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
  <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
  </script>

</head>

<body id="middle">
  <div id="main">

 <div id="menubar">
   <iframe name="main" id="iframe_main" frameborder=0 seamless src="main_top.php" allowtransparency="true"></iframe>
    </div><!--close menubar--> 
    <br><br><font size=1> <br></font>
 <div id="site_content">  
 <?
 if (1==$_REQUEST['tap']) {
 ?>
 <iframe name="middle" id="iframe_sub" frameborder=0 seamless src="sub_intro.html" allowtransparency="true"></iframe>
 <? }
 else if (2==$_REQUEST['tap']) {
 ?>
 <iframe name="middle" id="iframe_sub" frameborder=0 seamless src="booklist.php" allowtransparency="true"></iframe>
 <? }
 else if (3==$_REQUEST['tap']) {
 ?>
 <iframe name="middle" id="iframe_sub" frameborder=0 seamless src="list.php" allowtransparency="true"></iframe>
 <? }
 else if (4==$_REQUEST['tap']) {
 ?>
 <iframe name="middle" id="iframe_sub" frameborder=0 seamless src="sub_mylibrary.html" allowtransparency="true"></iframe>
 <? }
 else {
 ?>
 <iframe name="middle" id="iframe_sub" frameborder=0 seamless src="error.html" allowtransparency="true"></iframe>
 
 <? }

?> 

 </div><!--close site_content-->
 
  </div><!--close main-->
 
  <div id="footer">
  <iframe id="iframe_sub" frameborder=0 seamless src="music.html" allowtransparency="true"></iframe>
  </div><!--close footer--> 
 
</body>
</html>

 

 

'Web Programming Language > PHP' 카테고리의 다른 글

PHP 기본상식  (0) 2018.08.21
jquery[basic]  (0) 2018.08.21
class  (0) 2018.08.21
fopen, fput, fclose, fgets  (0) 2018.08.21
call by value, reference  (0) 2018.08.21

댓글