basic functionality pass 8
This commit is contained in:
parent
007bda3585
commit
71ad39598b
5 changed files with 56 additions and 15 deletions
|
@ -32,10 +32,15 @@
|
||||||
if (!$entry_timestamp) $entry_timestamp = $item["updated"];
|
if (!$entry_timestamp) $entry_timestamp = $item["updated"];
|
||||||
|
|
||||||
$entry_timestamp = strtotime($entry_timestamp);
|
$entry_timestamp = strtotime($entry_timestamp);
|
||||||
|
|
||||||
|
if (!$entry_timestamp) continue;
|
||||||
|
|
||||||
$entry_title = $item["title"];
|
$entry_title = $item["title"];
|
||||||
$entry_link = $item["link"];
|
$entry_link = $item["link"];
|
||||||
|
|
||||||
|
if (!$entry_title) continue;
|
||||||
|
if (!$entry_link) continue;
|
||||||
|
|
||||||
$entry_content = $item["description"];
|
$entry_content = $item["description"];
|
||||||
if (!$entry_content) $entry_content = $item["content"];
|
if (!$entry_content) $entry_content = $item["content"];
|
||||||
|
|
||||||
|
|
12
prefs.js
12
prefs.js
|
@ -77,6 +77,18 @@ function toggleSelectRow(sender) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addFeed() {
|
||||||
|
|
||||||
|
var link = document.getElementById("fadd_link").value;
|
||||||
|
var title = document.getElementById("fadd_title").value;
|
||||||
|
|
||||||
|
if (link.length == 0 || title.length == 0) {
|
||||||
|
notify("Error: all fields must be filled in.");
|
||||||
|
} else {
|
||||||
|
notify("addFeed : " + link + ", " + title);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|
||||||
|
|
27
prefs.php
27
prefs.php
|
@ -10,35 +10,46 @@
|
||||||
|
|
||||||
<table width="100%" height="100%" cellspacing=0 cellpadding=0 class="main">
|
<table width="100%" height="100%" cellspacing=0 cellpadding=0 class="main">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="header" valign="middle" colspan="1">
|
<td class="header" valign="middle" colspan="2">
|
||||||
Preferences
|
Preferences
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="toolbar" valign="middle" colspan="1">
|
<td class="toolbar" valign="middle">
|
||||||
<a class="button">Close</a>
|
<div id="notify"> </div>
|
||||||
|
</td>
|
||||||
|
<td class="toolbar" valign="middle" colspan="2" align="right">
|
||||||
|
<a href="tt-rss.php" class="button">Return to main</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
<td class="content" id="content" valign="top">
|
<td class="content" id="content" valign="top" colspan="2">
|
||||||
<h2>Feed Configuration</h2>
|
<h2>Feed Configuration</h2>
|
||||||
|
|
||||||
<table class="prefAddFeed">
|
<!-- <input type="submit" value="Add feed"> -->
|
||||||
|
|
||||||
|
<!-- <table class="prefAddFeed">
|
||||||
<tr><td>Title:</td><td><input id="fadd_title"></td></tr>
|
<tr><td>Title:</td><td><input id="fadd_title"></td></tr>
|
||||||
<tr><td>Link:</td><td><input id="fadd_link"></td></tr>
|
<tr><td>Link:</td><td><input id="fadd_link"></td></tr>
|
||||||
<tr><td colspan="2" align="right">
|
<tr><td colspan="2" align="right">
|
||||||
<a class="button" href="javascript:addFeed()">Add feed</a></td></tr>
|
<a class="button" href="javascript:addFeed()">Add feed</a></td></tr>
|
||||||
|
</table> -->
|
||||||
|
|
||||||
|
<table class="prefAddFeed">
|
||||||
|
<tr><td>Title:</td><td><input id="fadd_title"></td>
|
||||||
|
<td>Link:</td><td><input id="fadd_link"></td></tr>
|
||||||
|
<tr><td colspan="4" align="right">
|
||||||
|
<a class="button" href="javascript:addFeed()">Add feed</a></td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- <input type="submit" value="Add feed"> -->
|
|
||||||
|
|
||||||
<div id="feeds"> </div>
|
<div id="feeds"> </div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" id="notify" class="notify">
|
<td colspan="2" class="notify">
|
||||||
<a href="">Tiny-Tiny RSS</a> v0.1 © 2005 Andrew Dolgov
|
<a href="">Tiny-Tiny RSS</a> v0.1 © 2005 Andrew Dolgov
|
||||||
</td>
|
</td>
|
||||||
</td>
|
</td>
|
||||||
|
|
21
tt-rss.css
21
tt-rss.css
|
@ -103,13 +103,24 @@ table.main td.toolbar {
|
||||||
/* background-image : url("shadow_top.png");
|
/* background-image : url("shadow_top.png");
|
||||||
background-position : bottom left;
|
background-position : bottom left;
|
||||||
background-repeat : repeat-x; */
|
background-repeat : repeat-x; */
|
||||||
padding-right : 5px;
|
padding-right : 10px;
|
||||||
|
padding-left : 10px;
|
||||||
font-size : small;
|
font-size : small;
|
||||||
text-align : right;
|
}
|
||||||
|
|
||||||
|
#notify {
|
||||||
|
font-weight : bold;
|
||||||
|
border : 1px solid #c0c0c0;
|
||||||
|
font-size : small;
|
||||||
|
display : block;
|
||||||
|
background : white;
|
||||||
|
-moz-border-radius : 5px;
|
||||||
|
padding : 3px 10px 3px 10px;
|
||||||
|
width : 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.main td.header {
|
table.main td.header {
|
||||||
font-size : 18pt;
|
font-size : 21pt;
|
||||||
background-color : #f0f0f0;
|
background-color : #f0f0f0;
|
||||||
background-image : url("header.png");
|
background-image : url("header.png");
|
||||||
background-position : top left;
|
background-position : top left;
|
||||||
|
@ -118,6 +129,7 @@ table.main td.header {
|
||||||
padding-left : 80px;
|
padding-left : 80px;
|
||||||
padding-top : 30px;
|
padding-top : 30px;
|
||||||
font-weight : bold;
|
font-weight : bold;
|
||||||
|
color : black;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.main td.feeds {
|
table.main td.feeds {
|
||||||
|
@ -150,9 +162,10 @@ td.content a {
|
||||||
text-decoration : none;
|
text-decoration : none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
td.content a:hover {
|
td.content a:hover {
|
||||||
text-decoration : underline;
|
text-decoration : underline;
|
||||||
}
|
} */
|
||||||
|
|
||||||
table.main td.notify {
|
table.main td.notify {
|
||||||
height : 40px;
|
height : 40px;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
Search: <input name="q" onclick=\"javascript:search(this);\">
|
Search: <input name="q" onclick=\"javascript:search(this);\">
|
||||||
</td> -->
|
</td> -->
|
||||||
<td class="toolbar" valign="middle" colspan="2">
|
<td class="toolbar" valign="middle" colspan="2">
|
||||||
<a class="button">Preferences</a>
|
<a href="prefs.php" class="button">Preferences</a>
|
||||||
<!-- <a class="button" href="javascript:refresh()">Refresh</a> -->
|
<!-- <a class="button" href="javascript:refresh()">Refresh</a> -->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue