cvs: php-testfest-web /PHP/App Mentors.php /PHP/App/Mentors/View announce.php

From: Date: Sun, 13 Apr 2008 15:40:05 +0000
Subject: cvs: php-testfest-web /PHP/App Mentors.php /PHP/App/Mentors/View announce.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1532@lists.php.net to get a copy of this message
davidc Sun Apr 13 15:40:05 2008 UTC Added files: /php-testfest-web/PHP/App/Mentors/View announce.php Modified files: /php-testfest-web/PHP/App Mentors.php Log: - Added simple announce - Added some view for announce http://cvs.php.net/viewvc.cgi/php-testfest-web/PHP/App/Mentors.php?r1=1.2&r2=1.3&diff_format=u Index: php-testfest-web/PHP/App/Mentors.php diff -u php-testfest-web/PHP/App/Mentors.php:1.2 php-testfest-web/PHP/App/Mentors.php:1.3 --- php-testfest-web/PHP/App/Mentors.php:1.2 Tue Apr 1 04:34:04 2008 +++ php-testfest-web/PHP/App/Mentors.php Sun Apr 13 15:40:04 2008 @@ -54,4 +54,20 @@ public function actionLogin() { } + + public function actionAnnounce() + { + $title = $this->_request->post('title'); + $text = $this->_request->post('announcement'); + + if (!is_null($title) && !is_null($text)) { + /** + * @TODO: + * Get the username that did this, + * Invoke the model and save the text + * and title. + */ + } + + } } http://cvs.php.net/viewvc.cgi/php-testfest-web/PHP/App/Mentors/View/announce.php?view=markup&rev=1.1 Index: php-testfest-web/PHP/App/Mentors/View/announce.php +++ php-testfest-web/PHP/App/Mentors/View/announce.php <div id="header"> <h1></h1><br /><br /> <div id="menu"> <ul id="nav"> <li><a href="/mentors/my">My Account</a></li> <li><a href="/mentors/review">Test Review</a></li> <li><a href="/mentors/livetest">Live Testing Area</a></li> <li class="activeLink"><a href="/mentors/announce">Announcements</a></li> </ul> </div> </div> <div id="content"> <div id="right"> <h2>Mentors area</h2> <?php echo $this->form() ->text(array( 'name' => 'title', 'label' => 'Title', )) ->textarea(array( 'name' => 'announcement', 'label' => 'Text of announcement', 'attribs' => array( 'rows' => '10', 'cols' => '80', ), )) ->submit(array( 'name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE'), )) ->fetch(); ?> </div> </div>

« previous php.webmaster (#1532) next »