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/exchange2/exchange/templates/originator_edit_profile.html
<AJDF:output>include file="header.html"</AJDF:output>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr><tr>
        <td class="login_bg" align="left" valign="middle">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
        		<tr>
                      	<td width="" align="left" valign="middle" class="login_bg_t">Exchange Trade Centre | Edit Profile
			</td>
            <td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <AJDF:output>$smarty.session.user.org_ref_id</AJDF:output>  </td>
                      	<td width="" align="right" valign="middle" class="txt_11"><AJDF:output>include file='originator_top_dashboard_links.html'</AJDF:output></td>
                    	</tr>
                  </table>
	</td>
        </tr>
        <tr>
        <td align="center" valign="top" class="about_c">
		<table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td width="18%" align="left" valign="top"><AJDF:output>include file='left_sidebar.html'</AJDF:output></td>
                        <td width="82%" align="right" valign="top">
			<form action="index.php?do=saveprofile" method="post">
			   <table width="100%" cellspacing="0" cellpadding="0" border="0">
			      <tbody>
                              <tr>
				<td valign="top" align="left" class="hdr_center">
				     <table width="100%" cellspacing="0" cellpadding="0" border="0" id="tool">
					<tbody><tr>
					<td valign="top" align="left" class="inves_top1">Edit Profile</td>
					<td valign="top" align="right" class="inves_top1">&nbsp;</td>
					</tr>
					<tr><td colspan="2">
						<AJDF:output>if !empty($result)</AJDF:output>
						<div class="success-msgbox"><AJDF:output>$result</AJDF:output></div>
						<AJDF:output>/if</AJDF:output>
					</td></tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;&nbsp;User Name :</td>
					<td width="71%" valign="top" align="left"><AJDF:output>$profile.username</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Work Email :</td>
					<td width="71%" valign="top" align="left"> <input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.address_email</AJDF:output>" name="email">
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.5.content</AJDF:output>">(?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.email</AJDF:output></td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> First Name :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.first_name</AJDF:output>" name="f_name"> 
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.6.content</AJDF:output>">(?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.f_name</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Last Name :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.last_name</AJDF:output>" name="l_name">
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.7.content</AJDF:output>"> (?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.l_name</AJDF:output></td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Job Title :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.job_title</AJDF:output>" name="job">
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.9.content</AJDF:output>"> (?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.job</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Organisation Name :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.organization_name</AJDF:output>" name="org_name"> 
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.10.content</AJDF:output>">(?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.org_name</AJDF:output></td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Organisation Address Line 1 :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.address_line_one</AJDF:output>" name="org_addr">
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.11.content</AJDF:output>"> (?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.org_addr</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;Organisation Address Line 2 :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.address_line_two</AJDF:output>" name="org_addr1"> 
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.12.content</AJDF:output>">(?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.org_addr1</AJDF:output></td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;Town/City  :</td>
					<td width="71%" valign="top" align="left"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.address_city</AJDF:output>" name="org_city"> 
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.14.content</AJDF:output>">(?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.org_city</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Post Code :</td>
					<td width="71%" valign="top" align="left"><input type="text"  class="text_ph_code" value="<AJDF:output>$profile.address_zipcode</AJDF:output>" name="org_code"> 
					<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.13.content</AJDF:output>">(?)</a><br/>
					<span style="color:#FF0000"><AJDF:output>$errmsg.org_code</AJDF:output></td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;County/Area :</td>
					<td width="71%" valign="top" align="left"><span  id="dropState"><input type="text"  size="30" class="text_b" value="<AJDF:output>$profile.address_state</AJDF:output>" name="org_state"></span> <a href="javascript:void(0);" class="under" title="<AJDF:output>$help.15.content</AJDF:output>">(?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_state</AJDF:output></td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Country :</td>
					<td width="71%" valign="top" align="left">
	
						<select id="org_country" class="cmb_bx1" name="org_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.org_country ==''</AJDF:output><AJDF:output>if  $profile.country_id == $i.country_id </AJDF:output> selected="selected" <AJDF:output>/if</AJDF:output><AJDF:output>else</AJDF:output>
							<AJDF:output>if  $values.org_country == $i.country_id </AJDF:output>selected="selected"
						<AJDF:output>/if</AJDF:output><AJDF:output>/if</AJDF:output>> 

						<AJDF:output>$i.country_name</AJDF:output></option>

						<AJDF:output>/foreach</AJDF:output>
						</select> <a href="javascript:void(0);" class="under" title="<AJDF:output>$help.16.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.org_country</AJDF:output></span>



					</td>
					</tr>
					<tr class="row1">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> Direct Dial Phone Number :</td>
					<td width="71%" valign="top" align="left">
						<table cellspacing="0" cellpadding="0" border="0" width="100%" class="clsrmpd">
						  <tbody>
							<tr>
						
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="5" size="5" class="text_c_code" value="<AJDF:output>$profile.address_phone_country</AJDF:output>" name="org_ph_country">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_ph_country</AJDF:output></td>
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<AJDF:output>$profile.address_phone_code</AJDF:output>" name="org_ph_area">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_ph_area</AJDF:output></td>
							  <td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<AJDF:output>$profile.address_phone</AJDF:output>" name="org_ph_phone">
								<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.17.content</AJDF:output>">(?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_ph_phone</AJDF:output></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 class="row2">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;Work Switchboard Phone &nbsp;&nbsp;Number:</td>
					<td width="71%" valign="top" align="left">
						<table cellspacing="0" cellpadding="0" border="0" width="100%" class="clsrmpd">
						  <tbody>
							<tr>
						
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="5" size="5" class="text_c_code" value="<AJDF:output>$profile.address_fax_country</AJDF:output>" name="address_fax_country">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.address_fax_country</AJDF:output></td>
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<AJDF:output>$profile.address_fax_code</AJDF:output>" name="address_fax_code">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.address_fax_code</AJDF:output></td>
							  <td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<AJDF:output>$profile.address_fax</AJDF:output>" name="address_fax">
								<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.18.content</AJDF:output>">(?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.address_fax</AJDF:output></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 class="row2">
					<td width="29%" valign="top" align="left">&nbsp;&nbsp;Mobile Phone Number :</td>
					<td width="71%" valign="top" align="left">
						<table cellspacing="0" cellpadding="0" border="0" width="100%" class="clsrmpd">
						  <tbody>
							<tr>
						
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="5" size="5" class="text_c_code" value="<AJDF:output>$profile.address_mobile_country</AJDF:output>" name="org_m_country">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_m_country</AJDF:output></td>
							  <td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<AJDF:output>$profile.address_mobile_code</AJDF:output>" name="org_m_area">
								<br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_m_area</AJDF:output></td>
							  <td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<AJDF:output>$profile.address_mobile</AJDF:output>" name="org_m_phone">
								<a href="javascript:void(0);" class="under" title="<AJDF:output>$help.19.content</AJDF:output>">(?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.org_m_phone</AJDF:output></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 class="row1">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> NACE Category [NACEC] :</td>
					<td width="71%" valign="top" align="left">
						<AJDF:output>$cat_group</AJDF:output> <a href="javascript:void(0);" class="under" title="<AJDF:output>$help.20.content</AJDF:output>"> (?)</a><br/><span style="color:#FF0000"><AJDF:output>$errmsg.siccat</AJDF:output>
						
					</td>
					</tr>
					<tr class="row2">
					<td width="29%" valign="top" align="left"><span style="color:#FF0000">*</span> NACE Description [NACED] :</td>
					<td width="71%" valign="top" align="left"><span id="sicgpsapn"><select class="cmb_bx1" name="sicgp">
                                            <option value="" selected="selected">Please Choose</option>
					</select>
					</span> <a href="javascript:void(0);" class="under" title="<AJDF:output>$help.21.content</AJDF:output>">(?)</a>
					<span style="color:#FF0000">
					<AJDF:output>$errmsg.sicgp</AJDF:output></span>
					</td>
					</tr> 
					<tr class="row1">
					<td width="29%" valign="top" align="left">&nbsp;</td>
					<td width="71%" valign="top" align="left"><input type="submit" nae="submit" value="Submit" class="login_bttn"></td>
					</tr>
					</tbody>
			              </table>
				</td>
				</tr>
			     </tbody>
			</table>
			</form>
		        </td>
                    </tr>
                </table>
	</td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
        </tr>
      </table>

<script type="text/javascript">
$(function() {

$('#siccat').change(function() {
 $.ajax({
   type: "POST",
   url: "?do=getnacecat",
   data: "groupid="+document.getElementById("siccat").value,
   success: function(msg){

document.getElementById("sicgpsapn").innerHTML=msg;
   }
 });
});

	//Change State by Country
	$("#org_country").change(function(){  
		$.post(  
		'<AJDF:output>$smarty.session.base_url</AJDF:output>/index.php?do=getstatebycountry',
		{id: $("#org_country").val(),label: 'org_state'},  
		function(responseText){  
			$("#dropState").html(responseText);  
		},  
		"html"  
		);  
	}); 


});

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

if($values['org_country']=='')
{
	echo ' $.post("'.$_SESSION['base_url'].'index.php?do=getstatebycountry",
		{id: '.$profile['country_id'].',label: "org_state",
		num: "'.$profile['state_id'].'"},  
		function(responseText){  
			$("#dropState").html(responseText);  
		},  
		"html"  
	);';
}else{
	echo ' $.post("'.$_SESSION['base_url'].'index.php?do=getstatebycountry",
		{id: '.$values['org_country'].',label: "org_state",
		num: "'.$values['org_state'].'"},  
		function(responseText){  
			$("#dropState").html(responseText);  
		},  
		"html"  
	); ';
}

<AJDF:output>/php</AJDF:output>

</script>
<style>
.clsrmpd td{
	padding:0;
}
</style>
  <AJDF:output>include file="footer.html"</AJDF:output>