示例#1
0
    <?php 
                    if ($cost_hour_text != '') {
                        ?>
    <tr>
    	<td style="padding:8px 16px 2px 0px; vertical-align: top;">Оценка часа работы: <span class="money"><?php 
                        echo $cost_hour_text;
                        ?>
</span></td>
    </tr>
    <?php 
                    }
                    ?>
 
    
    <?php 
                    $time_text = view_range_time($prj['time_from'], $prj['time_to'], $prj['time_type']);
                    if ($time_text != '') {
                        ?>
    <tr>
    	<td style="padding:8px 16px 2px 0px; vertical-align: top;">Сроки: <?php 
                        echo $time_text;
                        ?>
.</td>
    </tr>
    <?php 
                    }
                }
                ?>
    
    <?php 
                if (hasPermissions('users')) {
示例#2
0
 public function prepareCostText($prof, $stop_words = null)
 {
     if ($stop_words == null) {
         $stop_words = new stop_words(hasPermissions('users'));
     }
     $prof['portf_text'] = trim($prof['on_moder'] && $user->is_pro != 't' ? $stop_words->replace($prof['portf_text']) : $prof['portf_text']);
     if ($prof['proftext'] == 't') {
         $prof['cost_text'] = view_cost2($prof['cost_1000'], '', '', false, $prof['cost_type']);
         $prof['cost_hour_text'] = view_cost2($prof['cost_hour'], '', '', false, $prof['cost_type_hour']);
     } else {
         $prof['time_text'] = view_range_time($prof['time_from'], $prof['time_to'], $prof['time_type']);
         $prof['cost_from_text'] = view_cost2($prof['cost_from'], '', '', false, $prof['cost_type']);
         $prof['cost_to_text'] = view_cost2($prof['cost_to'], '', '', false, $prof['cost_type']);
         $prof['cost_hour_text'] = view_cost2($prof['cost_hour'], '', '', false, $prof['cost_type_hour']);
         $prof['from_text'] = $prof['cost_from_text'] != '' ? "от " . $prof['cost_from_text'] : "";
         $prof['to_text'] = $prof['cost_to_text'] != '' ? "до " . $prof['cost_to_text'] : "";
     }
     $prof['is_pro_profession'] = $prof['prof_id'] == professions::BEST_PROF_ID || $prof['prof_id'] == professions::CLIENTS_PROF_ID;
     return $prof;
 }
                      <?php 
                }
                ?>
               </td>
             </tr>
            </table>

                <div id="po_u_<?php 
                echo $value['id'];
                ?>
" class="b-layout b-layout_padleft_60">
                        <?php 
                if ($project['user_id'] == $_SESSION['uid'] || $_SESSION['uid'] == $value['user_id'] || hasPermissions('projects')) {
                    ?>
                           <?php 
                    $txt_time = view_range_time($value['time_from'], $value['time_to'], $value['time_type']);
                    ?>
                                                    
                           <div class="b-layout__txt"><?php 
                    echo $txt_time;
                    ?>
</div>
                           <?php 
                    $txt_cost = view_range_cost2($value['cost_from'], $value['cost_to'], '', '', false, $value['cost_type']);
                    if ($txt_cost != '') {
                        ?>
                              <div class="b-layout__txt"><?php 
                        echo $txt_cost;
                        ?>
</div>
                           <?php 
示例#4
0
        echo $user_offer['country_name'];
        if (${$user_offer}['city_name'] != 'Не определено') {
            if ($user_offer['country_name'] && $user_offer['city_name']) {
                ?>
, <?php 
            }
            echo $user_offer['city_name'];
            ?>
<br /><?php 
        }
    }
    ?>
                </td>
                <td style="text-align:center;vertical-align:top;">
                <?php 
    $txt_time = view_range_time($user_offer['time_from'], $user_offer['time_to'], $user_offer['time_type']);
    ?>
                <h1 style="margin-bottom:0px;"><?php 
    echo $txt_time;
    ?>
</h1>
                </td>
                <td style="text-align:right;vertical-align:top;"><?php 
    $txt_cost = view_range_cost($user_offer['cost_from'], $user_offer['cost_to'], '', '', false);
    if ($txt_cost != '') {
        ?>
<span style="text-align:left;padding:0px;margin:0px;">
                <h1 style="margin:0px;text-align:right;"><?php 
        echo $txt_cost;
        ?>
</h1>