本文整理汇总了PHP中notifications::constructJS方法的典型用法代码示例。如果您正苦于以下问题:PHP notifications::constructJS方法的具体用法?PHP notifications::constructJS怎么用?PHP notifications::constructJS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notifications
的用法示例。
在下文中一共展示了notifications::constructJS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} else {
$content = '<h3 style="width:500px;">';
$content .= 'Sorry, you currently have no priviledge to access this module, click below button to refresh your authentication and retry.';
$content .= '<br /><br /><span class="red">If you keep getting this error message, please report it to IT Team.</span>';
$content .= '</h3>';
$content .= '<div style="margin-top:20px;">';
$content .= '<form name="reload" action="' . $_SERVER['REQUEST_URI'] . '" method="post">';
$content .= '<input type="submit" value="Refresh Authentication and Retry" />';
$content .= '<input type="hidden" name="reload_modules" value="true" />';
$content .= '</form>';
$content .= '</div>';
}
if (!isset($title)) {
$title = 'Manobo';
}
$javascript_notifications = $obj_notifications->constructJS();
}
//SHOW RECOMMENDED BROWSER WHEN CLIENT BROWSER IS IE (only show 5 times)
if (!isset($_SESSION['msie_showerror'])) {
$_SESSION['msie_showerror'] = 0;
}
if ($clientbrowser[2] == 'MSIE' && $_SESSION['msie_showerror'] < 5) {
$_SESSION['msie_showerror']++;
$ie_msg = array();
$ie_msg[] = '<h2 class="red">You are using Microsoft Internet Explorer!</h2>';
$ie_msg[] = '<h3>For best experience with Manobo, we strongly';
$ie_msg[] = 'recommend you to use one of these Browsers:</h3>';
$ie_msg[] = '<a href="http://www.firefox.com/" title="Get Mozilla Firefox"><img src="images/browser-firefox.gif" /></a>' . ' ' . '<a href="http://www.google.com/chrome/" title="Get Google Chrome"><img src="images/browser-chrome.gif" /></a>' . ' ' . '<a href="http://www.apple.com/safari/" title="Get Apply Safari"><img src="images/browser-safari.gif" /></a>' . '';
$messagebox->add(implode('<br />', $ie_msg));
}
//JAVASCRIPT