Exemple #1
0
                                    <input type="text" class="text" name="stw_access_key" id="stw_access_key" value="<?php 
echo Options::get('stw_access_key');
?>
">
                                </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 (SEOKit::getTimezones() as $timezone) {
    ?>
                                        <option <?php 
    if (Options::get('timezone') == $timezone) {
        ?>
 selected="selected"<?php 
    }
    ?>
><?php 
    echo $timezone;
    ?>
</option>
                                    <?php 
}
?>
                                    </select>
Exemple #2
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 = SEOKit::paginate('Logs', $params, 'http://seokit.localhost/logs');
     $this->template->display('logs.php');
 }