本文整理匯總了PHP中msg::showMessages方法的典型用法代碼示例。如果您正苦於以下問題:PHP msg::showMessages方法的具體用法?PHP msg::showMessages怎麽用?PHP msg::showMessages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類msg
的用法示例。
在下文中一共展示了msg::showMessages方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: globalconfig
$set_theme = $my_app->get_param('set_theme');
if (!empty($set_theme)) {
globalconfig('theme', $my_app->get_param('theme_id'));
$my_app->set_param('set_theme', null);
cache_param('set_theme');
helper_result('config_update', 'ok', txt('updated'));
helper_result('config_update_result', 'result', 'success');
}
$theme_id = $my_app->get_param('theme_id');
if (empty($theme_id)) {
$my_app->set_param('theme_id', globalconfig('theme'));
}
cache_param('theme_id');
$my_app->set_param('selected_theme_id', globalconfig('theme'));
cache_param('selected_theme_id');
$my_app->jquery_onready(msg::showMessages());
$action = $my_app->get_param('action');
switch ($action) {
case 'delete':
$delete_id = $my_app->get_param('delete_id');
if ($ftp->delete_ftp($delete_id)) {
helper_result('delete_ftp', 'ok', txt('deleted'));
$my_app->set_param('action', null);
cache_param('action');
}
break;
}
if (form_submit('config_site')) {
if ($_POST['action'] == 'config_site') {
globalconfig('site_title', strip_tags($_POST['site_title']));
globalconfig('site_desc', strip_tags($_POST['site_desc']));
示例2: helper_reload
<?php
echo $dropzone2;
?>
// ============================= document.ready =============================
$(document).ready(function() {
<?php
echo $javascript;
?>
// Messages show
<?php
echo msg::showMessages();
?>
// == Upload form submit
$('#upload').form({
onSubmit: function(){
},
success:function(data){
//$.messager.alert('Upload pliku', 'Plik został wgrany na serwer', 'info');
<?php
echo helper_reload();
?>