Esempio n. 1
0
<?php 
require_once '.././libs/csv-crud.php';
require_once '.././libs/header.php';
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('.././data/country.csv', 'CountryID', $Id);
    $Name = $data['CountryName'];
}
if (!empty($_POST)) {
    $Id = $_POST['country_id'];
    $Name = $_POST['country_name'];
    $data = array('CountryID' => $Id, 'CountryName' => $Name);
    if (UpdateDataByKey('.././data/country.csv', 'CountryID', $Id, $data)) {
        redirect('country-list.php');
    }
}
?>

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="mmt">

  <title>ANGEL</title>
  <link rel="stylesheet" href="../css/bootstrap.min.css"  />
  <link rel="stylesheet" href="../css/font-awesome.min.css" />
Esempio n. 2
0
<?php 
require_once '.././libs/csv-crud.php';
require_once '.././libs/header.php';
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('.././data/category.csv', 'CategoryID', $Id);
    $Name = $data['CategoryName'];
}
if (!empty($_POST)) {
    $Id = $_POST['category_id'];
    $Name = $_POST['category_name'];
    $data = array('CategoryID' => $Id, 'CategoryName' => $Name);
    if (UpdateDataByKey('.././data/category.csv', 'CategoryID', $Id, $data)) {
        redirect('category-list.php');
    }
}
?>

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="mmt">

  <title>ANGEL</title>
  <link rel="stylesheet" href="../css/bootstrap.min.css"  />
  <link rel="stylesheet" href="../css/font-awesome.min.css" />
Esempio n. 3
0
<?php 
require_once './libs/csv-crud.php';
require_once './libs/header.php';
require_once './libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('./data/brand.csv', 'BrandID', $Id);
    $Name = $data['BrandName'];
}
if (!empty($_POST)) {
    $Id = $_POST['brand_id'];
    $Name = $_POST['brand_name'];
    $data = array('BrandID' => $Id, 'BrandName' => $Name);
    if (UpdateDataByKey('./data/brand.csv', 'BrandID', $Id, $data)) {
        redirect('brand-list.php');
    }
}
?>
<html lang="en">
<head>
    <!-- The below 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Kyaw Naing">

    <!-- Theme Matter -->
    <title>Tutorial</title>
Esempio n. 4
0
<?php 
require_once '.././libs/csv-crud.php';
require_once '.././libs/header.php';
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('.././data/month.csv', 'MonthID', $Id);
    $Name = $data['MonthName'];
}
if (!empty($_POST)) {
    $Id = $_POST['month_id'];
    $Name = $_POST['month_name'];
    $data = array('MonthID' => $Id, 'MonthName' => $Name);
    if (UpdateDataByKey('.././data/month.csv', 'MonthID', $Id, $data)) {
        redirect('month-list.php');
    }
}
?>

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="mmt">

  <title>ANGEL</title>
  <link rel="stylesheet" href="../css/bootstrap.min.css"  />
  <link rel="stylesheet" href="../css/font-awesome.min.css" />
Esempio n. 5
0
    $locationID = $_GET['id'];
    $data = GetDataByKey('./data/location.csv', 'LocationID', $locationID);
    $locationName = $data['LocationName'];
    $month = $data['Month'];
    $countryID = $data['CountryID'];
    $cityID = $data['CityID'];
}
if (!empty($_POST)) {
    //print_r($_POST);
    $locationID = $_POST['location_id'];
    $locationName = $_POST['location_name'];
    $month = $_POST['month'];
    $countryID = $_POST['country_id'];
    $cityID = $_POST['city_id'];
    $_savedata = array('LocationID' => $locationID, 'LocationName' => $locationName, 'Month' => $month, 'CountryID' => $countryID, 'CityID' => $cityID);
    if (UpdateDataByKey('./data/location.csv', 'LocationID', $locationID, $_savedata)) {
        redirect('location-list.php');
    }
}
?>
<html lang="en">
<head>
    <!-- The below 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Kyaw Naing">

    <!-- Theme Matter -->
    <title>Tutorial</title>
Esempio n. 6
0
<?php 
require_once '.././libs/csv-crud.php';
require_once '.././libs/header.php';
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('.././data/location.csv', 'LocationID', $Id);
    $Name = $data['LocationName'];
}
if (!empty($_POST)) {
    $Id = $_POST['location_id'];
    $Name = $_POST['location_name'];
    $data = array('LocationID' => $Id, 'LocationName' => $Name);
    if (UpdateDataByKey('.././data/Location.csv', 'LocationID', $Id, $data)) {
        redirect('Location-list.php');
    }
}
?>

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="mmt">

  <title>ANGEL</title>
  <link rel="stylesheet" href="../css/bootstrap.min.css"  />
  <link rel="stylesheet" href="../css/font-awesome.min.css" />
Esempio n. 7
0
<?php 
require_once '.././libs/csv-crud.php';
require_once '.././libs/header.php';
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_GET)) {
    $Id = $_GET['id'];
    $data = GetDataByKey('.././data/city.csv', 'CityID', $Id);
    $Name = $data['CityName'];
}
if (!empty($_POST)) {
    $Id = $_POST['city_id'];
    $Name = $_POST['city_name'];
    $data = array('CityID' => $Id, 'CityName' => $Name);
    if (UpdateDataByKey('.././data/city.csv', 'CityID', $Id, $data)) {
        redirect('city-list.php');
    }
}
?>

<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="mmt">

  <title>ANGEL</title>
  <link rel="stylesheet" href="../css/bootstrap.min.css"  />
  <link rel="stylesheet" href="../css/font-awesome.min.css" />