コード例 #1
0
ファイル: tpl.card.php プロジェクト: Nikitian/fl-ru-damp
    ?>
            онлайн удаленно
        <?php 
}
?>
    </div>
    
    <h2 class="b-txt__title b-txt__title_padnull b-txt_lh_1 b-txt__title_padnull">Что нужно, чтобы начать</h2>
    <div class="b-txt b-txt_padbot_40">
        <?php 
echo reformat($data['requirement'], 60, 0, 0, 1);
?>
    </div>  
    
    <form action="<?php 
echo tservices_helper::getOrderUrl($data['id']);
?>
" id="__form_tservice" method="post" enctype="multipart/form-data">
        
    <?php 
if ($data['extra']) {
    ?>
    
    <h2 class="b-txt__title b-txt_lh_1 b-txt__title_padnull">Дополнительно</h2>
    <table class="b-layout__table_margbot_40 b-layout__table">
            <?php 
    $cnt = count($data['extra']);
    foreach ($data['extra'] as $key => $el) {
        $is_last = $cnt == $key + 1;
        ?>
           <tr class="b-layout__tr">
コード例 #2
0
 public function testGetOrderUrl()
 {
     $url = isset($_SESSION) ? tservices_helper::url('order_url') : tservices_helper::url('sbr_url');
     $this->assertEquals(tservices_helper::getOrderUrl(7777), sprintf($url, 7777));
 }