Changeset 4310
- Timestamp:
- 07/06/07 11:40:57 (6 years ago)
- Files:
-
- modules/branches/2.3/daynight/module.xml (modified) (2 diffs)
- modules/branches/2.3/daynight/page.daynight.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/daynight/module.xml
r4298 r4310 2 2 <rawname>daynight</rawname> 3 3 <name>Day Night Mode</name> 4 <version>1.0. 1</version>4 <version>1.0.2</version> 5 5 <type>setup</type> 6 6 <category>Inbound Call Control</category> … … 10 10 </description> 11 11 <changelog> 12 *1.0.2* Added red/green color coding of rnav to see current mode 12 13 *1.0.1* #2047 got day/night reversed 13 14 *1.0.0* First release for FreePBX 2.3 modules/branches/2.3/daynight/page.daynight.php
r4151 r4310 37 37 if (isset($daynightcodes)) { 38 38 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>"; 40 42 } 41 43 }
