• An Online Web Application For News Around The School

  • APPENDIX C -- [Total Page(s) 8]

    Page 1 of 8

    1 2 3 4 5    Next
    • Appendix C SOURCE CODE VIEW
      1)    Source code for user’s index page
      <?php session_start(); ob_start();
      if(!isset($_SESSION['login']))
      {
      header("location:login.php");
      }
      ?>
      <html>
      <head>
      <link rel="icon" href="images/dept.png" type="image/x-icon">
      <title>Online News Portal</title>
      <link href="style.css" rel="stylesheet" type="text/css" />
      <link rel="stylesheet" type="text/css" href="content.css" />
      <script type="text/javascript" src="content.js">
      </script>
      </head>
      <body>
      <div id="container">
      <div id="top_panel">
      <div id="sitetitle1">
      <img src="images/dept.png" width="100" height="80"></div>
      <div id="sitetitle">ONLINE NEWS PORTAL</div>
      <div id="currentdate"><br><br>
      <?php include('dandt.php');?>
      </div>
      </div>
      <!-- end of top panel -->
      <?php include('headerlink.php')?>
      <div id="content" style="margin-left:1%; margin-right:1%;"><br>
      <font color="#009933" style="font-family:mistral; font-size:16px; float:left;">
      <?php
      $con = mysql_connect("localhost","root",""); if (!$con)
       

      {
      die('Could not connect: ' . mysql_error());
      }
      mysql_select_db("news", $con);
      $result = mysql_query("SELECT * FROM `studreg` where id = ".
      $_SESSION['id']."");
      while($row = mysql_fetch_array($result))
      {
      echo "WELCOME &nbsp;<font><b><a rel='facebox' style='font-family: Times New Roman, Times, serif; font-size: 16px; color:#F00; text-transform:uppercase;' href='viewuser.php?id=".$row['id']."'>".$_SESSION['fname'].'&nbsp;'.
      $_SESSION['lname']."</a></b></font>";
      }
      ?></font></div>
      <div id="main_leftcol">
      <div class="leftcol_subcol">
      <div id="topnews">
      <style>
      .fadein {
      position:relative; height:280px; width:270px; margin:0 auto; background:left top transparent;
      padding: 10px;
      }
      .fadein img { position:absolute; left:10px; top:10px; }
      </style>
      <script src="jquery.min.js"></script>
      <script>
      $(function(){
      $('.fadein img:gt(0)').hide(); setInterval(function(){$('.fadein :first-
      child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 1000);
      });
      </script>
      <div class="fadein">
      <a href="#"><?php
      $con = mysql_connect("localhost","root",""); mysql_select_db("news", $con);
       

      $result = mysql_query("SELECT * FROM `daily` ORDER BY `daily`.`id` DESC LIMIT 6");
      while($row = mysql_fetch_array($result))
      {
      echo "<a href='news.php'>" . "<img src='admin/upload/".$row['img']."'width='270px' height='280px'>"."</a>";}
      mysql_close($con);
      ?></a>
      </div>
      </div>
      <div id="gallery_section">
      <h2>Today's Images</h2>
      <div id="image_section">
      <?php
      $con = mysql_connect("localhost","root",""); if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
      mysql_select_db("news", $con);
      $result = mysql_query("SELECT * FROM daily ORDER BY `daily`.`id` DESC LIMIT 6");
      while($row = mysql_fetch_array($result))
      {
      echo "<a href='vdaily.php?id=".$row['id']."'>" . "<img src='admin/upload/".
      $row['img']."'width='80px' height='65px' style='opacity:40;filter:alpha(opacity=0.4)' onmouseout='this.style.opacity=1;this.filters.alpha.opacity=100' onmouseover='this.style.opacity=0.4;this.filters.alpha.opacity=40' >"."</a>";
      }
      mysql_close($con);
      ?>
      </div>
      </div>
      </div><!-- end of left column -->
      <div class="leftcol_subcol">
       

      <h2> Education News</h2>
       
      <div class="regular_section1" >

      <div class="newsbox1">
       

      <?php
      $con = mysql_connect("localhost","root",""); if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
      mysql_select_db("news", $con);
      $result = mysql_query("SELECT * FROM `daily` ORDER BY `daily`.`id` DESC LIMIT 10");
      while($row = mysql_fetch_array($result))
      {
      echo "<ul type='square'><li>"."<h3><a href='vdaily.php?id=".$row['id']."' style='text-decoration:none;'>" .$row['title']."</a></h3>"."</li></ul>";
      }
      mysql_close($con);
      ?>
      <a href="news.php">&nbsp;&nbsp;View All</a></div>
      </div>
      </div>
      </div><!-- end of left column -->
      <div id="main_rightcol">
      <div class="rcol_sectionwithborder">
      <div id="blog_section" style="overflow:hidden;">
      <h2>Sports</h2>
      <div class="blog_box">
      <?php
      $con = mysql_connect("localhost","root",""); if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
      mysql_select_db("news", $con);
      $result = mysql_query("SELECT * FROM `sport` ORDER BY `sport`.`id` DESC LIMIT 4");
      while($row = mysql_fetch_array($result))
      {
      echo "<h3><li type='square'><a href='vsport.php?id=".$row['id']."' style='text- decoration:none;'>" .$row['title']."</a></li></h3>";
       


  • APPENDIX C -- [Total Page(s) 8]

    Page 1 of 8

    1 2 3 4 5    Next
    • ABSRACT - [ Total Page(s): 1 ]Abstract coming soon for this material ... Continue reading---

         

      APPENDIX A - [ Total Page(s): 1 ]Appendix ADEFINITION OF TERMSComputer: An electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.Processing: To deal with or carry out a task according to an established Procedure. Information system: It is a collection of procedures, people, Instructions and equipment to produce information in a useful form.Database: a systematically arranged collection of data, designed so that it can be automatically retrieved o ... Continue reading---

         

      APPENDIX B - [ Total Page(s): 4 ]Appendix B ... Continue reading---

         

      CHAPTER ONE - [ Total Page(s): 2 ]CHAPTER ONEGENERAL INTRODUCTION1.0    IntroductionThe term online in regards to computer technology and communication means that the computer is connected to a network. In a network, computers are allowed to share resources such as hardware, software, data and information. The access to the resources on the network is controlled by a server. (Shelly, Cashman, Vermaat, 2006). The term online system refers to a computer system which allows online users to transmit and receive information (Publi ... Continue reading---

         

      CHAPTER TWO - [ Total Page(s): 2 ]2.3    DatabaseIn the early days of computerization, it was normal to maintain specific files for individual applications. Data were processes centrally in batches and there was little or no online interrogation of data. This approach is wholly inefficient for most of today’s data processing systems. Supporting this, Vossen (1991) enumerated the problems that result from organizing data using the file system:a)        There exists a high redundancy between files, which result fro ... Continue reading---

         

      CHAPTER THREE - [ Total Page(s): 2 ]CHAPTER THREERESEARCH METHODOLOGY AND SYSTEM ANALYSIS3.0    IntroductionResearch methodology is a systematic way to solve the research problem, rather than haphazardly using a collection of methods to perform research. Research methods, on the other hand, refer to the methods and techniques used by the researcher in performing the research such as data collection techniques, data processing techniques and instruments. Kothari (1985). This chapter contains the methodologies in the research app ... Continue reading---

         

      CHAPTER FOUR - [ Total Page(s): 6 ]CHAPTER FOURSYSTEM DESIGN AND IMPLEMENTATION4.0    INTRODUCTIONThe main objective of this design is to implement a Web Based News Portal. At the end of this design, an on-line site that is capable of running on a local server will be realized.   In addition to this, a full database driven site with good user interface will be achieved.4.1    Input and Output SpecificationInput SpecificationAll input used on this system were rendered to suit the inputs of both stand-alone Pc and distribut ... Continue reading---

         

      CHAPTER FIVE - [ Total Page(s): 1 ]CHAPTER FIVESUMMARY, CONCLUSION AND RECOMMENDATIONS5.0    SUMMARYAt the end of the study I have been able to achieve the following at the completion of this work•        To replace the error prone manual system with the new computerized online news portal.•    Data can now be processed with great speed and efficiency•    Security of data is ensured.5.1    CONCLUSIONThe online system has become a requirement to every organization nowadays and the use of the Inf ... Continue reading---

         

      REFRENCES - [ Total Page(s): 1 ]REFERENCESBill Karow, Chuck White, Steven M. Schafer Bryan Pfaffenberger, HTML, and CSS Bible. New York: Wiley 2004 Donatus Chimezie Dennis Oguuamanam, Machine Vision Tool Monitoring System for Automated Manufacturing, Publisher: Ottaawa: National Library of Canada, 1990-1991.Elwood F, Hotton II, James W, Trott Jr, (1996). Trends Towards a Closer Integration of Vocational Education and Human Resource Development. New York, ACM Press, pp 99-107. HP William Hewlett David Packard. Press release on ... Continue reading---