Document module improvements, take 3.
[openemr.git] / templates / insurance_companies / general_edit.html
blob2616ade0be9748565561b6f6ae5b164ea0c9925b
1 {literal}
2 <script language="javascript">
3 function submit_insurancecompany() {
4 if(document.insurancecompany.name.value.length>0) {
5 top.restoreSession();
6 document.insurancecompany.submit();
7 //Z&H Removed redirection
8 } else{
9 document.insurancecompany.name.style.backgroundColor="red";
10 document.insurancecompany.name.focus();
14 function jsWaitForDelay(delay) {
15 var startTime = new Date();
16 var endTime = null;
17 do {
18 endTime = new Date();
19 } while ((endTime - startTime) < delay);
21 </script>
22 {/literal}
23 <form name="insurancecompany" method="post" action="{$FORM_ACTION}">
24 <!-- it is important that the hidden form_id field be listed first, when it is called it populates any old information attached with the id, this allows for partial edits
25 if it were called last, the settings from the form would be overwritten with the old information-->
26 <input type="hidden" name="form_id" value="{$insurancecompany->id}" />
27 <table style="font-size:9pt;" width="500px" CELLSPACING="0" CELLPADDING="3">
28 <tr>
29 <td width="220px" VALIGN="MIDDLE" >{xl t='Name'}</td>
30 <td VALIGN="MIDDLE" >
31 <input type="text" size="40" name="name" value="{$insurancecompany->get_name()}" onKeyDown="PreventIt(event)" /> ({xl t='Required'})
32 </td>
33 </tr>
34 <tr>
35 <td VALIGN="MIDDLE" >{xl t='Attn'}</td>
36 <td VALIGN="MIDDLE" >
37 <input type="text" size="40" name="attn" value="{$insurancecompany->get_attn()}" onKeyDown="PreventIt(event)" />
38 </td>
39 </tr>
41 <tr>
42 <td VALIGN="MIDDLE" >{xl t='Address'}</td>
43 <td VALIGN="MIDDLE" >
44 <input type="text" size="40" name="address_line1" value="{$insurancecompany->address->line1}" onKeyDown="PreventIt(event)" />
45 </td>
46 </tr>
47 <tr>
48 <td VALIGN="MIDDLE" >{xl t='Address'}</td>
49 <td VALIGN="MIDDLE" >
50 <input type="text" size="40" name="address_line2" value="{$insurancecompany->address->line2}" onKeyDown="PreventIt(event)" />
51 </td>
52 </tr>
53 <tr>
54 <td VALIGN="MIDDLE" >{xl t='City, State Zip'}</td>
55 <td VALIGN="MIDDLE" >
56 <input type="text" size="25" name="city" value="{$insurancecompany->address->city}" onKeyDown="PreventIt(event)" /> , <input type="text" size="2" maxlength="2" name="state" value="{$insurancecompany->address->state}" onKeyDown="PreventIt(event)" /> <input type="text" size="5" name="zip" value="{$insurancecompany->address->zip}" onKeyDown="PreventIt(event)" />
57 </td>
58 </tr>
59 <tr>
60 <td VALIGN="MIDDLE" >{xl t='Phone'}</td>
61 <td VALIGN="MIDDLE" >
62 <input TYPE="TEXT" NAME="phone" SIZE="12" VALUE="{$insurancecompany->get_phone()}" onKeyDown="PreventIt(event)" />
63 </td>
64 </tr>
65 <tr>
66 <td VALIGN="MIDDLE" >{xl t='CMS ID'}</td>
67 <td VALIGN="MIDDLE" >
68 <input type="text" size="15" name="cms_id" value="{$insurancecompany->get_cms_id()}" onKeyDown="PreventIt(event)" />
69 {php} if ($GLOBALS['support_encounter_claims']) { {/php}
70 &nbsp;&nbsp;{xl t='For Encounter Claims'}:
71 <input type="text" size="15" name="alt_cms_id" value="{$insurancecompany->get_alt_cms_id()}" onKeyDown="PreventIt(event)" />
72 {php} } {/php}
73 </td>
74 </tr>
75 <tr>
76 <td VALIGN="MIDDLE">{xl t='Payer Type'}</td>
77 <td VALIGN="MIDDLE">
78 {html_options name="freeb_type" options=$insurancecompany->freeb_type_array selected=$insurancecompany->get_freeb_type()}
79 </td>
80 </tr>
81 <!--
82 This is now deprecated use the newer x12 partner code instead
83 <tr>
84 <td COLSPAN="1" ALIGN="LEFT" VALIGN="MIDDLE">X12 Receiver ID</td>
85 <td COLSPAN="2" ALIGN="LEFT" VALIGN="MIDDLE">
86 <input type="text" name="x12_receiver_id" value="{$insurancecompany->get_x12_receiver_id()}" >
87 </td>
88 </tr>-->
89 <tr>
90 <td VALIGN="MIDDLE">{xl t='Default X12 Partner'}</td>
91 <td VALIGN="MIDDLE">
92 {html_options name="x12_default_partner_id" options=$x12_partners selected=$insurancecompany->get_x12_default_partner_id()}
93 </td>
94 </tr>
95 <tr height="25"><td colspan=2>&nbsp;</td></tr>
96 <tr>
97 <td colspan="2"><a href="javascript:submit_insurancecompany();" class="css_button"><span>{xl t='Save'}</span></a><a href="controller.php?practice_settings&insurance_company&action=list" {php} if (!$GLOBALS['concurrent_layout']) echo "target='Main'"; {/php} class="css_button" onclick="top.restoreSession()">
98 <span>{xl t='Cancel'}</span></a></td>
99 </tr>
100 </table>
101 <input type="hidden" name="id" value="{$insurancecompany->id}" />
102 <input type="hidden" name="process" value="{$PROCESS}" />
103 </form>