diff options
author | raylu <raylu@mixpanel.com> | 2011-07-02 16:51:32 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-02 16:51:32 -0700 |
commit | 83483a1826d1d05e2f9733746f35fef1939b8c0a (patch) | |
tree | a2c382bfc4e3f5b8554604f0595e51119547fa43 /views/Search/index.html.php | |
parent | 495e795089e2839474a653733dd0adf2c6c43105 (diff) | |
download | otakuhub-83483a1826d1d05e2f9733746f35fef1939b8c0a.tar.xz |
lowercase
Diffstat (limited to 'views/Search/index.html.php')
-rw-r--r-- | views/Search/index.html.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/views/Search/index.html.php b/views/Search/index.html.php deleted file mode 100644 index 91bc1fa..0000000 --- a/views/Search/index.html.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php - -//table helper -function table($data, array $headers = array(), array $options = array()) { - //Create the table - echo '<tr>'; - foreach ($headers as $k => $v) - { - echo "<th>$v</th>"; - } - echo "</tr>\n"; - - - foreach ($data as $item) - { - echo '<tr>'; - foreach($headers as $key => $value) - { - echo '<td>'; - echo $item->$key; - echo '</td>'; - } - echo "</tr>\n"; - } -} -?> - -<div class="container_12"> -<div class="grid_4"> -<h2> Search options </h2> -<hr /> -<?= $this->form->create(null, array('method' => 'get')); ?> - <?= $this->form->field('search', array('type' => 'textbox', 'class' => 'sidebar-search', 'style' => 'width:200px')); ?> - <?= $this->form->label('type', 'For:'); ?> - <?= $this->form->select('type', array('Anime' => 'Anime', - 'Manga' => 'Manga', - 'Kdrama' => 'Kdrama')); ?> - <?= $this->form->submit('Search', array('style' => 'width: 100px')); ?> -<?= $this->form->end(); ?> -</div> -<div class="grid_8"> -<h2>Search Results</h2> -<hr /> - <table class="table"> - <?php table($content, $headers); ?> - </table> -<?=$this->Paginator->paginate(array('separator' => '', 'action' => 'index/anime')); ?> -</div> -<br class="cl"> -</div>
\ No newline at end of file |