我们可以自定义系统错误模板, 编辑 IWError.html 放到模板文件夹后, 它将替换默认的模板.


{在主页面, 这是要模拟一个系统错误}
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
Release;
end;

修改前后的 IWError.html 对比:




我想办法抠出了 IWError.html 源文件, 从里面可以了解到更多关于模板的问题:


body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre {
border: 0 none;
margin: 0;
padding: 0;
vertical-align: baseline;
}
.iw-body {
background-color: {%BODYBACKCOLOR%};
color: {%BODYTEXTCOLOR%};
font-family: Verdana, Geneva, sans-serif;
}
.iw-header-green{
padding-top: 20px;
padding-left: 20px;
padding-bottom: 10px;
font-size: x-large;
color: {%HEADERTEXTCOLOR%};
background-color: {%FROMCOLOR%};
background-image: -webkit-gradient(linear, left top, left bottom, from({%FROMCOLOR%}), to({%TOCOLOR%}));
background-image: -webkit-linear-gradient(top, {%FROMCOLOR%}, {%TOCOLOR%});
background-image: -moz-linear-gradient(top, {%FROMCOLOR%}, {%TOCOLOR%});
background-image: -ms-linear-gradient(top, {%FROMCOLOR%}, {%TOCOLOR%});
background-image: -o-linear-gradient(top, {%FROMCOLOR%}, {%TOCOLOR%});
background-image: linear-gradient(to bottom, {%FROMCOLOR%}, {%TOCOLOR%});filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr={%FROMCOLOR%}, endColorstr={%TOCOLOR%});}
.iw-header-subtitle {
font-size: large;
padding-left: 20px;
}
.iw-headerline {
background-color: {%FROMCOLOR%};
height: 5px;
}
.iw-content {
padding: 10px;
font-size: small;
}
.iw-restart {
padding: 10px;
font-size: small;
}
.iw-stacktrace {
padding: 10px;
font-size: 12px;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif
}

{%APPNAME%}

Application Error

An unhandled application error has occured within {%APPNAME%}
Error message: {%CONTENT%}


{%EXCEPTIONSPECIFIC%}



In order to restart the application, please click the link below:

Click here to restart {%APPNAME%}

Please note that depending on the actual exception that occured, restarting the application might not be possible. If this is
the case, please report the error message to the administrator.



{%ERRORDETAILS_TITLE%}

{%ERRORDETAILS_CONTENT%}

IWShowMessage.html(默认信息模板) 和 IWException.html(默认异常模板) 的内嵌标签有: {%textMessage%}、{%butnOk%}

IWError.html(默认错误模板) 的内嵌标签有: {%CONTENT%}, {%AppName%}, {%AppID%}, {%ATOZEDLOGO%}, {%IntraWebLOGO%}, {%APPADDRESS%}, {%EXCEPTIONSPECIFIC%}

关于模板的最新参考: http://www.atozed.com/intraweb/docs/Layout/HTMLTemplates.aspx


使用 IntraWeb (8) - 系统模板的更多相关文章

  1. 30余套系统模版|DIV+CSS网页模板|简洁大气系统模板

    30余套系统模版|DIV+CSS网页模板|简洁大气系统模板.都是一些后台系统的模版,很适合开发一些管理系统,办公系统,网站后台系统等.使用很广泛,很实用的系统模版. 下载地址: 点击下载

  2. 2017年最新基于Bootstrap 4 的专业、多用途响应式布局的系统模板

    本文分享一款2017年最新的2017年最新基于Bootstrap 4 的专业.多用途响应式布局的系统模板,该模板是一款强大并且非常灵活的后台管理系统模板:能适应绝大多数的web应用程序开发,比如:AP ...

  3. python全栈开发_day17_时间,系统模板和序列化

    一:时间模板 1)time 常用功能: time.sleep() time.time() time.strftime() import time print(time.strftime("% ...

  4. 使用 IntraWeb (7) - 主模板

    TIWLayoutMgrHTML.TIWTemplateProcessorHTML 属于页面级的模板, 如果要全站统一模板, 当然要用主模板. TIWTemplateProcessorHTML 通过其 ...

  5. Flask路由系统与模板系统

    路由系统 @app.route('/user/<username>') @app.route('/post/<int:post_id>') @app.route('/post/ ...

  6. 记从安装centos系统在到使用mono3.2部署MVC过程遇到的问题

    一.安装虚拟机并安装配置系统 我不太愿意去下载vmware就用系统里面自带的Hyper-V 系统我选择了最新版本的CentOs6.4 下载地址:http://mirrors.163.com/cento ...

  7. Xcode7建立自己的自定义工程和类模板

    首先进入系统模板的目录 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library ...

  8. EA中的模板管理

    EA在导出文档的时候可以选择各种模板. 使用系统提供的模板导出的文档会稍显繁杂.这时候就需要我们自定义模板. 1. 在导出文档的dialog, 在Template一项中选择 New Template. ...

  9. 如何增加Asp.Net Core生成的模板网站中用户信息表中的列(AspNetUsers)

    环境: 1.VS2015 Community 14.0.25431.01 Update 3; 2.其他环境(具体哪一个影响不太清楚,都列在这儿) 使用的系统模板 利用系统提供的模板,并选择个人身份验证 ...

随机推荐

  1. nginx php上传大文件的设置(php-fpm)

    对于lnmp架构的大文件上传的问题,有几个地方需要修改,另外还有几个参数如果更改过需要注意,下面是详细的需要注意的地方: nginx的修改              send_timeout    6 ...

  2. java CountDownLatch的使用

    CountDownLatch能够使一个线程在等待另外一些线程完成各自工作之后,再继续执行.使用一个计数器进行实现.计数器初始值为线程的数量.当每一个线程完成自己任务后,计数器的值就会减一.当计数器的值 ...

  3. CodeForces 1059C

    Description Let's call the following process a transformation of a sequence of length nn . If the se ...

  4. Linux笔记之如何分割文件或管道流:split

    一.简介 在Linux中合并文件可以使用cat命令,后面跟上要合并的文件然后重定向到一个新的文件中即可,甚至可以追加合并.但如果要将一个大文件分割为多个小文件应该如何操作呢? 在Linux的coreu ...

  5. 转载 为什么print在Python 3中变成了函数?

    转载自编程派http://codingpy.com/article/why-print-became-a-function-in-python-3/ 原作者:Brett Cannon 原文链接:htt ...

  6. 恶意代码分析实战-确认EXE什么时候编译的

    场景 确认开源的后门在中毒机器上是什么版本,具有什么功能. 思路 1.查看样本PE里的编译时间 2.对照开源后门里组件的编译时间 技术点 查看NT头-TimeDateStamp struct IMAG ...

  7. 利用backtrace和ucontex定位segment错误【转】

    转自:https://blog.csdn.net/gqtcgq/article/details/53883546 C程序运行时,经常会碰到”segmentfault”错误.这是由于程序中非法访问内存导 ...

  8. tar.gz tar.bz2的解压命令

    .tar.gz     格式解压为          tar   -zxvf   xx.tar.gz .tar.bz2   格式解压为          tar   -jxvf    xx.tar.b ...

  9. windows安装 Microsoft Visual c++

    第一种方法: 第二种方法: 参考链接 直接给一个2015版本的下载地址 https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/un ...

  10. shell加密

    如何保护自己编写的shell程序要保护自己编写的shell脚本程序,方法有很多,最简单的方法有两种:1.加密 2.设定过期时间,下面以shc工具为例说明: 一.下载安装shc工具shc是一个加密she ...