HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/templates/traEditAddress.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: Credebt Exchange - Admin Panel ::</title>
<link rel="stylesheet" href="<AJDF:output>$smarty.session.base_url</AJDF:output>/css/exchange.css" type="text/css" />
<link rel="shortcut icon" href="<AJDF:output>$smarty.session.base_url</AJDF:output>/images/logo_favicon.ico"  />
<script type="text/javascript" src="<AJDF:output>$smarty.session.admin_url</AJDF:output>js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<AJDF:output>$smarty.session.admin_url</AJDF:output>js/aj_admin_home.js"></script>
<script type="text/javascript" src="<AJDF:output>$smarty.session.admin_url</AJDF:output>js/tooltip.js"></script>
<script type="text/javascript" src="<AJDF:output>$smarty.session.admin_url</AJDF:output>js/pngfix.js"></script>
<script type="text/javascript" src="<AJDF:output>$smarty.session.admin_url</AJDF:output>js/row_color.js"></script>
<script type="text/javascript">
   $(document).ready(function(){ 
        $(document).pngFix();  
    }); 
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td align="left" width="2%" valign="top" class="inves_top_bg">&nbsp;</td>
    <td align="left" width="96%" valign="top" class="inves_top_bg"><table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td><span>Edit <AJDF:output>$smarty.get.title</AJDF:output></span></td>
            <td valign="middle" align="right"></td>
          </tr>
        </tbody>
      </table></td>
    <td class="inves_top_bg" align="left" width="2%" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" valign="top"  colspan="3"><form action="?do=saveorgaddress&id=<AJDF:output>$smarty.get.id</AJDF:output>&address=<AJDF:output>$smarty.get.address</AJDF:output>&title=<AJDF:output>$smarty.get.title</AJDF:output>" method="post" name="saveOrg">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left" valign="top" class="about_c_1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr class="very_lite_gray">
                        <td align="left" valign="top">&nbsp;</td>
                      </tr>
                      <tr class="very_lite_gray">
                        <td align="left" valign="top" class="txt_12_red">&nbsp;&nbsp;<b>Please Note:</b> All fields marked with * require an input </td>
                      </tr>
                      <tr class="very_lite_gray">
                        <td align="left" valign="top">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
                <tr class="very_lite_gray">
                  <td align="center" valign="top" class="about_c_1"><table cellspacing="2" cellpadding="2" border="0" width="100%">
                                      <tbody><tr>
                                        <td align="center" valign="top" class="txt_11_red"> * </td>
                                        <td align="left" width="37%" valign="top">Address Line 1 :</td>
                                        <td align="left" width="53%" valign="top" ><input type="text" class="text_b" value="<AJDF:output>$values.p_orgcaddr1</AJDF:output>" name="p_orgcaddr1"  id="p_orgcaddr1"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgcaddr1</AJDF:output></span></td>
                                        <td align="left" width="7%" valign="top" >&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red">&nbsp;  </td>
                                        <td align="left" width="37%" valign="top">Address Line 2 :</td>
                                        <td align="left" width="53%" valign="top" ><input type="text" class="text_b" value="<AJDF:output>$values.p_orgc_addr2</AJDF:output>" name="p_orgc_addr2" id="p_orgc_addr2"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_addr2</AJDF:output></span></td>
                                        <td align="left" valign="top" >&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red"> * </td>
                                        <td align="left" width="37%" valign="top">City/Town :</td>
                                        <td align="left" width="53%" valign="top" ><input type="text" class="text_b" value="<AJDF:output>$values.p_orgc_city</AJDF:output>" name="p_orgc_city" id="p_orgc_city"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_city</AJDF:output></span></td>
                                        <td align="left" valign="top" >&nbsp;</td>
                                      </tr>
					<tr>
                                        <td align="center" valign="top" class="txt_11_red">*</td>
                                        <td align="left" width="37%" valign="top"> Post code :</td>
                                        <td align="left" width="53%" valign="top" >
						  <input type="text" class="text_ph_code" size="8" name="p_orgc_pc" id="p_orgc_pc" value="<AJDF:output>$values.p_orgc_pc</AJDF:output>"> <a href="javascript:void(0);" class="under" title="<AJDF:output>$help.3.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_pc</AJDF:output></span>
					</td>
                                        <td align="left" valign="top"></td>
                                      </tr>
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red">&nbsp;  </td>
                                        <td align="left" width="37%" valign="top">Area/County :</td>
                                        <td align="left" width="53%" valign="top" id="p_dropState" ><input type="text" class="text_b" value="<AJDF:output>$values.p_orgc_state</AJDF:output>" name="p_orgc_state" id="p_orgc_state">
						<br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_state</AJDF:output></span></td>
                                        <td align="left" valign="top" >&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red"> * </td>
                                        <td align="left" width="37%" valign="top">Country :</td>
                                        <td align="left" width="53%" valign="top" >
					
						<select id="p_orgc_country" class="cmb_bx1" name="p_orgc_country">
						<option value="">Select Country</option>
						<AJDF:output>foreach from=$country key=myId item=i</AJDF:output>
						<option value="<AJDF:output>$i.country_id</AJDF:output>" <AJDF:output>if $values.p_orgc_country == $i.country_id </AJDF:output> selected="selected"<AJDF:output>/if</AJDF:output>> <AJDF:output>$i.country_name</AJDF:output></option>
						<AJDF:output>/foreach</AJDF:output>
						</select>
						<br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_country</AJDF:output></span></td>
                                        <td align="left" valign="top" >&nbsp;</td>
                                      </tr>
                                      
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red"> * </td>
                                        <td align="left" width="37%" valign="top">Phone Number  :</td>
                                        <td align="left" width="53%" valign="top" colspan="2" ><table cellspacing="3" cellpadding="0" border="0" width="100%">
                                            <tbody><tr>
                                              <td align="left" width="12%" valign="top"><input type="text" class="text_c_code" maxlength="5" size="5" name="p_orgc_ph_country" id="p_orgc_ph_country" value="<AJDF:output> if $values.p_orgc_ph_country == ''</AJDF:output>00353<AJDF:output>else</AJDF:output><AJDF:output>$values.p_orgc_ph_country</AJDF:output><AJDF:output>/if</AJDF:output>"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_ph_country</AJDF:output></span>
                                               </td>
                                              <td align="left" width="9%" valign="top"><input type="text" class="text_area_code" maxlength="3" size="3" name="p_orgc_ph_area" id="p_orgc_ph_area" value="<AJDF:output>$values.p_orgc_ph_area</AJDF:output>"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_ph_area</AJDF:output></span>
                                               </td>
                                              <td align="left" width="79%" valign="top"><input type="text" class="text_ph_code" maxlength="8" size="8" name="p_orgc_ph_pn" id="p_orgc_ph_pn" value="<AJDF:output>$values.p_orgc_ph_pn</AJDF:output>">
                                                <br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_ph_pn</AJDF:output></span>
                                           </td>
                                            </tr>
                                            <tr>
                                              <td align="left" valign="top" class="txt_11_cute">Country</td>
                                              <td align="left" valign="top" class="txt_11_cute">Area</td>
                                              <td align="left" valign="top" class="txt_11_cute">Phone Number</td>
                                            </tr>
                                          </tbody></table></td>
                            
                                      </tr>
                                       
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red">&nbsp;  </td>
                                        <td align="left" width="37%" valign="top">Fax Number  :</td>
                                        <td align="left" width="53%" valign="top" colspan="2" ><table cellspacing="3" cellpadding="0" border="0" width="100%">
                                            <tbody><tr>
                                              <td align="left" width="12%" valign="top"><input type="text" class="text_c_code" maxlength="5" size="5" name="p_orgc_fn_country" id="p_orgc_fn_country" value="<AJDF:output> if $values.p_orgc_fn_country == ''</AJDF:output>00353<AJDF:output>else</AJDF:output><AJDF:output>$values.p_orgc_fn_country</AJDF:output><AJDF:output>/if</AJDF:output>"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_fn_country</AJDF:output></span>
                                               </td>
                                              <td align="left" width="9%" valign="top"><input type="text" class="text_area_code" maxlength="3" size="3" name="p_orgc_fn_area" id="p_orgc_fn_area" value="<AJDF:output>$values.p_orgc_fn_area</AJDF:output>"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_fn_area</AJDF:output></span>
                                               </td>
                                              <td align="left" width="79%" valign="top"><input type="text" class="text_ph_code" maxlength="8" size="8" name="p_orgc_fn_pn" id="p_orgc_fn_pn" value="<AJDF:output>$values.p_orgc_fn_pn</AJDF:output>">
                                                <br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_fn_pn</AJDF:output></span>
                                           </td>
                                            </tr>
                                            <tr>
                                              <td align="left" valign="top" class="txt_11_cute">Country</td>
                                              <td align="left" valign="top" class="txt_11_cute">Area</td>
                                              <td align="left" valign="top" class="txt_11_cute">Phone Number</td>
                                            </tr>
                                          </tbody></table></td>
                          
                                      </tr>
                                      <tr>
                                        <td align="center" valign="top" class="txt_11_red"></td>
                                        <td align="left" width="37%" valign="top">Email Address :</td>
                                        <td align="left" width="53%" valign="top" ><input type="text" class="text_b" value="<AJDF:output>$values.p_orgc_email</AJDF:output>" name="p_orgc_email" id="p_orgc_email"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.p_orgc_email</AJDF:output></span></td>
                                        <td align="left" valign="top" >&nbsp;</td>
                                      </tr>
                                    </tbody></table></td>
                </tr>
                <tr>
                  <td align="center" valign="top" class="about_c_1"></td>
                </tr>
                <tr>
                  <td align="center" valign="top" class="dark_gray_bg"><input type="hidden" value="<AJDF:output>$values.ticker_name</AJDF:output>" name="ticker_name" size="10" maxlength="10" class="text_10_code"/>
                    <input name="submit" value="Save &amp; Continue " class="mem_bttn" type="submit">
                    </a></td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table></td>
  </tr>
