• An Online Web Application For News Around The School

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

    Page 2 of 8

    Previous   1 2 3 4 5 6    Next
    • }
      mysql_close($con);
      ?><a href="sport.php">View All</a>
      </div>
      </div>
      </div>
      <div class="rcol_sectionwithborder" style="height:auto;">
      <div id="blog_section" style="overflow:hidden;">
      <h2>ENTERTAINMENT NEWS</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 `entertainment` ORDER BY
      `entertainment`.`id` DESC LIMIT 5"); while($row = mysql_fetch_array($result))
      {
      echo "<h3><li type='square'><a href='vent.php?id=".$row['id']."' style='text- decoration:none;'>" .$row['title']."</a></li></h3>";
      }
      mysql_close($con);
      ?>
      </div>
      <div class="more_button"><a href="entertainment.php">View All</a></div>
      </div>
      </div>
      </div>
      <?php include('footer.php')?>
      </body>
      </html>



      2).    Source code for User’s login page
       

      <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>
      <script type="text/javascript"> function alt(){
      var y= document.myform;
      window.alert("Please LOG IN to read the complete news"); y.uname.focus();
      return false;
      }
      </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');?><br><br>
       
      </div>
       

      </div>
      <!-- end of top panel -->
       
      <div id="content" style="margin-top:3%;">
      <div id="gallery_section1" style="margin-left:2%; height:auto; width:auto; color: #093;">
      <div class="leftcol_subcol">
      <div class="regular_section1" >
      <h2 align="center"> Daily News</h2>
      <div class="newsbox1"><marquee direction="up" scrollamount="1" scrolldelay="1">
      <?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='#' onclick='alt();' style='text- decoration:none;'>" .$row['title']."</a></h3>"."</li></ul>";
      }
      mysql_close($con);
      ?></marquee>
      </div></div></div>
      <div id="gallery_section1" class="leftcol_subcol" style="margin-left:2%; margin- top:6%; height:auto; width:310; color: #093;">
      <table width="310" border="0" cellpadding="5" cellspacing="5" style="font- size:12px; border-collapse:collapse; border-color:#093;">
      <form name="myform" method="post" action="login.php">
      <tr>
      <td align="right">USER NAME: <td align="left"><input type="text" name="uname" size="20" maxlength="32" placeholder="Enter your username" style="text-align:center;"></tr>
      <tr>
      <td align="right">PASSWORD:<td align="left"><input type="password" placeholder="Enter your password" name="password" size="20" maxlength="32" style="text-align:center;"></tr>
      <tr><td rowspan="3" align="right"><td align="left"><input type="submit" value="LOG IN" name="logbtn" style="background-color:#093; color:#FFF; font- family:Mistral; font-size:17px; border:thin 1px #093; border-radius:15% 15% 15% 15%;">&nbsp;&nbsp;&nbsp;<a href="reg.php" style="background-color:#093; color:#FFF; font-family:Mistral; font-size:18px; border-radius:15% 15% 15% 15%;
      border:outset 1px #093; margin-bottom:2%; height:2%; box-shadow:10% 0% 10% 0%;">&nbsp;REGISTER&nbsp;</a></tr>
      </form>
      </table>
       

      <?php if(isset($_POST['logbtn']))
      {
      $con= mysql_connect("localhost","root",""); if(!$con){
      echo "failed to connect";} mysql_select_db("news", $con);
      $n=$_POST['uname'];
      $p=$_POST['password'];
      $result= mysql_query("SELECT * FROM `studreg` WHERE `uname`='$n' AND password='$p'");
      if(mysql_num_rows($result)==0)
      {
      echo "invalid USERNAME and PASSWORD";
      }
      else{
      while($r=mysql_fetch_assoc($result))
      {
      session_start('login'); ob_start();
      $_SESSION['login']=true;
      $_SESSION['fname'] = $r['fname'];
      $_SESSION['lname'] = $r['lname'];
      $_SESSION['id'] = $r['id'];
      }
      header( "location:index.php");
      }
      }
      ?>
      <br></div>
      <div id="main_rightcol4">
      <h2>Sports News</h2>
      <div class="blog_box"><marquee
      direction="up" scrollamount="1" scrolldelay="1">
      <?php
      $con = mysql_connect("localhost","root",""); if (!$con)
      {

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

    Page 2 of 8

    Previous   1 2 3 4 5 6    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---