(possbl. bug) view multiple events time=asc.
Posted: Sat Dec 31, 2005 12:43 pm
Hi all.
First, I have ZM 1.21.3.
I've been trying to view events from oldest to newest (i.e. ascending time-wise).
However, when I click on the number of events in a monitor (whichever) and then put a check mark on the N events I want to view, then I click "View", the events start playing in descending time. The newest ones play first and the oldest ones play last. I want the opposite to happen.
At first, I thought this was a bug, so I tried hacking some files (/var/www/html/zm_functs.php and /var/www/html/zm_html_view_events.php).
First, I changed (in zm_html_view_events.php line 209):
to
But,after the change, interestingly, when I selected more than one event, the oldest would show up first (so far so good) and the it would stop (not good). There was no Next button, there was only Previous button. When I clicked on Previous button I would get the next oldest event. So somehow after above code change, the funtion of "Next" button changed to that of "Previous" button and vice-versa.
Then in the same file I changed line 233, from this:
to this:
This also doesn't fix the problem.
(Changing the zm_funcs.php was useless because the $sort_asc variable was global and changes affected _everything_.)
So, please either help me fix the bug or help me solve this problem some other way.
Thanks,
-Haxhia
First, I have ZM 1.21.3.
I've been trying to view events from oldest to newest (i.e. ascending time-wise).
However, when I click on the number of events in a monitor (whichever) and then put a check mark on the N events I want to view, then I click "View", the events start playing in descending time. The newest ones play first and the oldest ones play last. I want the opposite to happen.
At first, I thought this was a bug, so I tried hacking some files (/var/www/html/zm_functs.php and /var/www/html/zm_html_view_events.php).
First, I changed (in zm_html_view_events.php line 209):
Code: Select all
function viewEvents( form, name )
{
var events = new Array();
for (var i = 0; i < form.elements.length; i++)
{
Code: Select all
function viewEvents( form, name )
{
var events = new Array();
for (var i = form.elements-1; i >= 0; i++)
{
Then in the same file I changed line 233, from this:
Code: Select all
<input type="hidden" name="sort_asc" value="<?= $sort_asc ?>">
Code: Select all
<input type="hidden" name="sort_asc" value="1">
(Changing the zm_funcs.php was useless because the $sort_asc variable was global and changes affected _everything_.)
So, please either help me fix the bug or help me solve this problem some other way.
Thanks,
-Haxhia