echo $this->_sections['i']['index'];
                ?>
" value="<?php 
                echo $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fSubAmount'];
                ?>
" /> </span>
                                                    <span class="slvt" style="display:inline-block; height:10px; width:82px; margin:0px; text-align:right;"><span class="slv"><?php 
                echo is_array($_tmp = $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fSubVat']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
                ?>
</span></span>
                                                    <span class="slot" style="display:inline-block; height:10px; width:50px; margin:0px; text-align:right;display:none;"><span class="slo"><?php 
                echo is_array($_tmp = $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fSubOtherTax']) ? $this->_run_mod_handler('toFixed', true, $_tmp, true) : toFixed($_tmp, true);
                ?>
</span></span>
                                                    <span class="slwt" style="display:inline-block; height:10px; width:82px; margin:0px; text-align:right;"><span class="slw"><?php 
                echo is_array($_tmp = $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fSubWHTax']) ? $this->_run_mod_handler('toFixed', true, $_tmp, true) : toFixed($_tmp, true);
                ?>
</span></span>
                                                    <span class="sltt" style="display:inline-block; height:10px; width:157px; margin:0px; text-align:right;"><span class="slf"><?php 
                echo is_array($_tmp = $this->_tpl_vars['invoiceData'][$this->_sections['i']['index']]['fSubTotal']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
                ?>
</span></span>
                                                    <!---->
                                                </div>
                                            </div>
                                            <?php 
            }
            ?>
                                            <div>&nbsp;</div>
                                            <?php 
        }
Exemplo n.º 2
0
 /**
  * Storage Format
  *
  * @param float  $storage Integer Storage
  * @param string $nivel   Nivel Storage
  *
  * @return string
  */
 function storageFormat($storage, $nivel = null)
 {
     $storage = trim($storage);
     if (!is_numeric($storage)) {
         return $storage;
     }
     $sizes = ['KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4, 'PB' => 5];
     if (!is_null($nivel) && array_key_exists(strtoupper($nivel), $sizes)) {
         $multi = 1024 * pow(1000, $sizes[strtoupper($nivel)]);
         $storage = $storage * $multi;
         if ($storage >= $multi) {
             $storage = $storage / 1024;
         }
     }
     $sufix = 'B';
     foreach (array_keys($sizes) as $size) {
         if ($storage >= 1000) {
             $storage = $storage / 1000;
             $sufix = $size;
         }
     }
     return toFixed($storage, 1) . $sufix;
 }
Exemplo n.º 3
0
function finalize()
{
    global $params, $files, $thumbs, $border;
    // correct margin with frame border
    if (!(int) $params->noFrame) {
        $params->backMarginsTop += $border->top;
        $params->backMarginsBottom += $border->bottom;
    }
    //correct margin with thumbnails height
    if ($params->Thumbnails) {
        $thumbs->margin = $thumbs->margin ? $thumbs->margin : 0;
        $thumbs->padding = $thumbs->padding ? $thumbs->padding : 0;
        $count = (int) $params->ImageCount;
        $horizontal = $params->ThumbAlign == "top" || $params->ThumbAlign == "bottom";
        // in pixels
        $thumbFullWidth = ($thumbs->margin + $thumbs->padding) * 2 + (int) $params->ThumbWidth;
        $thumbFullHeight = ($thumbs->margin + $thumbs->padding) * 2 + (int) $params->ThumbHeight;
        // container width in pixels
        $params->thumbParentWidth = ceil($thumbFullWidth * ($horizontal ? $count : 1));
        // thumb padding, margin in percent
        $params->thumbMargin = toFixed(100 * $thumbs->margin / $params->thumbParentWidth, 2);
        $params->thumbPadding = toFixed(100 * $thumbs->padding / $params->thumbParentWidth, 2);
        $params->thumbOnePercent = 100 / ($horizontal ? $count : 1) - 2 * $params->thumbMargin - 2 * $params->thumbPadding;
        $params->thumbFullWidthEm = ($thumbFullWidth + 15) / 10;
        $params->thumbFullHeightEm = ($thumbFullHeight + 15) / 10;
        // max width in left/right filmstrip cont
        $params->thumbContMaxWidth = 2 * $thumbs->margin + 2 * $thumbs->padding + $thumbFullWidth;
        // offset
        $params->thumbMarginWidthEm = ($thumbFullWidth + 15 + $border->left) / 10;
        $params->thumbMarginHeightEm = ($thumbFullHeight + 15 + $border->top) / 10;
        $params->thumbContWidthEm = $params->thumbMarginWidthEm * $count;
        if ($params->contMaxHeight != 'none' && $horizontal) {
            $params->contMaxHeight = (double) $params->contMaxHeight + $thumbFullHeight + 'px';
        }
        if ($params->SizeStyle <= 1 && !horizontal) {
            $params->contMaxWidth = (double) $params->contMaxWidth + $params->thumbContMaxWidth + 'px';
        }
    }
    $params->bulframeImageWidth = 100 / (int) $params->ImageCount;
    $params->fullHeight += max($params->backMarginsBottom, max(-($params->BulletsBottom ? $params->BulletsBottom : 0), $params->ShadowH ? $params->ShadowH : 0)) + $params->backMarginsTop;
    $params->fullWidth += max(max((!(int) $params->noFrame ? $border->right : 0) + (!(int) $params->noFrame ? $border->left : 0), $params->addWidth ? $params->addWidth : 0), $params->ShadowW ? $params->ShadowW : 0);
    if (preg_match('/left|right/', $params->ThumbAlign)) {
        $params->fullWidth += $params->thumbMarginWidth;
    }
    $params->PageBgColor = $params->PageBgColor ? $params->PageBgColor : "transparent";
    // responsive code
    array_push($files, (object) array('src' => 'common/style-responsive.css', 'dest' => '$CssPath$style.css', 'filters' => array('params')));
    array_push($files, (object) array('src' => 'common/style-override.css', 'dest' => '$CssPath$style.css', 'filters' => array('params')));
}
                                                <!---->
                                                <span style='display:inline-block; height:10px; width:175px; margin:0px; text-align:left;' class="sltyp"><?php 
            echo $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['eSublineType'];
            ?>
 </span>
                                                <span class="slqt" style="display:inline-block; height:10px; width:119px; margin:0px; text-align:right;"><span class="sqt"><?php 
            echo is_array($_tmp = $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['iSubQuantity']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, false) : formatMoney($_tmp, false);
            ?>
</span></span> &nbsp;&nbsp;&nbsp;
                                                <span class="slrt" style="display:inline-block; height:10px; width:74px; margin:0px; text-align:right;"><span class="srt"><?php 
            echo is_array($_tmp = $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['fSubRate']) ? $this->_run_mod_handler('formatMoney', true, $_tmp, true) : formatMoney($_tmp, true);
            ?>
%</span></span> &nbsp;&nbsp;&nbsp;
                                                <!---->
                                                <span class="sltl" style="display:inline-block; height:10px; width:104px; margin:0px; text-align:right;"><span class="stl"><?php 
            echo is_array($_tmp = $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['fSubAmount']) ? $this->_run_mod_handler('toFixed', true, $_tmp, true) : toFixed($_tmp, true);
            ?>
</span></span>
                                                <span class="slvt" style="display:inline-block; height:10px; width:72px; margin:0px; text-align:right;"><span class="slv"><?php 
            echo $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['fSubVat'];
            ?>
</span></span>
                                                <span class="slot" style="display:inline-block; height:10px; width:54px; margin:0px; text-align:right;display: none;"><span class="slo"><?php 
            echo $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['fSubOtherTax'];
            ?>
</span></span>
                                                <span class="slwt" style="display:inline-block; height:10px; width:84px; margin:0px; text-align:right;"><span class="slw"><?php 
            echo $this->_tpl_vars['invitems'][$this->_sections['i']['index']]['fSubWHTax'];
            ?>
</span></span>
                                                <span class="sltt" style="display:inline-block; height:10px; width:117px; margin:0px; text-align:right;"><span class="slf"><?php 
                ?>
block<?php 
            }
            ?>
; padding:3px; padding-left:12px;">
                                                    <!---->
                                                    <span style='display:inline-block; height:10px; width:228px; margin:0px; text-align:left;' class="sltyp"><?php 
            echo $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['eSublineType'];
            ?>
 </span>
                                                    <span class="slqt" style="display:inline-block; height:10px; width:70px; margin:0px; text-align:right;"><span class="sqt"><?php 
            echo $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['iSubQuantity'];
            ?>
</span></span> &nbsp;&nbsp;&nbsp;
                                                    <span class="slrt" style="display:inline-block; height:10px; width:69px; margin:0px; text-align:right;"><span class="srt"><?php 
            echo is_array($_tmp = $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['fSubRate']) ? $this->_run_mod_handler('toFixed', true, $_tmp) : toFixed($_tmp);
            ?>
%</span></span> &nbsp;&nbsp;&nbsp;
                                                    <!---->
                                                    <span class="sltl" style="display:inline-block; height:10px; width:75px; margin:0px; text-align:right;"><span class="stl"><?php 
            echo $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['fSubAmount'];
            ?>
</span></span>

                                                    <span class="slvt" style="display:inline-block; height:10px; width:77px; margin:0px; text-align:right;"><span class="slv"><?php 
            echo $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['fSubVat'];
            ?>
</span></span>
                                                    <span class="slot" style="display:inline-block; height:10px; width:77px; margin:0px; text-align:right;"><span class="slo"><?php 
            echo $this->_tpl_vars['poitems'][$this->_sections['i']['index']]['fSubOtherTax'];
            ?>