Hi,
i doesnt know if its possible to sort all sources by name, so I did a quick
hack in the source code. Maybe you can implement in a next release.
To sort all channels I added the following line in details.php and
alerting.php. Maybe this patch could applied to other files too. Additionally
one patch contains a bit wider table.
ksort($_SESSION['profileinfo']['channel']);
diff -u nfsen-1.3.6p1/html/alerting.php /var/www/nfsen/alerting.php
--- nfsen-1.3.6p1/html/alerting.php 2011-12-30 12:53:59.000000000 +0100
+++ /var/www/nfsen/alerting.php 2014-07-31 13:39:25.402552586 +0200
@@ -136,12 +136,13 @@
<th class="ALERTTABLE" colspan="2">Filter applied to 'live'
profile:</th>
</tr>
<tr>
- <td style="width:15%">
+ <td style="width:30%">
<SELECT name="channellist[]" id="channellist" size="4"
style="width:100%" multiple <?php echo $disabled?>>
<?php
foreach ( explode('|', $alert['channellist']) as $channel ) {
$_tmp[$channel] = 1;
}
+ ksort($_SESSION['profileinfo']['channel']);
foreach ( array_keys($_SESSION['profileinfo']['channel']) as
$channel ) {
$checked = array_key_exists($channel, $_tmp) ?
'selected' : '';
print "<OPTION value='$channel'
$checked>$channel</OPTION>\n";
diff -u nfsen-1.3.6p1/html/details.php /var/www/nfsen/details.php
--- nfsen-1.3.6p1/html/details.php 2012-01-24 18:54:01.000000000 +0100
+++ /var/www/nfsen/details.php 2014-07-31 13:42:13.890746532 +0200
@@ -1372,6 +1372,7 @@
$_tmp[$selected_channel] = 1;
}
$i = 0;
+ ksort($_SESSION['profileinfo']['channel']);
foreach ( array_keys($_SESSION['profileinfo']['channel']) as
$channel ) {
$checked = array_key_exists($channel, $_tmp) ?
'selected' : '';
print "<OPTION value='$channel'
$checked>$channel</OPTION>\n";
Regards
Alex
--
Alexander Dube
Netzwerkadministrator
E-Mail: [email protected]
PlusServer AG
Daimlerstraße 9-11
50354 Hürth
Deutschland
- member of intergenia group -
HRB 58428 / Amtsgericht Köln, USt-ID DE25 06 09 11 9
Vorstand: Thomas Strohe (Vorsitz), Thomas Noglik, Bernhard Vogtland
Aufsichtsratsvorsitz: Mark Joseph
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss