2019-06-13 16:46:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Cadoles\PortalBundle\Controller;
|
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
use Symfony\Component\HttpFoundation\Session\Session;
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
|
|
|
use Symfony\Component\Form\FormError;
|
|
|
|
|
|
|
|
class SyncenvoleController extends Controller
|
|
|
|
{
|
2019-06-17 17:09:00 +02:00
|
|
|
public function delegationAction()
|
|
|
|
{
|
|
|
|
$url="/posh-profil";
|
|
|
|
$color=$this->get('session')->get('colormain');
|
|
|
|
$themename=$this->get('session')->get("theme");
|
|
|
|
|
|
|
|
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
|
|
|
|
'useheader' => true,
|
|
|
|
'usemenu' => false,
|
|
|
|
'usesidebar' => true,
|
|
|
|
'url' => $url."/admin-delegation.php?color=#color#"
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
2019-06-13 16:46:57 +02:00
|
|
|
public function limesurveyAction()
|
|
|
|
{
|
|
|
|
$url=$this->getParameter("widlimesurvey_syncenvole");
|
|
|
|
$color=$this->get('session')->get('colormain');
|
|
|
|
$themename=$this->get('session')->get("theme");
|
|
|
|
|
|
|
|
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
|
|
|
|
'useheader' => true,
|
|
|
|
'usemenu' => false,
|
|
|
|
'usesidebar' => true,
|
|
|
|
'url' => $url."/synchro.php?app=limesurvey&color=#color#"
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
2019-06-17 17:09:00 +02:00
|
|
|
public function moodleAction()
|
|
|
|
{
|
|
|
|
$url=$this->getParameter("widmoodle_syncenvole");
|
|
|
|
$color=$this->get('session')->get('colormain');
|
|
|
|
$themename=$this->get('session')->get("theme");
|
|
|
|
|
|
|
|
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
|
|
|
|
'useheader' => true,
|
|
|
|
'usemenu' => false,
|
|
|
|
'usesidebar' => true,
|
|
|
|
'url' => $url."/synchro.php?app=moodle&color=#color#"
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function wordpressAction()
|
|
|
|
{
|
|
|
|
$url=$this->getParameter("widwordpress_syncenvole");
|
|
|
|
$color=$this->get('session')->get('colormain');
|
|
|
|
$themename=$this->get('session')->get("theme");
|
|
|
|
|
|
|
|
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
|
|
|
|
'useheader' => true,
|
|
|
|
'usemenu' => false,
|
|
|
|
'usesidebar' => true,
|
|
|
|
'url' => $url."/synchro.php?app=wordpress&color=#color#"
|
|
|
|
]);
|
|
|
|
}
|
2019-06-13 16:46:57 +02:00
|
|
|
}
|
2019-06-17 17:09:00 +02:00
|
|
|
|