Commit 6166e1f703ea2f357946a020d1425872dba040c7

Authored by Michael Joseph
1 parent 7fcdcfd3

(#2675) tided and re-positioned contact admin buttons


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2348 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 12 additions and 15 deletions
presentation/webpageTemplate.inc
... ... @@ -53,14 +53,11 @@ function getUnitAdminUser() {
53 53 // create the navbar and north payload
54 54 $navbar = & new NavBar($fBrowseType, $fFolderID, $fDocumentID, $fCategoryName, $fDocumentTypeID);
55 55  
56   -
57   -if ($sectionName == "")
58   - //get the section name if not specified in the url
59   -{
  56 +//get the section name if not specified in the url
  57 +if ($sectionName == "") {
60 58 $sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
61 59 }
62 60  
63   -
64 61 //highlight the respective section
65 62 $navbar->setHighlightedSection($sectionName);
66 63  
... ... @@ -70,7 +67,6 @@ $nwestLoad = "<table cellspacing=0 cellpadding=0 border=0>\n" .
70 67 "<tr><td><img valign=\"top\" src=\"$default->graphicsUrl/tree.gif\"/></td></tr>\n" .
71 68 "<tr><td><img valign=\"top\" src=\"$colourBar\"/></td></tr>\n" .
72 69 "</table>";
73   -
74 70  
75 71 $nwPayLoad = new PatternCustom;
76 72 $nwPayLoad ->setHtml($nwestLoad);
... ... @@ -84,11 +80,11 @@ if ($sectionName != &quot;General&quot;) {
84 80 $output2["descriptions"] = $sectionArray["descriptions"];
85 81  
86 82 //create links
87   - $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 40 , 1 ,1,null);
  83 + $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 20 , 1 ,1,null);
88 84 $westRender = $westLinks->render();
89 85  
90 86 } else {
91   - $westLinks = new PatternTableLinks(array(), array(), 40 , 1 ,1,null);
  87 + $westLinks = new PatternTableLinks(array(), array(), 20, 1 ,1,null);
92 88 $westRender = $westLinks->render();
93 89 }
94 90  
... ... @@ -99,13 +95,16 @@ $uAdmin = &quot;$default-&gt;graphicsUrl/leftnav/uadmin.gif&quot; ;
99 95 $oUnitAdmin = getUnitAdminUser();
100 96 $sUnitAdminEmail = $oUnitAdmin ? $oUnitAdmin->getEmail() : $default->emailAdmin;
101 97 //setup the westpayload
102   -$westLoad = "<table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"100%\" height=\"75%\">\n" .
  98 +$westLoad = "<table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"100%\" height=\"75%\">\n" .
103 99 "\t<tr><td>$westRender</td></tr>\n" .
104 100 "</table>" .
105   - "<table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"100%\" height=\"25%\">\n" .
  101 + "<div style=\"position:absolute;top:" . ($default->scroll["height"]-50) . "px;\">" .
  102 + //"<div style=\"position:relative;top:-5px;\">" .
  103 + "<table cellspacing=\"0\" cellpadding=\"2\" border=\"0\" width=\"100%\">\n" .
106 104 "\t<tr valign=\"bottom\"><td align=left><a href=\"mailto:$default->emailAdmin\"><img src=\"$cAdmin\"/ border=\"0\"></a></td></tr>\n" .
107   - "\t<tr valign=\"middle\"><td align=left><a href=\"mailto:$sUnitAdminEmail\"><img src=\"$uAdmin\"/ border=\"0\"></a></td></tr>\n" .
108   - "</table>";
  105 + "\t<tr valign=\"top\"><td align=left><a href=\"mailto:$sUnitAdminEmail\"><img src=\"$uAdmin\"/ border=\"0\"></a></td></tr>\n" .
  106 + "</table>" .
  107 + "</div>";
109 108  
110 109 $westPayLoad = new PatternCustom;
111 110 $westPayLoad->setHtml($westLoad);
... ... @@ -115,6 +114,4 @@ $main-&gt;setNorthPayload($navbar);
115 114 $main->setNorthWestPayload($nwPayLoad);
116 115 $main->setWestPayload($westPayLoad);
117 116 $main->setWestPayloadBackGroundColour("#F0F0E4");
118   -
119   -?>
120   -
  117 +?>
121 118 \ No newline at end of file
... ...