Skip to content
Permalink
Browse files

moved A-File 'Print View' to Current File tab area and conditioned to…

… display only on n or o privs
  • Loading branch information...
RocketMan committed Jul 11, 2019
1 parent f267865 commit 8079fdd5997e39d2b17992e3d0f5f673b05df329
Showing with 5 additions and 5 deletions.
  1. +5 −5 ui/AddManager.php
@@ -74,7 +74,11 @@ public function __construct() {
}
public function processLocal($action, $subaction) {
$extra = "<SPAN CLASS=\"sub\"><B>Adds Feed:</B></SPAN> <A TYPE=\"application/rss+xml\" HREF=\"zkrss.php?feed=adds\"><IMG SRC=\"img/rss.gif\" ALIGN=MIDDLE WIDTH=36 HEIGHT=14 BORDER=0 ALT=\"rss\"></A><BR><IMG SRC=\"img/blank.gif\" WIDTH=1 HEIGHT=2 BORDER=0 ALT=\"\">";
$extra = "";
if(!$subaction &&
($this->session->isAuth("n") || $this->session->isAuth("o")))
$extra .= "<A CLASS='nav' HREF='#top' onClick=window.open('?target=afile')>Print View</A>&nbsp;&nbsp;";
$extra .= "<SPAN CLASS=\"sub\"><B>Adds Feed:</B></SPAN> <A TYPE=\"application/rss+xml\" HREF=\"zkrss.php?feed=adds\"><IMG SRC=\"img/rss.gif\" ALIGN=MIDDLE WIDTH=36 HEIGHT=14 BORDER=0 ALT=\"rss\"></A><BR><IMG SRC=\"img/blank.gif\" WIDTH=1 HEIGHT=2 BORDER=0 ALT=\"\">";
return $this->dispatchSubAction($action, $subaction, self::$subactions, $extra);
}
@@ -359,10 +363,6 @@ public function addManagerShowAdd() {
<INPUT TYPE=HIDDEN NAME=seq VALUE="update">
</FORM>
</TH>
<TH ALIGN=RIGHT>
<A CLASS='nav' HREF='#top' onClick=window.open('?target=afile')>Print View</A>
</TH>

<?php if($this->session->isAuth("n")) { ?>
<TD ALIGN=RIGHT>
<FORM ACTION="?" METHOD=POST>

0 comments on commit 8079fdd

Please sign in to comment.
You can’t perform that action at this time.