File: /www/exchange0old/exchange/cache/%%D2^D2C^D2C36E68%%originator_edit_profile.html.php
<?php /* Smarty version 2.6.19, created on 2024-07-10 11:23:10
compiled from originator_edit_profile.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> </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: <?php echo $_SESSION['user']['org_ref_id']; ?>
</td>
<td width="" align="right" valign="middle" class="txt_11"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?></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"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?></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"> </td>
</tr>
<tr><td colspan="2">
<?php if (! empty ( $this->_tpl_vars['result'] )): ?>
<div class="success-msgbox"><?php echo $this->_tpl_vars['result']; ?>
</div>
<?php endif; ?>
</td></tr>
<tr class="row1">
<td width="29%" valign="top" align="left"> User Name :</td>
<td width="71%" valign="top" align="left"><?php echo $this->_tpl_vars['profile']['username']; ?>
</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="<?php echo $this->_tpl_vars['profile']['address_email']; ?>
" name="email">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['5']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['email']; ?>
</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="<?php echo $this->_tpl_vars['profile']['first_name']; ?>
" name="f_name">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['6']['content']; ?>
">(?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['f_name']; ?>
</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="<?php echo $this->_tpl_vars['profile']['last_name']; ?>
" name="l_name">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['7']['content']; ?>
"> (?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['l_name']; ?>
</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="<?php echo $this->_tpl_vars['profile']['job_title']; ?>
" name="job">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['9']['content']; ?>
"> (?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['job']; ?>
</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="<?php echo $this->_tpl_vars['profile']['organization_name']; ?>
" name="org_name">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['10']['content']; ?>
">(?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_name']; ?>
</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="<?php echo $this->_tpl_vars['profile']['address_line_one']; ?>
" name="org_addr">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['11']['content']; ?>
"> (?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_addr']; ?>
</td>
</tr>
<tr class="row2">
<td width="29%" valign="top" align="left"> Organisation Address Line 2 :</td>
<td width="71%" valign="top" align="left"><input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['profile']['address_line_two']; ?>
" name="org_addr1">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['12']['content']; ?>
">(?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_addr1']; ?>
</td>
</tr>
<tr class="row1">
<td width="29%" valign="top" align="left"> Town/City :</td>
<td width="71%" valign="top" align="left"><input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['profile']['address_city']; ?>
" name="org_city">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['14']['content']; ?>
">(?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_city']; ?>
</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="<?php echo $this->_tpl_vars['profile']['address_zipcode']; ?>
" name="org_code">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['13']['content']; ?>
">(?)</a><br/>
<span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_code']; ?>
</td>
</tr>
<tr class="row1">
<td width="29%" valign="top" align="left"> County/Area :</td>
<td width="71%" valign="top" align="left"><span id="dropState"><input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['profile']['address_state']; ?>
" name="org_state"></span> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['15']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_state']; ?>
</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>
<?php $_from = $this->_tpl_vars['country']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<option value="<?php echo $this->_tpl_vars['i']['country_id']; ?>
" <?php if ($this->_tpl_vars['values']['org_country'] == ''): ?><?php if ($this->_tpl_vars['profile']['country_id'] == $this->_tpl_vars['i']['country_id']): ?> selected="selected" <?php endif; ?><?php else: ?>
<?php if ($this->_tpl_vars['values']['org_country'] == $this->_tpl_vars['i']['country_id']): ?>selected="selected"
<?php endif; ?><?php endif; ?>>
<?php echo $this->_tpl_vars['i']['country_name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['16']['content']; ?>
">(?)</a><br><span style="color: rgb(255, 0, 0);"><?php echo $this->_tpl_vars['errmsg']['org_country']; ?>
</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="<?php echo $this->_tpl_vars['profile']['address_phone_country']; ?>
" name="org_ph_country">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_ph_country']; ?>
</td>
<td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['profile']['address_phone_code']; ?>
" name="org_ph_area">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_ph_area']; ?>
</td>
<td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['profile']['address_phone']; ?>
" name="org_ph_phone">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['17']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_ph_phone']; ?>
</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"> Work Switchboard 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="<?php echo $this->_tpl_vars['profile']['address_fax_country']; ?>
" name="address_fax_country">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['address_fax_country']; ?>
</td>
<td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['profile']['address_fax_code']; ?>
" name="address_fax_code">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['address_fax_code']; ?>
</td>
<td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['profile']['address_fax']; ?>
" name="address_fax">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['18']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['address_fax']; ?>
</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"> 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="<?php echo $this->_tpl_vars['profile']['address_mobile_country']; ?>
" name="org_m_country">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_m_country']; ?>
</td>
<td align="left" width="10%" valign="top"><input type="text" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['profile']['address_mobile_code']; ?>
" name="org_m_area">
<br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_m_area']; ?>
</td>
<td align="left" width="80%" valign="top"><input type="text" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['profile']['address_mobile']; ?>
" name="org_m_phone">
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['19']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['org_m_phone']; ?>
</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">
<?php echo $this->_tpl_vars['cat_group']; ?>
<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['20']['content']; ?>
"> (?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['siccat']; ?>
</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="<?php echo $this->_tpl_vars['help']['21']['content']; ?>
">(?)</a>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['errmsg']['sicgp']; ?>
</span>
</td>
</tr>
<tr class="row1">
<td width="29%" valign="top" align="left"> </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"> </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(
'<?php echo $_SESSION['base_url']; ?>
/index.php?do=getstatebycountry',
{id: $("#org_country").val(),label: 'org_state'},
function(responseText){
$("#dropState").html(responseText);
},
"html"
);
});
});
<?php
$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"
); ';
}
?>
</script>
<style>
.clsrmpd td{
padding:0;
}
</style>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>