function contact_name($id) { $data = load_contacts(); if (array_key_exists($id, $data)) { return $data[$id]; } else { return $id; } }
// +-----------------------------------------------------------------+ // Path: /modules/accounts/pages/main/template_c_contacts.php // ?> <div id="cat_contacts" class="tabset_content"> <h2 class="tabset_label"><?php echo TEXT_CONTACTS; ?> </h2> <?php // *********************** Contact List ****************************** ?> <?php // load the information $crm_headings = load_crm_headings(); $crm_contacts = load_contacts($cInfo->id); if ($crm_contacts) { ?> <fieldset class="formAreaTitle"> <legend><?php echo TEXT_CONTACTS; ?> </legend> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="dataTableHeadingRow"><?php echo $crm_headings; ?> </tr> <?php while (!$crm_contacts->EOF) { $bkgnd = $crm_contacts->fields['inactive'] ? ' style="background-color:pink"' : '';
</section> <section class="content"> <div class="box box-primary"> <div class="box-header with-border"> <h2 class="box-title"> CONTACT LIST </h2> </div> <table class="table table-hover"> <tr> <th>ID</th> <th>NAME</th> <th>PHONE_NUMBER</th> <th>EMAILID</th> <!-- <th>PROJECTS</th> --> <th>ACTIONS</th> </tr> <?php load_contacts(); ?> </table> </div> </section> <?php // closing the page include '..\\includes\\admin_frame_close.php';