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,14 +53,11 @@ function getUnitAdminUser() {
53 // create the navbar and north payload 53 // create the navbar and north payload
54 $navbar = & new NavBar($fBrowseType, $fFolderID, $fDocumentID, $fCategoryName, $fDocumentTypeID); 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 $sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); 58 $sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
61 } 59 }
62 60
63 -  
64 //highlight the respective section 61 //highlight the respective section
65 $navbar->setHighlightedSection($sectionName); 62 $navbar->setHighlightedSection($sectionName);
66 63
@@ -70,7 +67,6 @@ $nwestLoad = "<table cellspacing=0 cellpadding=0 border=0>\n" . @@ -70,7 +67,6 @@ $nwestLoad = "<table cellspacing=0 cellpadding=0 border=0>\n" .
70 "<tr><td><img valign=\"top\" src=\"$default->graphicsUrl/tree.gif\"/></td></tr>\n" . 67 "<tr><td><img valign=\"top\" src=\"$default->graphicsUrl/tree.gif\"/></td></tr>\n" .
71 "<tr><td><img valign=\"top\" src=\"$colourBar\"/></td></tr>\n" . 68 "<tr><td><img valign=\"top\" src=\"$colourBar\"/></td></tr>\n" .
72 "</table>"; 69 "</table>";
73 -  
74 70
75 $nwPayLoad = new PatternCustom; 71 $nwPayLoad = new PatternCustom;
76 $nwPayLoad ->setHtml($nwestLoad); 72 $nwPayLoad ->setHtml($nwestLoad);
@@ -84,11 +80,11 @@ if ($sectionName != &quot;General&quot;) { @@ -84,11 +80,11 @@ if ($sectionName != &quot;General&quot;) {
84 $output2["descriptions"] = $sectionArray["descriptions"]; 80 $output2["descriptions"] = $sectionArray["descriptions"];
85 81
86 //create links 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 $westRender = $westLinks->render(); 84 $westRender = $westLinks->render();
89 85
90 } else { 86 } else {
91 - $westLinks = new PatternTableLinks(array(), array(), 40 , 1 ,1,null); 87 + $westLinks = new PatternTableLinks(array(), array(), 20, 1 ,1,null);
92 $westRender = $westLinks->render(); 88 $westRender = $westLinks->render();
93 } 89 }
94 90
@@ -99,13 +95,16 @@ $uAdmin = &quot;$default-&gt;graphicsUrl/leftnav/uadmin.gif&quot; ; @@ -99,13 +95,16 @@ $uAdmin = &quot;$default-&gt;graphicsUrl/leftnav/uadmin.gif&quot; ;
99 $oUnitAdmin = getUnitAdminUser(); 95 $oUnitAdmin = getUnitAdminUser();
100 $sUnitAdminEmail = $oUnitAdmin ? $oUnitAdmin->getEmail() : $default->emailAdmin; 96 $sUnitAdminEmail = $oUnitAdmin ? $oUnitAdmin->getEmail() : $default->emailAdmin;
101 //setup the westpayload 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 "\t<tr><td>$westRender</td></tr>\n" . 99 "\t<tr><td>$westRender</td></tr>\n" .
104 "</table>" . 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 "\t<tr valign=\"bottom\"><td align=left><a href=\"mailto:$default->emailAdmin\"><img src=\"$cAdmin\"/ border=\"0\"></a></td></tr>\n" . 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 $westPayLoad = new PatternCustom; 109 $westPayLoad = new PatternCustom;
111 $westPayLoad->setHtml($westLoad); 110 $westPayLoad->setHtml($westLoad);
@@ -115,6 +114,4 @@ $main-&gt;setNorthPayload($navbar); @@ -115,6 +114,4 @@ $main-&gt;setNorthPayload($navbar);
115 $main->setNorthWestPayload($nwPayLoad); 114 $main->setNorthWestPayload($nwPayLoad);
116 $main->setWestPayload($westPayLoad); 115 $main->setWestPayload($westPayLoad);
117 $main->setWestPayloadBackGroundColour("#F0F0E4"); 116 $main->setWestPayloadBackGroundColour("#F0F0E4");
118 -  
119 -?>  
120 - 117 +?>
121 \ No newline at end of file 118 \ No newline at end of file