function Form(&$template, $action = null)
 {
     if (is_null($action)) {
         $action = Request::getCurrentUrl();
     }
     parent::HTML_QuickForm('form_phpmv', 'POST', $action);
     $this->tpl =& $template;
     $this->init();
 }
 function process()
 {
     $next_step = false;
     $totalSites = Site::getTotalSites();
     if ($totalSites > 0) {
         Request::redirectToModule('install_display_javascript_code');
     }
     $form = new FormSiteGeneral($this->tpl, null, Request::getCurrentUrl() . "&action=add");
     $done = $form->process();
     if ($done) {
         $this->tpl->assign("img_phpmv", getCountImgHtml($form->getSubmitValue('form_url'), $form->getSubmitValue('form_name')));
         $next_step = true;
     }
     $this->tpl->assign("show_next_step", $next_step);
 }
 function getCurrentCompleteUrl()
 {
     return Request::getCurrentCompletePath() . "/" . Request::getCurrentUrl();
 }