当前位置: 首页>>代码示例>>PHP>>正文


PHP Feedback::delete方法代码示例

本文整理汇总了PHP中Feedback::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Feedback::delete方法的具体用法?PHP Feedback::delete怎么用?PHP Feedback::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Feedback的用法示例。


在下文中一共展示了Feedback::delete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Feedback

<?php

$feedback = new Feedback();
if (Input::get('del') && $_SESSION['role'] == 'Staff') {
    $del = Input::get('del');
    unset($_POST['del']);
    if ($feedback->find($del)) {
        $feedback->delete($del);
        //force refresh
        header('Location: /TCS/' . Input::get('page'));
        exit;
    }
}
if ($_SESSION['role'] == 'Staff') {
    ?>

	<div class="row title-top-pad footer-padding">
	
	<?php 
    if (Input::get('view')) {
        $feedback->find(Input::get('view'));
        ?>

	<h4>View Feedback</h4>

	<h5>Type: <?php 
        echo $feedback->data()->category;
        ?>
</h5>
	<h5>Message:</h5>
	<h6><?php 
开发者ID:NoOneLiv3,项目名称:TCS-Webstore,代码行数:31,代码来源:feedback.php

示例2: sqlInjection

<?php

require "../includes/checkPermission.php";
require "../../deny/connector.php";
require "class/class.Feedback.php";
require "../includes/injection.php";
$fbid = sqlInjection($_GET['feedbackID']);
$fb = new Feedback();
$fb->delete($fbid);
echo "<meta http-equiv='refresh' content='0;url=../admincp.php?opt=listfeedback'>";
//header("location: ../admincp.php?opt=listnews");
//exit();
开发者ID:meghv999,项目名称:cdshop-php,代码行数:12,代码来源:deleteFeedback.php

示例3: Feedback

<?php

require 'includes/master.inc.php';
$Auth->requireAdmin('login.php');
$f = new Feedback($_GET['id']);
if (!$f->ok()) {
    redirect('feedback.php');
}
if (isset($_POST['btnNew'])) {
    $f->new = 1;
    $f->update();
    redirect('feedback.php');
} elseif (isset($_POST['btnDelete'])) {
    $f->delete();
    redirect('feedback.php');
} else {
    $f->new = 0;
    $f->update();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>Shine</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
    <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
    <link rel="stylesheet" href="css/yuiapp.css" type="text/css">
	<style type="text/css" media="screen">
		th { text-align:right; font-weight:bold; }
	</style>
开发者ID:ralphmanns,项目名称:Shine,代码行数:31,代码来源:feedback-view.php

示例4: Auth

<?php

/**
 * Created by PhpStorm.
 * User: Ristee
 * Date: 30.10.2015
 * Time: 23:16
 */
require __DIR__ . '/functions/Feedback.php';
require __DIR__ . '/functions/Auth.php';
$auth = new Auth();
if ($auth->isAuth()) {
    if (isset($_GET['id'])) {
        $id = (int) $_GET['id'];
        $feed = new Feedback();
        $feed->delete($id);
    }
}
header('Location: ./resp.php');
开发者ID:Ristee,项目名称:resp,代码行数:19,代码来源:del.php


注:本文中的Feedback::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。