Changeset 267
- Timestamp:
- 04/11/08 00:21:55 (9 months ago)
- Files:
-
- trunk/Framework/Module/Main/Find.php (modified) (6 diffs)
- trunk/Framework/Module/Main/Templates/Default/find.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Framework/Module/Main/Find.php
r239 r267 4 4 * Framework_Module_Main_Find 5 5 * 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 12 16 */ 13 17 … … 17 21 * Find domains 18 22 * 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 25 31 */ 26 32 class Framework_Module_Main_Find extends ToasterAdmin_Auth_System … … 49 55 public function find() 50 56 { 51 $this->setData('LANG_Main_Menu', _('Main Menu'));52 57 $form = $this->_findForm(); 53 58 $this->_renderForm($form); … … 79 84 } else { 80 85 $this->setData('found', 1); 81 $this->setData('delete_url', "./?module=Domains&event=delDomain&domain=$domain"); 82 $this->setData('edit_url', "./?module=Domains&class=Menu&domain=$domain"); 86 $this->setData('delete_url', 87 "./?module=Domains&event=delDomain&domain=$domain"); 88 $this->setData('edit_url', 89 "./?module=Domains&class=Menu&domain=$domain"); 83 90 } 84 91 } … … 93 100 private function _findForm() 94 101 { 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'); 96 104 97 105 $form->addElement('text', 'domain', _('Domain')); 98 106 $form->addElement('submit', 'submit', _('Find Domain')); 99 107 100 $form->addRule('domain', _('Please a domain name'), 'required', null, 'client'); 108 $form->addRule('domain', 109 _('Please a domain name'), 'required', null, 'client'); 101 110 $form->applyFilter('__ALL__', 'trim'); 102 111 … … 107 116 * _renderForm 108 117 * 109 * @param mixed $form 118 * Render the form for display 119 * 120 * @param object $form HTML_QuickForm object 121 * 110 122 * @access private 111 123 * @return void trunk/Framework/Module/Main/Templates/Default/find.tpl
r230 r267 14 14 <br /> 15 15 {/if} 16 <a href="./?module=Main">{ $LANG_Main_Menu}</a>16 <a href="./?module=Main">{t}Main Menu{/t}</a> 17 17 </div> 18 18 <div class="boxbottom"></div>