</table>
<script>
/*    $(document).ready(function(){
        var refreshId = setInterval(function(){
		$.post(  
			"?do=admincache",  
			{id: 5},  
			function(responseText){  
				var request = responseText;
			},  
			"html"  
		);
       }, 10000);
    });
*/
</script>
<script type="text/javascript">
$(function() {

	$("#org_jurorg").change(function(){  
		$.post(  
		"<AJDF:output>$base</AJDF:output>?do=getcurrencybycountry",  
		{id: $("#org_jurorg").val()},  
		function(responseText){  
			$("#dropCurrency").html(responseText);  
		},  
		"html"  
		);  
	}); 
	
	<AJDF:output>if $values.org_jurorg !=''</AJDF:output>
		//Durin validation: Change Nace by Nace Group Id 
		$.post(  
			"<AJDF:output>$base</AJDF:output>?do=getcurrencybycountry",  
			{id: <AJDF:output>$values.org_jurorg</AJDF:output>},  
			function(responseText){  
				$("#dropCurrency").html(responseText);  
			},  
			"html"  
		);
	<AJDF:output>/if</AJDF:output>

	$('#siccat').change(function() {
		$.ajax({
			type: "POST",
			url: "<AJDF:output>$base</AJDF:output>?do=getnacecat",
			data: "groupid="+document.getElementById("siccat").value,
			success: function(msg){
			
			document.getElementById("sicgpsapn").innerHTML=msg;
			}
		});
	});

	//Change State by Country
	$("#org_bentitytype").change(function(){  
		//alert($("#org_bentitytype").val());
		// 12 Wholly Owned,34 Majority Owned,35  Minority Owned,36 Branch Office,39 Authorised Agent
		var str = $("#org_bentitytype").val();
		if( str == 12 || str  == 34 || str == 35 || str == 36 || str == 37 || str == 38 || str == 39){ 
		
			$("#dropCompany").show();
		}else{
			$("#dropCompany").hide();
			$("#org_pcdetail").val('');
			
		}
	}); 
	<AJDF:output>if $values.org_bentitytype !=''</AJDF:output>
	var str = <AJDF:output>$values.org_bentitytype</AJDF:output>;
	if( str == 12 || str  == 34 || str == 35 || str == 36 || str == 37 || str == 38 || str == 39){ 
		//alert($("#org_bentitytype").val());
		$("#dropCompany").show();
	}else{
		$("#dropCompany").hide();
		$("#org_pcdetail").val('');
	}
	<AJDF:output>else</AJDF:output>
		$("#dropCompany").hide();
		$("#org_pcdetail").val('');
	<AJDF:output>/if</AJDF:output>

});
</script>
<AJDF:output>php</AJDF:output>
$value=$this->get_template_vars('values');
$base=$this->get_template_vars('base');
if($value['siccat']!='')
{
	echo '<script type="text/javascript">
 $.ajax({
   type: "POST",';
if($value['sicgp'] !='')
   echo 'url: "'.$base.'?do=getnacecat&sub="+'.$value['sicgp'].',';
else
	echo 'url: "'.$base.'?do=getnacecat",';
   echo 'data: "groupid="+'.$value['siccat'].',
   success: function(msg){
document.getElementById("sicgpsapn").innerHTML=msg;
   }
 });


</script>';
}
<AJDF:output>/php</AJDF:output>
<style>
.text_seven{
	width:55px !important;
}
.very_lite_gray {
    background: none repeat scroll 0 0 #EDEDED;
    border-bottom: 2px solid #FFFFFF;
    border-top: 2px solid #FFFFFF;
}
.about_c_1 {
    border-bottom: 1px solid #FFFFFF;
}
.dark_gray_bg {
    background: none repeat scroll 0 0 #808080;
    padding: 5px 0;
}
.inves_top_bg {
    background: none repeat scroll 0 0 #555555;
    padding: 5px 0;
}
.inves_top_bg span {
    color: #FFFFFF;
    font-weight: bold;
    line-height: 28px;
    padding-left: 10px;
}
</style>
</body>
</html>