示例#1
0
 public function display_logs()
 {
     $params = array();
     if (isset($_GET['page'])) {
         $params['page'] = $_GET['page'];
         $this->template->page = $_GET['page'];
     }
     $this->template->logs = Logs::get($params);
     $this->template->pager = Logbox::paginate('Logs', $params, 'http://logbox.localhost/logs');
     $this->template->display('logs.php');
 }
示例#2
0
    ?>
                                    <tr>
                                        <td class="protocol <?php 
    echo $message->protocol;
    ?>
"></td>
                                        <td><?php 
    echo $message->sender;
    ?>
</td>
                                        <td class="gray"><?php 
    echo $message->content;
    ?>
</td>
                                        <td class="text-right"><?php 
    echo Logbox::fuzzy_time($message->sent_at);
    ?>
</td>
                                    </tr>
                                    <?php 
}
?>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    </form>
                </div></div>
            </div>
            <div id="sidebar" class="yui-b">
示例#3
0
echo Options::get('log_path');
?>
">
                                    <span class="info">Ex: /Users/Andrew/AppData/Roaming/.purple/logs/</span>
                                </p>
                                <p><label for="pagination">Items per Page</label>
                                    <input type="text" class="text" name="pagination" id="pagination" value="<?php 
echo Options::get('pagination');
?>
">
                                    <span class="info">Ex: 20</span>
                                </p>
                                <p><label for="timezone">Timezone</label>
                                    <select id="timezone" name="timezone">
                                    <?php 
foreach (Logbox::getTimezones() as $timezone) {
    ?>
                                        <option <?php 
    if (Options::get('timezone') == $timezone) {
        ?>
 selected="selected"<?php 
    }
    ?>
><?php 
    echo $timezone;
    ?>
</option>
                                    <?php 
}
?>
                                    </select>