/** * Put design progress bar code * $text - progress bar text * $width - width of progress bar in pixels * $max_pos - maximal position of progress bar * $curr_pos - current position of progress bar **/ function DesignProgressPos($text, $width, $max_pos, $curr_pos, $progress_num = '1') { if ($max_pos) { $percent = $curr_pos * 100 / $max_pos; } else { $percent = 0; } return DesignProgress($text, $width, $percent, $progress_num); }
/** * Put design progress bar code * $text - progress bar text * $width - width of progress bar in pixels * $max_pos - maximal position of progress bar * $curr_pos - current position of progress bar **/ function DesignProgressPos($text, $width, $max_pos, $curr_pos, $progress_num = '1') { $percent = $max_pos ? $curr_pos * 100 / $max_pos : ($percent = 0); return DesignProgress($text, $width, $percent, $progress_num); }