Location: PHPKode > projects > CoreAsset > coreasset/templates/edit_vendor.tpl
{include file="head.tpl"}
{include file="left.tpl"}

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="21"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/corner9.gif" width="5" height="21"></td>
<td width="99%" class="header"><span class="whitetext">

 Edit Vendor
</span></td>
<td><img src="images/corner10.gif" width="5" height="21"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="border3side" valign="top" height="100%"><table width="100%" height="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td  valign="TOP">

<!-- #######################   Paste the Table to Table from here ############## -->

<table cellSpacing="0" cellPadding="0" width="98%"  valign="TOP"  align="center" border="0">
          <tr>
            <td><img title alt src="images/blank.gif" width="1" height="1"></td>
          </tr>
          <!--<tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="3" alt src="images/blank.gif" width="1" valign="top"></td>
          </tr>-->
          <tr>
            <!--<td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb; padding-left: 18px; padding-right: 23px; padding-top: 11px" vAlign="top" bgColor="#ededed" height="180">-->
            <td  valign="TOP">
            {if $status < 4}
            <table borderColor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0"  valign="TOP">
              <form name="f1" action="?act=edit" method="post" onSubmit="return validate();">
                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Name</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="vendor_name"  type="text" size="20" class="text" value="{$vendor_name}"></td>
                </tr>
                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Address</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <textarea name="vendor_address"  rows="9" cols="30">{$vendor_address}</textarea></td>
                </tr>
                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Email</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="vendor_email"  type="text" size="20" class="text"  value="{$vendor_email}"></td>
                </tr>
                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Phone</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <input name="vendor_phone"  type="text" size="20" class="text"  value="{$vendor_phone}"
				   onkeypress="if((event.keyCode!=43) &&(event.keyCode!=47) &&(event.keyCode!=45) 
			&&(event.keyCode!=93) &&(event.keyCode!=91) 
			&& ((event.keyCode<48) ||(event.keyCode>57)))  event.returnValue = false;"></td>
                </tr>
                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Zip Code</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="vendor_zip"  type="text" size="20" class="text"  value="{$vendor_zip}"></td>
                </tr>
                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Country</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <select name="vendor_country">
                    <option value=""	 selected>-- Select --</option>
            				<option value="AF" {if  $vendor_country=="AF"}selected{/if}>Afghanistan</option>
            				<option value="AL" {if  $vendor_country=="AL"}selected{/if}>Albania</option>
            				<option value="DZ" {if  $vendor_country=="DZ"}selected{/if}>Algeria</option>
            				<option value="AS" {if  $vendor_country=="AS"}selected{/if}>American Samoa</option>
            				<option value="AD" {if  $vendor_country=="AD"}selected{/if}>Andorra</option>
            				<option value="AO" {if  $vendor_country=="AO"}selected{/if}>Angola</option>
            				<option value="AQ" {if  $vendor_country=="AQ"}selected{/if}>Antartica</option>
            				<option value="AG" {if  $vendor_country=="AG"}selected{/if}>Antiqua and Barbuda</option>
            				<option value="AM" {if  $vendor_country=="AM"}selected{/if}>Armenia</option>
            				<option value="AR" {if  $vendor_country=="AR"}selected{/if}>Argentina</option>
            				<option value="AU" {if  $vendor_country=="AU"}selected{/if}>Australia</option>
            				<option value="AT" {if  $vendor_country=="AT"}selected{/if}>Austria</option>
            				<option value="AZ" {if  $vendor_country=="AZ"}selected{/if}>Azerbaijan</option>
            				<option value="BS" {if  $vendor_country=="BS"}selected{/if}>Bahamas, The</option>
            				<option value="BH" {if  $vendor_country=="BH"}selected{/if}>Bahrain</option>
            				<option value="BD" {if  $vendor_country=="BD"}selected{/if}>Bangladesh</option>
            				<option value="BB" {if  $vendor_country=="BB"}selected{/if}>Barbados</option>
            				<option value="BY" {if  $vendor_country=="BY"}selected{/if}>Belarus</option>
            				<option value="BE" {if  $vendor_country=="BE"}selected{/if}>Belgium</option>
            				<option value="BZ" {if  $vendor_country=="BZ"}selected{/if}>Belize</option>
            				<option value="BJ" {if  $vendor_country=="BJ"}selected{/if}>Benin</option>
            				<option value="BM" {if  $vendor_country=="BM"}selected{/if}>Bermuda</option>
            				<option value="BT" {if  $vendor_country=="BT"}selected{/if}>Bhutan</option>
            				<option value="BO" {if  $vendor_country=="BO"}selected{/if}>Bolivia</option>
            				<option value="BW" {if  $vendor_country=="BW"}selected{/if}>Botswana</option>
            				<option value="BV" {if  $vendor_country=="BV"}selected{/if}>Bouvet Island</option>
            				<option value="BR" {if  $vendor_country=="BR"}selected{/if}>Brazil</option>
            				<option value="BQ" {if  $vendor_country=="BQ"}selected{/if}>British Antartic Territory</option>
            				<option value="IO" {if  $vendor_country=="IO"}selected{/if}>British Indian Ocean Territory</option>
            				<option value="SB" {if  $vendor_country=="SB"}selected{/if}>British Solomon Islands</option>
            				<option value="VG" {if  $vendor_country=="VG"}selected{/if}>British Virgin Islands</option>
            				<option value="BN" {if  $vendor_country=="BN"}selected{/if}>Brunei</option>
            				<option value="BG" {if  $vendor_country=="BG"}selected{/if}>Bulgaria</option>
            				<option value="MM" {if  $vendor_country=="MM"}selected{/if}>Myanmar (formerly Burma)</option>
            				<option value="BI" {if  $vendor_country=="BI"}selected{/if}>Burundi</option>
            				<option value="KH" {if  $vendor_country=="KH"}selected{/if}>Khmer Republic</option>
            				<option value="CM" {if  $vendor_country=="CM"}selected{/if}>Cameroon</option>
            				<option value="CA" {if  $vendor_country=="CA"}selected{/if}>Canada</option>
            				<option value="CT" {if  $vendor_country=="CT"}selected{/if}>Canton and Enderbury Islands</option>
            				<option value="CV" {if  $vendor_country=="CV"}selected{/if}>Cape Verde Islands</option>
            				<option value="KY" {if  $vendor_country=="KY"}selected{/if}>Cayman Islands</option>
            				<option value="CF" {if  $vendor_country=="CF"}selected{/if}>Central African Republic</option>
            				<option value="TD" {if  $vendor_country=="TD"}selected{/if}>Chad</option>
            				<option value="CL" {if  $vendor_country=="CL"}selected{/if}>Chile</option>
            				<option value="CN" {if  $vendor_country=="CN"}selected{/if}>China, People's Republic of</option>
            				<option value="CX" {if  $vendor_country=="CX"}selected{/if}>Christmas Island</option>
            				<option value="CC" {if  $vendor_country=="CC"}selected{/if}>Cocos (Keeling) Islands</option>
            				<option value="CO" {if  $vendor_country=="CO"}selected{/if}>Colombia</option>
            				<option value="KM" {if  $vendor_country=="KM"}selected{/if}>Comoro Islands</option>
            				<option value="CG" {if  $vendor_country=="CG"}selected{/if}>Congo</option>
            				<option value="CK" {if  $vendor_country=="CK"}selected{/if}>Cook Islands</option>
            				<option value="CR" {if  $vendor_country=="CR"}selected{/if}>Costa Rica</option>
            				<option value="HR" {if  $vendor_country=="HR"}selected{/if}>Croatia</option>
            				<option value="CU" {if  $vendor_country=="CU"}selected{/if}>Cuba</option>
            				<option value="CY" {if  $vendor_country=="CY"}selected{/if}>Cyprus</option>
            				<option value="CZ" {if  $vendor_country=="CZ"}selected{/if}>Czech Republic</option>
            				<option value="DY" {if  $vendor_country=="DY"}selected{/if}>Dahomey</option>
            				<option value="DK" {if  $vendor_country=="DK"}selected{/if}>Denmark</option>
            				<option value="DJ" {if  $vendor_country=="DJ"}selected{/if}>Djibouti</option>
            				<option value="DM" {if  $vendor_country=="DM"}selected{/if}>Dominica</option>
            				<option value="DO" {if  $vendor_country=="DO"}selected{/if}>Dominican Republic</option>
            				<option value="NQ" {if  $vendor_country=="NQ"}selected{/if}>Dronning Maud Land</option>
            				<option value="EC" {if  $vendor_country=="EC"}selected{/if}>Ecuador</option>
            				<option value="EG" {if  $vendor_country=="EG"}selected{/if}>Egypt</option>
            				<option value="SV" {if  $vendor_country=="SV"}selected{/if}>El Salvador</option>
            				<option value="GQ" {if  $vendor_country=="GQ"}selected{/if}>Equitorial Guinea</option>
            				<option value="ER" {if  $vendor_country=="ER"}selected{/if}>Eritrea</option>
            				<option value="EE" {if  $vendor_country=="EE"}selected{/if}>Estonia</option>
            				<option value="ET" {if  $vendor_country=="ET"}selected{/if}>Ethiopia</option>
            				<option value="FO" {if  $vendor_country=="FO"}selected{/if}>Faeroe Islands</option>
            				<option value="FK" {if  $vendor_country=="FK"}selected{/if}>Falkland Islands (Malvinas)</option>
            				<option value="FJ" {if  $vendor_country=="FJ"}selected{/if}>Fiji</option>
            				<option value="FI" {if  $vendor_country=="FI"}selected{/if}>Finland</option>
            				<option value="FR" {if  $vendor_country=="FR"}selected{/if}>France</option>
            				<option value="GF" {if  $vendor_country=="GF"}selected{/if}>French Guiana</option>
            				<option value="PF" {if  $vendor_country=="PF"}selected{/if}>French Polynesia</option>
            				<option value="FQ" {if  $vendor_country=="FQ"}selected{/if}>French South and Antartic Territory</option>
            				<option value="AI" {if  $vendor_country=="AI"}selected{/if}>French Afars and Issas</option>
            				<option value="GA" {if  $vendor_country=="GA"}selected{/if}>Gabon</option>
            				<option value="GM" {if  $vendor_country=="GM"}selected{/if}>Gambia</option>
            				<option value="GE" {if  $vendor_country=="GE"}selected{/if}>Georgia</option>
            				<option value="DE" {if  $vendor_country=="DE"}selected{/if}>Germany</option>
            				<option value="GH" {if  $vendor_country=="GH"}selected{/if}>Ghana</option>
            				<option value="GI" {if  $vendor_country=="GI"}selected{/if}>Gibraltar</option>
            				<option value="GR" {if  $vendor_country=="GR"}selected{/if}>Greece</option>
            				<option value="GL" {if  $vendor_country=="GL"}selected{/if}>Greenland</option>
            				<option value="GD" {if  $vendor_country=="GD"}selected{/if}>Grenada</option>
            				<option value="GP" {if  $vendor_country=="GP"}selected{/if}>Guadeloupe</option>
            				<option value="GU" {if  $vendor_country=="GU"}selected{/if}>Guam</option>
            				<option value="GT" {if  $vendor_country=="GT"}selected{/if}>Guatemala</option>
            				<option value="GN" {if  $vendor_country=="GN"}selected{/if}>Guinea</option>
            				<option value="GW" {if  $vendor_country=="GW"}selected{/if}>Guinea Bissaw</option>
            				<option value="GY" {if  $vendor_country=="GY"}selected{/if}>Guyana</option>
            				<option value="HT" {if  $vendor_country=="HT"}selected{/if}>Haiti</option>
            				<option value="HM" {if  $vendor_country=="HM"}selected{/if}>Heard and McDonald Islands</option>
            				<option value="HN" {if  $vendor_country=="HN"}selected{/if}>Honduras</option>
            				<option value="HK" {if  $vendor_country=="HK"}selected{/if}>Hong Kong</option>
            				<option value="HU" {if  $vendor_country=="HU"}selected{/if}>Hungary</option>
            				<option value="IS" {if  $vendor_country=="IS"}selected{/if}>Iceland</option>
            				<option value="IN" {if  $vendor_country=="IN"}selected{/if}>India</option>
            				<option value="ID" {if  $vendor_country=="ID"}selected{/if}>Indonesia</option>
            				<option value="IR" {if  $vendor_country=="IR"}selected{/if}>Iran</option>
            				<option value="IQ" {if  $vendor_country=="IQ"}selected{/if}>Iraq</option>
            				<option value="IE" {if  $vendor_country=="IE"}selected{/if}>Ireland</option>
            				<option value="IL" {if  $vendor_country=="IL"}selected{/if}>Israel</option>
            				<option value="IT" {if  $vendor_country=="IT"}selected{/if}>Italy</option>
            				<option value="CI" {if  $vendor_country=="CI"}selected{/if}>Ivory Coast</option>
            				<option value="JM" {if  $vendor_country=="JM"}selected{/if}>Jamaica</option>
            				<option value="JP" {if  $vendor_country=="JP"}selected{/if}>Japan</option>
            				<option value="JT" {if  $vendor_country=="JT"}selected{/if}>Johnston Island</option>
            				<option value="JO" {if  $vendor_country=="JO"}selected{/if}>Jordan</option>
            				<option value="KZ" {if  $vendor_country=="KZ"}selected{/if}>Kazakhstan</option>
            				<option value="KE" {if  $vendor_country=="KE"}selected{/if}>Kenya</option>
            				<option value="KP" {if  $vendor_country=="KP"}selected{/if}>Korea,Democratic People's</option>
            				<option value="KR" {if  $vendor_country=="KR"}selected{/if}>Korea,Republic</option>
            				<option value="KW" {if  $vendor_country=="KW"}selected{/if}>Kuwait</option>
            				<option value="KG" {if  $vendor_country=="KG"}selected{/if}>Kyrgystan</option>
            				<option value="LA" {if  $vendor_country=="LA"}selected{/if}>Laos</option>
            				<option value="LV" {if  $vendor_country=="LV"}selected{/if}>Latvia</option>
            				<option value="LB" {if  $vendor_country=="LB"}selected{/if}>Lebanon</option>
            				<option value="LS" {if  $vendor_country=="LS"}selected{/if}>Lesotho</option>
            				<option value="LR" {if  $vendor_country=="LR"}selected{/if}>Liberia</option>
            				<option value="LY" {if  $vendor_country=="LY"}selected{/if}>Libya</option>
            				<option value="LI" {if  $vendor_country=="LI"}selected{/if}>Liechtenstein</option>
            				<option value="LT" {if  $vendor_country=="LT"}selected{/if}>Lithuania</option>
            				<option value="LU" {if  $vendor_country=="LU"}selected{/if}>Luxembourg</option>
            				<option value="MO" {if  $vendor_country=="MO"}selected{/if}>Macao</option>
            				<option value="MG" {if  $vendor_country=="MG"}selected{/if}>Madagascar</option>
            				<option value="MW" {if  $vendor_country=="MW"}selected{/if}>Malawi</option>
            				<option value="MY" {if  $vendor_country=="MY"}selected{/if}>Malaysia</option>
            				<option value="MV" {if  $vendor_country=="MV"}selected{/if}>Maldives</option>
            				<option value="ML" {if  $vendor_country=="ML"}selected{/if}>Mali</option>
            				<option value="MT" {if  $vendor_country=="MT"}selected{/if}>Malta</option>
            				<option value="MH" {if  $vendor_country=="MH"}selected{/if}>Marshall Islands</option>
            				<option value="MQ" {if  $vendor_country=="MQ"}selected{/if}>Martinique</option>
            				<option value="MR" {if  $vendor_country=="MR"}selected{/if}>Mauritania</option>
            				<option value="MU" {if  $vendor_country=="MU"}selected{/if}>Mauritius</option>
            				<option value="MX" {if  $vendor_country=="MX"}selected{/if}>Mexico</option>
            				<option value="FM" {if  $vendor_country=="FM"}selected{/if}>Micronesia</option>
            				<option value="MI" {if  $vendor_country=="MI"}selected{/if}>Midway Islands</option>
            				<option value="MD" {if  $vendor_country=="MD"}selected{/if}>Moldova</option>
            				<option value="MC" {if  $vendor_country=="MC"}selected{/if}>Monaco</option>
            				<option value="MN" {if  $vendor_country=="MN"}selected{/if}>Mongolia</option>
            				<option value="MS" {if  $vendor_country=="MS"}selected{/if}>Montserrat</option>
            				<option value="MA" {if  $vendor_country=="MA"}selected{/if}>Morocco</option>
            				<option value="MZ" {if  $vendor_country=="MZ"}selected{/if}>Mozambique</option>
            				<option value="NA" {if  $vendor_country=="NA"}selected{/if}>Namibia</option>
            				<option value="NR" {if  $vendor_country=="NR"}selected{/if}>Nauru</option>
            				<option value="NP" {if  $vendor_country=="NP"}selected{/if}>Nepal</option>
            				<option value="NL" {if  $vendor_country=="NL"}selected{/if}>Netherlands</option>
            				<option value="AN" {if  $vendor_country=="AN"}selected{/if}>Netherlands Antilles</option>
            				<option value="NT" {if  $vendor_country=="NT"}selected{/if}>Neutral Zone</option>
            				<option value="NC" {if  $vendor_country=="NC"}selected{/if}>New Caledonia</option>
            				<option value="NH" {if  $vendor_country=="NH"}selected{/if}>New Hebrides</option>
            				<option value="NZ" {if  $vendor_country=="NZ"}selected{/if}>New Zealand</option>
            				<option value="NI" {if  $vendor_country=="NI"}selected{/if}>Nicaragua</option>
            				<option value="NE" {if  $vendor_country=="NE"}selected{/if}>Niger</option>
            				<option value="NG" {if  $vendor_country=="NG"}selected{/if}>Nigeria</option>
            				<option value="NU" {if  $vendor_country=="NU"}selected{/if}>Niue Island</option>
            				<option value="NF" {if  $vendor_country=="NF"}selected{/if}>Norfolk Island</option>
            				<option value="NO" {if  $vendor_country=="NO"}selected{/if}>Norway</option>
            				<option value="OM" {if  $vendor_country=="OM"}selected{/if}>Oman</option>
            				<option value="PC" {if  $vendor_country=="PC"}selected{/if}>Pacific Island Trust Territory</option>
            				<option value="PK" {if  $vendor_country=="PK"}selected{/if}>Pakistan</option>
            				<option value="PW" {if  $vendor_country=="PW"}selected{/if}>Palau</option>
            				<option value="PA" {if  $vendor_country=="PA"}selected{/if}>Panama</option>
            				<option value="PZ" {if  $vendor_country=="PZ"}selected{/if}>Panama Canal Zone</option>
            				<option value="PG" {if  $vendor_country=="PG"}selected{/if}>Papua New Guinea</option>
            				<option value="PY" {if  $vendor_country=="PY"}selected{/if}>Paraguay</option>
            				<option value="PE" {if  $vendor_country=="PE"}selected{/if}>Peru</option>
            				<option value="PH" {if  $vendor_country=="PH"}selected{/if}>Philippines</option>
            				<option value="PN" {if  $vendor_country=="PN"}selected{/if}>Pitcairn Islands</option>
            				<option value="PL" {if  $vendor_country=="PL"}selected{/if}>Poland</option>
            				<option value="PT" {if  $vendor_country=="PT"}selected{/if}>Portugal</option>
            				<option value="TP" {if  $vendor_country=="TP"}selected{/if}>Portuguese Timor</option>
            				<option value="PR" {if  $vendor_country=="PR"}selected{/if}>Puerto Rico</option>
            				<option value="QA" {if  $vendor_country=="QA"}selected{/if}>Qatar</option>
            				<option value="RE" {if  $vendor_country=="RE"}selected{/if}>Reunion Island</option>
            				<option value="RO" {if  $vendor_country=="RO"}selected{/if}>Romania</option>
            				<option value="RU" {if  $vendor_country=="RU"}selected{/if}>Russia</option>
            				<option value="RW" {if  $vendor_country=="RW"}selected{/if}>Rwanda</option>
            				<option value="SH" {if  $vendor_country=="SH"}selected{/if}>St. Helena</option>
            				<option value="KN" {if  $vendor_country=="KN"}selected{/if}>St. Kitts-Nevis-Anguilla</option>
            				<option value="LC" {if  $vendor_country=="LC"}selected{/if}>St. Lucia</option>
            				<option value="PM" {if  $vendor_country=="PM"}selected{/if}>St. Pierre and Miquelon</option>
            				<option value="VC" {if  $vendor_country=="VC"}selected{/if}>St. Vincent</option>
            				<option value="SM" {if  $vendor_country=="SM"}selected{/if}>San Marino</option>
            				<option value="ST" {if  $vendor_country=="ST"}selected{/if}>Sao Tome and Principe</option>
            				<option value="SA" {if  $vendor_country=="SA"}selected{/if}>Saudi Arabia</option>
            				<option value="SN" {if  $vendor_country=="SN"}selected{/if}>Senegal</option>
            				<option value="SC" {if  $vendor_country=="SC"}selected{/if}>Seychelles</option>
            				<option value="SL" {if  $vendor_country=="SL"}selected{/if}>Sierra Leone</option>
            				<option value="SG" {if  $vendor_country=="SG"}selected{/if}>Singapore</option>
            				<option value="SK" {if  $vendor_country=="SK"}selected{/if}>Slovakia</option>
            				<option value="SI" {if  $vendor_country=="SI"}selected{/if}>Slovenia</option>
            				<option value="SO" {if  $vendor_country=="SO"}selected{/if}>Somalia</option>
            				<option value="ZA" {if  $vendor_country=="ZA"}selected{/if}>South Africa, Republic of</option>
            				<option value="ES" {if  $vendor_country=="ES"}selected{/if}>Spain</option>
            				<option value="EH" {if  $vendor_country=="EH"}selected{/if}>Spanish Sahara</option>
            				<option value="LK" {if  $vendor_country=="LK"}selected{/if}>Sri Lanka</option>
            				<option value="SD" {if  $vendor_country=="SD"}selected{/if}>Sudan</option>
            				<option value="SR" {if  $vendor_country=="SR"}selected{/if}>Suriname</option>
            				<option value="SJ" {if  $vendor_country=="SJ"}selected{/if}>Svalbard and Jan Mayen Islands</option>
            				<option value="SZ" {if  $vendor_country=="SZ"}selected{/if}>Swaziland</option>
            				<option value="SE" {if  $vendor_country=="SE"}selected{/if}>Sweden</option>
            				<option value="CH" {if  $vendor_country=="CH"}selected{/if}>Switzerland</option>
            				<option value="SY" {if  $vendor_country=="SY"}selected{/if}>Syria</option>
            				<option value="TW" {if  $vendor_country=="TW"}selected{/if}>Taiwan</option>
            				<option value="TJ" {if  $vendor_country=="TJ"}selected{/if}>Tajikistan</option>
            				<option value="TZ" {if  $vendor_country=="TZ"}selected{/if}>Tanzania</option>
            				<option value="TH" {if  $vendor_country=="TH"}selected{/if}>Thailand</option>
            				<option value="TG" {if  $vendor_country=="TG"}selected{/if}>Togo</option>
            				<option value="TK" {if  $vendor_country=="TK"}selected{/if}>Tokelau Island</option>
            				<option value="TO" {if  $vendor_country=="TO"}selected{/if}>Tonga</option>
            				<option value="TT" {if  $vendor_country=="TT"}selected{/if}>Trinidad and Tobago</option>
            				<option value="TN" {if  $vendor_country=="TN"}selected{/if}>Tunisia</option>
            				<option value="TR" {if  $vendor_country=="AF"}selected{/if}>Turkey</option>
            				<option value="TM" {if  $vendor_country=="TM"}selected{/if}>Turkmenistan</option>
            				<option value="TC" {if  $vendor_country=="TC"}selected{/if}>Turks and Caicos Islands</option>
            				<option value="TV" {if  $vendor_country=="TV"}selected{/if}>Tuvalu</option>
            				<option value="UG" {if  $vendor_country=="UG"}selected{/if}>Uganda</option>
            				<option value="UA" {if  $vendor_country=="UA"}selected{/if}>Ukraine</option>
            				<option value="AE" {if  $vendor_country=="AE"}selected{/if}>United Arab Emirates</option>
            				<option value="GB" {if  $vendor_country=="GB"}selected{/if}>United Kingdom</option>
            				<option value="US" {if  $vendor_country=="US"}selected{/if}>United States</option>
            				<option value="PU" {if  $vendor_country=="PU"}selected{/if}>U.S. Miscellaneous Pacific Islands</option>
            				<option value="VI" {if  $vendor_country=="VI"}selected{/if}>U.S. Virgin Islands</option>
            				<option value="HV" {if  $vendor_country=="HV"}selected{/if}>Upper Volta</option>
            				<option value="UY" {if  $vendor_country=="UY"}selected{/if}>Uruguay</option>
            				<option value="UZ" {if  $vendor_country=="UZ"}selected{/if}>Uzbekistan</option>
            				<option value="VU" {if  $vendor_country=="VU"}selected{/if}>Vanuatu</option>
            				<option value="VA" {if  $vendor_country=="VA"}selected{/if}>Vatican City State (The Holy See)</option>
            				<option value="VE" {if  $vendor_country=="VE"}selected{/if}>Venezuela</option>
            				<option value="VN" {if  $vendor_country=="VN"}selected{/if}>Vietnam</option>
            				<option value="WK" {if  $vendor_country=="WK"}selected{/if}>Wake Island</option>
            				<option value="WF" {if  $vendor_country=="WF"}selected{/if}>Wallis and Futuna Islands</option>
            				<option value="WS" {if  $vendor_country=="WS"}selected{/if}>Western Samoa</option>
            				<option value="YE" {if  $vendor_country=="YE"}selected{/if}>Yemen</option>
            				<option value="YD" {if  $vendor_country=="YD"}selected{/if}>Yemen, Democratic</option>
            				<option value="YU" {if  $vendor_country=="YU"}selected{/if}>Yugoslavia</option>
            				<option value="ZR" {if  $vendor_country=="ZR"}selected{/if}>Zaire</option>
            				<option value="ZM" {if  $vendor_country=="ZM"}selected{/if}>Zambia</option>
            				<option value="ZW" {if  $vendor_country=="ZW"}selected{/if}>Zimbabwe</option>
				        </select>
                  </td>
                </tr>
                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;State</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="vendor_state"  type="text" size="20" class="text"  value="{$vendor_state}"></td>
                </tr>
                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Description</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <textarea name="vendor_description"  rows="9" cols="30">{$vendor_description}</textarea></td>
                </tr>

                <input name="vendor_id"  type="hidden" value="{$vendor_id}">

                <tr>
				  <td class="btn_bg" colSpan="1">
                  <td class="btn_bg" colSpan="1">
                  <input type="image" src="images/edit_vendor.gif" name="add"></td>
                </tr>
              </form>
            </table>

            {else}
            <table borderColor="#ffffff" cellSpacing="1" valign="TOP" cellPadding="0" width="100%" border="0">
                <tr>
                  <td class="txt" align="center" valign="TOP" width="20%" height="23">
                  <font color="RED">{$mes}</font>
                  </td>
                </tr>
             </table>
            {/if}
            </td>
          </tr>
          <!--<tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="4" alt src="images/blank.gif" width="1"></td>
          </tr>-->
          </table>
        </td>
      </tr>
    </table>


