Beispiel #1
0
        <tr data-id="<?php 
            echo $entry['time_tracker_id'];
            ?>
">
            <td><?php 
            echo $start_time . ' - ' . $end_time;
            ?>
</td>
            <td><?php 
            echo $start_date;
            ?>
</td>
            <td><?php 
            echo $diff;
            ?>
hr</td>
            <td><img src="images/trash_can.png" alt="delete" onclick="tt.delTimeEntry(<?php 
            echo $entry['time_tracker_id'];
            ?>
);" /></td>
        </tr>
            <?php 
        }
        break;
    case 'delTimeEntry':
        $result = $timetracker->delTimeEntry($_REQUEST['tt_id']);
        if ($result) {
            echo 'pass';
        }
        break;
}