File: /www/exchange2/exchange/templates/intermedinvusersedit.html
<AJDF:output>include file="header.html"</AJDF:output>
<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="52%" align="left" valign="middle" class="login_bg_t">Exchange Trade Centre | Edit Investor
</td>
<td width="48%" align="right" valign="middle" class="txt_11"><AJDF:output>include file='investor_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=updateinvusers&uid=<AJDF:output>$smarty.get.uid</AJDF:output><AJDF:output>if $smarty.get.pg !=''</AJDF:output>&pg=<AJDF:output>$smarty.get.pg</AJDF:output><AJDF:output>elseif $smarty.get.page !=''</AJDF:output>&page=<AJDF:output>$smarty.get.page</AJDF:output><AJDF:output>/if</AJDF:output>" 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">
<tbody><tr>
<td valign="top" align="left" class="inves_top1">Edit <AJDF:output>$invusersedit[1]</AJDF:output></td>
<td valign="middle" align="right" class="inves_top1"><input type="button" value="Back" onclick="history.go(-1);" class="under_blue"> </td>
</tr>
<tr><td colspan="2">
<AJDF:output>if !empty($success_invusers)</AJDF:output>
<div class="success-msgbox"><AJDF:output>$success_invusers</AJDF:output></div>
<AJDF:output>/if</AJDF:output>
</td></tr>
<AJDF:output>$invusersedit[0]</AJDF:output>
</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() {
//Change State by Country
$("#org_country").change(function(){
$.post(
'<AJDF:output>$smarty.session.base_url</AJDF:output>/exchange/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['org_country']=='')
{
echo ' $.post("'.$_SESSION['base_url'].'exchange/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'].'exchange/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>
<AJDF:output>include file="footer.html"</AJDF:output>