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 setMessageAdd(&$form) { $this->tpl->template = "admin/message.tpl"; $tmpIdSite = $form->siteAdmin; $this->tpl->assign("message", $GLOBALS['lang']['generique_done'] . "<br><br><p class='texte'>" . sprintf($GLOBALS['lang']['admin_site_link_javascript'], "<a href='index.php?mod=admin_site_javascript_code&site={$tmpIdSite}&adminsite={$tmpIdSite}'>", "</a>") . '</p>' . getCountImgHtml($form->getSubmitValue('form_url'), $form->getSubmitValue('form_name'))); }