+ <tr>
+ <th align="right" nowrap>Telefon</th>
+ <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>Fax</th>
+ <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap>eMail</th>
+ <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
+ </tr>
+
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ </table>
+
+ <input type="submit" id="delete_shipto" name="action" value="Lieferadresse löschen" disabled>
+ <br style="clear: left" />
+ </div>
+
+ <div id="contacts" class="tabcontent">
+ <table>
+ <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
+ <tr>
+ <th align="right">Ansprechpartner</th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'cp_id',
+ id = 'cp_id',
+ DATA = CONTACTS,
+ onChange = "get_contact(['cp_id__'+this.value],['cp_name','cp_greeting','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2','cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact])",
+ id_key = 'cp_id',
+ label_sub = 'contacts_label',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Anrede</th>
+ <td>
+ <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_greeting',
+ DATA = MB_GREETINGS,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Titel</th>
+ <td>
+ <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_title',
+ DATA = MB_TITLES,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Abteilung</th>
+ <td>
+ <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_abteilung',
+ DATA = MB_DEPARTMENT,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Vorname</th>
+ <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Name</th>
+ <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Telefon 1 </th>
+ <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Telefon 2</th>
+ <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Fax</th>
+ <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Mobile 1</th>
+ <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Mobile 2</th>
+ <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Sat. Tel.</th>
+ <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Sat. Fax</th>
+ <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Projekt</th>
+ <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>eMail</th>
+ <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Privates Tel.</th>
+ <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Private eMail</th>
+ <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Geburtstag</th>
+ <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
+ </tr>
+
+ <tr>
+ <td colspan="2"><hr></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Bcc</th>
+ <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
+ </tr>
+ </table>
+
+ <input type="submit" id="delete_contact" name="action" value="Ansprechpartner löschen" disabled>
+ <br style="clear: left" />
+ </div>
+
+ <div id="deliveries" class="tabcontent">
+ <table>
+ <tr>
+ <th align="right">Lieferadresse</th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'delivery_id',
+ id = 'delivery_id',
+ DATA = SHIPTO,
+ onChange = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
+ id_key = 'shipto_id',
+ label_sub = 'shipto_label',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap>Von</th>
+ <td>
+ <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
+ <input type="button" name="fromB" id="trigger_from" value="?">
+ </td>
+ <th align="left" nowrap>Bis</th>
+ <td>
+ <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
+ <input type="button" name="toB" id="trigger_to" value="?">
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="4">
+ <div id="delivery">
+ </div>
+ </td>
+ </tr>
+ </table>
+
+ <br style="clear: left" />
+ </div>
+
+ <div id="vcnotes" class="tabcontent">
+
+ [%- IF NOTES && NOTES.size %]
+ <p>
+ <table>
+ <tr>
+ <th class="listheading">Löschen</th>
+ <th class="listheading">Betreff</th>
+ <th class="listheading">Erstellt am</th>
+ <th class="listheading">Erstellt von</th>
+ <th class="listheading">Wiedervorlagedatum</th>
+ <th class="listheading">Wiedervorlage für</th>
+ <th class="listheading">Wiedervorlage erledigt</th>
+ </tr>
+
+ [%- FOREACH row = NOTES %]
+ <tr class="listrow[% loop.count % 2 %]">
+ <input type="hidden" name="NOTE_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
+ <td>[% UNLESS NOTE_id && (NOTE_id == row.id) %]<input type="checkbox" name="NOTE_delete_[% loop.count %]" value="1">[% END %]</td>
+ <td><a href="ct.pl?action=edit&db=[% HTML.url(db) %]&id=[% HTML.url(id) %]&edit_note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
+ <td>[% HTML.escape(row.created_on) %]</td>
+ <td>[% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %]</td>
+ <td>[% HTML.escape(row.follow_up_date) %]</td>
+ <td>[% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %]</td>
+ <td>[% IF row.follow_up_date %][% IF row.follow_up_done %]Ja[% ELSE %]Nein[% END %][% END %]</td>
+ </tr>
+ [%- END %]
+
+ <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
+
+ </table>
+ </p>
+ [%- END %]
+
+ <div class="listtop">[% IF NOTE_id %]Notiz bearbeiten[% ELSE %]Notiz erfassen[% END %]</div>
+
+ <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
+ <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
+
+ <p>
+ <table>
+ <tr>
+ <td valign="right">Betreff</td>
+ <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
+ </tr>
+
+ <tr>
+ <td valign="right" align="top">Text</td>
+ <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
+ </tr>
+
+ <tr>
+ <td valign="right">Wiedervorlage am</td>
+ <td>
+ <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
+ <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
+ für
+ <select name="FU_created_for_user">
+ [%- FOREACH row = ALL_EMPLOYEES %]
+ <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
+ [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
+ </option>
+ [%- END %]
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td> </td>
+ <td>
+ <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
+ <label for="FU_done">Wiedervorlage erledigt</label>
+ </td>
+ </tr>
+ </table>
+ </p>
+
+ <br style="clear: left" />
+ </div>
+
+ [%- IF CUSTOM_VARIABLES.size %]
+ <div id="custom_variables" class="tabcontent">
+
+ <p>
+ <table>
+ [%- FOREACH var = CUSTOM_VARIABLES %]
+ <tr>
+ <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
+ <td valign="top">[% var.HTML_CODE %]</td>
+ </tr>
+ [%- END %]
+ </table>
+ </p>
+
+ <br style="clear: left" />
+ </div>
+ [%- END %]