3 <input name="id" type="hidden" id="cvid" value="[% HTML.escape(id) %]">
4 <input name="business_save" type="hidden" value="[% HTML.escape(selectbusiness) %]">
5 <input name="title_save" type="hidden" value="[% HTML.escape(title) %]">
7 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
8 <input type="hidden" name="db" id="db" value="[% HTML.escape(db) %]">
11 <input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save</translate>">
12 <input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save and Close</translate>">
13 [%- IF is_cumstomer %]
14 <input class="submit" type="submit" name="action" value="<translate>Save and AR Transaction</translate>">
16 <input class="submit" type="submit" name="action" value="<translate>Save and AP Transaction</translate>">
18 <input class="submit" type="submit" name="action" value="<translate>Save and Invoice</translate>">
19 <input class="submit" type="submit" name="action" value="<translate>Save and Order</translate>">
21 <input class="submit" type="submit" name="action" value="<translate>Save and Quotation</translate>">
23 <input class="submit" type="submit" name="action" value="<translate>Save and RFQ</translate>">
25 [%- IF id AND is_orphaned %]
26 <input class="submit" type="submit" name="action" value="<translate>Delete</translate>">
29 <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %]);" name="history" id="history" value="<translate>history</translate>">
34 <script type="text/javascript">
36 Calendar.setup({ inputField : "fromB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
37 Calendar.setup({ inputField : "toB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
38 Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
40 function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); }
41 function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); }
43 var maintab = new ddtabcontent("maintab");
44 maintab.setpersist(true);
45 maintab.setselectedClassTarget("link"); //"link" or "linkparent"