echo "<input type=\"radio\" name=\"image_active_" . $i . "\" value=\"1\"" . $c1 . "> " . $lang['yes'] . " \n"; echo "<input type=\"radio\" name=\"image_active_" . $i . "\" value=\"0\"" . $c2 . "> " . $lang['no'] . " "; echo "</td>\n"; echo "<td>" . $lang['field_allow_comments'] . ":<br />"; if (isset($HTTP_POST_VARS['image_allow_comments_' . $i]) && $HTTP_POST_VARS['image_allow_comments_' . $i] == 0) { $c1 = ""; $c2 = " checked=\"checked\""; } else { $c1 = " checked=\"checked\""; $c2 = ""; } echo "<input type=\"radio\" name=\"image_allow_comments_" . $i . "\" value=\"1\"" . $c1 . "> " . $lang['yes'] . " \n"; echo "<input type=\"radio\" name=\"image_allow_comments_" . $i . "\" value=\"0\"" . $c2 . "> " . $lang['no'] . " "; echo "</td>\n"; echo "</tr>\n"; // show_hidden_input("user_id_".$i, $user_id); } } } if ($num_all_newimages) { show_hidden_input("max_dimension", $max_dimension); show_hidden_input("num_newimages", $num_newimages); show_hidden_input("detailed", $detailed); show_hidden_input("subcats", $subcats); show_hidden_input("mode", 1); show_form_footer($lang['add'], $lang['reset'], $colspan); } else { show_table_footer(); } } show_admin_footer();
function show_config_input($type, $config, $error = array()) { $title = lang('update', 'config_type_' . $type); show_table_header(); show_table_row(array(array('colspan="3"', $title)), 'header title'); if ($type == 'target') { show_table_row(array(array('colspan="3"', '<font color="red">' . lang('update', 'config_type_target_comment') . '</font>')), 'bg2'); } foreach ($config as $key => $value) { $addmsg = $error && $key == 'dbhost' ? lang('update', $error) : ''; show_table_row(array(array('width="150"', lang('update', 'config_' . $key)), array('class="bg2"', '<input type="text" size="40" name="newconfig[' . $type . '][' . $key . ']" value="' . htmlspecialchars($value) . '">'), array('class="bg2"', '<font color="red">' . $addmsg . '</font>')), 'bg1'); } show_table_footer(); echo '<br>'; }