src/Controller/SupplierServicesController.php line 48

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by Mediterranean Develup Solutions
  4.  * User: jorge.defreitas@develup.solutions
  5.  * Date: 13/07/2017
  6.  * Time: 16:04
  7.  */
  8. namespace App\Controller;
  9. use App\Entity\Cities;
  10. use App\Entity\Country;
  11. use App\Entity\Provinces;
  12. use App\Entity\Regions;
  13. use App\Entity\Supplier;
  14. use App\Entity\SupplierAccommodation;
  15. use App\Entity\SupplierActivities;
  16. use App\Entity\SupplierAv;
  17. use App\Entity\SupplierCreative;
  18. use App\Entity\SupplierCruise;
  19. use App\Entity\SupplierEntertainment;
  20. use App\Entity\SupplierGifts;
  21. use App\Entity\SupplierGuide;
  22. use App\Entity\SupplierIdeaServicesControl;
  23. use App\Entity\SupplierItineraries;
  24. use App\Entity\SupplierLounge;
  25. use App\Entity\SupplierMenu;
  26. use App\Entity\SupplierOthers;
  27. use App\Entity\SupplierServicesAssistant;
  28. use App\Entity\SupplierServicesControl;
  29. use App\Entity\SupplierServicesDescription;
  30. use App\Entity\SupplierTechnology;
  31. use App\Entity\SupplierTransport;
  32. use Doctrine\ORM\EntityManagerInterface;
  33. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  34. use Symfony\Component\Routing\Annotation\Route;
  35. use Symfony\Component\HttpFoundation\JsonResponse;
  36. use Symfony\Component\HttpFoundation\Request;
  37. use Symfony\Component\HttpFoundation\Response;
  38. use Symfony\Component\Validator\Constraints as Assert;
  39. class SupplierServicesController extends AbstractController
  40. {
  41.     /**
  42.      * @Route("/supplier/services/{ids}", name="services_index")
  43.      */
  44.     public function indexAction($idsRequest $request) {
  45.         $em $this->getDoctrine()->getManager();
  46.         $system "supplier";
  47.         /*CONTROL GENERAL*/
  48.         $controlgeneral $em->getRepository(SupplierIdeaServicesControl::class)->findOneById($ids);
  49.         $id $controlgeneral->getId();
  50.         $supplier $em->getRepository(Supplier::class)->findOneById($controlgeneral->getSupplierId());
  51.         $country $em->getRepository(Country::class)->findOneById($supplier->getCountry());
  52.         $supplier->setCountry($country->getCountry());
  53.         $regions $em->getRepository(Regions::class)->findOneById($supplier->getRegion());
  54.         $supplier->setRegion($regions->getRegion());
  55.         $province $em->getRepository(Provinces::class)->findOneById($supplier->getProvince());
  56.         $supplier->setProvince($province->getName());
  57.         $cities $em->getRepository(Cities::class)->findOneById($supplier->getPopulation());
  58.         $supplier->setPopulation($cities->getCity());
  59.         /* accommodations */
  60.         $accommodations $em->getRepository(SupplierAccommodation::class)->findBySupplierId($id);
  61.             $data_accommodation = array();
  62.             foreach ($accommodations as $accommodation) {
  63.                 /* Consulta en Control Services */
  64.                 $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  65.                     'servicesId' => $accommodation->getId(),
  66.                     'servicesCat' => $accommodation->getControlCat()
  67.                 ));
  68.                 //class="label label-flat label-rounded label-icon border-grey text-grey"
  69.                 if ($accommodation->getMinibar()){
  70.                     $accommodation->setMinibar('<span class="label"><img src="/assets/images/icons/mi-20.png"></span>');
  71.                 }
  72.                 if ($accommodation->getWifi()){
  73.                     $accommodation->setWifi('<span class="label"><img src="/assets/images/icons/wi-20.png"></span>');
  74.                 }
  75.                 if ($accommodation->getAirconditioner()){
  76.                     $accommodation->setAirconditioner('<span class="label"><img src="/assets/images/icons/ac-20.png"></span>');
  77.                 }
  78.                 if ($accommodation->getCalefaction()){
  79.                     $accommodation->setCalefaction('<span class="label"><img src="/assets/images/icons/ca-20.png"></span>');
  80.                 }
  81.                 if ($accommodation->getPool()){
  82.                     $accommodation->setPool('<span class="label"><img src="/assets/images/icons/po-20.png"></span>');
  83.                 }
  84.                 if ($accommodation->getBath()){
  85.                     $accommodation->setBath('<span class="label"><img src="/assets/images/icons/ba-20.png"></span>');
  86.                 }
  87.                 if ($accommodation->getCoffeemaker()){
  88.                     $accommodation->setCoffeemaker('<span class="label"><img src="/assets/images/icons/cm-20.png"></span>');
  89.                 }
  90.                 if ($accommodation->getKitchen()){
  91.                     $accommodation->setKitchen('<span class="label"><img src="/assets/images/icons/ki-20.png"></span>');
  92.                 }
  93.                 if ($accommodation->getWasher()){
  94.                     $accommodation->setWasher('<span class="label"><img src="/assets/images/icons/wa-20.png"></span>');
  95.                 }
  96.                 if ($accommodation->getFlattv()){
  97.                     $accommodation->setFlattv('<span class="label"><img src="/assets/images/icons/tv-20.png"></span>');
  98.                 }
  99.                 if ($accommodation->getElectrickettle()){
  100.                     $accommodation->setElectrickettle('<span class="label"><img src="/assets/images/icons/ke-20.png"></span>');
  101.                 }
  102.                 if ($accommodation->getViews()){
  103.                     $accommodation->setViews('<span class="label"><img src="/assets/images/icons/vi-20.png"></span>');
  104.                 }
  105.                 if ($accommodation->getPets()){
  106.                     $accommodation->setPets('<span class="label"><img src="/assets/images/icons/pe-20.png"></span>');
  107.                 }
  108.                 $controlctrlDes->getId();
  109.                 $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  110. //                $data_accommodation[]=$accommodation;
  111.                 $data_accommodation[] = array(
  112.                     'id' => $accommodation->getId(),
  113.                     'name' => $accommodation->getName(),
  114.                     'size' => $accommodation->getSize(),
  115.                     'quantity' => $accommodation->getQuantity(),
  116.                     'price' => $accommodation->getPrice(),
  117.                     'controlId' => $controlctrlDes->getId(),
  118.                     'minibar' => $accommodation->getMinibar(),
  119.                     'wifi' => $accommodation->getWifi(),
  120.                     'airconditioner' => $accommodation->getAirconditioner(),
  121.                     'calefaction' => $accommodation->getCalefaction(),
  122.                     'pool' => $accommodation->getPool(),
  123.                     'bath' => $accommodation->getBath(),
  124.                     'coffeemaker' => $accommodation->getCoffeemaker(),
  125.                     'kitchen' => $accommodation->getKitchen(),
  126.                     'washer' => $accommodation->getWasher(),
  127.                     'flattv' => $accommodation->getFlattv(),
  128.                     'electrickettle' => $accommodation->getElectrickettle(),
  129.                     'views' => $accommodation->getViews(),
  130.                     'pets' => $accommodation->getPets(),
  131.                     'description' => $description    //GEAO Gustavo Ayala: agregue la descripcción al listar los servicios
  132.                 );
  133.             }
  134.         /* accommodations */
  135.         /* menu */
  136.         $menus $em->getRepository(SupplierMenu::class)->findBySupplierId($id);
  137.         /* menu Description*/
  138.         $data_menu = array();
  139.         foreach($menus as $menu){
  140.             /* Consulta en Control Description */
  141.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  142.                 'servicesId' => $menu->getId(),
  143.                 'servicesCat' => $menu->getControlCat()
  144.             ));
  145.             $controlctrlDes->getId();
  146.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  147.             $data_menu[] = array(
  148.                 'id' => $menu->getId(),
  149.                 'title' => $menu->getTitle(),
  150. //                'description' => $menu->getDescription(),      //GEAO lo comente ya que esta repetido
  151.                 'currency' => $menu->getCurrency(),
  152.                 'price' => $menu->getPrice(),
  153.                 'commission' => $menu->getCommission(),
  154.                 'iva' => $menu->getIva(),
  155.                 'controlId' => $controlctrlDes->getId(),
  156.                 'description' => $description    //Gustavo Ayala: agregue la descripcción al listar los servicios
  157.             );
  158.         }
  159.         /* lounge */
  160.         $lounges $em->getRepository(SupplierLounge::class)->findBySupplierId($id);
  161.         /* lounge Description*/
  162.         $data_lounge = array();
  163.         foreach($lounges as $lounge){
  164.             /* Consulta en Control Description */
  165.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  166.                 'servicesId' => $lounge->getId(),
  167.                 'servicesCat' => $lounge->getControlCat()
  168.             ));
  169.             $controlctrlDes->getId();
  170.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  171.             $data_lounge[] = array(
  172.                 'id' => $lounge->getId(),
  173.                 'name' => $lounge->getName(),
  174.                 'meters' => $lounge->getMeters(),
  175.                 'length' => $lounge->getLength(),
  176.                 'width' => $lounge->getWidth(),
  177.                 'height' => $lounge->getHeight(),
  178.                 'currency' => $lounge->getCurrency(),
  179.                 'price' => $lounge->getPrice(),
  180.                 'commission' => $lounge->getCommission(),
  181.                 'iva' => $lounge->getIva(),
  182.                 'controlId' => $controlctrlDes->getId(),
  183.                 'description' => $description
  184.             );
  185.         }
  186.         /* Transport */
  187.         $transports $em->getRepository(SupplierTransport::class)->findBySupplierId($id);
  188.         /* Transport Description*/
  189.         $data_transport = array();
  190.         foreach($transports as $transport){
  191.             /* Consulta en Control Description */
  192.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  193.                 'servicesId' => $transport->getId(),
  194.                 'servicesCat' => $transport->getControlCat()
  195.             ));
  196.             //Gustavo Ayala: descomente esats lineas para agregar la descripcion
  197.             $controlctrlDes->getId();
  198.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  199.             //Gustavo Ayala: descomente esats lineas para agregar la descripcion
  200.             $data_transport[] = array(
  201.                 'id' => $transport->getId(),
  202.                 'name' => $transport->getName(),
  203.                 'driver' => $transport->getDriver(),
  204.                 'currency' => $transport->getCurrency(),
  205.                 'price' => $transport->getPrice(),
  206.                 'commission' => $transport->getCommission(),
  207.                 'iva' => $transport->getIva(),
  208.                 'controlId' => $controlctrlDes->getId(),
  209.                 'description' => $description    //Gustavo Ayala: agregue la descripcción al listar los servicios
  210.             );
  211.         }
  212.         /* Guide */
  213.         $guides $em->getRepository(SupplierGuide::class)->findBySupplierId($id);
  214.         /* Guide Description*/
  215.         $data_guide = array();
  216.         foreach($guides as $guide){
  217.             /* Consulta en Control Description */
  218.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  219.                 'servicesId' => $guide->getId(),
  220.                 'servicesCat' => $guide->getControlCat()
  221.             ));
  222.             //Gustavo Ayala: descomente esats lineas para agregar la descripcion
  223.              $controlctrlDes->getId();
  224.              $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  225.             //Gustavo Ayala: descomente esats lineas para agregar la descripcion
  226.             $data_guide[] = array(
  227.                 'id' => $guide->getId(),
  228.                 'name' => $guide->getName(),
  229.                 'guide' => $guide->getGuide(),
  230.                 'currency' => $guide->getCurrency(),
  231.                 'price' => $guide->getPrice(),
  232.                 'commission' => $guide->getCommission(),
  233.                 'iva' => $guide->getIva(),
  234.                 'controlId' => $controlctrlDes->getId(),
  235.                 'description' => $description    //Gustavo Ayala: agregue la descripcción al listar los servicios
  236.             );
  237.         }
  238.         /* Itineraries */
  239.         $itinerariess $em->getRepository(SupplierItineraries::class)->findBySupplierId($id);
  240.             /* Itineraries Description*/
  241.         $data_itineraries = array();
  242.             foreach($itinerariess as $itineraries){
  243.                 /* Consulta en Control Description */
  244.                 $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  245.                     'servicesId' => $itineraries->getId(),
  246.                     'servicesCat' => $itineraries->getControlCat()
  247.                 ));
  248.                 //$controlctrlDes->getId();
  249.                 $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  250.                 $data_itineraries[] = array(
  251.                     'id' => $itineraries->getId(),
  252.                     'title' => $itineraries->getTitle(),
  253.                     'controlId' => $controlctrlDes->getId(),
  254.                     'description' => $description
  255.                 );
  256.             }
  257.         /* activities */
  258.         $activitiess $em->getRepository(SupplierActivities::class)->findBySupplierId($id);
  259.             /* activities Description*/
  260.         $data_activities = array();
  261.             foreach($activitiess as $activities){
  262.                 /* Consulta en Control Description */
  263.                 $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  264.                     'servicesId' => $activities->getId(),
  265.                     'servicesCat' => $activities->getControlCat()
  266.                 ));
  267.                 //$controlctrlDes->getId();
  268.                 $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  269.                 $data_activities[] = array(
  270.                     'id' => $activities->getId(),
  271.                     'title' => $activities->getTitle(),
  272.                     'capacity' => $activities->getCapacity(),
  273.                     'currency' => $activities->getCurrency(),
  274.                     'price' => $activities->getPrice(),
  275.                     'commission' => $activities->getCommission(),
  276.                     'iva' => $activities->getIva(),
  277.                     'controlId' => $controlctrlDes->getId(),
  278.                     'description' => $description
  279.                 );
  280.             }
  281.         /* cruise */
  282.         $cruises $em->getRepository(SupplierCruise::class)->findBySupplierId($id);
  283.             /* cruise Description*/
  284.         $data_cruise = array();
  285.             foreach($cruises as $cruise){
  286.                 /* Consulta en Control Description */
  287.                 $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  288.                     'servicesId' => $cruise->getId(),
  289.                     'servicesCat' => $cruise->getControlCat()
  290.                 ));
  291.                 //$controlctrlDes->getId();
  292.                 $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  293.                 $data_cruise[] = array(
  294.                     'id' => $cruise->getId(),
  295.                     'title' => $cruise->getTitle(),
  296.                     'currency' => $cruise->getCurrency(),
  297.                     'price' => $cruise->getPrice(),
  298.                     'commission' => $cruise->getCommission(),
  299.                     'iva' => $cruise->getIva(),
  300.                     'controlId' => $controlctrlDes->getId(),
  301.                     'description' => $description
  302.                 );
  303.             }
  304.         /* Av */
  305.         $avs $em->getRepository(SupplierAv::class)->findBySupplierId($id);
  306.         /* Av Description*/
  307.         $data_av = array();
  308.         foreach($avs as $av){
  309.             /* Consulta en Control Description */
  310.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  311.                 'servicesId' => $av->getId(),
  312.                 'servicesCat' => $av->getControlCat()
  313.             ));
  314.             //$controlctrlDes->getId();
  315.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  316.             $data_av[] = array(
  317.                 'id' => $av->getId(),
  318.                 'name' => $av->getName(),
  319.                 'responsible' => $av->getResponsible(),
  320.                 'currency' => $av->getCurrency(),
  321.                 'price' => $av->getPrice(),
  322.                 'commission' => $av->getCommission(),
  323.                 'iva' => $av->getIva(),
  324.                 'controlId' => $controlctrlDes->getId(),
  325.                 'description' => $description
  326.             );
  327.         }
  328.         /* Creative */
  329.         $creatives $em->getRepository(SupplierCreative::class)->findBySupplierId($id);
  330.         /* Creative Description*/
  331.         $data_creative = array();
  332.         foreach($creatives as $creative){
  333.             /* Consulta en Control Description */
  334.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  335.                 'servicesId' => $creative->getId(),
  336.                 'servicesCat' => $creative->getControlCat()
  337.             ));
  338.             //$controlctrlDes->getId();
  339.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  340.             $data_creative[] = array(
  341.                 'id' => $creative->getId(),
  342.                 'title' => $creative->getTitle(),
  343.                 'controlId' => $controlctrlDes->getId(),
  344.                 'description' => $description
  345.             );
  346.         }
  347.         /* Gifts */
  348.         $gifts $em->getRepository(SupplierGifts::class)->findBySupplierId($id);
  349.         /* Gifts Description*/
  350.         $data_gifts = array();
  351.         foreach($gifts as $gift){
  352.             /* Consulta en Control Description */
  353.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  354.                 'servicesId' => $gift->getId(),
  355.                 'servicesCat' => $gift->getControlCat()
  356.             ));
  357.             //$controlctrlDes->getId();
  358.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  359.             $data_gifts[] = array(
  360.                 'id' => $gift->getId(),
  361.                 'name' => $gift->getName(),
  362.                 'responsible' => $gift->getResponsible(),
  363.                 'currency' => $gift->getCurrency(),
  364.                 'price' => $gift->getPrice(),
  365.                 'commission' => $gift->getCommission(),
  366.                 'iva' => $gift->getIva(),
  367.                 'controlId' => $controlctrlDes->getId(),
  368.                 'description' => $description
  369.             );
  370.         }
  371.         /* Entertainment */
  372.         $entertainments $em->getRepository(SupplierEntertainment::class)->findBySupplierId($id);
  373.         /* Entertainment Description*/
  374.         $data_entertainment = array();
  375.         foreach($entertainments as $entertainment){
  376.             /* Consulta en Control Description */
  377.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  378.                 'servicesId' => $entertainment->getId(),
  379.                 'servicesCat' => $entertainment->getControlCat()
  380.             ));
  381.             //$controlctrlDes->getId();
  382.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  383.             $data_entertainment[] = array(
  384.                 'id' => $entertainment->getId(),
  385.                 'name' => $entertainment->getName(),
  386.                 'responsible' => $entertainment->getResponsible(),
  387.                 'currency' => $entertainment->getCurrency(),
  388.                 'price' => $entertainment->getPrice(),
  389.                 'commission' => $entertainment->getCommission(),
  390.                 'iva' => $entertainment->getIva(),
  391.                 'controlId' => $controlctrlDes->getId(),
  392.                 'description' => $description
  393.             );
  394.         }
  395.         /* Others */
  396.         $otherss $em->getRepository(SupplierOthers::class)->findBySupplierId($id);
  397.         /* Others Description*/
  398.         $data_others = array();
  399.         foreach($otherss as $others){
  400.             /* Consulta en Control Description */
  401.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  402.                 'servicesId' => $others->getId(),
  403.                 'servicesCat' => $others->getControlCat()
  404.             ));
  405.             //$controlctrlDes->getId();
  406.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  407.             $data_others[] = array(
  408.                 'id' => $others->getId(),
  409.                 'name' => $others->getName(),
  410.                 'responsible' => $others->getResponsible(),
  411.                 'currency' => $others->getCurrency(),
  412.                 'price' => $others->getPrice(),
  413.                 'commission' => $others->getCommission(),
  414.                 'iva' => $others->getIva(),
  415.                 'controlId' => $controlctrlDes->getId(),
  416.                 'description' => $description
  417.             );
  418.         }
  419.         /* technology */
  420.         $technologys $em->getRepository(SupplierTechnology::class)->findBySupplierId($id);
  421.         /* Technology Description*/
  422.         $data_technology = array();
  423.         foreach($technologys as $technology){
  424.             /* Consulta en Control Description */
  425.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  426.                 'servicesId' => $technology->getId(),
  427.                 'servicesCat' => $technology->getControlCat()
  428.             ));
  429.             //$controlctrlDes->getId();
  430.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  431.             $data_technology[] = array(
  432.                 'id' => $technology->getId(),
  433.                 'title' => $technology->getTitle(),
  434.                 'modules' => $technology->getModules(),
  435.                 'type' => $technology->getType(),
  436.                 'currency' => $technology->getCurrency(),
  437.                 'price' => $technology->getPrice(),
  438.                 'commission' => $technology->getCommission(),
  439.                 'iva' => $technology->getIva(),
  440.                 'controlId' => $controlctrlDes->getId(),
  441.                 'description' => $description
  442.             );
  443.         }
  444.         /* Assistant  */
  445.         $assistants $em->getRepository(SupplierServicesAssistant::class)->findBySupplierId($id);
  446.         /* Assistant  Description*/
  447.         $data_assistant = array();
  448.         foreach($assistants as $assistant){
  449.             /* Consulta en Control Description */
  450.             $controlctrlDes $em->getRepository(SupplierServicesControl::class)->findOneBy( array(
  451.                 'servicesId' => $assistant->getId(),
  452.                 'servicesCat' => $assistant->getControlCat()
  453.             ));
  454.             //$controlctrlDes->getId();
  455.             $description $em->getRepository(SupplierServicesDescription::class)->findByControlId($controlctrlDes->getId());
  456.             $data_assistant[] = array(
  457.                 'id' => $assistant->getId(),
  458.                 'name' => $assistant->getName(),
  459.                 'quantity' => $assistant->getQuantity(),
  460.                 'currency' => $assistant->getCurrency(),
  461.                 'price' => $assistant->getPrice(),
  462.                 'commission' => $assistant->getCommission(),
  463.                 'iva' => $assistant->getIva(),
  464.                 'controlId' => $controlctrlDes->getId(),
  465.                 'description' => $description
  466.             );
  467.         }
  468.         /* salida de data */
  469.         return $this->render('supplier/services/list-services.html.twig', array(
  470.             'id' => $supplier->getId(),
  471.             'ids' => $ids,
  472.             'controlGeneral' => $controlgeneral,
  473.             'supplier' => $supplier,
  474.             'accommodations' => $data_accommodation,
  475.             'menus' => $data_menu,
  476.             'lounges' => $data_lounge,
  477.             'transports' => $data_transport,
  478.             'guides' => $data_guide,
  479.             'itineraries' => $data_itineraries,
  480.             'activities' => $data_activities,
  481.             'cruises' => $data_cruise,
  482.             'avs' => $data_av,
  483.             'creatives' => $data_creative,
  484.             'gifts' => $data_gifts,
  485.             'entertainments' => $data_entertainment,
  486.             'technologys' => $data_technology,
  487.             'assistants' => $data_assistant,
  488.             'otherss' => $data_others,
  489.             'system' => $system,
  490.         ));
  491.     }
  492. }