From 66ab7b5f29c8206d3f3615ba34eb5f8eeb516967 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 10 Jul 2010 04:13:04 +0400 Subject: [PATCH] [27] Fixed calculate the brogress bar. The field title is after a field id. Signed-off-by: Ivan --- config.php | 2 +- lib/html.php | 47 ++++++++++++++++++++++++++--------------------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/config.php b/config.php index 2302769..deccac4 100644 --- a/config.php +++ b/config.php @@ -50,7 +50,7 @@ function get($id) ## installquery: Count of query for install. Do not change! ##################################################################################################*/ "CheckVersion" => false, - "version" => 26, + "version" => 27, "checkdiff" => 2, "installquery" => 213, /*################################################################################################## diff --git a/lib/html.php b/lib/html.php index dde0c53..ead5750 100644 --- a/lib/html.php +++ b/lib/html.php @@ -109,7 +109,7 @@ public function viewall($all) public function progress($all) { $pcn = $all['percentage']; - $pix = str_replace("%","",$pcn)*9.55; + $pix = str_replace("%","",$pcn)*9.58; $text = ' @@ -129,14 +129,17 @@ public function detail($int) $this->blocknot($this->viewall($all)); $this->blocknot($this->progress($all)); + $area3 = ''; + if($all['text_3']) + $area3 = '
Пояснение:
'; + echo ''; $text = '
- +
Сейчас так:
+
Сейчас так:
А должно быть так:
-
Пояснение:
- + '.$area3.'
@@ -204,23 +207,25 @@ public function view() $mass = array( 1 => array("30px","#"), - 2 => array("120px","Отправитель"), - 3 => array("100px","Прогресс"), - 4 => array("100px","Статус"), - 5 => array("100px","Приоритет")); + 2 => array("513px","Заголовок"), + 3 => array("120px","Отправитель"), + 4 => array("100px","Прогресс"), + 5 => array("100px","Статус"), + 6 => array("100px","Приоритет")); $text = ' '; for($i=1;$iget("progressbar")) || $i != 3) + if(($i == 4 && $cfg->get("progressbar")) || $i != 4) { $text.= ''; - $text.= ''; + if($i != count($mass)) + $text.= ''; } $text.= ' - -
'.$mass[$i][1].'
Заголовок
'; +
'; $this->blocknot($text); $text = ''; $psort = ''; @@ -261,7 +266,7 @@ public function view() $title = $all['title']; $pcn = $main->GetPercent($all); - $pix = str_replace("%","",$pcn)*1.25; + $pix = str_replace("%","",$pcn); $stream = 'stream'.$row['id']; $width = ($cfg->get("anim") == true) ? 0 : $pix; $img = '
'; @@ -270,18 +275,18 @@ public function view() - + + + '; if($cfg->get("progressbar")) $text.= ' - + '; $text.= ' - - - + - + '; if($cfg->get("anim") && $pix > "0") @@ -333,11 +338,11 @@ public function edit($id,$text) $opt = $main->SelectOptions($id); $userid = $all['account']; $username = $main->GetAccountNameById($userid); - if($cfg->get("LinkAccount"))$username = ''.$username.''; + if($cfg->get("LinkAccount"))$username = ''.$username.''; $charguid = $all['sender']; $charname = $main->GetNameByGUID($charguid); - if($cfg->get("LinkPlayer"))$charname = ''.$charname.''; + if($cfg->get("LinkPlayer"))$charname = ''.$charname.''; $text = '
'.$row['id'].'
'.$main->GetNameByGUID(intval($row['sender'])).'
'.$title.'
'.$main->GetNameByGUID(intval($row['sender'])).'
'.$img.''.$img.'
'.$main->GetStatus($all).'
'.$main->GetPriority($all).'
'.$main->GetStatus($all).'
'.$title.'
'.$main->GetPriority($all).'