diff options
Diffstat (limited to 'views/Anime_list')
-rw-r--r-- | views/Anime_list/add.html.php | 49 | ||||
-rw-r--r-- | views/Anime_list/index.html | 3 | ||||
-rw-r--r-- | views/Anime_list/index.html.php | 74 | ||||
-rw-r--r-- | views/Anime_list/view.html.php | 84 |
4 files changed, 0 insertions, 210 deletions
diff --git a/views/Anime_list/add.html.php b/views/Anime_list/add.html.php deleted file mode 100644 index 2e93ffd..0000000 --- a/views/Anime_list/add.html.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php $this->form->config(array('templates' => array( - 'error' => '<div class="notification error">{:content}</div>'))); ?> -<?php if (empty($anime)): ?> -<h2 class="ribbon full">Find an Anime:</h2> -<div class="triangle-ribbon"></div> -<br class="clear" /> -<?php else: ?> -<h2 class="ribbon full"><?= $anime->title ?></h2> -<div class="triangle-ribbon"></div> -<br class="clear" /> -<?php endif; ?> - -<script type="text/javascript"> - $(function() { - $('#tags').tagsInput(); - }); -</script> - -<?php - echo $this->form->create($entry); - - //Hidden because the user can't change these. - //These are stored in the anime list for faster lookup times, - //So we can avoid getting this data live for every anime. - if (isset($anime)) { - echo $this->form->hidden('series_animedb_id', array('value' => $anime->special_id)); - echo $this->form->hidden('series_title', array('value' => $anime->title)); - echo $this->form->hidden('series_type', array('value' => $anime->view_type)); - echo $this->form->hidden('series_episodes', array('value' => $anime->episode_count)); - } - - echo $this->form->field('my_watched_episodes', array('label' => 'Watched Episodes')); - echo $this->form->field('my_start_date', array('label' => 'Start Date')); - echo $this->form->field('my_finish_date', array('label' => 'Finish Date')); - echo $this->form->field('my_score', array('label' => 'Score')); - echo $this->form->label('my_status', 'Status'); - echo $this->form->select('my_status', array('Plan to Watch' => 'Plan to Watch', - 'On-Hold' => 'On-Hold', - 'Completed' => 'Completed', - 'Watching' => 'Watching', - 'Dropped' => 'Dropped')); - echo $this->form->field('my_comments', array('label' => 'Comments')); - echo $this->form->field('my_times_watched', array('label' => 'Times Watched')); - echo $this->form->label('rewatch_value', 'Rewatch Value'); - echo $this->form->select('rewatch_value', array('High', 'Medium', 'Low', 'None'), array('value' => 0)); - echo $this->form->field('tags', array('type' => 'textarea', 'id' => 'tags')); - echo $this->form->checkbox('rewatching', array('label' =>'Rewatching?', 'value' => false)); - echo $this->form->submit('Save!'); -?>
\ No newline at end of file diff --git a/views/Anime_list/index.html b/views/Anime_list/index.html deleted file mode 100644 index ad9911a..0000000 --- a/views/Anime_list/index.html +++ /dev/null @@ -1,3 +0,0 @@ -<h1><?= $user->username ?>'s AnimeList</h1> - -<?= print_r($watching); ?>
\ No newline at end of file diff --git a/views/Anime_list/index.html.php b/views/Anime_list/index.html.php deleted file mode 100644 index abe931b..0000000 --- a/views/Anime_list/index.html.php +++ /dev/null @@ -1,74 +0,0 @@ -<h1><?= $user->username ?>'s AnimeList</h1> -<hr/> -<table><tr><?= $this->html->link("Completed", "/animelist/view/$user->username/completed"); ?> </tr></table> - -<?php if (isset($watching)): ?> -<h2 class="ribbon">Watching</h2><button value="Add" style="float:right"> -<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr> -<?php $i = 1; ?> -<?php foreach ($watching as $anime): ?> - <tr> - <td><?= $i ?></td> - <td><?= $anime->series_title ?></td> - <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td> - <td><?= $anime->series_type ?></td> - <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td> - </tr> -<?php $i += 1; ?> -<?php endforeach; ?> -</table> -<?php endif; ?> - -<?php if (isset($planning)): ?> -<h2 class="ribbon">Plans to Watch</h2> -<table> -<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr> -<?php $i = 1; ?> -<?php foreach ($planning as $anime): ?> - <tr> - <td><?= $i ?></td> - <td><?= $anime->series_title ?></td> - <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td> - <td><?= $anime->series_type ?></td> - <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td> - </tr> -<?php $i += 1; ?> -<?php endforeach; ?> -</table> -<?php endif; ?> - -<?php if(isset($paused)): ?> -<h2 class="ribbon">Paused</h2> -<table> -<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr> -<?php $i = 1; ?> -<?php foreach ($paused as $anime): ?> - <tr> - <td><?= $i ?></td> - <td><?= $anime->series_title ?></td> - <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td> - <td><?= $anime->series_type ?></td> - <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td> - </tr> -<?php $i += 1; ?> -<?php endforeach; ?> -</table> -<?php endif; ?> - -<?php if (isset($dropped)): ?> -<h2 class="ribbon">Dropped</h2> -<table> -<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr> -<?php $i = 1; ?> -<?php foreach ($dropped as $anime): ?> - <tr> - <td><?= $i ?></td> - <td><?= $anime->series_title ?></td> - <td><?= ($anime->my_score != 0) ? $anime->my_score : "-"; ?></td> - <td><?= $anime->series_type ?></td> - <td><?= $anime->my_watched_episodes ?>/<?= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?></td> - </tr> -<?php $i += 1; ?> -<?php endforeach; ?> -</table> -<?php endif; ?>
\ No newline at end of file diff --git a/views/Anime_list/view.html.php b/views/Anime_list/view.html.php deleted file mode 100644 index 4c552d8..0000000 --- a/views/Anime_list/view.html.php +++ /dev/null @@ -1,84 +0,0 @@ -<h2 class="ribbon full"><a style="color: #FFFFFF" href="/profile/view/<?= $user->username ?>"><?= $user->username ?>'s</a> AnimeList</h2> -<div class="triangle-ribbon"></div> -<br class="cl" /> -<table class="table"><tr> -<td><?= $this->html->link("Completed", "#finished", array('class' => 'anchorLink')); ?> </td> -<td><?= $this->html->link("Watching", "#watching", array('class' => 'anchorLink')); ?> </td> -<td><?= $this->html->link("Plans to Watch", "#planning", array('class' => 'anchorLink')); ?> </td> -<td><?= $this->html->link("On-Hold", "#paused", array('class' => 'anchorLink')); ?> </td> -<td><?= $this->html->link("Dropped", "#dropped", array('class' => 'anchorLink')); ?> </td> -</tr> -</table> -<?php function tableHelper($input, &$t) { -echo '<table class="table">'; -echo "<tr><th>Entry #</th><th>Anime Title</th><th>Score</th><th>Type</th><th>Progress</th></tr>"; -$i = 1; -foreach ($input as $anime) { - echo '<tr>'; - echo "<td> $i </td>"; - echo "<td> <a href=\"/anime/view/$anime->series_animedb_id/\">$anime->series_title </a></td>"; - echo "<td>"; - echo ($anime->my_score != 0) ? $anime->my_score : "-"; - echo "</td>"; - echo "<td> $anime->series_type </td>"; - echo "<td>"; - echo $anime->my_watched_episodes; - echo "/"; - echo ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; - echo "</td>"; - echo "</tr>"; -$i += 1; -} -echo "</table>"; -} -?> - -<div class="two_col container_12"> -<div class="grid_10"> -<?php if (isset($watching)): ?> -<a name="watching" id="watching"><h2 class="ribbon">Watching</h2></a> -<div class="triangle-ribbon"></div> -<br class="cl" /> -</div> -<div class="grid_2"> -<button class="large" style="margin-left:40px; margin-top:10px"><a href="/animelist/addsearch">Add</a></button> -</div> -</div> - - -<?php tableHelper($watching, $this); ?> -<?php endif; ?> - -<?php if (isset($finished)): ?> - <a name="finished" id="finished"><h2 class="ribbon">Finished Animes</h2></a> - <div class="triangle-ribbon"></div> - <br class="cl" /> - <?php tableHelper($finished, $this); ?> -<?php endif; ?> - - -<?php if (isset($planning)): ?> -<a name="planning" id="planning"><h2 class="ribbon">Plans to Watch</h2></a> -<div class="triangle-ribbon"></div> -<br class="cl" /> - -<?php tableHelper($planning, $this); ?> -<?php endif; ?> - -<?php if(isset($paused)): ?> -<a name="paused" id="paused"><h2 class="ribbon">Paused</h2></a> -<div class="triangle-ribbon"></div> -<br class="cl" /> - -<?php tableHelper($paused, $this); ?> -<?php endif; ?> - -<?php if (isset($dropped)): ?> - - -<a name="dropped" id="dropped"><h2 class="ribbon">Dropped</h2></a> -<div class="triangle-ribbon"></div> -<br class="cl" /> - -<?php tableHelper($dropped, $this); ?> -<?php endif; ?>
\ No newline at end of file |