Permalink
Browse files

Remover modelos controladores y vistas de proyecto pasado

  • Loading branch information...
1 parent a6497d3 commit 9df6f3140c8d4d228a32708098410eb552bb20f4 @Luraguse committed Mar 10, 2013
@@ -1,31 +0,0 @@
-<?php
-class CareerController extends Controller {
-
- function beforeAction(){
- }
- function index() {
-
- }
-
- function show($string) {
- $career = $this->Buscar();
- $career->where($string, "name");
- $career->returnFields("name, description, content, id_gallery");
- $career->hasOne("image","link");
- $careerResults = $career->getResults();
- if(count($careerResults) <= 0) {
- header("location: ".BASE_PATH."/career/show/host");
- }
- $this->set("career", $careerResults);
-
- $id_gallery = ($careerResults['id_gallery'] > 0)?$careerResults['id_gallery']:"1";
- $gallery = $this->Buscar();
- $gallery->setTable("image");
- $gallery->where($id_gallery, "id_gallery");
- $gallery->returnFields("link, description");
- $galleryResults = $gallery->getResults();
- $this->set("gallery",$galleryResults);
- }
- function afterAction(){
- }
-}
@@ -1,15 +0,0 @@
-<?php
-class HomeController extends Controller {
-
- function beforeAction(){}
- function index() {
- // var_dump($this->_sanitized);
- $news = $this->Buscar();
- $news->all("news");
- $news->returnFields("content, created_at");
- $news->orderBy("created_at");
- $newsResults = $news->getResults();
- $this->set("news", $newsResults);
- }
- function afterAction(){}
-}
@@ -1,10 +0,0 @@
-<?php
-class Career extends Model {
- protected $attr_accessible = array("id", "name");
- protected $has_many = array("news", "videos");
- protected $has_one = array("main_pic");
-
- function __construct() {
- parent::__construct();
- }
-}
@@ -1,13 +0,0 @@
-<?php
-class Home extends Model {
- protected $attr_accessible = array("id", "name");
- protected $has_many = array("news", "videos");
- protected $has_one = array("main_pic");
- protected $validate = array(
-
- );
-
- function __construct() {
- parent::__construct();
- }
-}
@@ -1 +0,0 @@
-<?php
@@ -1,25 +0,0 @@
-<section id="career_content" class="group">
- <img id="main_image" class="left" src="<?php echo BASE_PATH."/public/images/".($career['link']) ?>">
- <article class="left">
- <h1 class="purple_text center_text"><?php echo $career['name']?> career</h1>
- <p class="background_dark_grey medium_round_corner"><?php echo $career['description']?></p>
- </article>
- <aside class="left background_dark_grey center_text medium_round_corner">
- <?php $contents = json_decode($career['content'], true); ?>
- <?php foreach($contents as $content): ?>
- <?php foreach($content as $ck => $cv): ?>
- <h3 class="purple_text"><?php echo($ck)?></h3>
- <p><?php echo($cv) ?></p>
- <?php endforeach ?>
- <?php endforeach ?>
- </aside>
-</section>
-<section>
- <span></span>
- <article>
- <?php foreach($gallery as $image): ?>
- <img src="<?php echo BASE_PATH."/public/images/".$image['link'] ?>" title="<?php echo $image['description'] ?>">
- <?php endforeach ?>
- </article>
- <span></span>
-</section>
@@ -1,8 +0,0 @@
- </div>
- <footer id="main_footer" class="dark_grey">
- <h1>
- Powered by <a href="http://hitosoft.com"><img alt="Hitosoft" title="Hitosoft" src="<?php echo BASE_PATH."/public/" ?>images/logo_hitosoft.png"></a>
- </h1>
- </footer>
- </body>
-</html>
@@ -1,22 +0,0 @@
-<html>
- <head>
- <title>Trisha Hershberger Official Website</title>
- <meta charset="utf-8">
- <link href='http://fonts.googleapis.com/css?family=Yellowtail' rel='stylesheet' type='text/css'>
- <?php echo $this->HTML->includeCss($this->HTML->CombinarCss()); ?>
- <?php echo $this->HTML->includeJs($this->HTML->CombinarJs()); ?>
- </head>
- <body>
- <header id="main_header">
- <ul class="background_dark_grey group">
- <li><?php echo $this->HTML->link("Home","home"); ?></li>
- <li><?php echo $this->HTML->link("Host","career/show/host"); ?></li>
- <li><?php echo $this->HTML->link("Actress","career/show/actress"); ?></li>
- <li><?php echo $this->HTML->link("Model","career/show/model"); ?></li>
- <li><?php echo $this->HTML->link("Tradeshow","career/show/tradeshow"); ?></li>
- <li><?php echo $this->HTML->link("Voice over Artist","career/show/voice-over-artist"); ?></li>
- <li><?php echo $this->HTML->link("Fans","fans"); ?></li>
- <li><?php echo $this->HTML->link("Contact","contact"); ?></li>
- </ul>
- </header>
- <div id="content" class="background_grey group">
@@ -1,65 +0,0 @@
-<aside id="latest_news" class="left main_aside background_dark_grey medium_round_corner">
- <h4 class="purple_text center_text">Latest News</h4>
-
- <?php foreach($news as $newsValue): ?>
- <p>
- <em>
- <?php echo $newsValue["created_at"]; ?>
- :
- </em>
-
- <?php
- $decoded = json_decode($newsValue["content"],true);
-
- switch ($decoded['type']) {
- case "video":
- echo "Added a new video";
- ?>
- <iframe width="210" height="118" src="<?php echo $decoded['content']; ?>" frameborder="0" allowfullscreen=""></iframe>
- <?php
- break;
- case "news":
- echo $decoded['content'];
- ?>
- <?php
- break;
- case "image":
- echo "Added a new photo";
- ?>
- <a href="<?php echo BASE_PATH."/career/show/".$decoded['gallery']; ?>">
- <img src="<?php echo BASE_PATH."/public/images/".$decoded['content'];?>">
- </a>
- <?php
- break;
- ?>
- <?php
- default:
- break;
- }
- ?>
- </p>
- <?php endforeach; ?>
-
-</aside>
-<section id="home_content" class="left">
- <img src="<?php echo BASE_PATH ?>/public/images/main.png" alt="Trisha Hershberger" title="Trisha Hershberger">
- <h1 class="purple_text cursive">Trisha Hershberger's<br>Official Website</h1>
- <p class="background_dark_grey medium_round_corner">
- Welcome to Trisha Hershberger’s official website.
- Here you can view Trisha’s resume, demo reels, bio and much more!
- Feel free to look around.
- </p>
- <!-- twitter, facebook, imdb links -->
-</section>
-<aside id="latest_videos" class="left main_aside background_dark_grey medium_round_corner">
- <h4 class="purple_text center_text">Latest Videos</h4>
- <p>
- <iframe width="210" height="118" src="http://www.youtube.com/embed/9rRCaUf02uk" frameborder="0" allowfullscreen></iframe>
- </p>
- <p>
- <iframe width="210" height="118" src="http://www.youtube.com/embed/9rRCaUf02uk" frameborder="0" allowfullscreen></iframe>
- </p>
- <p>
- <iframe width="210" height="118" src="http://www.youtube.com/embed/9rRCaUf02uk" frameborder="0" allowfullscreen></iframe>
- </p>
-</aside>

0 comments on commit 9df6f31

Please sign in to comment.