コード例 #1
0
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<form action="DeleteRecipe.php" method="post" />
<title>Schema Creator</title>
</head>
<?php 
function __autoload($class_name)
{
    include $class_name . '.php';
}
if (empty($_POST["RecipeName"]) && empty($_POST["Description"]) && empty($_POST["ImageName"]) && empty($_POST["URLName"])) {
    echo 'Please Enter Recipe Information.';
} else {
    $thing = new Recipe('', '', '');
    //As Thing, the super parent class extends Tag. Tag construtor is invoked.
    echo $thing->RemoveThing("name", $_POST["RecipeName"]);
    //echo $thing->RemoveCreativeWork();
    //echo $thing->RemoveRecipe();
    echo 'Recipe Deleted Successfully.';
}
?>
<body>
<div style="border-style: outset; width: 450px" align="left">
<h2 align="center" style="color: red">Delete Recipe</h2>
<h5 style="color: red">
<h5>
<table width="400" border="0">
<tr>
<td align="right"><strong>Name :</strong></td>
<td align="left"><input id="recipeID" type="text"
name="RecipeName" /></td>
コード例 #2
0
ファイル: DeleteRecipe.php プロジェクト: nmp36/FinalRecipe
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<form action="DeleteRecipe.php" method="post" />
<title>Schema Creator</title>
</head>
<?php

    function __autoload($class_name) {
        include $class_name . '.php';
    }

    if (empty($_POST["name"]) && empty($_POST["description"]) && empty($_POST["image"]) && empty($_POST["url"])) {
        echo 'Please Enter Recipe Information.';
    } else {
        $thing = new Recipe('', '', ''); //As Thing, the super parent class extends Tag. Tag construtor is invoked.
        echo $thing->RemoveThing("name", $_POST["name"]);
//echo $thing->RemoveCreativeWork();
//echo $thing->RemoveRecipe();
        echo 'Recipe Deleted Successfully.';
    }
    ?>
<body>
<div style="border-style: outset; width: 450px" align="left">
<h2 align="center" style="color: red">Delete Recipe</h2>
<h5 style="color: red">
<h5>
<?php
                    $recipe = new Recipe();
                    $form = new FormGenerator();
                    $form->generate($recipe);
                    ?>
コード例 #3
0
ファイル: Delete.php プロジェクト: nmp36/FinalRecipeProject
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Schema Creator</title>
</head>
<?php 
function __autoload($class_name)
{
    include $class_name . '.php';
}
echo 'Welcome';
$thing = new Recipe('', '', '');
//As Thing, the super parent class extends Tag. Tag construtor is invoked.
/* Update the existing recipe record Coffee */
echo $thing->RemoveThing(array("name" => "Tea"));
//echo $thing->UpdateCreativeWork(array("name" => "Coffee"), $newdata);
//echo $thing->UpdateRecipe(array("name" => "Coffee"), $newdata);
?>

</body>
</form>
</html>