1234567891011121314151617181920212223242526272829303132 |
- @{
- ViewBag.Title = "系统提示";
- }
- @section scripts{
- <script type="text/javascript">
- function encodeURL(s) {
- return s.replace(/&/g, "&");
- }
- $(function () {
- $.messager.alert('系统提示', decodeURI('@ViewBag.msg'), 'info', function () {
- var windowID = '@ViewBag.WindowID';
- var url = '@ViewBag.url'
- debugger
- if (url != '' && (windowID == '' || windowID == 'none')) {
- location.href = encodeURL(url);
- }
- else {
- if (windowID == '' || windowID == 'none') {
- top.$('#sysWindow').window('close');
- } else {
- top.$('#' + windowID).window('close');
- }
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + encodeURL(url);
- $.popupTopWindow('学生信息修改', redirectTo, 700, 500, null, null);
- }
- });
- $(".panel-tool-close").css("display", "none");
- })
- </script>
- }
|