1 <form name=
"pharmacy" method=
"post" action=
"{$FORM_ACTION}">
2 <!-- it is important that the hidden form_id field be listed first, when it is called is populates any old information attached with the id, this allows for partial edits
3 if it were called last, the settings from the form would be overwritten with the old information-->
4 <input type=
"hidden" name=
"form_id" value=
"{$pharmacy->id}" />
5 <table style=
"font-size:9pt;" width=
"500px" CELLSPACING=
"0" CELLPADDING=
"3">
7 <td width=
"150px" VALIGN=
"MIDDLE" >{xl t='Name'}
</td>
9 <input type=
"text" size=
"40" name=
"name" value=
"{$pharmacy->name}"/>({xl t='Required'})
13 <td VALIGN=
"MIDDLE" >{xl t='Address'}
</td>
15 <input type=
"text" size=
"40" name=
"address_line1" value=
"{$pharmacy->address->line1}"/>
19 <td VALIGN=
"MIDDLE" >{xl t='Address'}
</td>
21 <input type=
"text" size=
"40" name=
"address_line2" value=
"{$pharmacy->address->line2}"/>
25 <td VALIGN=
"MIDDLE" >{xl t='City, State Zip'}
</td>
27 <input type=
"text" size=
"25" name=
"city" value=
"{$pharmacy->address->city}"/> ,
<input type=
"text" size=
"2" maxlength=
"2" name=
"state" value=
"{$pharmacy->address->state}"/> <input type=
"text" size=
"5" name=
"zip" value=
"{$pharmacy->address->zip}"/>
31 <td VALIGN=
"MIDDLE" >{xl t='Email'}
</td>
33 <input TYPE=
"TEXT" NAME=
"email" SIZE=
"35" VALUE=
"{$pharmacy->email}"/>
37 <td VALIGN=
"MIDDLE" >{xl t='Phone'}
</td>
39 <input TYPE=
"TEXT" NAME=
"phone" SIZE=
"12" VALUE=
"{$pharmacy->get_phone()}"/>
43 <td VALIGN=
"MIDDLE" >{xl t='Fax'}
</td>
45 <input TYPE=
"TEXT" NAME=
"fax" SIZE=
"12" VALUE=
"{$pharmacy->get_fax()}"/>
50 <td VALIGN=
"MIDDLE" >{xl t='Default Method'}
</td>
52 <select name=
"transmit_method">{html_options options=$pharmacy-
>transmit_method_array selected=$pharmacy-
>transmit_method}
</select>
55 <tr><td colspan=
"2"> </td></tr>
57 <td colspan=
"2"><a href=
"javascript:submit_pharmacy();" class=
"css_button"><span>{xl t='Save'}
</span></a><a href=
"controller.php?practice_settings&pharmacy&action=list" {php} if (!$GLOBALS['concurrent_layout']) echo
"target='Main'"; {/php}
class=
"css_button" onclick=
"top.restoreSession()">
58 <span>{xl t='Cancel'}
</span></a>
62 <input type=
"hidden" name=
"id" value=
"{$pharmacy->id}" />
63 <input type=
"hidden" name=
"process" value=
"{$PROCESS}" />
67 <script language=
"javascript">
68 function submit_pharmacy()
70 if(document
.pharmacy
.name
.value
.length
>0)
73 document
.pharmacy
.submit();
75 this.location
.href
="{/literal}{$WEB_ROOT}{literal}/controller.php?practice_settings&pharmacy&action=list";
79 document
.pharmacy
.name
.style
.backgroundColor
="red";
80 document
.pharmacy
.name
.focus();
84 function Waittoredirect(delaymsec
) {
89 } while ((et
- st
) < delaymsec
);