Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 591e645d

Von Jan Büren vor mehr als 9 Jahren hinzugefügt

  • ID 591e645dfa89f5c78611293284058fdbe0b2a5e0
  • Vorgänger a5d61345
  • Nachfolger 9ad7c056

Symlink für Brieffunktion. Ferner vergessenes template-Verzeichnis

Unterschiede anzeigen:

letter.pl
1
am.pl
templates/webpages/letter/edit.html
1
[%- USE HTML %]
2
[%- USE T8 %]
3
[%- USE L %]
4
<body onload="[% onload %]" width=100%>
5

  
6
 <div class="listtop">[% title %]</div>
7

  
8
 <form action='letter.pl' method='POST'>
9

  
10
  <input type="hidden" name="letter.id" value="[% letter.id | html %]">
11
  <input type="hidden" name="letter.draft_id" value="[% letter.draft_id | html %]">
12
  <input type="hidden" name="title" value="[% title | html %]">
13
  <input type="hidden" name="type" value="[% type | html %]">
14
  <input type="hidden" name="print_nextsub" value="print_letter">
15

  
16

  
17
<p>
18
 <table width=100%>
19
  [%- IF SAVED_MESSAGE %]
20
  <tr>
21
    <td colspan=2>[% SAVED_MESSAGE %]</td>
22
  </tr>
23
  <tr height=10px><td></td></tr>
24
  [%- END %]
25
  <tr>
26
   <td width=50%>
27
    <!-- upper left block -->
28
     <table width=90%>
29
      <tr>
30
       <th align='right'>[% 'Customer' | $T8 %]:</th>
31
       <td>
32
        [%- INCLUDE 'generic/multibox.html'
33
             name          = 'letter.customer',
34
             style         = 'width:60%',
35
             DATA          = ALL_CUSTOMERS,
36
             id_sub        = 'vc_keys',
37
             label_key     = 'name',
38
             select        = vc_select,
39
             limit         = myconfig_vclimit,
40
             allow_textbox = 1,
41
             force_textbox = limit_exceeded_all_customer
42
             onChange      = "document.getElementById('update_button').click();" -%]
43
[%- IF letter.customer_id %]
44
        <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="edit_vc_window([% letter.customer_id | html %], 'customer')">
45
[%- END %]
46
        <input type='hidden' name='letter.oldcustomer' value='[% letter.oldcustomer | html %]'>
47
        <input type='hidden' name='letter.customer_id' value='[% letter.customer_id | html %]'>
48
[%- UNLESS myconfig_vclimit < ALL_CUSTOMERS.size %]
49
        <input type="hidden" name="letter.select[% vc %]" value="1">
50
[%- END %]
51
      </tr>
52
      <tr>
53
       <th align='right'>[% 'Contact Person' | $T8 %]</th>
54
       <td>
55
        [%- INCLUDE 'generic/multibox.html'
56
             name       = 'letter.cp_id',
57
             style      = 'width:100%',
58
             DATA       = ALL_CONTACTS,
59
             id_key     = 'cp_id',
60
             label_sub  = 'ct_labels',
61
             show_empty = 1 -%]
62
       </td>
63
      </tr>
64
      <tr>
65
       <th align='right'>[% 'Your Reference' | $T8 %]:</th>
66
       <td><input name='letter.reference' style='width:70%' value='[% letter.reference %]'></td>
67
      </tr>
68
     </table>
69
    <!-- /upper left block -->
70
   </td>
71
   <td width=50%>
72
    <!-- upper right block -->
73
     <table align=center width=90%>
74
      <tr>
75
       <th align='right'>[% 'Letternumber' | $T8 %]:</th>
76
       <td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber %]'></td>
77
      </tr>
78
      <tr>
79
       <th align='right'>[% 'Date' | $T8 %]:</th>
80
        <td>[% L.date_tag('letter.date', date, readonly=readonly) %]</td>
81
       </td>
82
      </tr>
83
     </table>
84
    <!-- /upper right block -->
85
   </td>
86
  </tr>
87

  
88
  <tr height=20></tr>
89

  
90
  <tr>
91
   <td colspan=2 width=100%>
92
    <!-- central block -->
93
     <table width=80%>
94
      <tr>
95
       <th align=right>[% 'Subject' | $T8 %]</th>
96
       <td><textarea name='letter.subject' style='width:100%;font-weight:bold' rows=1>[% letter.subject %]</textarea></td>
97
      </tr>
98
       <th align=right>[% 'Greeting' | $T8 %]</th>
