| @@ 396-406 (lines=11) @@ | ||
| 393 | /** |
|
| 394 | * @return string |
|
| 395 | */ |
|
| 396 | function searchfield() |
|
| 397 | { |
|
| 398 | $select = '<select size="1" name="query" style="width: 140px;">'; |
|
| 399 | $lookupcontents = Field::lookup($this->fieldnumber); |
|
| 400 | for ($i = 0; $i < count($lookupcontents); ++$i) { |
|
| 401 | $select .= '<option value="' . $lookupcontents[$i]['id'] . '">' . $lookupcontents[$i]['value'] . '</option>'; |
|
| 402 | } |
|
| 403 | $select .= '</select>'; |
|
| 404 | ||
| 405 | return $select; |
|
| 406 | } |
|
| 407 | } |
|
| 408 | ||
| 409 | /** |
|
| @@ 511-521 (lines=11) @@ | ||
| 508 | /** |
|
| 509 | * @return string |
|
| 510 | */ |
|
| 511 | function searchfield() |
|
| 512 | { |
|
| 513 | $select = '<select size="1" name="query" style="width: 140px;">'; |
|
| 514 | $lookupcontents = Field::lookup($this->fieldnumber); |
|
| 515 | for ($i = 0; $i < count($lookupcontents); ++$i) { |
|
| 516 | $select .= '<option value="' . $lookupcontents[$i]['id'] . '">' . $lookupcontents[$i]['value'] . '</option>'; |
|
| 517 | } |
|
| 518 | $select .= '</select>'; |
|
| 519 | ||
| 520 | return $select; |
|
| 521 | } |
|
| 522 | } |
|
| 523 | ||
| 524 | /** |
|