本文整理汇总了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();
示例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><title></code>.</span>
</label>
<input name="site_name" value="<?php
echo post('site_name', 'My First Anchor Blog');
?>
">
</p>
<p>