本文整理汇总了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();
?>