Source for file searchCollCode.php
Documentation is available at searchCollCode.php
* Suggestion List for sptool/inputspecimen, sptool/inputmixedspecimen
* element formInstitutionCode
* @author Gabriele Droege, DNA Bank Network <contact@dnabank-network.org>
* @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org<br>The contents of this file are subject to the Mozilla Public License Version 1.1
* @license http://www.mozilla.org/MPL/ MPL
* calling connection to database
include('../config/head.php');
$getRecord_sql =
'SELECT count(CollectionCode_Specimen) as number,CollectionCode_Specimen FROM sptoolcollection WHERE CollectionCode_Specimen LIKE "'.
$searchq.
'%" GROUP BY CollectionCode_Specimen LIMIT 50';
for ($i=
0; $i<=
$max-
1; $i++
) {
$s =
"<li id=A".
$i.
" onclick='javascript:SelectCollCode(this.innerHTML);'><a>" .
utf8_encode($row['CollectionCode_Specimen']) .
" <strong>(" .
$row['number'] .
")</strong></a></li>";
echo
"<li id=".
$max.
"><span>...</span></li>";
Documentation generated on Tue, 29 Nov 2011 10:45:11 +0100 by phpDocumentor 1.4.3