Posted by Evan Ramge
2014-03-18
Hi Tom- I was wondering if you are able to have the search field blank instead of showing everyone in the database. I would rather it show 0 people until we search for a person in the database and it returns results. That would be ideal. I just don't know where to go or what to edit.
Posted by Tom
2014-03-18
Hi, Evan,
>would rather it show 0 people until we search for a person in the database and it returns results.
OK, Here is a solution:
(Step 1) Open web/staff/app/cls_ps_(table-name).inc.php in a text editor.
(Step 2) Insert the following line below "case "search":"
The result should look like:
(Step 3) Insert the following lines above "break; case "search_pb":"
The result should look like:
Done!
>would rather it show 0 people until we search for a person in the database and it returns results.
OK, Here is a solution:
(Step 1) Open web/staff/app/cls_ps_(table-name).inc.php in a text editor.
(Step 2) Insert the following line below "case "search":"
$prev_cmd = $sc->GetPrevPageID();
The result should look like:
case "search":
$prev_cmd = $sc->GetPrevPageID();
(Step 3) Insert the following lines above "break; case "search_pb":"
if ( $prev_cmd == 'search_init' ) {
$this->SetDisplay( "def:", false );
}
The result should look like:
if ( $prev_cmd == 'search_init' ) {
$this->SetDisplay( "def:", false );
}
break;
case "search_pb": //-- [Search Button]
Done!