<?php
require_once GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/smta/response/ProcessSmta.proc.class.php';

class DoAddSmta extends JsonResponse {

	function TemplateModule() {
	}
	
	function ProcessRequest() {
		$smtaObj = new ProcessSmta();
		$urlRedirect = $smtaObj->Add();
		//$this->RedirectTo($urlRedirect);
			return array('exec'=>'GtfwAjax.replaceContentWithUrl("subcontent-element","'.$urlRedirect.'&ascomponent=1")');
	 }
	function ParseTemplate($data = NULL) {	
	}
}
?>
