Conditions | 5 |
Paths | 16 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
41 | function memberswelcome_edit($options) |
||
42 | { |
||
43 | $form = _MB_XOOPSMEMBERS_SHOWMEMBERSRANK . ' '; |
||
44 | if (1 == $options[0]) { |
||
45 | $chk = ' checked'; |
||
46 | } |
||
47 | $form .= "<input type='radio' name='options[0]' value='1'" . $chk . ' > ' . _YES . ''; |
||
|
|||
48 | $chk = ''; |
||
49 | if (0 == $options[0]) { |
||
50 | $chk = ' checked'; |
||
51 | } |
||
52 | $form .= " <input type='radio' name='options[0]' value='0'" . $chk . ' >' . _NO . '<br>'; |
||
53 | |||
54 | $form .= _MB_XOOPSMEMBERS_USEREALNAME . ' '; |
||
55 | if (1 == $options[1]) { |
||
56 | $chk = ' checked'; |
||
57 | } |
||
58 | $form .= "<input type='radio' name='options[1]' value='1'" . $chk . ' > ' . _YES . ''; |
||
59 | $chk = ''; |
||
60 | if (0 == $options[1]) { |
||
61 | $chk = ' checked'; |
||
62 | } |
||
63 | $form .= " <input type='radio' name='options[1]' value='0'" . $chk . ' >' . _NO . '<br>'; |
||
64 | |||
65 | return $form; |
||
66 | } |
||
67 |