Beispiel #1
0
                </div>-->
                <table class="table table-striped table-bordered table-condensed" id='allContactsTable'>
                    <thead>
                    <th>#</th>
                    <th>Категория</th>
                    <th>Статус</th>
                    <th>Приоритет</th>
                    <th>Тема</th>
                    <th>Назначена</th>
                    <th>Создана</th>
                    <th>Действия</th>
                    </thead>
                    <tbody>
                        <?php 
$count = 1;
$crmUser = new Tasks();
foreach ($table as $rows) {
    echo '<tr>' . '<td>' . $count++ . '</td>' . '<td>' . $rows->category . '</td>' . '<td>' . $rows->status . '</td>' . '<td>' . $rows->priority . '</td>' . '<td>';
    if ($rows->task_name !== "") {
        echo anchor("tasks/viewTask/" . $rows->id, $rows->task_name);
    } else {
        echo anchor("tasks/viewTask/" . $rows->id, substr($rows->task_description, 0, 80) . '...');
    }
    echo '</td>';
    echo '<td>' . $crmUser->getUserById($rows->assigned) . '</td>' . '<td>' . date('d.m.Y H:i:s', strtotime($rows->create_date)) . '</td>' . '<td>' . anchor("tasks/deleteTask/" . $rows->id, "Удалить", "class='btn btn-mini btn-danger pull-left'") . '</td>' . '</tr>';
}
?>
                    </tbody>
                </table>
            </div><!--/span-->
Beispiel #2
0
                                        <th scope="row">Выполнена</th>
                                        <td>
                                            <?php 
    if (!empty($row->end_date)) {
        echo date('d.m.Y H:i:s', strtotime($row->end_date));
    }
    ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th scope="row">Назначена</th>
                                        <td>
                                            <?php 
    $crmUser = new Tasks();
    if ($row->assigned !== '') {
        echo $crmUser->getUserById($row->assigned);
    }
    ?>
                                        </td>
                                        <th scope="row">Категория</th>
                                        <td>
                                            <?php 
    echo $row->category;
    ?>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <hr/>
                            <h4>Описание</h4>