Skip to content

Commit

Permalink
v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeedas committed Dec 6, 2011
1 parent 628b27e commit 01c109f
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions WebObjects/Panels/Right/ParamosPriemoniuPrognoziuLentele.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,38 @@
class ParamosPriemoniuPrognoziuLentele extends MainPanel{

private $ParamosPriemonesPrognozes = "";
private $prognozuojamiMenesiai = "";

public function __construct($paramosPriemoniuPrognozes){
$this->progMen();
foreach($paramosPriemoniuPrognozes as $p){
$this->ParamosPriemonesPrognozes .= $this->getPriemonesPrognozes($p);
}
}

private function progMen(){

$h = "";
foreach(OrganizacijosPrognozes::getPrognozuojamiMenesiai() as $men1){
$men = <<<FFF
<td class="menTd">
<svg width="12px" height="50px" xmlns='http://www.w3.org/2000/svg'>
<text x='-40' y='10' font-family='Tahoma' font-size='12' transform='rotate(-90)' text-rendering='optimizeSpeed' fill='#888'>{$men1}</text>
</svg>
</td>
FFF;
$h .= $men;
}

$a =<<<FFF
<tr>
<td class="tdPavv"><b>Priemonė</b></td>
{$h}
</tr>
FFF;
$this->prognozuojamiMenesiai = $a;
}

private function getPriemonesPrognozes($ParamosPriemone){
$paramosPriemonesId = $ParamosPriemone['paramosPriemone'];
$paramPriemone = new ParamosPriemones($paramosPriemonesId);
Expand Down Expand Up @@ -39,25 +64,7 @@ protected function htmlContent(){
<div class="post">
<p style="color:#CA4C44;">Administravimo sąnaudos paramos priemonėms valandomis:</p>
<table width="100%" cellpadding="0px" cellspacing="0px">
<tr>
<td class="tdPavv"><b>Priemonė</b></td>
<td class="menTd">
<svg width="12px" height="40px" xmlns='http://www.w3.org/2000/svg'>
<text x='-40' y='10' font-family='Tahoma' font-size='12' transform='rotate(-90)' text-rendering='optimizeSpeed' fill='#888'>2001-02</text>
</svg>
</td>
<td class="menTd"><b>02</b></td>
<td class="menTd"><b>03</b></td>
<td class="menTd"><b>04</b></td>
<td class="menTd"><b>05</b></td>
<td class="menTd"><b>06</b></td>
<td class="menTd"><b>07</b></td>
<td class="menTd"><b>08</b></td>
<td class="menTd"><b>09</b></td>
<td class="menTd"><b>10</b></td>
<td class="menTd"><b>11</b></td>
<td class="menTd"><b>12</b></td>
</tr>
{$this->prognozuojamiMenesiai}
{$this->ParamosPriemonesPrognozes}
</table>
</div>
Expand Down

0 comments on commit 01c109f

Please sign in to comment.