示例#1
0
require_once './libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_POST)) {
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('./data/country.csv', 'CountryID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        foreach ($data as $value) {
            DeleteDataByKey('./data/country.csv', 'CountryID', $value);
        }
    }
}
$data = GetAllData('./data/country.csv');
?>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<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>

    <!-- Vendor Stylesheet -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
示例#2
0
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_POST)) {
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('.././data/city.csv', 'CityID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        foreach ($data as $value) {
            DeleteDataByKey('.././data/city.csv', 'CityID', $value);
        }
    }
}
$data = GetAllData('.././data/city.csv');
?>

<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" />
  <link rel="stylesheet" type="text/css" href="../css/animate.min.css">
  <link rel="stylesheet" href="../css/font.css" />
  <link rel="stylesheet" href="../css/style.css" />
示例#3
0
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_POST)) {
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('.././data/category.csv', 'CategoryID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        foreach ($data as $value) {
            DeleteDataByKey('.././data/category.csv', 'CategoryID', $value);
        }
    }
}
$data = GetAllData('.././data/category.csv');
?>

<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" />
  <link rel="stylesheet" type="text/css" href="../css/animate.min.css">
  <link rel="stylesheet" href="../css/font.css" />
  <link rel="stylesheet" href="../css/style.css" />
示例#4
0
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_POST)) {
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('.././data/month.csv', 'MonthID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        foreach ($data as $value) {
            DeleteDataByKey('.././data/month.csv', 'MonthID', $value);
        }
    }
}
$data = GetAllData('.././data/month.csv');
?>

<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" />
  <link rel="stylesheet" type="text/css" href="../css/animate.min.css">
  <link rel="stylesheet" href="../css/font.css" />
  <link rel="stylesheet" href="../css/style.css" />
示例#5
0
<!DOCTYPE html>
<?php 
require_once './libs/csv-crud.php';
require_once './libs/header.php';
require_once './libs/breadcrumb.php';
require_once './libs/html-option.php';
$locationID = $locationName = $month = $countryID = $cityID = $errorMsg = '';
$countryData = $cityData = $_savedata = array();
$countryData = GetAllData('./data/country.csv');
$cityData = GetAllData('./data/city.csv');
if (!empty($_GET)) {
    $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');
    }
}
?>
示例#6
0
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('./data/brand.csv', 'BrandID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        //        echo '<pre>';
        //        print_r($data);
        //        echo '</pre>';
        //        die;
        foreach ($data as $value) {
            DeleteDataByKey('./data/brand.csv', 'BrandID', $value);
        }
    }
}
$data = GetAllData('./data/brand.csv');
?>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<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>

    <!-- Vendor Stylesheet -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
示例#7
0
require_once '.././libs/breadcrumb.php';
$Id = $Name = $Action = '';
$data = array();
if (!empty($_POST)) {
    if ($_POST['hidDelete'] == 'single') {
        $Id = $_POST['hidCode'];
        DeleteDataByKey('.././data/location.csv', 'LocationID', $Id);
    }
    if ($_POST['hidDelete'] == 'multi') {
        $data = $_POST['delCheck'];
        foreach ($data as $value) {
            DeleteDataByKey('.././data/location.csv', 'LocationID', $value);
        }
    }
}
$data = GetAllData('.././data/location.csv');
?>

<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" />
  <link rel="stylesheet" type="text/css" href="../css/animate.min.css">
  <link rel="stylesheet" href="../css/font.css" />
  <link rel="stylesheet" href="../css/style.css" />