本文整理汇总了PHP中Assets_Page::message方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets_Page::message方法的具体用法?PHP Assets_Page::message怎么用?PHP Assets_Page::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets_Page
的用法示例。
在下文中一共展示了Assets_Page::message方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page_access_level
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
// phpLiteAdmin is secured through the standard Bibledit-Web login mechanism.
page_access_level(Filter_Roles::ADMIN_LEVEL);
// Do not show phpLiteAdmin in an open installation,
// so nobody can effect the databases and their tables
include "config/open.php";
if ($open_installation) {
Assets_Page::header("phpLiteAdmin");
Assets_Page::message(Locale_Translate::_("This open demo does not display the database editor for security reasons."));
Assets_Page::footer();
die;
}
?>
<?php
//
// Project: phpLiteAdmin (http://phpliteadmin.googlecode.com)
// Version: 1.9.5
// Summary: PHP-based admin tool to manage SQLite2 and SQLite3 databases on the web
// Last updated: 2014-01-14
// Developers:
// Dane Iracleous (daneiracleous@gmail.com)
// Ian Aldrighetti (ian.aldrighetti@gmail.com)
示例2: array
$verse_texts = array();
$contents = array();
foreach ($identifiers as $identifier) {
$summary = $database_notes->getSummary($identifier);
$passages = $database_notes->getPassages($identifier);
$verses = Filter_Books::passagesDisplayInline($passages);
$summaries[] = $summary . " | " . $verses;
$verse_text = "";
if ($passage_inclusion_selector) {
$passages = $database_notes->getPassages($identifier);
foreach ($passages as $passage) {
$usfm = $database_bibles->getChapter($bible, $passage[0], $passage[1]);
$text = Filter_Usfm::getVerseText($usfm, $passage[2]);
$verse_text .= $text;
$verse_text .= "\n";
}
}
$verse_texts[] = nl2br($verse_text);
$content = "";
if ($text_inclusion_selector) {
$content = $database_notes->getContents($identifier);
}
$contents[] = $content;
}
$view->view->summaries = $summaries;
$view->view->versetexts = $verse_texts;
$view->view->contents = $contents;
$view->render("notes.php");
if ($count == 0) {
Assets_Page::message(Locale_Translate::_("This view does not display any notes."));
}