Changeset 267

Show
Ignore:
Timestamp:
04/11/08 00:21:55 (9 months ago)
Author:
shupp
Message:

CS fixes for Main_Find

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Framework/Module/Main/Find.php

    r239 r267  
    44 * Framework_Module_Main_Find  
    55 *  
    6  * @uses      ToasterAdmin_Auth_System 
    7  * @package   ToasterAdmin 
    8  * @author    Bill Shupp <hostmaster@shupp.org>  
    9  * @copyright 2007 Bill Shupp 
    10  * @license   GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
    11  * @link      http://trac.merchbox.com/trac/toasteradmin 
     6 * PHP Version 5.1.0+ 
     7 *  
     8 * @uses       ToasterAdmin_Auth_System 
     9 * @category   Mail 
     10 * @package    ToasterAdmin 
     11 * @subpackage Module 
     12 * @author     Bill Shupp <hostmaster@shupp.org>  
     13 * @copyright  2007-2008 Bill Shupp 
     14 * @license    GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
     15 * @link       http://trac.merchbox.com/trac/toasteradmin 
    1216 */ 
    1317 
     
    1721 * Find domains 
    1822 *  
    19  * @uses      ToasterAdmin_Auth_System 
    20  * @package   ToasterAdmin 
    21  * @author    Bill Shupp <hostmaster@shupp.org>  
    22  * @copyright 2007 Bill Shupp 
    23  * @license   GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
    24  * @link      http://trac.merchbox.com/trac/toasteradmin 
     23 * @uses       ToasterAdmin_Auth_System 
     24 * @category   Mail 
     25 * @package    ToasterAdmin 
     26 * @subpackage Module 
     27 * @author     Bill Shupp <hostmaster@shupp.org>  
     28 * @copyright  2007-2008 Bill Shupp 
     29 * @license    GPL 2.0  {@link http://www.gnu.org/licenses/gpl.txt} 
     30 * @link       http://trac.merchbox.com/trac/toasteradmin 
    2531 */ 
    2632class Framework_Module_Main_Find extends ToasterAdmin_Auth_System 
     
    4955    public function find() 
    5056    { 
    51         $this->setData('LANG_Main_Menu', _('Main Menu')); 
    5257        $form = $this->_findForm(); 
    5358        $this->_renderForm($form); 
     
    7984        } else { 
    8085            $this->setData('found', 1); 
    81             $this->setData('delete_url', "./?module=Domains&amp;event=delDomain&amp;domain=$domain"); 
    82             $this->setData('edit_url', "./?module=Domains&amp;class=Menu&amp;domain=$domain"); 
     86            $this->setData('delete_url', 
     87                "./?module=Domains&amp;event=delDomain&amp;domain=$domain"); 
     88            $this->setData('edit_url', 
     89                "./?module=Domains&amp;class=Menu&amp;domain=$domain"); 
    8390        } 
    8491    } 
     
    93100    private function _findForm() 
    94101    { 
    95         $form = new HTML_QuickForm('formFind', 'post', './?module=Main&class=Find&event=findNow'); 
     102        $form = new HTML_QuickForm('formFind', 'post', 
     103            './?module=Main&class=Find&event=findNow'); 
    96104 
    97105        $form->addElement('text', 'domain', _('Domain')); 
    98106        $form->addElement('submit', 'submit', _('Find Domain')); 
    99107 
    100         $form->addRule('domain', _('Please a domain name'), 'required', null, 'client'); 
     108        $form->addRule('domain', 
     109            _('Please a domain name'), 'required', null, 'client'); 
    101110        $form->applyFilter('__ALL__', 'trim'); 
    102111 
     
    107116     * _renderForm  
    108117     *  
    109      * @param mixed $form  
     118     * Render the form for display 
     119     *  
     120     * @param object $form HTML_QuickForm object 
     121     *  
    110122     * @access private 
    111123     * @return void 
  • trunk/Framework/Module/Main/Templates/Default/find.tpl

    r230 r267  
    1414<br /> 
    1515{/if} 
    16 <a href="./?module=Main">{$LANG_Main_Menu}</a> 
     16<a href="./?module=Main">{t}Main Menu{/t}</a> 
    1717</div> 
    1818<div class="boxbottom"></div>