99
       <td><input name='letter.greeting' style='width:100%;font-weight:bold' value="[% letter.greeting | html %]"></td>
100
      </tr>
101
      <tr>
102
      <tr>
103
       <th align=right>[% 'Body' | $T8 %]</th>
104
       <td><textarea name='letter.body' style='width:100%' rows=20>[% letter.body | html %]</textarea></td>
105
      </tr>
106
      <tr height=10></tr>
107
       <th align=right>[% 'Internal Notes' | $T8 %]</th>
108
       <td><textarea name='letter.intnotes' style='width:100%' rows=4>[% letter.intnotes | html %]</textarea></td>
109
      </tr>
110

  
111
      <tr>
112
       <th></th>
113
       <td>
114
        <table width=90%>
115
         <tr>
116
          <td>
117
           <table width=100%>
118
            <tr>
119
             <td>[% 'Employee' | $T8 %]</td>
120
            </tr>
121
            <tr>
122
             <td>
123
              [%- INCLUDE 'generic/multibox.html'
124
                   name          = 'letter.employee_id',
125
                   default       = letter.employee_id,
126
                   style         = 'width:70%;font-weight:bold',
127
                   DATA          = ALL_EMPLOYEES,
128
                   id_key        = 'id',
129
                   label_key     = 'name',
130
                   limit         = vclimit,
131
                   show_empty    = 1,
132
                   allow_textbox = 0,
133
                   force_textbox = limit_exceeded_ALL_EMPLOYEES
134
                   onChange      = "document.getElementById('update_button').click();" -%]
135
             </td>
136
            </tr>
137
            <!-- tr><td><input name="employee_position" style=width:70% value='[% employee_position %]'></td></tr -->
138
           </table>
139
          </td>
140
          <td>
141
           <table width=100%>
142
            <tr>
143
             <td>[% 'Salesman' | $T8 %]</td>
144
            </tr>
145
            <tr>
146
             <td>
147
              [%- INCLUDE 'generic/multibox.html'
148
                   name          = 'letter.salesman_id',
149
                   default       = letter.salesman_id,
150
                   style         = 'width:70%;font-weight:bold',
151
                   DATA          = ALL_SALESMEN,
152
                   id_key        = 'id',
153
                   label_key     = 'name',
154
                   limit         = vclimit,
155
                   show_empty    = 1,
156
                   allow_textbox = 0,
157
                   force_textbox = limit_exceeded_ALL_SALESMAN
158
                   onChange      = "document.getElementById('update_button').click();" -%]
159
             </td>
160
            </tr>
161
           </table>
162
          </td>
163
          <td>
164
          </td>
165
         </tr>
166
        </table>
167
       </td>
168
      </tr>
169
     </table>
170
    <!-- /central block -->
171
   </td>
172
  </tr>
173
  <tr>
174
    <td colspan=3><hr size="3" noshade></td>
175
  </tr>
176
  <tr>
177
   <td>
178
     [% print_options %]
179
   </td>
180
  </tr>
181
 </table>
182
</p>
183

  
184
<input type="hidden" name="action" value="dispatcher">
185
<input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
186
<input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
187
<input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
188
<input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
189
<input class="submit" type="submit" name="action_save_letter_draft" value="[% 'Save Draft' | $T8 %]">
190

  
191
 </form>
192

  
193
    <script type="text/javascript">
194
     <!--
