Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
- <link href="style_feeds.css" rel="stylesheet" type="text/css" media="screen" />
- <script src="jquery.js"></script>
- <script>
- $(function(){
- $("#fussbereich").hide().show(1000);
- $("#statusbereich").show().fadeToggle(5000);
- });
- </script>
- <?php
- include 'db_connect.php';
- include 'support_functions.php';
- include 'rss_class.php'
- ?>
- <body id="startseite">
- <div id="wrapper">
- <div id="kopfbereich">
- </div> <!-- Ende kopfbereich -->
- <div id="navibereich">
- <h3>RSS Feed Collector Version 0.1</h3>
- <?php
- if(isset($_POST['checkbox'])){
- $count = sizeof($_POST['checkbox']);
- echo "Anzahl gewählter Feeds: ".$count. "<br />";
- }
- ?>
- </div> <!-- Ende navibereich -->
- <div id="statusbereich">
- <p><b><center>#### Überblick gewählte Feeds ####</center></b></p>
- </div> <!-- Ende textbereich -->
- <div id="fussbereich">
- <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
- <input type="submit" name="save" value="Feeds speichern">
- <?php
- // $rss_title = array();
- // $rss_url = array();
- // $rss_summary = array();
- $row = array();
- $hash = array();
- $hashArray = new feedSupport();
- if(isset($_POST['selected'])){
- foreach ($_POST['checkbox'] as $news){
- $sql_output = selectFeedByID($conn, $news);
- while($row_output = $sql_output->fetch_assoc()){
- $row[] = $row_output;
- echo '<div id="feed"><div id="titel">';
- $rss_title[] = $row_output["title"];
- echo "<u>Titel:</u><b> " .$row_output["title"]. "</b><br />";
- echo '</div>';
- $url = $row_output["url"];
- $rss_url = $url;
- echo "<u>URL:</u> <a target='_blank' href=" .$url. "><b>".$url."</b></a><br /><br />";
- echo '<div id="summary">';
- $rss_summary = $row_output["summary"];
- echo "<u>Zusammenfassung:</u> <br>" .$row_output["summary"]. "<br />";
- echo '</div></div>';
- // echo 'rss_title: ' .$rss_title. '<br />';
- // echo 'rss_url: ' .$rss_url. '<br />';
- // echo 'rss_summary: ' .$rss_summary. '<br />';
- // array_push($hash, $row_output["hashvalue"]);
- // $hashArray->appendHash($hash);
- }
- }
- }
- var_dump($row);
- if(isset($_POST['save'])){
- echo 'test';
- foreach ($row as $key) {
- // $test = print_r(array_values($key));
- $test = $key['hashvalue'];
- echo 'Hash: ' .$test. '<br />';
- }
- }
- $conn->close();
- ?>
- </form>
- </div> <!-- Ende fussbereich -->
- </div> <!-- Ende wrapper -->
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement