예제 #1
0
파일: news_c.php 프로젝트: ATS001/PRSIT
<?php 
if (tp('del') == 1) {
    $id_news = tp('lin');
    model::load('news', 'news');
    //Execute Model
    if (!suppnews($id_news)) {
        exit("2#Erreur Système");
        //Error opération
    } else {
        exit("1#Suppression réussie");
        //Success Opération
    }
} else {
    if (tp('show') == 1) {
        $id_news = tp('lin');
        model::load('news', 'news');
        //Execute Model
        if (!shownews($id_news)) {
            exit("2#Erreur Système");
            //Error opération
        } else {
            exit("1#Suppression réussie");
            //Success Opération
        }
    } else {
        if (tp('arch') == 1) {
            $id_news = tp('lin');
            model::load('news', 'news');
            //Execute Model
            if (!archnews($id_news)) {
예제 #2
0
파일: doc_c.php 프로젝트: ATS001/PRSIT
<?php 
if (tp('del') == 1) {
    $id_doc = tp('lin');
    model::load('doc', 'doc');
    //Execute Model
    if (!suppnews($id_doc)) {
        exit("2#Erreur Système");
        //Error opération
    } else {
        exit("1#Suppression réussie");
        //Success Opération
    }
} else {
    if (tp('show') == 1) {
        $id_doc = tp('lin');
        model::load('doc', 'doc');
        //Execute Model
        if (!shownews($id_doc)) {
            exit("2#Erreur Système");
            //Error opération
        } else {
            exit("1#Suppression réussie");
            //Success Opération
        }
    } else {
        if (tp('arch') == 1) {
            $id_doc = tp('lin');
            model::load('doc', 'doc');
            //Execute Model
            if (!archnews($id_doc)) {
예제 #3
0
파일: com_c.php 프로젝트: ATS001/PRSIT
<?php

if (tp('del') == 1) {
    $id_vod = tp('lin');
    model::load('com', 'com');
    //Execute Model
    if (!suppnews($id_vod)) {
        exit("2#Erreur Système");
        //Error opération
    } else {
        exit("1#Suppression réussie");
        //Success Opération
    }
} else {
    if (tp('show') == 1) {
        $id_vod = tp('lin');
        model::load('com', 'com');
        //Execute Model
        if (!shownews($id_vod)) {
            exit("2#Erreur Système");
            //Error opération
        } else {
            exit("1#Suppression réussie");
            //Success Opération
        }
    } else {
        if (tp('arch') == 1) {
            $id_vod = tp('lin');
            model::load('com', 'com');
            //Execute Model
            if (!archnews($id_vod)) {
예제 #4
0
파일: album_c.php 프로젝트: ATS001/PRSIT
<?php 
if (tp('del') == 1) {
    $id_album = tp('lin');
    model::load('album', 'album');
    //Execute Model
    if (!suppnews($id_album)) {
        exit("2#Erreur Système");
        //Error opération
    } else {
        exit("1#Suppression réussie");
        //Success Opération
    }
} else {
    if (tp('show') == 1) {
        $id_album = tp('lin');
        model::load('album', 'album');
        //Execute Model
        if (!affich($id_album)) {
            exit("2#Erreur Système");
            //Error opération
        } else {
            exit("1#Suppression réussie");
            //Success Opération
        }
    } else {
        if (tp('arch') == 1) {
            $id_album = tp('lin');
            model::load('album', 'album');
            //Execute Model
            if (!archnews($id_album)) {
예제 #5
0
파일: album_c.php 프로젝트: ATS001/PRSIT
<?php

if (isset($_REQUEST['del']) && $_REQUEST['del'] == 1) {
    model::load('album', 'album');
    if (!suppnews($_REQUEST['albumid'])) {
        $reponse = 'Erreur enregistrements';
    } else {
        $reponse = 'ok';
    }
} else {
    if (isset($_REQUEST['arch']) && $_REQUEST['arch'] == 1) {
        model::load('album', 'album');
        if (!archnews($_REQUEST['albumid'])) {
            $reponse = 'Erreur enregistrements';
        } else {
            $reponse = 'ok';
        }
    } else {
        if (isset($_REQUEST['show']) && $_REQUEST['show'] == 1) {
            model::load('album', 'album');
            if (!shownews($_REQUEST['albumid'])) {
                $reponse = 'Erreur enregistrements';
            } else {
                $reponse = 'ok';
            }
        } else {
            view::load('album', 'album');
        }
    }
}
view::load('album', 'album');