SiT! Bugs - SiT!
View Issue Details
0001927SiT!otherpublic2014-03-20 20:372014-07-23 21:41
Frans 
 
lowfeatureN/A
acknowledgedopen 
WindowsWindowsXP+Later
3.67 LTS 
 
0001927: Progress bar in function html_redirect
Hello,
I added these lines

    $valor = rand (10, 99);
    echo "<h2><img src='{$CONFIG['application_webpath']}images/gifs/cargando/c{$valor}.gif' /></h2>";

in the file: lib/html.inc.php
at line nbr: 113
which is in func: html_redirect
right after the lines:
    if ($headerdisplayed)
        {
            echo "<p align='center'><a href=\"{$url}\">{$GLOBALS['strContinue']}</a>

";
        }
The lines that I addes show a progress bar or progress circle,
random selected from 90 different symbols.
I add the images in a compressed file. I suppose you'll translate to english ...
It gives the user something to watch when he is waiting for the next screen to appear.
I do not know whether you prefer to have it here, a forum topic or some other internet page . . . ?
So I apologize if it is not apropiate here. I just want to help to make it better.
Greetings,
Frans
patch
jpg example_progress_bar.jpg (67,781) 2014-03-20 20:37
http://bugs.sitracker.org/file_download.php?file_id=245&type=bug
jpg

zip cargando.zip (445,334) 2014-03-20 20:38
http://bugs.sitracker.org/file_download.php?file_id=246&type=bug
zip cargando_23_july_2014.zip (1,643,381) 2014-07-23 21:33
http://bugs.sitracker.org/file_download.php?file_id=259&type=bug
jpg examples.jpg (215,475) 2014-07-23 21:38
http://bugs.sitracker.org/file_download.php?file_id=260&type=bug
jpg
Issue History
2014-03-20 20:37FransNew Issue
2014-03-20 20:37FransFile Added: example_progress_bar.jpg
2014-03-20 20:38FransFile Added: cargando.zip
2014-04-10 13:42ivanTag Attached: patch
2014-04-10 13:42ivanNote Added: 0004928
2014-04-10 13:42ivanStatusnew => acknowledged
2014-05-14 20:32FransNote Added: 0004937
2014-07-23 21:33FransFile Added: cargando_23_july_2014.zip
2014-07-23 21:35FransNote Added: 0004952
2014-07-23 21:38FransFile Added: examples.jpg
2014-07-23 21:41FransNote Added: 0004953

Notes
(0004928)
ivan   
2014-04-10 13:42   
Thanks
(0004937)
Frans   
2014-05-14 20:32   
I reached a total of 210 different animations.
(0004952)
Frans   
2014-07-23 21:35   
The uploaded file cargando_23_july_2014.zip
has 299 animations.
Just change the values in the rand function like this

  $valor = rand (100, 398);
  echo "<h2><img src='{$CONFIG['application_webpath']}images/gifs/cargando/c{$valor}.gif' alt=\" --------------------- {$valor} ------------------- \" /></h2>";

I have added the alt-tag just in case. It is not necessary.
(0004953)
Frans   
2014-07-23 21:41   
I programmed a page to show all the animations:
see uploaded file: examples.jpg


$permission = 5;

require ('core.php');
require (APPLICATION_LIBPATH . 'functions.inc.php');
require (APPLICATION_LIBPATH . 'auth.inc.php');
include (APPLICATION_INCPATH . 'htmlheader.inc.php');


echo "<table class='vertical' border=6>";
        
for ($k = 100; $k <= 397; $k += 3)
    {
    $columna1 = $k;
    $columna2 = $k+1;
    $columna3 = $k+2;
    
    echo "<tr><td>{$columna1}   <img src='{$CONFIG['application_webpath']}images/gifs/cargando/c{$columna1}.gif' alt=\"Imagen {$columna1}\" /></td>";
    echo "<td>{$columna2}   <img src='{$CONFIG['application_webpath']}images/gifs/cargando/c{$columna2}.gif' alt=\"Imagen {$columna2}\" /></td>";
    echo "<td>{$columna3}   <img src='{$CONFIG['application_webpath']}images/gifs/cargando/c{$columna3}.gif' alt=\"Imagen {$columna3}\" /></td></tr>";
    }

echo "</table>";

include (APPLICATION_INCPATH . 'htmlfooter.inc.php');