english/components/com_aicontactsafe/views/message/view.html.php
// function to display the default template
function to display the default template
function to display the default template
function viewDefault( $returnAjaxForm = false ) {
		$this->returnAjaxForm = $returnAjaxForm;
		$document =& JFactory::getDocument();
		if($this->_jversion == '1.5') {
			$document->addScript(JURI::root(true).'/includes/js/joomla.javascript.js');
		}
		$this->setVariables();
		$css_file = 'profile_css_'.$this->profile->id.'.css';
		$this->callCssFile($css_file);
		$this->setTaskReturn();
		if ($returnAjaxForm) {
			parent::display();
		} else {
			echo '<div class="aiContactSafe" id="aiContactSafe_mainbody_'.$this->profile->id.'">';
			parent::display();
			echo '</div>';
		}
		$model = &$this->getModel( $this->_sTask, '', $this->_parameters );
		$model->resetFormFields();
	}
function viewDefault ( $ returnAjaxForm = false ) { $ this -> returnAjaxForm = $ returnAjaxForm ; $ document = & JFactory :: getDocument ( ) ; if ( $ this -> _jversion == '1.5' ) { $ document -> addScript ( JURI :: root ( true ) . '/includes/js/joomla.javascript.js' ) ; } $ this -> setVariables ( ) ; $ css_file = 'profile_css_' . $ this -> profile -> id . '.css' ; $ this -> callCssFile ( $ css_file ) ; $ this -> setTaskReturn ( ) ; if ( $ returnAjaxForm ) { parent :: display ( ) ; } else { echo '<div class="aiContactSafe" id="aiContactSafe_mainbody_' . $ this -> profile -> id . '">' ; parent :: display ( ) ; echo '</div>' ; } $ model = & $ this -> getModel ( $ this -> _sTask , '' , $ this -> _parameters ) ; $ model -> resetFormFields ( ) ; }
function to display the default template
function to display the default template
// initialize $returnAjaxForm // add javascript // initialize the template variables // generate the css file name based on the profile // call the css file // determine to what section to return to // reset the form fields after the form was displayed