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


PHP no_output_done函数代码示例

本文整理汇总了PHP中no_output_done函数的典型用法代码示例。如果您正苦于以下问题:PHP no_output_done函数的具体用法?PHP no_output_done怎么用?PHP no_output_done使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: rawurldecode

        if (IsAdmin() || $_SESSION["AccessLevel"] == ACCESS_LEVEL_ADMINGROUP) {
            $rb = $pageObject->lockingObj->GetLockInfo($strTableName, $keys, true, $id);
            if ($rb != "") {
                $system_message = $rb;
            }
        }
    }
}
if ($pageObject->lockingObj && $inlineedit != EDIT_INLINE) {
    $pageObject->body["begin"] .= '<div class="runner-locking" ' . $system_attrs . '>' . $system_message . '</div>';
}
if ($message) {
    $message = "<div class='message " . $mesClass . "'>" . $message . "</div>";
}
// PRG rule, to avoid POSTDATA resend
if ($IsSaved && no_output_done() && $inlineedit == EDIT_SIMPLE) {
    // saving message
    $_SESSION["message_edit"] = $message ? $message : "";
    // key get query
    $keyGetQ = "";
    $keyGetQ .= "editid1=" . rawurldecode($keys["id"]) . "&";
    // cut last &
    $keyGetQ = substr($keyGetQ, 0, strlen($keyGetQ) - 1);
    // redirect
    header("Location: app_modules_" . $pageObject->getPageType() . ".php?" . $keyGetQ);
    // turned on output buffering, so we need to stop script
    exit;
}
// for PRG rule, to avoid POSTDATA resend. Saving mess in session
if ($inlineedit == EDIT_SIMPLE && isset($_SESSION["message_edit"])) {
    $message = $_SESSION["message_edit"];
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:app_modules_edit.php

示例2: elseif

                $mesClass = "mes_ok";
            }
        } elseif ($inlineadd != ADD_INLINE) {
            $mesClass = "mes_not";
        }
    } else {
        $message = $usermessage;
        $status = "DECLINED";
        $readavalues = true;
    }
}
if ($message) {
    $message = "<div class='message " . $mesClass . "'>" . $message . "</div>";
}
// PRG rule, to avoid POSTDATA resend
if (no_output_done() && $inlineadd == ADD_SIMPLE && $IsSaved) {
    // saving message
    $_SESSION["message_add"] = $message ? $message : "";
    // redirect
    header("Location: pad_pad_customer_" . $pageObject->getPageType() . ".php");
    // turned on output buffering, so we need to stop script
    exit;
}
if ($inlineadd == ADD_MASTER && $IsSaved) {
    $_SESSION["message_add"] = $message ? $message : "";
}
// for PRG rule, to avoid POSTDATA resend. Saving mess in session
if ($inlineadd == ADD_SIMPLE && isset($_SESSION["message_add"])) {
    $message = $_SESSION["message_add"];
    unset($_SESSION["message_add"]);
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:pad_pad_customer_add.php

示例3: prgRedirect

 /**
  *	POST-REDIRECT-GET 
  *	Redirect after saving the data to avoid saving again on refresh.
  */
 protected function prgRedirect()
 {
     if (!$this->insertedSuccessfully || $this->mode != ADD_SIMPLE || !no_output_done()) {
         return false;
     }
     // saving message
     $_SESSION["message_add"] = $this->message ? $this->message : "";
     // redirect
     HeaderRedirect($this->pSet->getShortTableName(), $this->pageType);
     // turned on output buffering, so we need to stop script
     return true;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:16,代码来源:addpage.php

示例4: rulePRG

 /**
  * PRG rule, to avoid POSTDATA resend
  *
  */
 function rulePRG()
 {
     if (no_output_done() && count($this->selectedRecs) && !strlen($this->deleteMessage)) {
         // redirect, add a=return param for saving SESSION
         header("Location: " . $this->shortTableName . "_" . $this->getPageType() . ".php?a=return");
         // turned on output buffering, so we need to stop script
         exit;
     }
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:13,代码来源:listpage.php

示例5: rulePRG

 /**
  * PRG rule, to avoid POSTDATA resend
  * call after save
  *
  */
 function rulePRG()
 {
     if (no_output_done() && postvalue("a") == "save") {
         $getParams = '';
         if (postvalue('group')) {
             $getParams = '?group=' . postvalue('group');
         }
         // redirect, add a=return param for saving SESSION
         header("Location: " . $this->shortTableName . "_" . $this->getPageType() . ".php" . $getParams);
         // turned on output buffering, so we need to stop script
         exit;
     }
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:18,代码来源:rightspage.php

示例6: rulePRG

 /**
  * PRG rule, to avoid POSTDATA resend
  * call after save
  */
 function rulePRG()
 {
     if (no_output_done() && postvalue("a") == "save") {
         // redirect, add a=return param for saving SESSION
         HeaderRedirect($this->shortTableName, $this->getPageType(), "a=return");
         // turned on output buffering, so we need to stop script
         exit;
     }
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:13,代码来源:memberspage.php

示例7: prgRedirect

 /**
  *	POST-REDIRECT-GET 
  *	Redirect after saving the data to avoid saving again on refresh.
  */
 protected function prgRedirect()
 {
     if (!$this->updatedSuccessfully || $this->mode != EDIT_SIMPLE || !no_output_done()) {
         return false;
     }
     $_SESSION["message_edit"] = $this->message . "";
     $keyParams = array();
     foreach ($this->keyFields as $i => $k) {
         $keyParams[] = "editid" . ($i + 1) . "=" . rawurldecode($this->keys[$k]);
     }
     HeaderRedirect($this->pSet->getShortTableName(), $this->getPageType(), implode("&", $keyParams));
     exit;
     return true;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:18,代码来源:editpage.php


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