File: /www/exchange0old/exchange/admin/cache/%%87^876^876CA6A9%%addressContact.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-19 05:00:31
compiled from addresses/addressContact.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);
?>
<script>
var selected_type ='<?php echo $_GET['filter']; ?>
';
var current_table;
$('document').ready(function(){
current_table=$('.dynamicTable').dataTable({
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bLengthChange": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "adminindex.php?do=addressbook&filter=<?php echo $_GET['filter']; ?>
",
"fnServerData": function ( sSource, aoData, fnCallback ) {
aoData.push( { "name" : "type", "value" : selected_type} );
$.getJSON( sSource, aoData, function (json) { fnCallback(json) } );
},
"aoColumns" : [
{ "mData": "type" },
{ "mData": "first_name" },
{ "mData": "last_name" },
{ "mData": "job_title" },
{ "mData": "orglink" },
{ "mData": "direct_email" },
{ "mData": "direct_dial" },
{ "mData": "direct_mob" },
{ "mData": "operator" },
{ "mData": "link","bSortable": false }
],
"aoColumnDefs": [
{
"aTargets": [9],
"mData": "link",
"mRender": function ( data, type, full ) {
return (data)?('<a href="'+data+'" class="btn btn-sm btn-default" title="View"><i class="glyphicon glyphicon-search"></i></a>'):'';
}
}
]
});
$('#DataTables_Table_0_filter').append(' <select name="usertype" class="form-control input-sm" onchange="sortByType(this.value);">'+
'<option value="" <?php if ($_GET['type'] == ""): ?> selected="selected" <?php endif; ?>>Select Type</option>'+
'<option value="1" <?php if ($_GET['type'] == '1'): ?> selected="selected" <?php endif; ?>>Unlinked Counterparty</option>'+
'<option value="2" <?php if ($_GET['type'] == '2'): ?> selected="selected" <?php endif; ?>>Master Counterparty</option>'+
'<option value="3" <?php if ($_GET['type'] == '3'): ?> selected="selected" <?php endif; ?>>Approved Counterparty</option>'+
'<option value="4" <?php if ($_GET['type'] == '4'): ?> selected="selected" <?php endif; ?>>Agent Request</option>'+
'<option value="5" <?php if ($_GET['type'] == '5'): ?> selected="selected" <?php endif; ?>>Originator Request</option>'+
'<option value="6" <?php if ($_GET['type'] == '6'): ?> selected="selected" <?php endif; ?>>Investor Request</option>'+
'<option value="7" <?php if ($_GET['type'] == '7'): ?> selected="selected" <?php endif; ?>>Intermediary Request</option>'+
'<option value="8" <?php if ($_GET['type'] == '8'): ?> selected="selected" <?php endif; ?>>Retail Investor Request</option>'+
'<option value="9" <?php if ($_GET['type'] == '9'): ?> selected="selected" <?php endif; ?>>Agents</option>'+
'<option value="10" <?php if ($_GET['type'] == '10'): ?> selected="selected" <?php endif; ?>>Originator</option>'+
'<option value="11" <?php if ($_GET['type'] == '11'): ?> selected="selected" <?php endif; ?>>Associate</option>'+
'<option value="12" <?php if ($_GET['type'] == '12'): ?> selected="selected" <?php endif; ?>>Investor</option>'+
'<option value="13" <?php if ($_GET['type'] == '13'): ?> selected="selected" <?php endif; ?>>Intermediary</option>'+
'<option value="14" <?php if ($_GET['type'] == '14'): ?> selected="selected" <?php endif; ?>>Retail Investor</option>'+
'<option value="15" <?php if ($_GET['type'] == '15'): ?> selected="selected" <?php endif; ?>>Bank</option>'+
'<option value="16" <?php if ($_GET['type'] == '16'): ?> selected="selected" <?php endif; ?>>Broker</option>'+
'<option value="17" <?php if ($_GET['type'] == '17'): ?> selected="selected" <?php endif; ?>>Credebt Exchange</option>'+
'<option value="18" <?php if ($_GET['type'] == '18'): ?> selected="selected" <?php endif; ?>>Suspended</option>'+
'<option value="19" <?php if ($_GET['type'] == '19'): ?> selected="selected" <?php endif; ?>>Terminated</option>'+
'<option value="20" <?php if ($_GET['type'] == '20'): ?> selected="selected" <?php endif; ?>>Deleted</option>'+
'</select>');
});
function sortByType(val)
{
selected_type=val;
current_table.fnDraw();
}
</script>
<div id="body_portion">
<div id="admin_menu">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="right_content">
<?php if (count ( $this->_tpl_vars['success_invusers'] ) > 0): ?>
<div class="success-msgbox"><span>
<?php $_from = $this->_tpl_vars['success_invusers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['err'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['err']['total'] > 0):
foreach ($_from as $this->_tpl_vars['err']):
$this->_foreach['err']['iteration']++;
?>
<?php echo $this->_tpl_vars['success_invusers']; ?>
<br>
<?php endforeach; endif; unset($_from); ?>
</span></div>
<?php endif; ?>
<style>
.alpha_links a{
color: #1175C9;font-size: 11px;
text-decoration:underline;
}
</style>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="margin_table">
<tr>
<td valign="top" align="left" width="2%" class="hdr_tl"> </td>
<td valign="top" align="left" width="96%" class="hdr_tc">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Contacts </td>
<td class="alpha_links" align="center">
<?php $this->assign('base_uri', 'addressbook'); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "addresses/addressbook_filter.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</td>
<td align="right">
<a class="under_blue" href="adminindex.php?do=addnewuser" >Add New</a>
</tr>
</table>
</td>
<td valign="top" align="left" width="2%" class="hdr_tr"> </td>
</tr>
<tr>
<td valign="top" align="left" colspan="3" class="hdr_center">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table table-hover table-striped table-responsive dynamicTable">
<thead>
<tr>
<th align="left" valign="top">Type</th>
<th align="left" valign="top">First Name</th>
<th align="left" valign="top">Last Name</th>
<th align="left" valign="top">Job Title</th>
<th align="left" valign="top">Organisation</th>
<th align="left" valign="top">Email</th>
<th align="left" valign="top">Direct Dial</th>
<th align="left" valign="top">Mobile</th>
<th align="left" valign="top">Operator</th>
<th align="center" valign="top">Options</th>
</tr>
</thead>
<tbody></tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" width="2%" class="hdr_bl"> </td>
<td valign="top" align="left" width="96%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>
<?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);
?>