Пример #1
0
                                <th class="all" style="min-width: 30px;" data-orderable="false">&nbsp</th                      
                            </tr>
                            <tr class="yadcf-filters">
                                <th></th>     
                                <th></th>                                                                          
                                <th></th>           
                                <th></th>
                                <th></th>
                                <th></th>                                
                            </tr>                                        
                        </thead>
                        <tbody>
                            <?php 
if ($data['prac_etaty']) {
    foreach ($data['prac_etaty'] as $row) {
        $color = Log::colorLog($row->type);
        if (!is_null($row->id)) {
            $exist = '<span data-popup="tooltip" title="' . $row->first_name . ' ' . $row->last_name . ' (ID:' . $row->id . ')"><i class="icon-user text-success"></i></span>';
        } else {
            $exist = '';
        }
        $use = "<ul class=\"icons-list\"><li class=\"select-optima-id\" data-data-optima=\"{$row->o_PRE_PraId}\"><i data-popup=\"tooltip\" data-placement=\"left\" title=\"" . Language::show('use_this', 'users') . "\" class=\"icon-select2 cursor-pointer\"></i></li></ul>";
        echo "<tr>";
        echo "<td>{$row->o_PRE_Imie1}</td>";
        echo "<td>{$row->o_PRE_Nazwisko}</td>";
        echo "<td>{$row->o_PRE_PraId} {$exist}</td>";
        echo "<td data-filter=\"" . Date::showDate($row->o_PRE_ZatrudnionyOd, 'local', 'local') . "\" data-sort=\"{$row->o_PRE_ZatrudnionyOd}\">" . Date::showDate($row->o_PRE_ZatrudnionyOd, 'local', 'local') . "</td>";
        echo "<td data-filter=\"" . Date::showDate($row->o_PRE_ZatrudnionyDo, 'local', 'local') . "\" data-sort=\"{$row->o_PRE_ZatrudnionyDo}\">" . Date::showDate($row->o_PRE_ZatrudnionyDo, 'local', 'local') . "</td>";
        echo "<td>                                           \n                                                {$use}\n                                        </td>";
        echo "</tr>";
    }