| @@ 113-124 (lines=12) @@ | ||
| 110 | * @todo error checking |
|
| 111 | * @return string |
|
| 112 | */ |
|
| 113 | public function showField() |
|
| 114 | { |
|
| 115 | $lookupcontents = parent::lookupField($this->fieldnumber); |
|
| 116 | $lcCount = count($lookupcontents); |
|
| 117 | for ($i = 0; $i < $lcCount; ++$i) { |
|
| 118 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 119 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 120 | } |
|
| 121 | } |
|
| 122 | ||
| 123 | return $this->fieldname . ' : ' . $choosenvalue; |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * @return mixed |
|
| @@ 129-139 (lines=11) @@ | ||
| 126 | /** |
|
| 127 | * @return mixed |
|
| 128 | */ |
|
| 129 | public function showValue() |
|
| 130 | { |
|
| 131 | $lookupcontents = parent::lookupField($this->fieldnumber); |
|
| 132 | for ($i = 0, $iMax = count($lookupcontents); $i < $iMax; ++$i) { |
|
| 133 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 134 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 135 | } |
|
| 136 | } |
|
| 137 | ||
| 138 | return $choosenvalue; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @return string HTML <select> for this field |
|
| @@ 106-118 (lines=13) @@ | ||
| 103 | /** |
|
| 104 | * @return string |
|
| 105 | */ |
|
| 106 | public function showField() |
|
| 107 | { |
|
| 108 | $choosenvalue = ''; |
|
| 109 | $lookupcontents = parent::lookupField($this->fieldnumber); |
|
| 110 | $lcCount = count($lookupcontents); |
|
| 111 | for ($i = 0; $i < $lcCount; ++$i) { |
|
| 112 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 113 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||
| 117 | return $this->fieldname . ' : ' . $choosenvalue; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * @return string |
|
| @@ 123-135 (lines=13) @@ | ||
| 120 | /** |
|
| 121 | * @return string |
|
| 122 | */ |
|
| 123 | public function showValue() |
|
| 124 | { |
|
| 125 | $choosenvalue = ''; |
|
| 126 | $lookupcontents = parent::lookupField($this->fieldnumber); |
|
| 127 | $lcCount = count($lookupcontents); |
|
| 128 | for ($i = 0; $i < $lcCount; ++$i) { |
|
| 129 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 130 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | return $choosenvalue; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @return string HTML <select> for this field |
|
| @@ 383-393 (lines=11) @@ | ||
| 380 | /** |
|
| 381 | * @return string |
|
| 382 | */ |
|
| 383 | public function showField() |
|
| 384 | { |
|
| 385 | $lookupcontents = Field::lookupField($this->fieldnumber); |
|
| 386 | for ($i = 0, $iMax = count($lookupcontents); $i < $iMax; ++$i) { |
|
| 387 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 388 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 389 | } |
|
| 390 | } |
|
| 391 | ||
| 392 | return $this->fieldname . ' : ' . $choosenvalue; |
|
| 393 | } |
|
| 394 | ||
| 395 | /** |
|
| 396 | * @return mixed |
|
| @@ 398-408 (lines=11) @@ | ||
| 395 | /** |
|
| 396 | * @return mixed |
|
| 397 | */ |
|
| 398 | public function showValue() |
|
| 399 | { |
|
| 400 | $lookupcontents = Field::lookupField($this->fieldnumber); |
|
| 401 | for ($i = 0, $iMax = count($lookupcontents); $i < $iMax; ++$i) { |
|
| 402 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 403 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 404 | } |
|
| 405 | } |
|
| 406 | ||
| 407 | return $choosenvalue; |
|
| 408 | } |
|
| 409 | ||
| 410 | /** |
|
| 411 | * @return string |
|
| @@ 496-506 (lines=11) @@ | ||
| 493 | /** |
|
| 494 | * @return string |
|
| 495 | */ |
|
| 496 | public function showField() |
|
| 497 | { |
|
| 498 | $lookupcontents = Field::lookupField($this->fieldnumber); |
|
| 499 | for ($i = 0, $iMax = count($lookupcontents); $i < $iMax; ++$i) { |
|
| 500 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 501 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 502 | } |
|
| 503 | } |
|
| 504 | ||
| 505 | return $this->fieldname . ' : ' . $choosenvalue; |
|
| 506 | } |
|
| 507 | ||
| 508 | /** |
|
| 509 | * @return mixed |
|
| @@ 511-522 (lines=12) @@ | ||
| 508 | /** |
|
| 509 | * @return mixed |
|
| 510 | */ |
|
| 511 | public function showValue() |
|
| 512 | { |
|
| 513 | $choosenvalue = ''; |
|
| 514 | $lookupcontents = Field::lookupField($this->fieldnumber); |
|
| 515 | for ($i = 0, $iMax = count($lookupcontents); $i < $iMax; ++$i) { |
|
| 516 | if ($lookupcontents[$i]['id'] == $this->value) { |
|
| 517 | $choosenvalue = $lookupcontents[$i]['value']; |
|
| 518 | } |
|
| 519 | } |
|
| 520 | ||
| 521 | return $choosenvalue; |
|
| 522 | } |
|
| 523 | ||
| 524 | /** |
|
| 525 | * @return string |
|