4 <input name="id" type="hidden" id="cvid" value="[% HTML.escape(id) %]">
5 <input name="business_save" type="hidden" value="[% HTML.escape(selectbusiness) %]">
6 <input name="title_save" type="hidden" value="[% HTML.escape(title) %]">
8 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
9 <input type="hidden" name="db" id="db" value="[% HTML.escape(db) %]">
12 <input class="submit" type="submit" name="action" accesskey="s" value="[% 'Save' | $T8 %]">
13 <input class="submit" type="submit" name="action" accesskey="s" value="[% 'Save and Close' | $T8 %]">
15 <input class="submit" type="submit" name="action" value="[% 'Save and AR Transaction' | $T8 %]">
17 <input class="submit" type="submit" name="action" value="[% 'Save and AP Transaction' | $T8 %]">
19 <input class="submit" type="submit" name="action" value="[% 'Save and Invoice' | $T8 %]">
20 <input class="submit" type="submit" name="action" value="[% 'Save and Order' | $T8 %]">
22 <input class="submit" type="submit" name="action" value="[% 'Save and Quotation' | $T8 %]">
24 <input class="submit" type="submit" name="action" value="[% 'Save and RFQ' | $T8 %]">
26 [%- IF id AND is_orphaned %]
27 <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
30 <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %]);" name="history" id="history" value="[% 'history' | $T8 %]">
35 <script type="text/javascript">
37 Calendar.setup({ inputField : "from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
38 Calendar.setup({ inputField : "to", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
39 Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
41 function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); }
42 function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); }
44 var maintab = new ddtabcontent("maintab");
45 maintab.setpersist(true);
46 maintab.setselectedClassTarget("link"); //"link" or "linkparent"