示例#1
0
?>
').set('value', 0);"></a>
        <div class="b-layout__txt b-layout__txt_bold b-layout__txt_padbot_20 b-layout__txt_fontsize_13 b-layout__txt_float_left">Финансы</div>
        <table class="b-layout__table b-layout__table_width_full b-layout__table_margbot_20" cellpadding="0" cellspacing="0" border="0">
            <tr class="b-layout__tr">
                <td class="b-layout__left b-layout__left_width_120 b-layout__left_valign_middle">
                    <div class="b-layout__txt">Денег на счету</div>
                </td>
                <td class="b-layout__right">
                    <div class="b-combo b-combo_inline-block">
                        <div class="b-combo__input b-combo__input_width_135 ">
                            <input id="c3888" class="b-combo__input-text b-combo-digital-input" name="<?php 
echo $finance_name['money'];
?>
" type="text" size="80"  value="<?php 
echo _bill($message[$finance_check]['money']);
?>
" />
                        </div>
                    </div>
                    <span class="b-layout__txt b-layout__txt_inline-block b-layout__txt_padtop_5">&#160;руб.</span>
                </td>
            </tr>
        </table>
        <table class="b-layout__table b-layout__table_width_full b-layout__table_margbot_20" cellpadding="0" cellspacing="0" border="0">
            <tr class="b-layout__tr">
                <td class="b-layout__left b-layout__left_width_120 b-layout__left_valign_middle">
                    <div class="b-layout__txt b-layout__txt_lineheight_13">Последнее<br />списание</div>
                </td>
                <td class="b-layout__right">
                    <span id="i_<?php 
示例#2
0
                            </div>
                        </div>
                        <span class="b-layout__txt b-layout__txt_inline-block b-layout__txt_padtop_5">&#160;&#160;на сумму&#160;&#160;</span>
                        <div class="b-combo b-combo_inline-block">
                            <div class="b-combo__input b-combo__input_width_50">
                                <input id="c3c" class="b-combo__input-text b-combo-digital-input" name="<?php 
    echo sprintf(_bill($buying_name['sum']), 0, 0);
    ?>
" type="text" size="80" />
                            </div>
                        </div>
                        <span class="b-layout__txt">&#160;&mdash;&#160;</span>
                        <div class="b-combo b-combo_inline-block">
                            <div class="b-combo__input b-combo__input_width_50">
                                <input id="c3d" class="b-combo__input-text b-combo-digital-input" name="<?php 
    echo sprintf(_bill($buying_name['sum']), 0, 1);
    ?>
" type="text" size="80" />
                            </div>
                        </div>
                        <span class="b-layout__txt b-layout__txt_inline-block b-layout__txt_padtop_5">&#160;&#160;руб.</span>
                        <br/><br/>
                    </span>
                    <?php 
}
//else
?>
                </td>
            </tr>
        </table>
    </div>
示例#3
0
            echo round((double) $data[$dateKey][$value . '_card'], 2);
            ?>
);
                series[3].data.push(<?php 
            echo round((double) $data[$dateKey][$value . '_bank'], 2);
            ?>
);
                <?php 
            if ($index === 3) {
                ?>
                series[4].data.push(<?php 
                echo round((double) $data[$dateKey][$value . '_ww'], 2);
                ?>
);
                series[5].data.push(<?php 
                echo round(_bill((double) $data[$dateKey][$value . '_fm']), 2);
                ?>
);
                <?php 
            }
            ?>
            <?php 
        } elseif ($gr_type === 'normal') {
            ?>
                series[0].data.push(<?php 
            echo round((double) $data[$dateKey][$value], 2);
            ?>
);
            <?php 
        } elseif ($gr_type === 'avg_perc') {
            ?>
示例#4
0
            foreach ($months as $mon => $month) {
                if (!is_array($total_sums[$year][$mon])) {
                    $total_sums[$year][$mon] = array('sum' => 0, 'cnt' => 0);
                }
                $total_sums[$year][$mon]['sum'] += $month['sum'] * $exrates[$sys . exrates::BANK];
                $total_sums[$year][$mon]['cnt'] += $month['cnt'];
                $sum = round($month['sum']);
                $ssum = $sum ? $sum : '&nbsp;';
                $cnt = $sum ? intval($month['cnt']) : '&nbsp';
                ?>
                                <td class="<?php 
                echo $year % 2 ? 'o' : 'e';
                ?>
">
                                    <span><small style="color:#333"><?php 
                echo $sys == exrates::FM ? (int) $ssum > 0 ? _bill($ssum) : '' : $ssum;
                ?>
<br/><?php 
                echo $cnt;
                ?>
</small></span>
                                    <?php 
                if ($month['fm_sum'] && $st['total']['fm_max']) {
                    ?>
                                    <div style="height:<?php 
                    echo 1 + round(100 * ($month['fm_sum'] / $st['total']['fm_max']));
                    ?>
px"></div>
                                    <?php 
                } else {
                    ?>
示例#5
0
 /**
  * Шаблон бюджета, используемый в интерфейсе.
  * @param float   $cost       сумма
  * @param integer $cost_sys   код валюты {@link exrates}
  *
  * @return string   html-блок с бюджетом.
  */
 static function view_cost($cost, $cost_sys = NULL, $nozeros = true, $ds = '.', $sp = '&nbsp;')
 {
     global $EXRATE_CODES;
     if ($cost_sys == exrates::FM) {
         $cost = _bill($cost);
     }
     $cost = number_format($cost, 2, $ds, ' ');
     //if(strpos($cost, '.') == 5) $cost = str_replace(' ', '', $cost);
     if ($nozeros) {
         $cost = str_replace($ds . '00', '', $cost);
     }
     $cost = str_replace(' ', $sp, $cost);
     return $cost . ($cost_sys ? $sp . $EXRATE_CODES[$cost_sys][1] : '');
 }