Commit 8f0ae83a7a32005c7e6e466e0d11784fc3938d0b
1 parent
08f7e95d
corrections to html and dummy html output for dashboard sections
incorporated stylesheet git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@326 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
60 additions
and
47 deletions
dashboard.php
| @@ -51,56 +51,59 @@ if (checkSession()) { | @@ -51,56 +51,59 @@ if (checkSession()) { | ||
| 51 | "$default->owl_graphics_url/help.jpg", "$default->owl_graphics_url/logout.jpg"); | 51 | "$default->owl_graphics_url/help.jpg", "$default->owl_graphics_url/logout.jpg"); |
| 52 | 52 | ||
| 53 | $oPatternTableLinks = new PatternTableLinks($aTopMenuLinks, null, 1, 8, 2, $aTopMenuImages); | 53 | $oPatternTableLinks = new PatternTableLinks($aTopMenuLinks, null, 1, 8, 2, $aTopMenuImages); |
| 54 | - | ||
| 55 | - | ||
| 56 | 54 | ||
| 57 | - // build the central dashboard | ||
| 58 | - //- pending documents (document approval) | ||
| 59 | - //- checked out documents | ||
| 60 | - //- subscriptions | ||
| 61 | - $sHtml = "<table border=\"1\" width=\"100%\"> | 55 | + $sHtml = "<table border=\"0\" width=\"100%\"> |
| 62 | <tr><td> | 56 | <tr><td> |
| 63 | - <table> | ||
| 64 | - <tr> | ||
| 65 | - <td colspan=\"3\"> | ||
| 66 | - Pending Documents | ||
| 67 | - </td> | 57 | + <table width=\"100%\"> |
| 58 | + <tr align=\"left\" bgcolor=\"#996600\"> | ||
| 59 | + <th colspan=\"3\" > | ||
| 60 | + <span class=\"dashboardHeadings\">Pending Documents</span> | ||
| 61 | + </th> | ||
| 68 | </tr> | 62 | </tr> |
| 69 | <tr> | 63 | <tr> |
| 70 | - <td width=\"33%\"> | 64 | + <th align=\"left\" width=\"33%\"> |
| 71 | Title | 65 | Title |
| 72 | - </td> | ||
| 73 | - <td width=\"33%\"> | 66 | + </th> |
| 67 | + <th align=\"left\" width=\"33%\"> | ||
| 74 | Status | 68 | Status |
| 75 | - </td> | ||
| 76 | - <td width=\"33%\"> | 69 | + </th> |
| 70 | + <th align=\"left\" width=\"33%\"> | ||
| 77 | Days | 71 | Days |
| 78 | - </td> | 72 | + </th> |
| 79 | </tr>"; | 73 | </tr>"; |
| 80 | /* | 74 | /* |
| 81 | $aPendingDocumentList = getPendingDocuments($_SESSION["userID"]); | 75 | $aPendingDocumentList = getPendingDocuments($_SESSION["userID"]); |
| 76 | + $sHtml = $sHtml . "<tr>"; | ||
| 82 | for ($i = 0; $i < count($aPendingDocumentList); $i++) { | 77 | for ($i = 0; $i < count($aPendingDocumentList); $i++) { |
| 83 | - $sHtml = $sHtml . "<tr><td>" . $aPendingDocumentList[$i] . "</td></tr>"; | 78 | + $sHtml = $sHtml . "<td>" . $aPendingDocumentList[$i].getTitle() . "</td>" . |
| 79 | + "<td>" . $aPendingDocumentList[$i].getStatus() . "</td>" . | ||
| 80 | + "<td>" . $aPendingDocumentList[$i].getDays() . "</td>"; | ||
| 84 | } | 81 | } |
| 82 | + $sHtml = $sHtml . "</tr>"; | ||
| 85 | */ | 83 | */ |
| 86 | - $sHtml = $sHtml . " | ||
| 87 | - </table> | 84 | + $sHtml = $sHtml . " <tr> |
| 85 | + <td>made up title</td> | ||
| 86 | + <td>bad</td> | ||
| 87 | + <td>5</td> | ||
| 88 | + </tr>"; | ||
| 89 | + | ||
| 90 | + $sHtml = $sHtml . " </table> | ||
| 88 | </td></tr> | 91 | </td></tr> |
| 89 | 92 | ||
| 90 | <tr><td width=80%> | 93 | <tr><td width=80%> |
| 91 | - <table border=2> | ||
| 92 | - <tr align=\"center\"> | ||
| 93 | - <td colspan=2> | ||
| 94 | - Checked Out Documents | ||
| 95 | - </td> | 94 | + <table width=\"100%\"> |
| 95 | + <tr align=\"left\" bgcolor=\"#996600\"> | ||
| 96 | + <th colspan=2> | ||
| 97 | + <span class=\"dashboardHeadings\">Checked Out Documents</span> | ||
| 98 | + </th> | ||
| 96 | </tr> | 99 | </tr> |
| 97 | <tr> | 100 | <tr> |
| 98 | - <td width=\"33%\"> | 101 | + <th align=\"left\" width=\"33%\"> |
| 99 | Title | 102 | Title |
| 100 | - </td> | ||
| 101 | - <td width=\"66%\"> | 103 | + </th> |
| 104 | + <th align=\"left\" width=\"66%\"> | ||
| 102 | Days | 105 | Days |
| 103 | - </td> | 106 | + </th> |
| 104 | </tr>"; | 107 | </tr>"; |
| 105 | /* | 108 | /* |
| 106 | $aCheckedOutDocumentList = getCheckedOutDocuments($_SESSION["userID"]); | 109 | $aCheckedOutDocumentList = getCheckedOutDocuments($_SESSION["userID"]); |
| @@ -108,27 +111,32 @@ if (checkSession()) { | @@ -108,27 +111,32 @@ if (checkSession()) { | ||
| 108 | $sHtml = $sHtml . "<tr><td>" . $aCheckedOutDocumentList[$i] . "</td></tr>"; | 111 | $sHtml = $sHtml . "<tr><td>" . $aCheckedOutDocumentList[$i] . "</td></tr>"; |
| 109 | } | 112 | } |
| 110 | */ | 113 | */ |
| 111 | - $sHtml = $sHtml . " | ||
| 112 | - </table> | 114 | + |
| 115 | + $sHtml = $sHtml . " <tr> | ||
| 116 | + <td>another made up title</td> | ||
| 117 | + <td>8.473</td> | ||
| 118 | + </tr>"; | ||
| 119 | + | ||
| 120 | + $sHtml = $sHtml . " </table> | ||
| 113 | </td></tr> | 121 | </td></tr> |
| 114 | 122 | ||
| 115 | <tr><td> | 123 | <tr><td> |
| 116 | - <table> | ||
| 117 | - <tr> | ||
| 118 | - <td> | ||
| 119 | - Subscriptions Alerts | ||
| 120 | - </td> | 124 | + <table width=\"100%\"> |
| 125 | + <tr align=\"left\" bgcolor=\"#996600\"> | ||
| 126 | + <th colspan=\"3\"> | ||
| 127 | + <span class=\"dashboardHeadings\">Subscriptions Alerts</span> | ||
| 128 | + </th> | ||
| 121 | </tr> | 129 | </tr> |
| 122 | <tr> | 130 | <tr> |
| 123 | - <td width=\"33%\"> | 131 | + <th align=\"left\" width=\"33%\"> |
| 124 | Title | 132 | Title |
| 125 | - </td> | ||
| 126 | - <td width=\"33%\"> | 133 | + </th> |
| 134 | + <th align=\"left\" width=\"33%\"> | ||
| 127 | Status | 135 | Status |
| 128 | - </td> | ||
| 129 | - <td width=\"33%\"> | 136 | + </th> |
| 137 | + <th align=\"left\" width=\"33%\"> | ||
| 130 | Days | 138 | Days |
| 131 | - </td> | 139 | + </th> |
| 132 | </tr>"; | 140 | </tr>"; |
| 133 | /* | 141 | /* |
| 134 | $aSubscriptionList = getSubscriptionAlerts($_SESSION["userID"]); | 142 | $aSubscriptionList = getSubscriptionAlerts($_SESSION["userID"]); |
| @@ -136,14 +144,19 @@ if (checkSession()) { | @@ -136,14 +144,19 @@ if (checkSession()) { | ||
| 136 | $sHtml = $sHtml . "<tr><td>" . $aSubscriptionList[$i] . "</td></tr>"; | 144 | $sHtml = $sHtml . "<tr><td>" . $aSubscriptionList[$i] . "</td></tr>"; |
| 137 | } | 145 | } |
| 138 | */ | 146 | */ |
| 139 | - $sHtml = $sHtml . " | ||
| 140 | - </table> | ||
| 141 | - </td></tr> | 147 | + $sHtml = $sHtml . " <tr> |
| 148 | + <td>the last made up title</td> | ||
| 149 | + <td>poor to middling</td> | ||
| 150 | + <td>1</td> | ||
| 151 | + </tr>"; | ||
| 152 | + | ||
| 153 | + $sHtml = $sHtml . " </table> | ||
| 154 | + </td></tr> | ||
| 142 | </table>"; | 155 | </table>"; |
| 143 | 156 | ||
| 144 | 157 | ||
| 145 | $oContent = new PatternCustom(); | 158 | $oContent = new PatternCustom(); |
| 146 | - $oContent->setHtml($html); | 159 | + $oContent->setHtml($sHtml); |
| 147 | 160 | ||
| 148 | /* get a page */ | 161 | /* get a page */ |
| 149 | $tmp = new PatternMainPage(); | 162 | $tmp = new PatternMainPage(); |