本文整理汇总了PHP中Recipe::RemoveRecipework方法的典型用法代码示例。如果您正苦于以下问题:PHP Recipe::RemoveRecipework方法的具体用法?PHP Recipe::RemoveRecipework怎么用?PHP Recipe::RemoveRecipework使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Recipe
的用法示例。
在下文中一共展示了Recipe::RemoveRecipework方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td align="right"><strong>Image :</strong></td>
<td align="left"><input id="imgid" type="text" name="image" value="<?php echo $thing->getImageValue(); ?>" /></td>
</tr>
<tr align="center">
<td align="right"><strong>URL:</strong></td>
<td align="left"><input id="URLID" type="text" name="url" value="<?php echo $thing->getUrlValue(); ?>" /></td>
</tr>
<tr align="center">
<td align="right"><strong>About:</strong></td>
<td align="left"><input id="AboutID" type="text" name="about" value="<?php echo $thing->getaboutValue(); ?>" /></td>
</tr>
<tr align="center">
<td align="right"><strong>Author:</strong></td>
<td align="left"><input id="AuthorID" type="text" name="author" value="<?php echo $thing->getauthorValue(); ?>"/></td>
</tr>
<tr align="center">
<td align="right"><strong>Ingredients:</strong></td>
<td align="left"><input id="ingrenID" type="text" name="ingredients" value="<?php echo $thing->getingredientsValue(); ?>"/></td>
</tr>
<tr align="center">
<td align="right"><strong>Instructions:</strong></td>
<td align="left"><input id="instructID" type="text" name="instructions" value="<?php echo $thing->getinstructionsValue(); ?>" /></td>
</tr>
<tr align="left" >
<td colspan="2" align="center"><input type="submit" name="Check" title="Check" onclick="<?php $thing->RemoveRecipework($_GET["value"]);?>" value="Delete"/><h4><a href='index.php'>Home</a></h4></td>
</tr>
</table>
</div>
</body>
</form>
</html>
示例2: MongoId
$array = $dal->findone(array('_id' => new MongoId($_GET['id'])));
echo "<script>
$(document).ready(function(){
document.getElementById('name').value = '{$array['name']}';
document.getElementById('description').value = '{$array['description']}';
document.getElementById('image').value = '{$array['image']}';
document.getElementById('about').value = '{$array['about']}';
document.getElementById('author').value = '{$array['author']}';
document.getElementById('url').value = '{$array['url']}';
document.getElementById('ingredients').value = '{$array['ingredients']}';
document.getElementById('instructions').value = '{$array['instructions']}';
});
</script>";
}
if (empty($_POST["name"]) && empty($_POST["description"]) && empty($_POST["image"]) && empty($_POST["name"])) {
echo 'Please Enter Recipe Information.';
} else {
$thing = new Recipe();
echo $thing->RemoveRecipework($_GET['id']);
echo 'Recipe Deleted Successfully.';
}
?>
<input type="hidden" id="recordId" name="recordId" value="<?php echo $_GET['id'] ?>"/>
</form>
</body>
</html>