示例#1
0
								"positionClass": "toast-top-full-width",
								"onclick": null,
								"showDuration": "300",
								"hideDuration": "1000",
								"timeOut": "5000",
								"extendedTimeOut": "1000",
								"showEasing": "swing",
								"hideEasing": "linear",
								"showMethod": "fadeIn",
								"hideMethod": "fadeOut"
							};
							toastr.error("Устраните проблему и повторите", "Error {2}", opts);
							}, 300);
						</script> 
					    ' . implode('<br />', $errors));
            $lS2 = free_ips();
            foreach ($seldataArray as $key => $value) {
                if ($_POST[$key]) {
                    $dataarray[$key] = $_POST[$key];
                } else {
                    $dataarray[$key] = $value;
                }
            }
            $content .= cut($dataarray);
            $Ilog = array('login' => ADMINLOGIN, 'type' => 'error', 'action' => 'edit', 'message' => "Ошибка изменения данных пользователя id" . $dataarray['id'] . " ( " . implode("; ", $errors) . " )");
            $dataMySQL->Insert($Ilog, DB_PREFIX . "logs");
        }
    } else {
        $tpl->assign("alert", "error");
        $tpl->assign("alertcont", '
					    <script>
示例#2
0
        } else {
            $tpl->assign("alert", "error");
            $tpl->assign("alertcont", '<script>
						setTimeout(function()
						{
						    var opts = {
							"closeButton": true,
							"debug": false,
							"positionClass": "toast-top-full-width",
							"onclick": null,
							"showDuration": "300",
							"hideDuration": "1000",
							"timeOut": "5000",
							"extendedTimeOut": "1000",
							"showEasing": "swing",
							"hideEasing": "linear",
							"showMethod": "fadeIn",
							"hideMethod": "fadeOut"
						};
						
						toastr.error("Ошибка добавления пользователя", "Error", opts);
						}, 300);
						</script>' . implode('<br />', $errors));
            $lS2 = free_ips($_POST['room']);
            $content .= cut($IArray, $lS2);
            $Ilog = array('login' => ADMINLOGIN, 'type' => 'error', 'action' => 'add', 'message' => "Ошибка добавления данных пользователя с данными " . implode(', ', $logdata) . "( " . implode("; ", $errors) . " )");
            $dataMySQL->Insert($Ilog, DB_PREFIX . "logs");
        }
    }
}
$content .= '</article></div>';