var InitialState = 1; // 1 or 2 = hidden or visible var showDetails = 1; // 1 or 2 = hidden or visible var showFileList = 1; // 1 or 2 = hidden or visible var MeterWidth = 500; // Must be multiple of 100 pixels var HideForm = 2; // Colapse form when submitted ? 1 : 2 var DisableBtn = 1; // Disable Submit Button onsubmit ? 1 : 2 var Row1BG = "#72B8F5"; // File stat table's first row background color var Row2BG = "#E0F0FF"; // 2nd and 4th row's background colors var Row3BG = "#EAFAFF"; // 3rd row's background color var CurRowBG = "#fcf9e8"; // current file row's background color var FinRowBG = "#FFD700"; // finished file row's background color var borderClr = "#FFFFFF"; // color of border for both info tables var borderWidth = 3; // pixel width of border for both info tables var ProgBarBG = "#fcf9e8"; // Progress bar's background color var ProgBarFG = "#FF0000"; // Progress bar's completed color var FontSze = 13; // font size in pixels var FontFamily = "Arial,Helvetica,sans-serif"; // font name var FontClr = "#000000"; // font color var UseKBytes = 1; // 1 or 2 = kb or mb var JSdebugging = 2; // 1 or 2 = kb or mb var req = 0; var JSargs = ""; var ScriptURL = ""; var ScriptCmd1 = ""; var ScriptCmd2 = "progress"; var UID = new Date(); UID = UID.getTime(); var types = new Array(); types[0] = "zip"; types[1] = "jpg"; types[2] = "pdf"; types[3] = "gif"; types[4] = "png"; function printProgressMeter(){ var UMMeter = ""; BS = UseKBytes == 1 ? 'KB' : 'MB'; divVis = InitialState == 1 ? 'block' : 'none'; MeterWidth = MeterWidth % 100 == 0 ? MeterWidth : 300; MeterWidth = MeterWidth < 100 ? 100 : MeterWidth > 1000 ? 1000 : MeterWidth; MeterFactr = MeterWidth / 100; UMMeter += '\n'; UMMeter += '
';
UMMeter += ' \n\n';
UMMeter += ' \n';
UMMeter += '\n\n';
if(showDetails == 1 || JSdebugging == 1){
UMMeter += '
\n'; } if(showFileList == 1 || JSdebugging == 1){ UMMeter += '
Troubleshooting Data Click here for more information \n';
}
UMMeter += ' |
totalFiles | ' + totalFiles + ' |
percentDone | ' + percentDone + ' |
progressPxW | ' + progressPxW + ' |
fileNames | ' + fileNames + ' |
RawString | ' + req.responseText + ' |
File Name | \n'; fListMsg += 'Status | \n'; fListMsg += '
' + allFiles[a] + ' | \n'; fListMsg += '' + fileStatus + ' | \n'; fListMsg += '