本文整理汇总了PHP中Message::getMessageFromContext方法的典型用法代码示例。如果您正苦于以下问题:PHP Message::getMessageFromContext方法的具体用法?PHP Message::getMessageFromContext怎么用?PHP Message::getMessageFromContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Message
的用法示例。
在下文中一共展示了Message::getMessageFromContext方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateDashboardMsgContent
function generateDashboardMsgContent()
{
$do_msg = new Message();
$do_msg->setData(array("user_firstname" => $_SESSION["do_User"]->firstname));
//$message = $do_msg->getMessage("db_msgblock1");
$message = $do_msg->getMessageFromContext("db_side-info");
if ($message) {
return $message;
} else {
$this->setIsActive(false);
}
}
示例2: DynamicButton
$button_add_invoice = new DynamicButton();
if ($do_inv_limit->canUserAddInvoice()) {
echo '<div class="right_20_top_0">', $button_add_invoice->CreateButton('/invoice_add.php', _('create new invoice'), '', '', 'dyn_button_add_new_invoice', 'width:150px;'), '</div>';
} else {
echo '<div class="right_20_top_0">', $button_add_invoice->CreateButton('/upgrade_your_account.php?msg=' . $_SESSION['do_User']->plan . '_i', _('create new invoice'), '', '', 'dyn_button_add_new_invoice', 'width:150px;'), '</div>';
}
?>
</div>
<div id="inv_msgs">
<?php
if ($_SESSION['inv_past_due_hide'] == 'Yes') {
$do_invoice_check = new Invoice();
$msg = new Message();
if ($do_invoice_check->hasInvoices()) {
if ($msg->getMessageFromContext("invoice list")) {
echo $msg->displayMessage();
}
} else {
$msg->getMessage("invoice first time");
echo $msg->displayMessage();
}
$do_invoice_check->free();
}
?>
</div>
<div id="show_past_due"></div>
<?php
if ($_SESSION['inv_past_due_hide'] != 'Yes' && $_SESSION['do_invoice_list']->from_invoice_page === true) {
//echo '<br /><br />';
echo $_SESSION['do_invoice_list']->getInvoicesPastDue();
示例3: _
<!-- hide for now as its counter intuitive when we do not have listing of companies
<br /><br />
<a href="company_add.php"><?php
echo _('Add a new company');
?>
</a> //-->
</div><br /><br />
<?php
$GLOBALS['page_name'] = 'contacts';
include_once 'plugin_block.php';
?>
</td><td class="layout_rcolumn">
<?php
$msg = new Message();
if ($msg->getMessageFromContext("contact list")) {
echo $msg->displayMessage();
}
?>
<?php
if ($_SESSION['do_Contacts']->getContactCount() == 0) {
?>
<div class="messageshadow">
<div class="messages">
<?php
$msg = new Message();
echo $msg->getMessage('no contacts yet');
?>
</div>
</div>
<br /><br />
示例4: _
?>
</div>
<div class="banner50 pad020 text16 fuscia_text">
<?php
//echo _('Auto Responder Email Templates -').$_SESSION['do_auto_responder_email']->name;
echo _('Auto Responder ') . '<a href="/settings_auto_responder_email.php?id=' . $_SESSION['do_auto_responder_detail']->idautoresponder . '">' . $_SESSION['do_auto_responder_detail']->name . '</a>' . _(' - email template edit ') . $_SESSION['do_auto_responder_email']->subject;
?>
</div>
<div class="text14 pad020">
<?php
//echo '>> <a href="/settings_auto_responder.php">'._(' Auto Responder').'</a>'.' >> <a href="/settings_auto_responder_email.php?id='.$idautoresponder.'">'.$do_auto_responder->name.'</a>';
?>
</div>
<?php
$msg = new Message();
if ($msg->getMessageFromContext("edit autoresponder email template")) {
echo $msg->displayMessage();
}
?>
<div class="spacerblock_16"></div>
<!--<br /><br />-->
<div class="contentfull">
<!--<div class="messageshadow">
<div class="messages">
<?php
$msg = new Message();
//echo $msg->getMessage('web form creator instruction');
?>
</div>
</div><br />-->
<div id="ptask_ctlbar_1" style = "display:block;">
示例5: _
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<table class="layout_columns">
<tr>
<td class="layout_lcolumn">
<?php
include_once 'plugin_block.php';
?>
</td>
<td class="layout_rcolumn">
<?php
$msg = new Message();
if ($msg->getMessageFromContext("project list")) {
echo $msg->displayMessage();
}
?>
<div class="mainheader pad20">
<span class="page_title"><?php
echo _('Projects');
?>
</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['projects'])) {
echo $GLOBALS['cfg_submenu_placement']['projects']->getMenu();
}
?>
</div>
示例6: _
?>
</div>
<div class="banner50 pad020 text16 fuscia_text">
<?php
echo _('Auto Responder - ') . $_SESSION['do_auto_responder']->name;
?>
</div>
<div class="text14 pad020">
<?php
//echo '>> <a href="/settings_auto_responder.php">'._('Auto Responder').'</a>';
?>
</div>
<?php
$msg = new Message();
if ($msg->getMessageFromContext("add edit autoresponder")) {
echo $msg->displayMessage();
}
?>
<div class="spacerblock_16"></div>
<!--<br /><br />-->
<div class="contentfull">
<!--<div class="messageshadow">
<div class="messages">
<?php
$msg = new Message();
//echo $msg->getMessage('web form creator instruction');
?>
</div>
</div><br />-->
<div id="ptask_ctlbar_1" style = "display:block;">
示例7: _
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<table class="layout_columns">
<tr>
<td class="layout_lcolumn">
<?php
include_once 'plugin_block.php';
?>
</td>
<td class="layout_rcolumn"><div class="min660">
<?php
$msg = new Message();
$msg->getMessageFromContext("daily notes");
echo $msg->displayMessage();
?>
<div class="mainheader">
<div class="pad20">
<span class="headline14"><?php
echo _('Daily Notes & Discussion');
?>
</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['daily_notes'])) {
echo $GLOBALS['cfg_submenu_placement']['daily_notes']->getMenu();
}
?>
</div>
</div>
示例8: _
$do_breadcrumb->getBreadcrumbs();
?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<table class="layout_columns">
<tr>
<td class="layout_lcolumn">
<?php
include_once 'plugin_block.php';
?>
</td>
<td class="layout_rcolumn">
<div class="min660">
<?php
$msg = new Message();
$msg->getMessageFromContext("timesheet");
echo $msg->displayMessage();
?>
<div class="mainheader">
<div class="pad20">
<span class="headline14"><?php
echo _('Timesheet');
?>
</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['timesheet'])) {
echo $GLOBALS['cfg_submenu_placement']['timesheet']->getMenu();
}
?>
</div>
</div>
示例9: _
<div class="banner60 pad020 text32"><?php
echo _('Settings');
?>
</div>
<div class="banner50 pad020 text16 fuscia_text">
<?php
echo _('Auto Responder');
echo ' ';
echo '<a href = "#" onclick ="addAutoResponder();return false;">' . _('Create New') . '</a>';
?>
</div>
<?php
$msg = new Message();
//echo $msg->getMessageFromContext('autoresponder instruction');
if ($msg->getMessageFromContext("autoresponder instruction")) {
echo $msg->displayMessage();
}
?>
<div id="ptask_ctlbar_1" style = "display:none;">
<?php
$_SESSION['do_auto_responder']->newAddForm();
$_SESSION['do_auto_responder']->form->addEventAction('do_auto_responder->eventCheckEmptyFields', 700);
$_SESSION['do_auto_responder']->setRegistry('autoresponder_add');
$_SESSION['do_auto_responder']->form->goto = $_PHP['SELF'];
echo $_SESSION['do_auto_responder']->form->getFormHeader();
echo $_SESSION['do_auto_responder']->form->getFormEvent();
$_SESSION['do_auto_responder']->iduser = $_SESSION['do_User']->iduser;
echo $_SESSION['do_auto_responder']->iduser;
echo '<b>' . _('Auto Responder Name') . ':</b>' . $_SESSION['do_auto_responder']->name;
示例10: Message
echo '<div class="messages_unauthorized">';
echo 'unauthorized';
echo '</div></div><br /><br />';
exit;
}
?>
<table class="layout_columns"><tr>
<td class="layout_rcolumn">
<?php
$msg = new Message();
if ($msg->getMessageFromContext("project tasks")) {
//echo $msg->displayMessage();
}
?>
<div class="mainheader">
<div class="project_detail_name">
<span class="headline14"><?php
echo $project_details['name'];
?>
</span>
<span class="project_edit">
</span>
</div>
</div>
示例11: Breadcrumb
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<table class="layout_columns">
<tr>
<td class="layout_lcolumn">
<?php
include_once 'plugin_block.php';
?>
</td>
<td class="layout_rcolumn">
<?php
$msg = new Message();
if ($msg->getMessageFromContext("tasks")) {
echo $msg->displayMessage();
}
?>
<!--<div class="tasktop">-->
<div class="mainheader pad20">
<span class="page_title">Your tasks</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['tasks'])) {
echo $GLOBALS['cfg_submenu_placement']['tasks']->getMenu();
}
?>
</div>
示例12: _
echo _('Send An Invoice');
?>
</a>
</div>
<div class="spacerblock_40"></div>
</td>
<td class="layout_rcolumn"><div class="min660">
<?php
$msg = new Message();
$do_contact = $_SESSION['do_User']->getChildContact();
if ($do_contact->getNumRows() == 0) {
$msg->getMessage("welcome");
$msg->displayMessage();
} else {
$msg->getMessageFromContext("dashboard");
$msg->displayMessage();
}
?>
<div class="mainheader pad20">
<span class="page_title"><?php
$do_workfeed = new WorkFeed();
printf(_("%s 's Work Feed:"), $_SESSION['do_User']->firstname) . "\n";
?>
</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['index'])) {
echo $GLOBALS['cfg_submenu_placement']['index']->getMenu();
}
?>
示例13: Message
if (is_array($data)) {
if ($data["setting_value"] == 'Yes') {
$global_discussion_email_on = 'Yes';
} else {
$global_discussion_email_on = 'No';
}
}
}
$_SESSION['UserSettings']->global_task_discussion_alert = $global_discussion_email_on;
// Task level email alert is not required in this version
?>
</td><td class="layout_rcolumn">
<?php
$msg = new Message();
if ($msg->getMessageFromContext("task discussion")) {
echo $msg->displayMessage();
}
?>
<div class="mainheader pad20">
<span class="page_title"><?php
echo $_SESSION['do_project_task']->task_category . ": " . $_SESSION['do_project_task']->task_description;
?>
</span>
<?php
if (is_object($GLOBALS['cfg_submenu_placement']['task'])) {
echo $GLOBALS['cfg_submenu_placement']['task']->getMenu();
}
?>
</div>