Changeset 4625

Show
Ignore:
Timestamp:
08/02/07 00:18:20 (6 years ago)
Author:
p_lindheimer
Message:

fixed uninitialized index, made disabled menu items gray and italicized

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.3/amp_conf/htdocs/admin/common/mainstyle.css

    r4624 r4625  
    297297#nav li.disabled a, #nav li.disabled a:hover { /* disabled item */ 
    298298  cursor: default; 
     299  color: #072966; 
     300  background-image: url('../images/modules1.png'); /* repeat these just to override :hover style */ 
     301  background-repeat: repeat-y; 
     302  background-position: right;  
     303} 
     304 
     305#nav ul li.disabled { /* menu links */ 
     306  border-bottom: 2px solid #ABC9FF; 
     307  padding: 2px 0px 2px 10px; 
     308  height: 21px; 
     309  width: 180px; 
     310  text-decoration:none; 
     311  font-size: 14px; 
     312  font-style: italic; 
     313  font-weight: normal; 
     314        white-space: nowrap; 
     315        overflow: hidden; 
    299316  color: gray; 
    300   background-image: url('../images/modules1.png'); /* repeat these just to override :hover style */ 
     317  background-image: url('../images/modules1.png'); 
    301318  background-repeat: repeat-y; 
    302319  background-position: right;  
  • freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx_admin.php

    r4624 r4625  
    8989      $li_classes[] = 'current'; 
    9090    } 
    91     if ($row['disabled']) { 
     91    if (isset($row['disabled']) && $row['disabled']) { 
    9292      $li_classes[] = 'disabled'; 
    9393    } 
    9494 
    9595    echo "\t<li class=\"".implode(' ',$li_classes)."\">"; 
    96     if ($row['disabled']) { 
     96    if (isset($row['disabled']) && $row['disabled']) { 
    9797      echo _($row['name']); 
    9898    } else { 
  • freepbx/branches/2.3/amp_conf/htdocs/admin/views/menuitem_disabled.php

    r4623 r4625  
    11<?php 
    22 
    3 echo "<h3>".sprintf(_("[WARNING]: Menu Item: %s is disabled because asterisk is not running"),$name)."</h3><br><br><br><br>"; 
     3echo "<br><h3>".sprintf(_("[WARNING]: Menu Item: %s is disabled because asterisk is not running"),$name)."</h3><br><br>"; 
     4echo "<h5>"._("Restart Asterisk and then refresh the browser in order to try accessing this menu item again.")."</h5><br><br>"; 
    45 
    56?>