graycube fixes; code cleanup
This commit is contained in:
parent
e7dfc9c989
commit
23c2a4e7ae
21
backend.php
21
backend.php
|
@ -1441,9 +1441,14 @@
|
|||
$feed_search = $_SESSION["prefs_feed_search"];
|
||||
}
|
||||
|
||||
print "<table width='100%' class=\"prefGenericAddBox\"
|
||||
cellspacing='0' cellpadding='0'><tr>
|
||||
<td>
|
||||
print "<div class=\"feedEditSearch\">
|
||||
<input id=\"feed_search\" size=\"20\"
|
||||
onchange=\"javascript:updateFeedList()\" value=\"$feed_search\">
|
||||
<input type=\"submit\" class=\"button\"
|
||||
onclick=\"javascript:updateFeedList()\" value=\"Search\">
|
||||
</div>";
|
||||
|
||||
print "<div class=\"prefGenericAddBox\">
|
||||
<input id=\"fadd_link\"
|
||||
onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
||||
size=\"40\">
|
||||
|
@ -1456,13 +1461,7 @@
|
|||
onclick=\"javascript:browseFeeds()\" value=\"Top 25\">";
|
||||
}
|
||||
|
||||
print "</td><td align='right'>
|
||||
<input id=\"feed_search\" size=\"20\"
|
||||
onchange=\"javascript:updateFeedList()\" value=\"$feed_search\">
|
||||
<input type=\"submit\" class=\"button\"
|
||||
onclick=\"javascript:updateFeedList()\" value=\"Search\">
|
||||
</td>
|
||||
</tr></table>";
|
||||
print "</div>";
|
||||
|
||||
$feeds_sort = db_escape_string($_GET["sort"]);
|
||||
|
||||
|
@ -3291,7 +3290,7 @@
|
|||
onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
|
||||
size=\"40\"> ";
|
||||
|
||||
print"<input type=\"submit\" class=\"button\"
|
||||
print "<input type=\"submit\" class=\"button\"
|
||||
id=\"user_add_btn\" disabled=\"true\"
|
||||
onclick=\"javascript:addUser()\" value=\"Create user\"></div>";
|
||||
|
||||
|
|
6
prefs.js
6
prefs.js
|
@ -1537,4 +1537,8 @@ function pref_hotkey_handler(e) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function userSwitch() {
|
||||
var chooser = document.getElementById("userSwitch");
|
||||
var user = chooser[chooser.selectedIndex].value;
|
||||
window.location = "prefs.php?swu=" + user;
|
||||
}
|
||||
|
|
14
prefs.php
14
prefs.php
|
@ -133,6 +133,20 @@ window.onload = init;
|
|||
<p>Loading, please wait...</p>
|
||||
</div>
|
||||
|
||||
<div id="prefFooter">
|
||||
<?php if (defined('_DEBUG_USER_SWITCH')) { ?>
|
||||
<select id="userSwitch" onchange="userSwitch()">
|
||||
<?php
|
||||
foreach (array('admin', 'fox', 'test') as $u) {
|
||||
$op_sel = ($u == $_SESSION["name"]) ? "selected" : "";
|
||||
print "<option $op_sel>$u</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<? } ?>
|
||||
<a href="http://tt-rss.spb.ru/">Tiny Tiny RSS</a> v<?php echo VERSION ?> © 2005-2006 Andrew Dolgov
|
||||
</div>
|
||||
|
||||
<?php db_close($link); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -300,9 +300,11 @@ div.headlines_cdm {
|
|||
border-collapse : collapse;
|
||||
}
|
||||
|
||||
#footer {
|
||||
#footer, #prefFooter {
|
||||
vertical-align : middle;
|
||||
display : block;
|
||||
position : absolute;
|
||||
bottom : 0px;
|
||||
bottom : 5px;
|
||||
text-align : center;
|
||||
color : gray;
|
||||
font-size : x-small;
|
||||
|
@ -351,7 +353,7 @@ div.prefsTabSelected {
|
|||
/* preferences layout */
|
||||
|
||||
#prefHeader {
|
||||
margin : 10px;
|
||||
margin : 10px 10px 10px 25px;
|
||||
color : gray;
|
||||
font-size : small;
|
||||
}
|
||||
|
@ -372,9 +374,14 @@ div.return a:hover {
|
|||
|
||||
#prefContent {
|
||||
clear : left;
|
||||
margin : 0px 10px 0px 10px;
|
||||
position : absolute;
|
||||
bottom : 30px;
|
||||
top : 75px;
|
||||
overflow : auto;
|
||||
left : 10px;
|
||||
right : 10px;
|
||||
padding : 1em;
|
||||
min-height : 300px;
|
||||
margin : 0px;
|
||||
background : white;
|
||||
font-size : small;
|
||||
border-width : 1px 1px 1px 1px;
|
||||
|
|
13
tt-rss.css
13
tt-rss.css
|
@ -379,6 +379,10 @@ tr.title td a:hover {
|
|||
color : black;
|
||||
}
|
||||
|
||||
div.feedEditSearch {
|
||||
float : right;
|
||||
}
|
||||
|
||||
table.prefFeedList td.feedEditCat {
|
||||
font-weight : bold;
|
||||
border-width : 0px 0px 1px 0px;
|
||||
|
@ -573,11 +577,6 @@ span.insensitive {
|
|||
}
|
||||
|
||||
.prefGenericAddBox {
|
||||
margin : 5px;
|
||||
font-size : small;
|
||||
}
|
||||
|
||||
.prefGenericAddBox td {
|
||||
font-size : small;
|
||||
}
|
||||
|
||||
|
@ -1165,6 +1164,10 @@ div.headlines_cdm {
|
|||
height: expression((parseInt(document.documentElement.clientHeight)-40-305-50)+'px');
|
||||
}
|
||||
|
||||
#prefFooter {
|
||||
display : none;
|
||||
}
|
||||
|
||||
#footer {
|
||||
position : absolute;
|
||||
bottom : 0px;
|
||||
|
|
Loading…
Reference in New Issue