<?php session_start(); include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "AtomicProject" . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php"; use App\BITM\SEIP108347\City\City; use App\BITM\SEIP108347\Utility\Utility; use App\BITM\SEIP108347\Message\Message; $obj = new City(); //$obj=($_REQUEST); //Utility::dd($obj); $obj->delete($_REQUEST['id']); //Utility::dd($_REQUEST['id']);
<?php session_start(); include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "AtomicProject" . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php"; use App\BITM\SEIP108347\City\City; use App\BITM\SEIP108347\Utility\Utility; use App\BITM\SEIP108347\Message\Message; $obj = new City(); $b = $obj->edit($_REQUEST['id']); //Utility::dd($b); ?> <html> <head> <title>Edit City</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../../../Resource/bootstrap-3.3.6-dist/css/bootstrap.min.css"> </head> <body> <div class="row"> <div class="col-md-4"></div> <div class="col-md-6"> <h1>Edit City</h1> </div> <div class="col-md-2"></div> </div> <div class="row"> <div class="col-md-3"></div> <div class="col-md-4"> <form role="form" action="update.php" method="post">
<?php include_once '../../../vendor/autoload.php'; use App\BITM\SEIP108347\City\City; $obj = new City(); //$obj=$obj->create(); $obj->create(); ?> <html> <head> <title>Create City</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../../../Resource/bootstrap-3.3.6-dist/css/bootstrap.min.css"> </head> <body> <div class="row"> <div class="col-md-4"></div> <div class="col-md-6"> <h1>Create City</h1> </div> <div class="col-md-2"></div> </div> <div class="row"> <div class="col-md-3"></div> <div class="col-md-4"> <form role="form" action="store.php" method="post"> <div class="form-group"> <label for="city">Enter City:</label> <select name="city"> <option value="">--Select One--</option>
<?php session_start(); include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "AtomicProject" . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php"; use App\BITM\SEIP108347\City\City; use App\BITM\SEIP108347\Utility\Utility; use App\BITM\SEIP108347\Message\Message; $obj = new City(); $b = $obj->show($_GET['id']); //Utility::dd($b); ?> <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> <link href="../../../Resource/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="col-md-3"></div> <div class="col-md-6"> <table class="table table-bordered table-hover table-responsive table-striped text-center"> <tr> <th class="text-center">ID</th> <th class="text-center">City</th> </tr>
<?php session_start(); include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "AtomicProject" . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php"; use App\BITM\SEIP108347\City\City; use App\BITM\SEIP108347\Utility\Utility; use App\BITM\SEIP108347\Message\Message; $obj = new City(); //$obj=($_REQUEST); //Utility::dd($obj); $obj->prepare($_REQUEST)->update();
<?php session_start(); include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "AtomicProject" . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php"; use App\BITM\SEIP108347\City\City; use App\BITM\SEIP108347\Utility\Utility; use App\BITM\SEIP108347\Message\Message; $obj = new City(); //Utility::dd($_REQUEST); $obj->prepare($_REQUEST)->store();