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 | 51 | "$default->owl_graphics_url/help.jpg", "$default->owl_graphics_url/logout.jpg"); |
| 52 | 52 | |
| 53 | 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 | 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 | 62 | </tr> |
| 69 | 63 | <tr> |
| 70 | - <td width=\"33%\"> | |
| 64 | + <th align=\"left\" width=\"33%\"> | |
| 71 | 65 | Title |
| 72 | - </td> | |
| 73 | - <td width=\"33%\"> | |
| 66 | + </th> | |
| 67 | + <th align=\"left\" width=\"33%\"> | |
| 74 | 68 | Status |
| 75 | - </td> | |
| 76 | - <td width=\"33%\"> | |
| 69 | + </th> | |
| 70 | + <th align=\"left\" width=\"33%\"> | |
| 77 | 71 | Days |
| 78 | - </td> | |
| 72 | + </th> | |
| 79 | 73 | </tr>"; |
| 80 | 74 | /* |
| 81 | 75 | $aPendingDocumentList = getPendingDocuments($_SESSION["userID"]); |
| 76 | + $sHtml = $sHtml . "<tr>"; | |
| 82 | 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 | 91 | </td></tr> |
| 89 | 92 | |
| 90 | 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 | 99 | </tr> |
| 97 | 100 | <tr> |
| 98 | - <td width=\"33%\"> | |
| 101 | + <th align=\"left\" width=\"33%\"> | |
| 99 | 102 | Title |
| 100 | - </td> | |
| 101 | - <td width=\"66%\"> | |
| 103 | + </th> | |
| 104 | + <th align=\"left\" width=\"66%\"> | |
| 102 | 105 | Days |
| 103 | - </td> | |
| 106 | + </th> | |
| 104 | 107 | </tr>"; |
| 105 | 108 | /* |
| 106 | 109 | $aCheckedOutDocumentList = getCheckedOutDocuments($_SESSION["userID"]); |
| ... | ... | @@ -108,27 +111,32 @@ if (checkSession()) { |
| 108 | 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 | 121 | </td></tr> |
| 114 | 122 | |
| 115 | 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 | 129 | </tr> |
| 122 | 130 | <tr> |
| 123 | - <td width=\"33%\"> | |
| 131 | + <th align=\"left\" width=\"33%\"> | |
| 124 | 132 | Title |
| 125 | - </td> | |
| 126 | - <td width=\"33%\"> | |
| 133 | + </th> | |
| 134 | + <th align=\"left\" width=\"33%\"> | |
| 127 | 135 | Status |
| 128 | - </td> | |
| 129 | - <td width=\"33%\"> | |
| 136 | + </th> | |
| 137 | + <th align=\"left\" width=\"33%\"> | |
| 130 | 138 | Days |
| 131 | - </td> | |
| 139 | + </th> | |
| 132 | 140 | </tr>"; |
| 133 | 141 | /* |
| 134 | 142 | $aSubscriptionList = getSubscriptionAlerts($_SESSION["userID"]); |
| ... | ... | @@ -136,14 +144,19 @@ if (checkSession()) { |
| 136 | 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 | 155 | </table>"; |
| 143 | 156 | |
| 144 | 157 | |
| 145 | 158 | $oContent = new PatternCustom(); |
| 146 | - $oContent->setHtml($html); | |
| 159 | + $oContent->setHtml($sHtml); | |
| 147 | 160 | |
| 148 | 161 | /* get a page */ |
| 149 | 162 | $tmp = new PatternMainPage(); | ... | ... |