Changeset 4310

Show
Ignore:
Timestamp:
07/06/07 11:40:57 (6 years ago)
Author:
p_lindheimer
Message:

added red/green color coding of rnav to depict night/day status

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/daynight/module.xml

    r4298 r4310  
    22  <rawname>daynight</rawname> 
    33  <name>Day Night Mode</name> 
    4   <version>1.0.1</version> 
     4  <version>1.0.2</version> 
    55  <type>setup</type> 
    66  <category>Inbound Call Control</category> 
     
    1010  </description> 
    1111  <changelog> 
     12    *1.0.2* Added red/green color coding of rnav to see current mode 
    1213    *1.0.1* #2047 got day/night reversed 
    1314    *1.0.0* First release for FreePBX 2.3  
  • modules/branches/2.3/daynight/page.daynight.php

    r4151 r4310  
    3737if (isset($daynightcodes)) { 
    3838  foreach ($daynightcodes as $code) { 
    39     echo "<li><a id=\"".($itemid==$code['ext'] ? 'current':'')."\" href=\"config.php?display=".urlencode($dispnum)."&itemid=".urlencode($code['ext'])."&action=edit\">($fc{$code['ext']}) {$code['dest']}</a></li>"; 
     39    $dnobj = daynight_get_obj($code['ext']); 
     40    $color = $dnobj['state'] == 'DAY' ? "style='color:green'" : "style='color:red'"; 
     41    echo "<li><a $color id=\"".($itemid==$code['ext'] ? 'current':'')."\" href=\"config.php?display=".urlencode($dispnum)."&itemid=".urlencode($code['ext'])."&action=edit\">($fc{$code['ext']}) {$code['dest']}</a></li>"; 
    4042  } 
    4143}