|
@@ 339-348 (lines=10) @@
|
| 336 |
|
* |
| 337 |
|
* @return XoopsFormRadio |
| 338 |
|
*/ |
| 339 |
|
function newField($name = "") |
| 340 |
|
{ |
| 341 |
|
$radio = new XoopsFormRadio("<b>" . $this->fieldname . "</b>", $name . 'user' . $this->fieldnumber, $value = $this->defaultvalue); |
| 342 |
|
$lookupcontents = Field::lookup($this->fieldnumber); |
| 343 |
|
for ($i = 0; $i < count($lookupcontents); ++$i) { |
| 344 |
|
$radio->addOption($lookupcontents[$i]['id'], $name = ($lookupcontents[$i]['value'] . "<br />")); |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
return $radio; |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
/** |
| 351 |
|
* @return XoopsFormLabel |
|
@@ 433-442 (lines=10) @@
|
| 430 |
|
/** |
| 431 |
|
* @return XoopsFormSelect |
| 432 |
|
*/ |
| 433 |
|
function editField() |
| 434 |
|
{ |
| 435 |
|
$select = new XoopsFormSelect("<b>" . $this->fieldname . "</b>", 'user' . $this->fieldnumber, $value = $this->value, $size = 1, $multiple = false); |
| 436 |
|
$lookupcontents = Field::lookup($this->fieldnumber); |
| 437 |
|
for ($i = 0; $i < count($lookupcontents); ++$i) { |
| 438 |
|
$select->addOption($lookupcontents[$i]['id'], $name = ($lookupcontents[$i]['value'] . "<br />")); |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
return $select; |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
/** |
| 445 |
|
* @param string $name |
|
@@ 449-458 (lines=10) @@
|
| 446 |
|
* |
| 447 |
|
* @return XoopsFormSelect |
| 448 |
|
*/ |
| 449 |
|
function newField($name = "") |
| 450 |
|
{ |
| 451 |
|
$select = new XoopsFormSelect("<b>" . $this->fieldname . "</b>", $name . 'user' . $this->fieldnumber, $value = $this->defaultvalue, $size = 1, $multiple = false); |
| 452 |
|
$lookupcontents = Field::lookup($this->fieldnumber); |
| 453 |
|
for ($i = 0; $i < count($lookupcontents); ++$i) { |
| 454 |
|
$select->addOption($lookupcontents[$i]['id'], $name = ($lookupcontents[$i]['value'] . "<br />")); |
| 455 |
|
} |
| 456 |
|
|
| 457 |
|
return $select; |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
/** |
| 461 |
|
* @return XoopsFormLabel |