當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Messages::read方法代碼示例

本文整理匯總了PHP中Messages::read方法的典型用法代碼示例。如果您正苦於以下問題:PHP Messages::read方法的具體用法?PHP Messages::read怎麽用?PHP Messages::read使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Messages的用法示例。


在下文中一共展示了Messages::read方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: trim

if (isset($_GET['do'])) {
    $do = trim($_GET['do']);
    if (!empty($_GET['id'])) {
        $id = intval($_GET['id']);
    }
    if ($do == "send") {
        $item = array();
        if (isset($_GET['to'])) {
            $item['to'] = $_GET['to'];
        }
        setvar("item", $item);
        template("pms_send");
        exit;
    }
    if ($do == "view" && !empty($id)) {
        $message_info = $pms->read("*", $id, null, $conditions);
        if (!$message_info || empty($message_info)) {
            flash();
        } else {
            $pdb->Execute("UPDATE {$tb_prefix}messages SET status=1 WHERE to_member_id=" . $_SESSION['MemberID'] . " AND id=" . $id);
            $message_info['pubdate'] = date("Y-m-d", $message_info['created']);
            setvar("item", $message_info);
            $tpl_file = "pms_detail";
            template($tpl_file);
            exit;
        }
    }
}
if (isset($_POST['send']) && !empty($_POST['pms'])) {
    pb_submit_check('pms');
    $vals = array();
開發者ID:vuong93st,項目名稱:w-game,代碼行數:31,代碼來源:pms.php

示例2: rtrim

	</nav>

	<article>
		<h1>Site metadata</h1>

		<p>In order to personalise your Anchor blog, it's recommended you add some metadata about your site. This can all be changed at any time, though.</p>
	</article>

	<form method="post" action="<?php 
echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
?>
/index.php?action=stage3" autocomplete="off">
		<fieldset>

			<?php 
echo Messages::read();
?>

			<p>
				<label>
					<strong>Site Name</strong>
					<span>Used in the <code>&lt;title&gt;</code>.</span>
				</label>

				<input name="site_name" value="<?php 
echo post('site_name', 'My First Anchor Blog');
?>
">
			</p>

			<p>
開發者ID:nathggns,項目名稱:anchor-cms,代碼行數:31,代碼來源:stage3.php


注:本文中的Messages::read方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。