Create a custom progress bar panel
There are 4 simple steps to create a custom progress bar panel:
- Create a panel control which will be used as custom progress bar panel.
- Create a label control inside panel control. This label control will be used as custom progress text label.
- Use the ProgressCtrlID property to specify the ID of panel control.
- Use the ProgressTextID property to specify the ID of progress text label.
Example:
-
- <?php require_once "phpuploader/include_phpuploader.php" ?>
- <html>
- <body>
- <form id="form1" method="POST">
- <?php
-
- $uploader=new PhpUploader();
-
- $uploader->Name="myuploader";
-
- $uploader->ProgressCtrlID="uploaderprogresspanel";
-
- $uploader->ProgressTextID="uploaderprogresstext";
-
- uploader->Render();
- ?>
- <div id="uploaderprogresspanel" style='display:none;background-color:orange;border:dashed 2px gray;padding:4px;' BorderColor="Orange" BorderStyle="dashed">
- <span id="uploaderprogresstext" style='color:firebrick'></span>
- </div>
- </form>
- </body>
- </html>