This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
include('../dbconnect.php'); | |
$numero_retour = mysqli_query($connect, "SELECT max(`num_ordre_arrivee`) as num_ord FROM `arrivee` WHERE 1"); | |
$return = mysqli_fetch_array($numero_retour); | |
$retour = $return['num_ord'] + 1; | |
$non_extension = 0; | |
$extension = 0; | |
$pdf_extension = 0; | |
$png_extension = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BackEnd [ | |
1 - Change Concour Type to nVarchar(5) | |
2 - add get by cat method | |
//Get_Concour_By_Type | |
[Route("api/Concours/getByType/{_type}")] | |
[HttpGet()] | |
public IHttpActionResult getConcourbyType(string _type) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//remove packages | |
sudo apt autoremove | |
//remove cache | |
sudo apt autoclean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.subscribe( | |
(res) => { | |
console.log('HTTP response', res); | |
}, | |
(err) => { | |
console.log('HTTP Error', err) | |
}, | |
() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
localStorage and sessionStorage accomplish the exact same thing | |
and have the same API, but with sessionStorage the data is persisted | |
only until the window or tab is closed,while with localStorage the data is persisted | |
until the user manually clears the browser cache or until your web app clears the data. | |
The examples in this post are for localStorage, but the same syntax works for sessionStorage. | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
import { AppComponent } from './app.component'; | |
import { HelloComponent } from './hello.component'; | |
import { ContactFormComponent } from './contact-form/contact-form.component'; | |
import { SignupFormComponent } from './signup-form/signup-form.component'; | |
import { NewCourseFormComponent } from './new-course-form/new-course-form.component'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<favorite [is-favoried]="false" (change)="whenFavIsChanged($event)" ></favorite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
import { AppComponent } from './app.component'; | |
import { HelloComponent } from './hello.component'; | |
import { ContactFormComponent } from './contact-form/contact-form.component'; | |
import { SignupFormComponent } from './signup-form/signup-form.component'; | |
import { NewCourseFormComponent } from './new-course-form/new-course-form.component'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="todo"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.done{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="myApp" ng-controller="MainCtrl"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> | |
</head> | |
<body> |
NewerOlder