Пример #1
0
<?php 
include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "BITM_Atomic_Project" . DIRECTORY_SEPARATOR . "Views" . DIRECTORY_SEPARATOR . "startup.php";
use App\BITM\SEIP107348\Email\Subscription;
use App\BITM\SEIP107348\Utility\Utility;
$view = new Subscription();
$email = $view->view($_GET['id']);
//Utility::d($views);
?>

<!DOCTYPE>
<html>
    <head>
        <title>Email Subscription</title>
        <link href="../../../Asset/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/main.css" rel="stylesheet" type="text/css"/>
        <style>
            .add_book_form{
                padding: 15px 170px;
            }
        </style>
    </head>
    <body>
        <section class="header_part">
            <div class="container">
                <div class="row">
                    <div>
                        <div class="col-md-6">
                            <p class="header_text color_orange">THE LIST OF EMAIL ADDRESS</p>
                        </div>
Пример #2
0
<?php 
include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "BITM_Atomic_Project" . DIRECTORY_SEPARATOR . "Views" . DIRECTORY_SEPARATOR . "startup.php";
use App\BITM\SEIP107348\Email\Subscription;
$email = new Subscription();
echo $email->delete($_GET['id']);
Пример #3
0
<?php 
include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "BITM_Atomic_Project" . DIRECTORY_SEPARATOR . "Views" . DIRECTORY_SEPARATOR . "startup.php";
use App\BITM\SEIP107348\Email\Subscription;
use App\BITM\SEIP107348\Utility\Utility;
$view = new Subscription();
$views = $view->index();
//Utility::d($views);
?>


<!DOCTYPE>
<html>
    <head>
        <title>Book Store</title>
        <link href="../../../Asset/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/main.css" rel="stylesheet" type="text/css"/>
        <script src="../../../Asset/js/jquery-1.11.3.min.js" type="text/javascript"></script>
        <script src="../../../Asset/js/bootstrap.min.js" type="text/javascript"></script>
    </head>
    <body>
        <section class="header_part">
            <div class="container">
                <div class="row">
                    <div>
                        <div class="col-md-6">
                            <p class="header_text text-success">THE LSIT OF EMAIL</p>
                        </div>
                        <div class="col-md-6">  					
Пример #4
0
<?php 
include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "BITM_Atomic_Project" . DIRECTORY_SEPARATOR . "Views" . DIRECTORY_SEPARATOR . "startup.php";
use App\BITM\SEIP107348\Email\Subscription;
use App\BITM\SEIP107348\Utility\Utility;
$view = new Subscription();
$email = $view->update($_GET['id']);
$id = $email['id'];
if (isset($_POST['submit'])) {
    $email = $_POST['email'];
    $conn = mysql_connect("localhost", "root", "root") or die("not connected");
    $lnk = mysql_select_db("BITM") or die("cannot select db table");
    $query = "UPDATE `email` SET `email`='" . $email . "' WHERE  id='{$id}'";
    $result = mysql_query($query);
    if ($result) {
        Utility::message("Update is successful");
    } else {
        Utility::message("Update is failed.");
    }
    Utility::redirect('index.php');
}
//Utility::d($views);
?>

<!DOCTYPE>
<html>
    <head>
        <title>Email Subscription</title>
        <link href="../../../Asset/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="../../../Asset/css/main.css" rel="stylesheet" type="text/css"/>
Пример #5
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'BITM_Atomic_Project' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
use App\BITM\SEIP107348\Email\Subscription;
$email = new Subscription($_POST['email']);
echo $email->store();