Menu

#3 PhiBot Manager - Radio Buttons instead of Drop downs

open
nobody
None
5
2007-01-04
2007-01-04
No

PhiBot Manager - Radio Buttons instead of Drop downs

for what it's worth, since I particularly hate clicking for nothing, I added radio buttons to:

include/functions.php:

class formgenClass {
function generateForm {

added code
-----------------------------
elseif ($af[2] == 'radio') {
$rtn .= $af[0] . "\n<br /><br />";
$checked = "checked";
foreach ($af[4] as $as) {
$rtn .= '<input type="radio" name="' . $af[1] . '" value="' . $as[0] . '"' . $checked . '>' . $as[2] . '<br />' ;
$checked = "";
}
$rtn .= '<br />'. $this->doBreaks($af) . "\n";
}
----------------------------

also changed "select" to "radio" in 4 functions:

class eventsClass extends basicFunctions {
function showInitialForm() {...}
function showTypeForm() {...}
function showInitialForm($id, $type) {...}
function showTypeForm($id) {...}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.