<!-- ########################      End Here ##########################-->

{include file="foot.tpl"}
{literal}
<script language="Javascript">
function phonecheck(str)
{
if (str =="")
{
return true;
}
else
{
var a;
a=str.length;
if(a < 10)
return false;
else
return true;
}
}
function checkEmail(str)
	{
		if(str=="")
		 testResults=false;
		else
		{ 
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		if( filter.test(str) )
			testResults=true;
		else
			testResults=false;
		}	
	 return(testResults);
	}
function validate()
{
 if(document.f1.vendor_name.value=="")
 {
  alert("Please Enter Vendor Name !");
  document.f1.vendor_name.focus();
  return false;
 }

 if(document.f1.vendor_address.value=="")
 {
  alert("Please Enter Address !");
  document.f1.vendor_address.focus();
  return false;
 }
/*
 if(document.f1.vendor_email.value=="")
 {
  alert("Please Enter Email !");
  document.f1.vendor_email.focus();
  return false;
 }

 if(!checkEmail(document.f1.vendor_email.value))
{
 alert("Email address is blank or it is invalid");
 document.f1.vendor_email.select();
 return false;
 }
*/
 if(document.f1.vendor_phone.value=="")
 {
  alert("Please Enter Phone Number !");
  document.f1.vendor_phone.focus();
  return false;
 }
if(!phonecheck(document.f1.vendor_phone.value))
 {
  alert("Please enter valid phone number");
  document.f1.vendor_phone.focus();
  return false;
 }

 /*
 if(document.f1.vendor_zip.value=="" ||isNaN(document.f1.vendor_zip.value) )
 {
  alert("Please enter Zip Code or it is invalid");
  document.f1.vendor_zip.focus();
  return false;
 }
 if(!checkzip(document.f1.vendor_zip.value))
 {
   alert("Zip Code should be 5 digit minimum");
   document.f1.vendor_country.focus();
    return false;
}
 if(document.f1.vendor_country.value=="")
 {
  alert("Please select Country !");
  document.f1.vendor_country.focus();
  return false;
 }

 if(document.f1.vendor_state.value=="")
 {
  alert("Please Enter State !");
  document.f1.vendor_state.focus();
  return false;
 }
 */
 return confirm("Are you sure? The Vendor will be added!");
}
</script>
{/literal}
Return current item: CoreAsset