summaryrefslogtreecommitdiffstats
path: root/views/Content
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
committerMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
commit2389d66da849798f8d4ec5f10e3b07c11da49185 (patch)
treee22556d12982395b469a23420c662662e3e064cc /views/Content
downloadotakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz
Initial Commit
Diffstat (limited to 'views/Content')
-rw-r--r--views/Content/anime.html.php68
-rw-r--r--views/Content/index.html.php7
2 files changed, 75 insertions, 0 deletions
diff --git a/views/Content/anime.html.php b/views/Content/anime.html.php
new file mode 100644
index 0000000..4a3b8c9
--- /dev/null
+++ b/views/Content/anime.html.php
@@ -0,0 +1,68 @@
+<h2 class="ribbon full"><?= $content->title ?></h2>
+<div class="triangle-ribbon"></div>
+<br class="cl" />
+
+<div class="container_12">
+<!-- Start Sidebar -->
+<div class="grid_4" id="sidebar">
+<img src="<?=$content->image ?>" >
+
+<h2 class="ribbon"> Alternative Titles </h2>
+<hr/>
+<p>
+<?php if(isset($content->alternative_titles)) : ?>
+<?php foreach($content->alternative_titles as $title): ?>
+ <?= $title ?>
+<?php endforeach; ?>
+<?php endif; ?>
+</p>
+<h2> Information </h2>
+<span> Type: <?= $content->view_type ?> </span>
+Episodes: <?= $content->episode_count ?><br/>
+Status: <?= $content->status ?><br/>
+Aired: <?= $content->aired ?><br/>
+Producers: <?php foreach($content->producers as $producer): ?>
+<a href="/producer/view/<?= $producer ?>"><?= $producer ?></a>,
+<?php endforeach; ?><br/>
+Genres: <?php foreach($content->genres as $genres): ?>
+<a href="/genres/view/<?= $genres ?>"><?= $genres ?></a>,
+<?php endforeach ?><br/>
+Duration: <?= $content->episode_duration ?><br/>
+Rating: <?= $content->rating ?><br/>
+
+<h2 class="ribbon">Statistics</h2>
+Score: <br/>
+Ranked: <br/>
+Popularity: <br/>
+Members:<br/>
+Favorited by: over 9000 Users<br/>
+
+<h2 class="ribbon"> My Info </h2>
+<hr/>
+<!-- End Sidebar -->
+</div>
+<div class="grid_8" id="content">
+<!-- Start Content -->
+<h2>Synopsis</h2>
+<hr/>
+<?= $content->synopsis ?>
+
+<h2>Related Animes</h2>
+<hr/>
+
+<h2>Characters And VA's </h2>
+<hr/>
+<?php foreach($content->cast as $char): ?>
+<?= $char->character ?>
+<?= $char->role ?>
+Played by:
+ <?php if (isset($char->people)): ?>
+ <?php foreach($char->people as $actor): ?>
+ <?= $actor->name ?>
+ <?= $actor->language ?>
+ <?php endforeach; ?>
+ <?php endif; ?>
+<?php endforeach; ?>
+</div>
+<br class="cl"/>
+</div> \ No newline at end of file
diff --git a/views/Content/index.html.php b/views/Content/index.html.php
new file mode 100644
index 0000000..842203e
--- /dev/null
+++ b/views/Content/index.html.php
@@ -0,0 +1,7 @@
+<table>
+<th>img</th><th>Name</th><th>Episodes</th><th>Type</th><th>Score</th>
+<?php foreach($content as $item): ?>
+<tr><td>"image"</td> <td><a href="/anime/<?= $item->special_id ?>"><?= $item->title ?></a></td> <td><?= $item->episode_count ?></td><td><?= $item->view_type ?></td><td><?= $item->mal_score ?></td></tr>
+<?php endforeach; ?>
+</table>
+<?=$this->Paginator->paginate(); ?> \ No newline at end of file