';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
return $hidden;
}
function renderRelatedPotentials($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('include/RelatedListView.php');
$hidden = getHiddenValues($id);
echo $hidden;
$focus = new Potential();
$button = '';
if(isPermitted("Potentials",1,"") == 'yes')
{
$button .= '';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Potentials',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedContacts($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('include/RelatedListView.php');
$hidden = getHiddenValues($id); echo $hidden;
$focus = new Contact();
$button = '';
if(isPermitted("Contacts",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Contacts',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedTasks($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('include/RelatedListView.php');
$hidden = getHiddenValues($id);
$hidden .= '';
echo $hidden;
$focus = new Activity();
$button = '';
if(isPermitted("Activities",1,"") == 'yes')
{
$button .= ' ';
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Activities',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedHistory($query,$id)
{
getHistory('Accounts',$query,$id);
}
function renderRelatedAttachments($query,$id)
{
$hidden = getHiddenValues($id);
echo $hidden;
getAttachmentsAndNotes('Accounts',$query,$id);
echo '';
}
function renderRelatedTickets($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('include/RelatedListView.php');
$hidden = getHiddenValues($id);
echo $hidden;
$focus = new HelpDesk();
$button = '';
$button .= '
| ';
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','HelpDesk',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedQuotes($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('modules/Quotes/Quote.php');
$hidden = getHiddenValues($id); echo $hidden;
$focus = new Quote();
$button = '';
if(isPermitted("Quotes",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Quotes',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedInvoices($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('modules/Invoice/Invoice.php');
$hidden = getHiddenValues($id); echo $hidden;
$focus = new Invoice();
$button = '';
if(isPermitted("Invoice",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Invoice',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedOrders($query,$id)
{
require_once('modules/Orders/SalesOrder.php');
global $mod_strings;
global $app_strings;
$hidden = getHiddenValues($id);
echo $hidden;
$focus = new SalesOrder();
$button = '';
if(isPermitted("SalesOrder",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','SalesOrder',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedProducts($query,$id)
{
require_once('modules/Products/Product.php');
global $mod_strings;
global $app_strings;
$hidden = getHiddenValues($id);
echo $hidden;
$focus = new Product();
$button = '';
if(isPermitted("Products",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Accounts&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Accounts','Products',$focus,$query,$button,$returnset);
echo '';
}
echo get_form_footer();
?>