if ($subop == "browse") {
- if (!ENABLE_FEED_BROWSER) {
- print __("Feed browser is administratively disabled.");
- return;
- }
-
print "<div id=\"infoBoxTitle\">".__('Feed Browser')."</div>";
print "<div class=\"infoBoxContents\">";
<img style='display : none'
id='feed_browser_spinner' src='images/indicator_white.gif'>
<input name=\"search\" size=\"20\" type=\"search\"
- onfocus=\"javascript:disableHotkeys();\"
- onblur=\"javascript:enableHotkeys();\"
- onchange=\"javascript:updateFeedBrowser()\" value=\"$browser_search\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateFeedBrowser()\" value=\"".__('Search')."\">
+ onchange=\"javascript:updateFeedBrowser()\" value=\"$browser_search\">
+ <button onclick=\"javascript:updateFeedBrowser()\">".__('Search')."</button>
</div>";
print " <select name=\"mode\" onchange=\"updateFeedBrowser()\">
print __("limit:");
- print " <select name=\"limit\">";
+ print " <select name=\"limit\" onchange='updateFeedBrowser()'>";
foreach (array(25, 50, 100, 200) as $l) {
$issel = ($l == $limit) ? "selected" : "";
print "</select> ";
- print "
- <input type=\"submit\" class=\"button\"
- onclick=\"updateFeedBrowser()\" value=\"".__('Show')."\">";
-
print "<p>";
$owner_uid = $_SESSION["uid"];
$feed_search = $_SESSION["prefs_feed_search"];
}
- print "<div class=\"feedEditSearch\">
+ print "<div style='float : right'>
<input id=\"feed_search\" size=\"20\" type=\"search\"
onfocus=\"javascript:disableHotkeys();\"
onblur=\"javascript:enableHotkeys();\"
onchange=\"javascript:updateFeedList()\" value=\"$feed_search\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateFeedList()\" value=\"".__('Search')."\">
+ <button onclick=\"javascript:updateFeedList()\">".
+ __('Search')."</button>
</div>";
- print "<input onclick=\"javascript:displayDlg('quickAddFeed')\"
- type=\"submit\"
- class=\"button\" value=\"".__('Subscribe to feed')."\"> ";
+ print "<button onclick=\"javascript:displayDlg('quickAddFeed')\">"
+ .__('Subscribe to feed')."</button> ";
- print "<input onclick=\"javascript:editSelectedFeed()\"
- type=\"submit\"
- class=\"button\" value=\"".__('Edit feeds')."\"> ";
+ print "<button onclick=\"javascript:editSelectedFeed()\">".
+ __('Edit feeds')."</button> ";
if (get_pref($link, 'ENABLE_FEED_CATS')) {
- print "<input onclick=\"javascript:editFeedCats()\"
- type=\"submit\"
- class=\"button\" value=\"".__('Edit categories')."\"> ";
+ print "<button onclick=\"javascript:editFeedCats()\">".
+ __('Edit categories')."</button> ";
}
- print "<input onclick=\"javascript:removeSelectedFeeds()\"
- type=\"submit\"
- class=\"button\" value=\"".__('Unsubscribe')."\"> ";
+ print "<button onclick=\"javascript:removeSelectedFeeds()\">"
+ .__('Unsubscribe')."</button> ";
/* print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
<option value=\"facDefault\" selected>".__('Other actions...')."</option>";
<form enctype=\"multipart/form-data\" method=\"POST\" action=\"opml.php\">
".__('File:')." <input id=\"opml_file\" name=\"opml_file\" type=\"file\">
<input type=\"hidden\" name=\"op\" value=\"Import\">
- <input class=\"button\" onclick=\"return validateOpmlImport();\"
- type=\"submit\" value=\"".__('Import')."\">
+ <button onclick=\"return validateOpmlImport();\"
+ type=\"submit\">".__('Import')."</button>
</form></div>";
print " ";
- print "<input type=\"submit\"
- class=\"button\" onclick=\"gotoExportOpml()\"
- value=\"".__('Export OPML')."\">";
+ print "<button onclick=\"gotoExportOpml()\">".
+ __('Export OPML')."</button>";
print "<h3>" . __("Firefox Integration") . "</h3>";
print "<p><a class=\"visibleLinkB\" id=\"pubGenAddress\" target=\"_blank\" href=\"$url_path\">".__("Link to published articles feed.")."</a></p>";
- print "<p><input type=\"submit\" onclick=\"return pubRegenKey()\" class=\"button\"
- value=\"".__('Generate another link')."\">";
- /* print " <input type=\"submit\" onclick=\"return pubToClipboard()\" class=\"button\"
- value=\"".__('Copy link to clipboard')."\">"; */
- print "</p>";
+ print "<button onclick=\"return pubRegenKey()\">".
+ __('Generate another link')."</button>";
}
print " </span>";
print "<input onkeypress=\"return filterCR(event, filterEditSave)\"
- onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
- onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
print "<span id=\"filter_dlg_date_chk_box\" $date_ops_invisible>";
$reg_exp = htmlspecialchars($reg_exp, ENT_QUOTES); // second escaping seems to be needed for javascript
print "<div style=\"float : left\">";
- print "<input type=\"submit\"
- class=\"button\" onclick='return removeFilter($filter_id, \"$reg_exp\")'
- value=\"".__('Remove')."\"> ";
+ print "<button onclick='return removeFilter($filter_id, \"$reg_exp\")'>".
+ __('Remove')."</button>";
print "</div>";
- print "<input type=\"submit\"
- id=\"infobox_submit\"
- class=\"button\" onclick=\"return filterEditSave()\"
- value=\"".__('Save')."\"> ";
+ print "<button onclick=\"return filterEditSave()\">".
+ __('Save')."</button> ";
- print "<input class=\"button\"
- type=\"submit\" onclick=\"return filterEditCancel()\"
- value=\"".__('Cancel')."\">";
+ print "<button onclick=\"return filterEditCancel()\">".
+ __('Cancel')."</button>";
print "</div>";
$filter_search = $_SESSION["prefs_filter_search"];
}
- print "<div class=\"feedEditSearch\">
+ print "<div style='float : right'>
<input id=\"filter_search\" size=\"20\" type=\"search\"
onfocus=\"javascript:disableHotkeys();\"
onblur=\"javascript:enableHotkeys();\"
onchange=\"javascript:updateFilterList()\" value=\"$filter_search\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateFilterList()\" value=\"".__('Search')."\">
+ <button onclick=\"javascript:updateFilterList()\">".__('Search')."</button>
<a class='helpLinkPic' href=\"javascript:displayHelpInfobox(2)\">
<img src='images/sign_quest.gif'></a>
- </div>";
+ </div>";
+ print "<button onclick=\"return displayDlg('quickAddFilter', false)\">".
+ __('Create filter')."</button> ";
- print "<input type=\"submit\"
- class=\"button\"
- onclick=\"return displayDlg('quickAddFilter', false)\"
- value=\"".__('Create filter')."\"> ";
+ print "<button onclick=\"return editSelectedFilter()\">".
+ __('Edit')."</button> ";
- print "<input type=\"submit\" class=\"button\"
- onclick=\"return editSelectedFilter()\" value=\"".__('Edit')."\"> ";
-
- print "<input type=\"submit\" class=\"button\"
- onclick=\"return removeSelectedFilters()\" value=\"".__('Remove')."\"> ";
-
- print "<input type=\"submit\"
- class=\"button\"
- onclick=\"rescore_all_feeds()\"
- value=\"".__('Rescore articles')."\"> ";
+ print "<button onclick=\"return removeSelectedFilters()\">".
+ __('Remove')."</button> ";
+ print "<button onclick=\"rescore_all_feeds()\">".
+ __('Rescore articles')."</button> ";
if ($filter_search) {
$filter_search = split(' ', db_escape_string($filter_search));
$label_search = $_SESSION["prefs_label_search"];
}
- print "<div class=\"feedEditSearch\">
+ print "<div style='float : right'>
<input id=\"label_search\" size=\"20\" type=\"search\"
onfocus=\"javascript:disableHotkeys();\"
onblur=\"javascript:enableHotkeys();\"
onchange=\"javascript:updateLabelList()\" value=\"$label_search\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateLabelList()\" value=\"".__('Search')."\">
+ <button onclick=\"javascript:updateLabelList()\">".__('Search')."</button>
</div>";
print "<div class=\"prefGenericAddBox\">";
- print"<input type=\"submit\" class=\"button\"
- onclick=\"return addLabel()\"
- value=\"".__('Create label')."\"> ";
+ print"<button onclick=\"return addLabel()\">".
+ __('Create label')."</button> ";
- print "<input type=\"submit\" class=\"button\"
- onclick=\"javascript:removeSelectedLabels()\" value=\"".__('Remove')."\">";
+ print "<button onclick=\"javascript:removeSelectedLabels()\">".
+ __('Remove')."</button> ";
- print " ";
-/* print " <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"labelColorSet('fg')\" value=\"".__('Fg')."\"> ";
- print "<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"labelColorSet('bg')\" value=\"".__('Bg')."\"> "; */
- print "<input type=\"submit\" class=\"button\"
- onclick=\"labelColorReset()\" value=\"".__('Clear colors')."\">";
+ print "<button onclick=\"labelColorReset()\">".
+ __('Clear colors')."</button>";
print "</div>";
print "</form>";
- print "<p><input class=\"button\" type=\"submit\"
- onclick=\"return changeUserEmail()\" value=\"".__("Change e-mail")."\">";
+ print "<p><button onclick=\"return changeUserEmail()\">".
+ __("Change e-mail")."</button>";
print "<form onsubmit=\"return false\"
name=\"change_pass_form\" id=\"change_pass_form\">";
print "</form>";
- print "<p><input class=\"button\" type=\"submit\"
- onclick=\"return changeUserPassword()\"
- value=\"".__("Change password")."\">";
+ print "<p><button onclick=\"return changeUserPassword()\">".
+ __("Change password")."</button>";
}
print "</table>";
print "<input type=\"hidden\" name=\"op\" value=\"pref-prefs\">";
print "<input type=\"hidden\" name=\"subop\" value=\"change-theme\">";
- print "<p><input class=\"button\" type=\"submit\"
- value=\"".__('Change theme')."\">";
+ print "<p><button>".__('Change theme')."</button>";
print "</form>";
}
print "<input type=\"hidden\" name=\"op\" value=\"pref-prefs\">";
- print "<p><input class=\"button\" type=\"submit\"
- onclick=\"return validatePrefsSave()\"
- value=\"".__('Save configuration')."\">";
+ print "<p><button onclick=\"return validatePrefsSave()\">".
+ __('Save configuration')."</button> ";
- print " <input class=\"button\" type=\"submit\"
- onclick=\"return validatePrefsReset()\"
- value=\"".__('Reset to defaults')."\"></p>";
+ print "<button onclick=\"return validatePrefsReset()\">".
+ __('Reset to defaults')."</button></p>";
print "</form>";
print "</ul>";
print "<div align='center'>
- <input type='submit' class='button'
- onclick=\"closeInfoBox()\" value=\"Close this window\"></div>";
+ <button onclick=\"closeInfoBox()\">".__("Close this window").
+ "</button></div>";
print "</div>";
print "</form>";
print "<div class=\"dlgButtons\">
- <input class=\"button\"
- type=\"submit\" onclick=\"return userEditSave()\"
- value=\"".__('Save')."\">
- <input class=\"button\"
- type=\"submit\" onclick=\"return userEditCancel()\"
- value=\"".__('Cancel')."\"></div>";
+ <button onclick=\"return userEditSave()\">".
+ __('Save')."</button>
+ <button onclick=\"return userEditCancel()\">".
+ __('Cancel')."</button></div>";
print "</div>";
$user_search = $_SESSION["prefs_user_search"];
}
- print "<div class=\"feedEditSearch\">
+ print "<div style='float : right'>
<input id=\"user_search\" size=\"20\" type=\"search\"
onfocus=\"javascript:disableHotkeys();\"
onblur=\"javascript:enableHotkeys();\"
onchange=\"javascript:updateUsersList()\" value=\"$user_search\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateUsersList()\" value=\"".__('Search')."\">
+ <button onclick=\"javascript:updateUsersList()\">".
+ __('Search')."</button>
</div>";
$sort = db_escape_string($_REQUEST["sort"]);
$sort = "login";
}
- print "<input type=\"submit\" class=\"button\"
- onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">";
-
- print "
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:selectedUserDetails()\" value=\"".__('Details')."\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:editSelectedUser()\" value=\"".__('Edit')."\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:removeSelectedUsers()\" value=\"".__('Remove')."\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:resetSelectedUserPass()\" value=\"".__('Reset password')."\">";
+ print "<button onclick=\"javascript:addUser()\">".__('Create user')."</button>";
+
+ print "
+ <button onclick=\"javascript:selectedUserDetails()\">".
+ __('Details')."</button>
+ <button onclick=\"javascript:editSelectedUser()\">".
+ __('Edit')."</button>
+ <button onclick=\"javascript:removeSelectedUsers()\">".
+ __('Remove')."</button>
+ <button onclick=\"javascript:resetSelectedUserPass()\">".
+ __('Reset password')."</button>";
print "</div>";
color : black;
}
-div.feedEditSearch {
- float : right;
-}
-
table.prefFeedList td.feedEditCat {
font-weight : bold;
border-width : 0px 0px 1px 0px;
font-size : 100%;
/* line-height : 120%; */
text-decoration : none;
- font-weight : bold;
- color : #565656;
+/* font-weight : bold; */
+ color : #303030;
cursor : pointer;
padding : 1px 3px 1px 3px;
}
padding : 1px 0px 1px 3px;
}
+input {
+ background : white;
+ border : 1px solid #bebebe;
+ font-size : 100%;
+ padding : 1px 3px 1px 3px;
+}
+
button:hover {
background-color : #f9faff;
border : 1px solid #88b0f0;