Changeset 243


Ignore:
Timestamp:
Aug 29, 2009, 8:18:14 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Aktivování generování řízení rychlosti sítě.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/zivnost.php

    r207 r243  
    7171    $Row = $DbResult->fetch_array();
    7272    $Balance['SmallAssets']['End'] = $Row[0] + 0;
    73           return($Balance);
     73    return($Balance);
    7474  }
    7575
    7676  function Show()
    7777  {
    78           if(!$this->System->Modules['User']->CheckPermission('Finance', 'TradingStatus')) return('Nemáte oprávnění');
     78    if(!$this->System->Modules['User']->CheckPermission('Finance', 'TradingStatus')) return('Nemáte oprávnění');
    7979    $this->System->Modules['Finance']->LoadTariffs(1);
    8080    //TransformFinance();
     
    8787        $Output = '<table style="font-size: smaller;" class="WideTable">';
    8888        $Output .= '<tr><th colspan="3">Účetní období</th><th colspan="5">Na konci</th><th colspan="6">Během</th></tr>'.
    89                   '<tr><th>Rok</th><th>Od</th><th>Do</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Základ daně</th></tr>';
     89      '<tr><th>Rok</th><th>Od</th><th>Do</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Základ daně</th></tr>';
    9090
    9191        $this->StartEvidence = mktime(0, 0, 0, 12, 1, 2007);
     
    9999          if($StartTime < $this->StartEvidence) $StartTime = $this->StartEvidence;
    100100
    101                   $Balance = $this->GetTimePeriodBalance($StartTime, $EndTime);
     101      $Balance = $this->GetTimePeriodBalance($StartTime, $EndTime);
    102102
    103103          $Output .= '<tr><td>'.$Year.'</td><td>'.date(HumanDate(TimeToMysqlDateTime($StartTime))).'</td><td>'.date(HumanDate(TimeToMysqlDateTime($EndTime))).'</td>';
     
    120120        $Output = '<table class="WideTable" style="font-size: smaller;">';
    121121        $Output .= '<tr><th colspan="4">Účetní období</th><th colspan="5">Na konci</th><th colspan="6">Během</th></tr>'.
    122                   '<tr><th>Rok</th><th>Měsíc</th></th><th>Od</th><th>Do</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Základ daně</th></tr>';
     122      '<tr><th>Rok</th><th>Měsíc</th></th><th>Od</th><th>Do</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Příjmy</th><th>Výdaje</th><th>Pohledávky</th><th>Závazky</th><th>Drobný majetek</th><th>Základ daně</th></tr>';
    123123
    124124        $this->StartEvidence = mktime(0, 0, 0, 12, 1, 2007);
     
    133133            $StartTime = mktime(0, 0, 0, $Month, 1, $Year);
    134134            if(($StartTime < time()) and ($EndTime > $this->StartEvidence))
    135                         {
    136                           if($StartTime < $this->StartEvidence) $StartTime = $this->StartEvidence;
    137 
    138                       $Balance = $this->GetTimePeriodBalance($StartTime, $EndTime);
     135      {
     136        if($StartTime < $this->StartEvidence) $StartTime = $this->StartEvidence;
     137
     138          $Balance = $this->GetTimePeriodBalance($StartTime, $EndTime);
    139139
    140140              $Output .= '<tr><td>'.$Year.'</td><td>'.$Month.'</td><td>'.date(HumanDate(TimeToMysqlDateTime($StartTime))).'</td><td>'.date(HumanDate(TimeToMysqlDateTime($EndTime))).'</td>';
     
    151151              $Output .= '<td>'.($Balance['SmallAssets']['End'] - $Balance['SmallAssets']['Start']).'</td>';
    152152              $Output .= '<td>'.(($Balance['Income']['End'] - $Balance['Income']['Start']) - ($Balance['Spend']['End'] - $Balance['Spend']['Start'])).'</td></tr>';
    153                     }
    154                   }
     153        }
     154      }
    155155        }
    156156        $Output .= '</table>';
     
    256256        $Row = $DbResult->fetch_array();
    257257        $Output .= 'Stav placení: '.($Row['AdvancesIn'] - $Row['AdvancesOut'] - $Row['OpenedClaims'] + Abs($Row['OpenedLiabilities']));
     258        break;
     259      case 'PrintMonthOperations':
     260        $Output .= '<table><tr><th>Datum</th><th>Subjekt</th><td></td></tr></table>';
     261        break;
     262      case 'PrintMonthOperations':
     263        $Output .= 'Výpis operací od '.$_GET['TimeFrom'].' do '.$_GET['TimeTo'];
     264        $Output .= '<table><tr><th>Datum</th><th>Subjekt</th><th>Suma [Kč]</th><td></td></tr></table>';
    258265        break;
    259266      default:
  • trunk/system/generators/traffic_shaping_routerboard.php

    r241 r243  
    133133}
    134134
    135 //$Routerboard->ListUpdate($PathQueue, array('name', 'limit-at', 'max-limit', 'parent', 'packet-mark', 'queue'), $ItemsQueue, array(), true);
     135$Routerboard->ListUpdate($PathQueue, array('name', 'limit-at', 'max-limit', 'parent', 'packet-mark', 'queue'), $ItemsQueue, array(), true);
    136136$Routerboard->ListUpdate($PathFirewall, array('chain', 'dst-address', 'in-interface', 'action', 'new-packet-mark', 'passthrough', 'comment', 'out-interface', 'src-address', 'jump-target'), $ItemsFirewall, array(), true);
    137137
Note: See TracChangeset for help on using the changeset viewer.