Merge in from pre_0.1 branch
git-svn-id: file:///svn-source/pmgr/branches/sandbox_0.1@747 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -8,6 +8,11 @@
|
|||||||
* @package pmgr
|
* @package pmgr
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// REVISIT <AP>: 20090823
|
||||||
|
// Add way to slide the entire menu off the page
|
||||||
|
|
||||||
|
echo('<DIV ID="sidemenu">' . "\n");
|
||||||
|
|
||||||
foreach ($menu AS $area) {
|
foreach ($menu AS $area) {
|
||||||
if (empty($area['subarea']))
|
if (empty($area['subarea']))
|
||||||
continue;
|
continue;
|
||||||
@@ -16,21 +21,37 @@ foreach ($menu AS $area) {
|
|||||||
if (empty($subarea['priorities']))
|
if (empty($subarea['priorities']))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
echo('<DIV CLASS="header">' . $subarea['name'] . '</DIV>' . "\n");
|
echo('<H3 class="sidemenu-header">' . $subarea['name'] . "</H3>\n");
|
||||||
|
echo('<DIV class="sidemenu-content">' . "\n");
|
||||||
foreach ($subarea['priorities'] AS $priority) {
|
foreach ($subarea['priorities'] AS $priority) {
|
||||||
foreach ($priority AS $item) {
|
foreach ($priority AS $item) {
|
||||||
if (isset($item['header']))
|
if (isset($item['url'])) {
|
||||||
echo('<DIV CLASS="header">' . $item['name'] . '</DIV>' . "\n");
|
echo('<DIV CLASS="sidemenu-item">'
|
||||||
elseif (isset($item['hr']))
|
|
||||||
echo('<HR>' . "\n");
|
|
||||||
elseif (isset($item['url']))
|
|
||||||
echo('<DIV CLASS="item">'
|
|
||||||
. $html->link($item['name'], $item['url'],
|
. $html->link($item['name'], $item['url'],
|
||||||
isset($item['htmlAttributes']) ? $item['htmlAttributes'] : null,
|
isset($item['htmlAttributes']) ? $item['htmlAttributes'] : null,
|
||||||
isset($item['confirmMessage']) ? $item['confirmMessage'] : null,
|
isset($item['confirmMessage']) ? $item['confirmMessage'] : null,
|
||||||
isset($item['escapeTitle']) ? $item['escapeTitle'] : null)
|
isset($item['escapeTitle']) ? $item['escapeTitle'] : null)
|
||||||
. '</DIV>' . "\n");
|
. '</DIV>' . "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
echo('</DIV>' . "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo('</DIV>' . "\n");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
jQuery('#sidemenu').accordion
|
||||||
|
({ fillSpace : true,
|
||||||
|
event: 'mouseover',
|
||||||
|
<?php /* REVISIT <AP>: 20090823
|
||||||
|
* Prevent animation until we can figure out why we
|
||||||
|
* get animation width jitter */ ?>
|
||||||
|
animated : false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
--></script>
|
||||||
|
|||||||
@@ -3,32 +3,8 @@
|
|||||||
* Side Menu Layout
|
* Side Menu Layout
|
||||||
*/
|
*/
|
||||||
|
|
||||||
td#sidecolumn { width: 10em; background: lightblue; text-align: left; }
|
td#sidecolumn { width: 12em; text-align: left; }
|
||||||
|
#sidemenu { height: 20em; }
|
||||||
td#sidecolumn .header ,
|
|
||||||
td#sidecolumn .item { white-space : nowrap; }
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************
|
|
||||||
************************************************************
|
|
||||||
* Menu Headers
|
|
||||||
*/
|
|
||||||
|
|
||||||
td#sidecolumn .header { margin-top: 0.4em;
|
|
||||||
background: blue;
|
|
||||||
color: white;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************
|
|
||||||
************************************************************
|
|
||||||
* Menu Separators
|
|
||||||
*/
|
|
||||||
|
|
||||||
td#sidecolumn hr { margin-top: 0.4em; margin-bottom: 0.3em; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
@@ -36,5 +12,10 @@ td#sidecolumn hr { margin-top: 0.4em; margin-bottom: 0.3em; }
|
|||||||
* Menu Items
|
* Menu Items
|
||||||
*/
|
*/
|
||||||
|
|
||||||
td#sidecolumn .item { padding-left: 0.6em; }
|
.sidemenu-header, .sidemenu-item { white-space : nowrap; }
|
||||||
|
|
||||||
|
|
||||||
|
#sidemenu.ui-accordion .ui-accordion-header .ui-icon { left: .2em; }
|
||||||
|
#sidemenu.ui-accordion .ui-accordion-header { padding: 0 0.5em 0 1.1em; }
|
||||||
|
#sidemenu.ui-accordion .ui-accordion-content { padding: 0 0.5em 0 1.1em; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user