source: branches/1.2/workflow/templates/default/editor.tpl @ 1349

Revision 1349, 4.7 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1<html>
2<head>
3{$css}
4{$javaScripts}
5
6<script language="javascript1.2">
7{literal}
8function initEditor()
9{
10{/literal}
11        editor.setContents("{$fileData}");
12{literal}
13        editor.keyBinding["c83"] = phpeditor_salvar;
14        editor.keyBinding["c70"] = function() { document.getElementById('txtFind').focus(); };
15{/literal}
16        {if $type == 'php'}
17        editor.keyBinding["c89"] = phpeditor_checksyntax;
18        {/if}
19{literal}
20}
21
22function FindInCode()
23{
24        editor.do_FindNext(document.getElementById('txtFind').value);
25}
26{/literal}
27</script>
28
29<title>{$processNameVersion} - {$fileName}</title>
30</head>
31<body onload='initEditor();'>
32<input type="hidden" value="{$txt_loading}" id="txt_loading">
33
34<script language="javascript1.2">
35{literal}
36        function mouseover(obj) { obj.style.backgroundColor='#f5f5f5';  }
37        function mouseout(obj)  { obj.style.backgroundColor='#d8d8d8';  }
38{/literal}
39</script>
40
41<table border=0 style="width:2000px;border-top:1px solid;border-left:1px solid;" bgcolor="#d8d8d8">
42<tr>
43        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
44                <a href="javascript:void(0);" onclick="phpeditor_salvar()"><img border=0 src="workflow/templateFile.php?file=images/helene_save.png" title="Salvar (Ctrl+S)"></a>       
45        </td>
46        {if $type == 'php'}
47        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
48                <a href="javascript:void(0);" onclick="phpeditor_checksyntax()"><img border=0 src="workflow/templateFile.php?file=images/helene_checksyntax.png" title="Check PHP Syntax (Ctrl+Y)"></a>
49        </td>
50        {/if}
51        <td valign=center align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
52                <input id="txtFind" type=text name=frmFind>
53        </td>
54        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
55                <a href="javascript:void(0);" onclick="FindInCode()"><img border=0 src="workflow/templateFile.php?file=images/helene_next.png"></a>     
56        </td>
57        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
58                <a href="javascript:void(0);" onclick="javascript:editor.blur();editor.do_Replace();"><img border=0 src="workflow/templateFile.php?file=images/helene_replace.png" title="Substituir")></a>     
59        </td>
60        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
61                <a href="javascript:void(0);" onclick="javascript:editor.do_Indent();"><img border=0 src="workflow/templateFile.php?file=images/helene_addindent.png" title="Adiciona Identação"></a>   
62        </td>
63        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
64                <a href="javascript:void(0);" onclick="javascript:editor.do_Unindent();"><img border=0 src="workflow/templateFile.php?file=images/helene_delindent.png" title="Remove Identação"></a>   
65        </td>
66        <td align=center onmouseover="mouseover(this);" onmouseout="mouseout(this);" width="25px">
67                <a href="javascript:void(0);"><img border=0 src="workflow/templateFile.php?file=images/helene_help.png"></a>   
68        </td>
69        <td>
70        </td>
71</tr>
72</table>
73
74<iframe id="phpeditor" name="editor" scrolling=no src="workflow/templateFile.php?file={$HTMLFile}" style="width: 2000px; height:78%; border-width:1px;"></iframe>
75
76<table border=0 width=2000px style="border-top:0px solid;border-left:1px solid;border-bottom:1px solid;border-right:1px solid;border-color:black;font-size:11px;">
77        <tr>
78                <td>
79                        <div id="info">&nbsp;</div>
80                </td>
81        </tr>
82</table>
83<table border=0 width=2000px style="border-top:0px solid;border-left:1px solid;border-bottom:1px solid;border-right:1px solid;border-color:black;">
84<tr>
85        <td width=5px valign=top>
86                <table style="font-size:8px;height:50px;" bgcolor=#d5d5d5 cellpadding=0 cellspacing=0>
87                <tr>
88                        <td valign=top style="height:10px;" bgcolor="#f5f5f5">
89                                <a href="javascript:messages.scrollwin(-20);"><img border=0 src="workflow/templateFile.php?file=images/up_arrow.png"></a>
90                        </td>
91                </tr>
92                <tr>
93                        <td style="height:28px;">
94                        </td>
95                </tr>
96                <tr>
97                        <td valign=bottom style="height:10px;" bgcolor="#f5f5f5">
98                                <a href="javascript:messages.scrollwin(20);"><img border=0 src="workflow/templateFile.php?file=images/down_arrow.png"></a>
99                        </td>
100                </tr>
101                </table>
102        </td>
103        <td>
104                <iframe name="messages" scrolling=yes src="workflow/templateFile.php?file=editor_messages.html" style="width: 100%; height: 60px; border-width:0px;"></iframe>
105        </td>
106</tr>
107</table>
108
109<form name=frmSend method=POST enctype="multipart/form-data">
110        <textarea name='code' style='display:none'></textarea>
111        <input type='hidden' name='proc_name' value="{$processName}">
112        <input type='hidden' name='file_name' value="{$fileName}">
113        <input type='hidden' name='tipo_codigo' value="{$tipoCodigo}">
114        <input type='hidden' name='proc_id' value="{$processID}">
115        <input type='hidden' name='activity_id' value="{$activityId}">
116</form>
117
118</body>
119</html>
Note: See TracBrowser for help on using the repository browser.