我们可以自定义系统错误模板, 编辑 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. [python]使用python实现Hadoop MapReduce程序:计算一组数据的均值和方差

    这是参照<机器学习实战>中第15章“大数据与MapReduce”的内容,因为作者写作时hadoop版本和现在的版本相差很大,所以在Hadoop上运行python写的MapReduce程序时 ...

  2. Linux - ssh 连接问题

    SSH 连接方式 ssh -p 22 user@192.168.1.209 # 从linux ssh登录另一台linux ssh -p 22 root@192.168.1.209 CMD # 利用ss ...

  3. HDU 2093 考试排名 模拟题

    解题报告: 题目描述:写一个程序给一个编程考试C++实时提交系统排名,给你的数据是题目的总数,每次错误提交罚的时间分,每位用户的姓名,然后是输入用户每题的完成情况,有一下几种情况,第一,输入只有一个正 ...

  4. os_mudule_docs

    pydoc os Help on module os: NAME os - OS routines for Mac, NT, or Posix depending on what system we' ...

  5. jmeter --使用put方法上传文件

    今天来记录下put上传文件遇到的坑吧!折腾死我了, 刚开始的时候用的jmeter3.0,各种尝试,发现始终告诉我文件内容为空<actual file content,not shown here ...

  6. 更改jupyter notebook的主题颜色(theme) 包括pycharm

    https://blog.csdn.net/Techmonster/article/details/73382535

  7. (原创)关于viewpager嵌套listview居中显示的问题

    今天折腾了半天自定义控件的问题,如下图所示,我们UI设计了一种可以左右滑动的列表,而列表中又包含了listview.而且要居中显示listview 我一看UI,心想简单,不就是根据datas的数目进行 ...

  8. jenkins主从从服务器发布脚本执行成功但总提示失败 FATAL: Remote call on XXXX failed

    主从jenkins当调用 slave 执行编译脚本后提示如下错误,找了半天怎么也没有问题,后来忽然发现slave上java的版本和master不同,一个 1.8 一个 1.10,将slave降回1.8 ...

  9. android4.0后无法向Servlet发送请求解决办法

    从4.0开始,强制性地规定网络堵塞任务都不能放在ui线程,不然直接报错. 个办法,在oncreate下面加入 StrictMode.setThreadPolicy(new StrictMode.Thr ...

  10. 记一些使用PyQt的问题

    本文自用,日常记录,不断更新 环境 1.使用 PyCharm IDE 2.PyQt5 3. 扩展配置 PyUIC转换后的代码处理 PyUIC 用于 将 QtDesigner 生成的 .ui 文件转换为 ...