Beispiel #1
0
?>
            </div>
        </th>
        <th scope='col' width='10%'>
            <div style='white-space: nowrap;'width='100%' align='left'>
                <?php 
echo translate("LBL_SEARCH_RESULT_SCORE", "AOD_Index");
?>
            </div>
        </th>
    </tr>
    </thead>
    <?php 
if ($hits) {
    foreach ($hits as $hit) {
        echo "<tr>" . "<td>" . $hit->label . "</td>" . "<td><a href='index.php?module=" . $hit->record_module . "&action=DetailView&record=" . $hit->record_id . "'>" . $hit->name . "</a></td>" . "<td>" . $hit->summary . "</td>" . "<td>" . $hit->date_entered . "</td>" . "<td>" . $hit->date_modified . "</td>" . "<td>" . getScoreDisplay($hit) . "</td>" . "</tr>";
    }
} else {
    echo "<tr><td>" . translate("LBL_SEARCH_RESULT_EMPTY", "AOD_Index") . "</td></td>";
}
?>
</table>

<?php 
function getRecordSummary(SugarBean $bean)
{
    global $listViewDefs;
    if (!isset($listViewDefs) || !isset($listViewDefs[$bean->module_dir])) {
        if (file_exists('custom/modules/' . $bean->module_dir . '/metadata/listviewdefs.php')) {
            require 'custom/modules/' . $bean->module_dir . '/metadata/listviewdefs.php';
        } else {
Beispiel #2
0
?>
            </div>
        </th>
        <th scope='col' width='10%' >
            <div style='white-space: nowrap;'width='100%' align='left'>
                <?php 
echo translate("LBL_SEARCH_RESULT_SCORE", "AOD_Index");
?>
            </div>
        </th>
    </tr>
    <?php 
if ($hits) {
    foreach ($hits as $hit) {
        $bean = BeanFactory::getBean($hit->record_module, $hit->record_id);
        echo "<tr>" . "<td>" . getModuleLabel($bean->module_name) . "</td>" . "<td><a href='index.php?module=" . $hit->record_module . "&action=DetailView&record=" . $hit->record_id . "'>" . $bean->get_summary_text() . "</a></td>" . "<td>" . getRecordSummary($bean) . "</td>" . "<td>" . $bean->date_entered . "</td>" . "<td>" . $bean->date_modified . "</td>" . "<td>" . getScoreDisplay($hit) . "</td>" . "</tr>";
    }
} else {
    echo "<tr><td>" . translate("LBL_SEARCH_RESULT_EMPTY", "AOD_Index") . "</td></td>";
}
?>
</table>

<?php 
function getRecordSummary(SugarBean $bean)
{
    global $listViewDefs;
    if (!isset($listViewDefs) || !isset($listViewDefs[$bean->module_dir])) {
        if (file_exists('custom/modules/' . $bean->module_dir . '/metadata/listviewdefs.php')) {
            require 'custom/modules/' . $bean->module_dir . '/metadata/listviewdefs.php';
        } else {