195
       Calendar.setup({ inputField : "date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "date_button" });
196
     //-->
197
    </script>
198

  
199
</body>
200

  
templates/webpages/letter/load_drafts.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
<h1>[% 'Load letter draft' | $T8 %]</h1>
4

  
5
 <form method="post" name="Form" action="letter.pl">
6
  <table width="100%">
7
   <tr>
8
    <td>
9
     [% 'The following drafts have been saved and can be loaded.' | $T8 %]
10
    </td>
11
   </tr>
12
   <tr>
13
    <td>
14
     <table>
15
      <tr>
16
       <th class="listheading">&nbsp;</th>
17
       <th class="listheading">[% 'Date' | $T8 %]</th>
18
       <th class="listheading">[% 'Subject' | $T8 %]</th>
19
       <th class="listheading">[% 'Customer' | $T8 %]</th>
20
      </tr>
21

  
22
      [% FOREACH row = LETTER_DRAFTS %]
23
       <tr class="listrow[% loop.count % 2 %]">
24
        <td><input type="checkbox" name="checked_[% row.id %]" value="1"></td>
25
        <td>[% HTML.escape(row.date) %]</td>
26
        <td><a href="letter.pl?action=edit&callback=letter.pl&draft=1&id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
27
        <td>[% HTML.escape(row.customer) %]</td>
28
       </tr>
29
      [% END %]
30
     </table>
31
    </td>
32
   </tr>
33
   <tr>
34
     <input type="hidden" name="action" value="dispatcher">
35
     <input type="hidden" name="draft" value="1"><!-- maybe not needed -->
36
     <input type="submit" class="submit" name="letter_draft_action" value="[% 'Skip' | $T8 %]">
37
     <input type="submit" class="submit" name="letter_draft_action" value="[% 'Delete drafts' | $T8 %]">
38
   </td>
39
   </tr>
40
  </table>
41
 </form>
templates/webpages/letter/report_bottom.html
1
[% USE HTML%]
2
[%- USE T8 %]
3
 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
4
 [%- FOREACH item = HIDDEN %]
5
 <input type="hidden" name="[% HTML.escape(item.key) %]" value="[% HTML.escape(item.value) %]">
6
 [%- END %]
7
</form>
templates/webpages/letter/report_top.html
1
[%- IF OPTIONS.size %]
2
<p>
3
 [%- FOREACH option = OPTIONS %]
4
 [%- option %][% UNLESS loop.last %]<br>[% END %]
5
 [%- END %]
6
</p>
7
[%- END %]
8

  
9
<form action="letter.pl" method="post" name="Form">
10

  
templates/webpages/letter/search.html
1
[% USE HTML %]
2
[% USE T8 %]
3
<body onload="on_load()">
4

  
5
 <script type="text/javascript">
6
  <!--
7
      function on_load() {
8
        Calendar.setup({ inputField : "date_from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "date_from_trigger" });
9
        Calendar.setup({ inputField : "date_to",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "date_to_trigger" });
10
        document.Form.subject.focus();
11
      }
12
    -->
13
 </script>
14

  
15
 <div class="listtop">[% title %]</div>
16

  
17
 <form action="letter.pl" method="post" name="Form">
18
  <input type="hidden" name="nextsub" value="report">
19

  
20
  <p>
21
   <table>
22
    <tr>
23
     <th align='right'>[% 'Letternumber' | $T8 %]</th>
24
     <td><input name='letternumber' style='width:250px' value='[% letternumber %]'></th>
25
    </tr>
26
    <tr>
27
     <td align="right">[% 'Customer' | $T8 %]</td>
28
     <td>
29
        [%- INCLUDE 'generic/multibox.html'
30
             name          = 'customer',
31
             style         = 'width:250px',
32
             DATA          = ALL_CUSTOMERS,
33
             id_key        = 'id',
34
             label_key     = 'name',
35
             select        = vc_select,
36
             limit         = myconfig_vclimit,
37
             allow_textbox = 1,
38
             show_empty    = 1,
39
             force_textbox = limit_exceeded_all_customer
40
             onChange      = "document.getElementById('update_button').click();" -%]
41
[%- IF myconfig_vclimit > ALL_CUSTOMERS.size %]
42
       <input type="hidden" name='selectcustomer' value="1">
43
[%- END %]
44
     </td>
45
    </tr>
46

  
47
    <tr>
48
     <td align="right">[% 'Contact' | $T8 %]</td>
49
     <td><input name="contact" style='width:250px'></td>
50
    </tr>
51

  
52
    <tr>
53
     <td align="right">[% 'Subject' | $T8 %]</td>
54
     <td><input name="subject" style='width:250px'></td>
55
    </tr>
56

  
57
    <tr>
58
     <td align="right">[% 'Body' | $T8 %]</td>
59
     <td><input name="body" style='width:250px'></td>
60
    </tr>
61

  
62
    <tr>
63
     <td align='right'>[% 'From' | $T8 %]</td>
64
     <td>
65
      <input name="date_from" id="date_from" size="12">
66
      <input type="button" name="date_from_button" id="date_from_trigger" value="?">
67
      [% 'To (time)' | $T8 %]
68
      <input name="date_to" id="date_to" size="12">
69
      <input type="button" name="date_to_button" id="date_to_trigger" value="?">
70
     </td>
71
    </tr>
72
<!--
73
    <tr>
74
     <td align="right">[% 'Include in Report' | $T8 %]</td>
75
     <td>
76

  
77
      <table>
78
      </table>
79

  
80
     </td>
81
    </tr>
82
-->
83
   </table>
84
  </p>
85

  
86
  <p>
87
   <input type="submit" name="action" value="[% 'Continue' | $T8 %]">
88
  </p>
89
 </form>
90

  
91
</body>
92
</html>

Auch abrufbar als: Unified diff