html = ''; foreach ($projects as $project) { $html .= $this->renderView('resume.html.twig', array( 'project' => $project, )); } if ($html == '') { $this->addFlash('error', 'warn.project.check'); return $this->redirect($this->generateUrl('project_list')); } // Génération du pdf $html2pdf = $this
html = new simple_html_dom(); $html->load_file($lien2); $csv = []; $tr = $html->find('#btable', 0); foreach ($tr->find('tr') as $item) { $td = $item->find("td"); $temp = []; for ($i = 0; $i < sizeof
html){ $("#supOrder").html(html); } }); }); ``` Si dessus la fonction JS qui détecte le clic d'un bouton. ``` $this->data['balance'] .= ' '; $this->data['balance'] .= ' '; ``` Et le code PHP qui crée le bouton
HTML, j'affiche le résultat de la requête ci-dessous dans un tableau HTML : ``` public function mavue() { $this->set('mesventes', $this-Ventes>find('all', array('sum(prix)AS total','group
html) && (content_html != ''))bdy.innerHTML = content_html; content.appendChild(bdy); ftr.className ='modal-footer'; ftr.innerHTML = footer; content.appendChild(ftr); $('body').append(modal); create_button("button", "Envoyer", "modalClick", "#modalHere", "modalClick", true, "#envoyerInformations");//mettre display none
html>body #menu li{ border-right: 1px solid transparent; } #menu li ul{ position: absolute; width: 144px; left: -999em; } #menu li ul li{ border-top: 1px solid #fff; } html>body
html qui est amener à évoluer. - Le fichier structure html est en php pour ajouter : header('Access-Control-Allow-Origin: \*', true); pour autoriser l'origine externe de la requête. La fonction
html->link($html->image('/img/fre.png', array('alt'=>'Français','title'=>'Français')), array('language'=>'fre')+$this->params'pass'], array('escape'=>false));?>
Html->link(" " . __('Mes campagnes'),['controller' =>'Contacts','action' => 'newCampagne','plugin'=>'Admin'],['class' =>'btn btn-system','escape'=>false]);?>
success: function(html) { $('#commande_contratMetier').replaceWith( $(html).find('#commande_contratMetier') ); $('#commande_sousProjet').replaceWith( $(html).find('#commande_sousProjet') ); $('#commande_compteComptable').replaceWith( $(html).find('#commande_compteComptable') ); } }); }); ``` Merci d'avance pour votre aide :) !