[Feed-collector-svn] SF.net SVN: feed-collector: [105] trunk
Status: Beta
Brought to you by:
c167
|
From: <C1...@us...> - 2007-02-25 17:01:17
|
Revision: 105
http://feed-collector.svn.sourceforge.net/feed-collector/?rev=105&view=rev
Author: C167
Date: 2007-02-25 09:01:16 -0800 (Sun, 25 Feb 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/inc/database.php
trunk/page_personal.php
trunk/styles/default/page_personal.tpl
Added Paths:
-----------
trunk/ajax/
trunk/ajax/page_personal.js
Added: trunk/ajax/page_personal.js
===================================================================
--- trunk/ajax/page_personal.js (rev 0)
+++ trunk/ajax/page_personal.js 2007-02-25 17:01:16 UTC (rev 105)
@@ -0,0 +1,56 @@
+
+var news_feeds = new Array();
+
+function detectFeeds() {
+ var feed_class_name = "news_feed";
+ var name = document.getElementsByClassName(feed_class_name);
+ //alert(name);
+ for(var i = 0; i < name.length; i++) {
+ var reg = Ajax.Request();
+ }
+}
+
+
+/*
+var hover=false;
+var c=1;
+var delta=1;
+var s2='m3d14.73rr0r15m';
+var interval = window.setInterval("rndStr()",100);
+
+function setHover(x) {
+ hover=x;
+}
+
+function rndStr() {
+ var s="";
+ var s1="";
+ var n=0;
+ var d=0;
+
+ for(n=0; n<=15; n++) {
+ if(n==5)
+ s1=s1+".";
+ else
+ s1 = s1 + String.fromCharCode(Math.floor(48+Math.random()*74));
+ }
+
+ if(hover) {
+ c=c+1;
+ d=Math.abs(Math.floor(c/4));
+ if(c==60) c=c-1;
+ // c=c % 60;
+ document.getElementById('caption').style.color="rgb(" + Math.floor(Math.random()*255) + "," + Math.floor(Math.random()*255) + "," + Math.floor(Math.random()*255) + ")";
+ } else {
+ c=(c-1);
+ d=Math.abs(Math.floor(c/4));
+ if(c==0) c=c+1;
+ document.getElementById('caption').style.color="rgb(255,255,255)";
+ }
+
+ s=s2.substr(0,d)+s1.substr(d,15-d);
+
+ document.getElementById('caption').firstChild.data =s;
+ document.getElementById('caption').attributes['href'].nodeValue= (s==s2) ? "blog/" : "/";
+}
+*/
\ No newline at end of file
Modified: trunk/inc/database.php
===================================================================
--- trunk/inc/database.php 2007-01-18 18:23:45 UTC (rev 104)
+++ trunk/inc/database.php 2007-02-25 17:01:16 UTC (rev 105)
@@ -28,4 +28,17 @@
} else {
}
$db->setFetchMode(MDB2_FETCHMODE_ASSOC);
+
+/*
+ * Now we get the configuration from the database
+ */
+$database_config = $db->query("SELECT * FROM config;");
+if(PEAR :: isError($database_config)) {
+
+} else {
+ $data = $database_config->fetchRow();
+ if(!empty($data[''])) {
+
+ }
+}
?>
Modified: trunk/page_personal.php
===================================================================
--- trunk/page_personal.php 2007-01-18 18:23:45 UTC (rev 104)
+++ trunk/page_personal.php 2007-02-25 17:01:16 UTC (rev 105)
@@ -125,7 +125,7 @@
function createColumn($column, $number, $feed) {
$return = " <div class=\"column$number\">\n";
foreach ($column as $col) {
- $return .= " <div id=\"$col\">\n";
+ $return .= " <div class=\"news_feed\" id=\"$col\" >\n";
$feed_info = $feed->getFeedInfo($col);
$return .= sprintf(" <div class=\"feed_headline\">\n <a href=\"%s\">%s</a>\n </div>\n <ul>\n", $feed_info['site_url'], $feed_info['feed_name']);
$items = $feed->getNewestItems($col, 10);
Modified: trunk/styles/default/page_personal.tpl
===================================================================
--- trunk/styles/default/page_personal.tpl 2007-01-18 18:23:45 UTC (rev 104)
+++ trunk/styles/default/page_personal.tpl 2007-02-25 17:01:16 UTC (rev 105)
@@ -13,10 +13,15 @@
<link rel="stylesheet" type="text/css" href="./styles/default/main_copy-screen.css" media="screen, tv, projection" title="Default" />
<link rel="stylesheet" type="text/css" href="./styles/default/footer-screen.css" media="screen, tv, projection" title="Default" />
+ <script language="JavaScript" type="text/javascript" src="./ajax/init.js" />
+ <script language="JavaScript" type="text/javascript" src="./ajax/page_personal.js" />
+
+ <script language="JavaScript" type="text/javascript" src="./ajax/prototype.js" />
+
<title><!-- title --></title>
</head>
- <body>
+ <body onload="init()">
<!-- For non-visual user agents: -->
<div id="top"><a href="#main-copy" class="doNotDisplay doNotPrint">Skip to main content.</a></div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|