Some JavaScript
// Delete confirmation modals
$('#delete-confirm').on('show', function() {
var $submit = $(this).find('.btn-danger'),
href = $submit.attr('href');
$submit.attr('href', href.replace('pony', $(this).data('id')));| <html> | |
| <head> | |
| <title>app.html</title> | |
| <meta charset="utf-8" /> | |
| <script type="text/javascript" src="bower_components/angular/angular.js"></script> | |
| </head> | |
| <!--ng-app permet de démarrer la compilation d'AngularJS--> | |
| <body ng-app="myApp"> |
| <!DOCTYPE html> | |
| <html> | |
| <head lang="fr"> | |
| <meta charset="UTF-8"> | |
| <title>test du controller</title> | |
| <script src="bower_components/jquery/dist/jquery.js"></script> | |
| <script src="bower_components/angular/angular.js"></script> | |
| </head> | |
| <body ng-app="test"> |
| <?php | |
| class ProduitEntity | |
| { | |
| //+--------------------------------- | |
| // GET - Propriétés Privées Validées | |
| private $id_produit, | |
| $url, | |
| $marque, | |
| $nom, |
| <?php | |
| // ___ __ __ ____ ____ ___ __ __ _ ____ __ ___ | |
| // / __)( ) / _\ / ___)/ ___) / __)/ \ ( ( \( __)( )/ __) | |
| // ( (__ / (_/\/ \\___ \\___ \ ( (__( O )/ / ) _) )(( (_ \ | |
| // \___)\____/\_/\_/(____/(____/ \___)\__/ \_)__)(__) (__)\___/ | |
| // CLASS | |
| class ConfigPDO | |
| { | |
| protected $parameter; |
| <?php | |
| // Contient des indices de Newsletter à la fin | |
| class MembreEntity | |
| { | |
| private $id_membre , | |
| $pseudo , | |
| $mdp , | |
| $nom , | |
| $prenom , | |
| $email , |
| <?php | |
| class MembreModel extends RequetePDO | |
| { | |
| //+------------------------------------------------------------------------ | |
| public function chargementDeTousLesMembres($classement = false, $ordre = false) | |
| { | |
| if (!empty($classement) || !empty($ordre)) { | |
| $order = array($classement, $ordre); |
| <?php | |
| /** | |
| * Class PanierController | |
| * | |
| * Voir le panier | |
| * Ajouter au panier | |
| * Vider le panier | |
| * Retirer du panier | |
| * Valider le panier |
| <?php | |
| class Autoload | |
| { | |
| public static function className($className) | |
| { | |
| $pdo = strpos($className, 'PDO') ; | |
| $model = strpos($className, 'Model') ; | |
| $entity = strpos($className, 'Entity') ; | |
| $controller = strpos($className, 'Controller') ; | |