ninegate/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php

169 lines
6.1 KiB
PHP
Raw Normal View History

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-11-28 10:37:12 +01:00
public function baladoAction()
{
2020-06-26 08:42:33 +02:00
$url=$this->getParameter("widbalado_syncenvole");
2019-11-28 10:37:12 +01:00
$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=balado&color=#color#"
]);
}
public function cdtAction()
{
$url=$this->getParameter("widcdt_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=cdt&color=#color#"
]);
}
2019-11-28 10:37:12 +01:00
public function gepiannuAction()
{
2020-06-26 08:42:33 +02:00
$url=$this->getParameter("widgepi_syncenvole");
2019-11-28 10:37:12 +01:00
$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=gepiannu&color=#color#"
]);
}
public function gepisiecleAction()
{
2020-06-26 08:42:33 +02:00
$url=$this->getParameter("widgepi_syncenvole");
2019-11-28 10:37:12 +01:00
$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,
2019-11-28 11:32:41 +01:00
'url' => $url."/synchro.php?app=gepisconet&color=#color#"
2019-11-28 10:37:12 +01:00
]);
}
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#"
]);
}
2019-11-28 10:37:12 +01:00
public function nextcloudAction()
{
2020-06-26 08:42:33 +02:00
$url=$this->getParameter("widnextcloud_syncenvole");
2019-11-28 10:37:12 +01:00
$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=nextcloud&color=#color#"
]);
}
2019-06-21 14:40:21 +02:00
public function piwikAction()
{
$url=$this->getParameter("widpiwik_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=piwik&color=#color#"
]);
}
2019-11-28 10:37:12 +01:00
public function sacocheAction()
{
2020-06-26 08:42:33 +02:00
$url=$this->getParameter("widsacoche_syncenvole");
2019-11-28 10:37:12 +01:00
$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,
2019-11-28 11:32:41 +01:00
'url' => $url."/synchro.php?app=sacochesconet&color=#color#"
2019-11-28 10:37:12 +01:00
]);
}
2019-06-17 17:09:00 +02:00
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