| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Triggers</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
{%header:Triggers%} |
| 7 |
<br><br> |
| 8 |
<font size=+2>Triggers on table {%object_name%}</font> |
| 9 |
<p><font size=+1>Before triggers</font></p> |
| 10 |
<br> |
| 11 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 12 |
<tbody> |
| 13 |
<tr bgcolor="navy"> |
| 14 |
<td></td> |
| 15 |
<td nowrap><font color=white><b>Name</b></font></td> |
| 16 |
<td bgcolor="navy"><font color="white"><b>Active</b></font></td> |
| 17 |
<td bgcolor="navy"><font color="white"><b>Position</b></font></td> |
| 18 |
<td bgcolor="navy"><font color="white"><b>Type</b></font></td> |
| 19 |
</tr> |
| 20 |
{%foreach:trigger::before: |
| 21 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 22 |
<td valign="top" nowrap> |
| 23 |
<a href="fr://drop_object?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 24 |
<a href="fr://edit_trigger?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}view.png" height="16" width="16"></a> |
| 25 |
</td> |
| 26 |
<td nowrap valign="top"><a |
| 27 |
href="fr://properties?object_type=TRIGGER&object_name={%object_name%}&parent_window={%parent_window%}">{%object_name%}</a></td> |
| 28 |
<td nowrap valign="top" bgcolor="#DDDDFF" align="center"> |
| 29 |
<a href="fr://{%ifeq:{%triggerinfo:is_active%}:true:deactivate_trigger:activate_trigger%}?parent_window={%parent_window%}&object_handle={%object_handle%}"> |
| 30 |
<img src="{%template_root%}{%ifeq:{%triggerinfo:is_active%}:true:ok.png:redx.png%}" height="16" width="16"></a> |
| 31 |
</td> |
| 32 |
<td nowrap valign="top" bgcolor="#DDDDFF" align="right">{%triggerinfo:position%}</td> |
| 33 |
<td nowrap valign="top" bgcolor="#DDDDFF">{%triggerinfo:type%}</td> |
| 34 |
</tr>%} |
| 35 |
</tbody> |
| 36 |
</table> |
| 37 |
<p><font size=+1>After triggers</font></p> |
| 38 |
<br> |
| 39 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 40 |
<tbody> |
| 41 |
<tr bgcolor="navy"> |
| 42 |
<td></td> |
| 43 |
<td nowrap bgcolor="navy"><font color=white><b>Name</b></font></td> |
| 44 |
<td nowrap bgcolor="navy"><font color="white"><b>Active</b></font></td> |
| 45 |
<td nowrap bgcolor="navy"><font color="white"><b>Position</b></font></td> |
| 46 |
<td nowrap bgcolor="navy"><font color="white"><b>Type</b></font></td> |
| 47 |
</tr> |
| 48 |
{%foreach:trigger::after: |
| 49 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 50 |
<td valign="top" nowrap> |
| 51 |
<a href="fr://drop_object?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 52 |
<a href="fr://edit_trigger?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}view.png" height="16" width="16"></a> |
| 53 |
</td> |
| 54 |
<td nowrap valign="top"><a |
| 55 |
href="fr://properties?object_type=TRIGGER&object_name={%object_name%}&parent_window={%parent_window%}">{%object_name%}</a></td> |
| 56 |
<td nowrap valign="top" bgcolor="#DDDDFF" align="center"> |
| 57 |
<a href="fr://{%ifeq:{%triggerinfo:is_active%}:true:deactivate_trigger:activate_trigger%}?parent_window={%parent_window%}&object_handle={%object_handle%}"> |
| 58 |
<img src="{%template_root%}{%ifeq:{%triggerinfo:is_active%}:true:ok.png:redx.png%}" height="16" width="16"></a> |
| 59 |
</td> |
| 60 |
<td nowrap valign="top" bgcolor="#DDDDFF" align="right">{%triggerinfo:position%}</td> |
| 61 |
<td nowrap valign="top" bgcolor="#DDDDFF">{%triggerinfo:type%}</td> |
| 62 |
</tr>%} |
| 63 |
</tbody> |
| 64 |
</table> |
| 65 |
<br><br> |
| 66 |
<table border=0 cellspacing=1 cellpadding=3 bgcolor="#999999"> |
| 67 |
<tr bgcolor="#CCCCFF"> |
| 68 |
<td>Icon</td> |
| 69 |
<td nowrap>click to...</td> |
| 70 |
</tr> |
| 71 |
<tr bgcolor="#CCCCCC"><td align="center"><img src="{%template_root%}drop.png" height="16" width="16"></td><td>Drop trigger</td></tr> |
| 72 |
<tr bgcolor="#CCCCCC"><td align="center"><img src="{%template_root%}view.png" height="16" width="16"></td><td>Alter trigger</td></tr> |
| 73 |
<tr bgcolor="#CCCCCC"><td align="center"><img src="{%template_root%}ok.png" height="16" width="16"></td><td>Deactivate trigger</td></tr> |
| 74 |
<tr bgcolor="#CCCCCC"><td align="center"><img src="{%template_root%}redx.png" height="16" width="16"></td><td>Activate trigger</td></tr> |
| 75 |
</table> |
| 76 |
<br> |
| 77 |
<br> |
| 78 |
{%ifeq:{%is_system%}:false: |
| 79 |
<a |
| 80 |
href="fr://create_trigger?parent_window={%parent_window%}&object_handle={%object_handle%}">Create new trigger</a> | <a |
| 81 |
href="fr://activate_triggers?parent_window={%parent_window%}&object_handle={%object_handle%}">Activate all triggers</a> | <a |
| 82 |
href="fr://deactivate_triggers?parent_window={%parent_window%}&object_handle={%object_handle%}">Deactivate all triggers</a> |
| 83 |
%} |
| 84 |
{%ifeq:{%getglobalconf:displayTriggerSource%}:1: |
| 85 |
{%foreach:trigger::before: |
| 86 |
<br><br> |
| 87 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black width="98%"> |
| 88 |
<tr bgcolor="navy"> |
| 89 |
<td nowrap><a href="fr://{%ifeq:{%triggerinfo:is_active%}:true:deactivate_trigger:activate_trigger%}?parent_window={%parent_window%}&object_handle={%object_handle%}"> |
| 90 |
<img src="{%template_root%}{%ifeq:{%triggerinfo:is_active%}:true:ok.png:redx.png%}" height="16" width="16"></a> <font color=white><b>{%object_name%}</b> |
| 91 |
[<a href="fr://edit_trigger?parent_window={%parent_window%}&object_handle={%object_handle%}"><font |
| 92 |
color="yellow">edit</font></a>] {%triggerinfo:type%}</font></td> |
| 93 |
</tr> |
| 94 |
<tr bgcolor="#DDDDFF"><td> |
| 95 |
<PRE>{%triggerinfo:source%}</PRE> |
| 96 |
</td></tr> |
| 97 |
</table> |
| 98 |
%} |
| 99 |
|
| 100 |
{%foreach:trigger::after: |
| 101 |
<br><br> |
| 102 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black width="98%"> |
| 103 |
<tr bgcolor="navy"> |
| 104 |
<td nowrap><a href="fr://{%ifeq:{%triggerinfo:is_active%}:true:deactivate_trigger:activate_trigger%}?parent_window={%parent_window%}&object_handle={%object_handle%}"> |
| 105 |
<img src="{%template_root%}{%ifeq:{%triggerinfo:is_active%}:true:ok.png:redx.png%}" height="16" width="16"></a> <font color=white><b>{%object_name%}</b> |
| 106 |
[<a href="fr://edit_trigger?parent_window={%parent_window%}&object_handle={%object_handle%}"><font |
| 107 |
color="yellow">edit</font></a>] {%triggerinfo:type%}</font></td> |
| 108 |
</tr> |
| 109 |
<tr bgcolor="#DDDDFF"><td> |
| 110 |
<PRE>{%triggerinfo:source%}</PRE> |
| 111 |
</td></tr> |
| 112 |
</table> |
| 113 |
%} |
| 114 |
%} |
| 115 |
</body> |
| 116 |
</html> |