function printFormattedBookList($bookInfo)
{
    //treat as nested array, in case multiple entries are to be printed
    //foreach($bookInf as $bookInfo){
    $isNestedArray = 0;
    //check  item inside array, and determine if is an array too
    foreach ($bookInfo as $array) {
        if (is_array($array)) {
            // echo "multi";
            $isNestedArray = 1;
            break;
        }
    }
    //print HTML+CSS Formatting if it's either a list or single item
    if ($isNestedArray == 1) {
        foreach ($bookInfo as $array) {
            printFormat($array);
        }
    } elseif ($isNestedArray == 0) {
        printFormat($bookInfo);
    }
}
Example #2
0
        case 'titFinishColect':
            $arrayRecords = makeRecords('title');
            $formatedRecords = titFinishColect($arrayRecords);
            $arrayRecordsHolding = makeRecords('holding');
            $countFacic = $pathMXTB . " " . $configurator->getPath2Facic() . " create=" . $configurator->getPath2TempFacic() . " \"100:v30\"";
            exec($countFacic);
            $invertCommand = $pathMX . " " . $configurator->getPath2TempFacic() . " \"fst=@" . $configurator->getPath2Facic() . ".fst\" fullinv/ansi=" . $configurator->getPath2TempFacic() . " -all now";
            exec($invertCommand);
            $arrayRecordsHolding = makeRecords('temp_facic');
            //Recover the registers in the database
            printFormat('titFinishColect', $formatedRecords, $arrayRecordsHolding);
            break;
        case 'titWithoutColect':
            $arrayRecords = makeRecords('title');
            $formatedRecords = titWithoutColect($arrayRecords);
            printFormat('titWithoutColect', $formatedRecords, $arrayRecordsHolding);
            break;
        case 'numTitRegLib':
            $arrayRecords = makeRecords('titleplus');
            print $BVS_LANG['lblNumTitRegLib'] . ": " . $arrayRecords[0][1002];
            break;
        case 'totIssRegLib':
            $arrayRecords = makeRecords('facic');
            //Recover the registers in the database
            print $BVS_LANG['lblTotIssRegLib'] . ": " . $arrayRecords[0][1002];
            break;
    }
}
/**
 *
 */