function MCW_get_widget_maintenance($MyWidget, $elements = '', $widgetindex = '', $display_only = false) { global $mcw_title_tooltip; $data_widget_filter = $elements['filter']; $data_widget_title = $elements['title']; $data_widget_kind = $elements['kind']; $data_widget_code = $elements['code']; $mcw_submit_trigger = $elements['submit']; $data_foreign_widget_id = $elements['foreign_id']; $mcw_name = htmlspecialchars($MyWidget['name'], ENT_QUOTES); $mcw_kind = $MyWidget['kind']; $mcw_filter = $MyWidget['filter']; $mcw_title = $MyWidget['title']; $disabler = ''; if ($MyWidget['foreign_id'] != '' || $display_only) { $disabler = ' class="mcw_readonly" readonly="readonly"'; } if ($display_only) { $display_only = ' disabled= "true"'; } echo '<div class="mcw-row-" onmouseover="Tip('' . $mcw_title_tooltip . '')" onmouseout="UnTip()"><label for="' . $data_widget_title . $widgetindex . '"><input type="text" id="' . $data_widget_title . $widgetindex . '" name="' . $data_widget_title . $widgetindex . '" value="' . $mcw_title . '" size="13" ' . $disabler . '></label></div>'; echo '<div class="mcw-row-small"><nobr><label for="' . $data_widget_kind . $widgetindex . '_php"><input type="radio" id="' . $data_widget_kind . $widgetindex . '_php" name="' . $data_widget_kind . $widgetindex . '" value="php" checked="checked" ' . $display_only . '> PHP</label></nobr>'; echo '<nobr><label for="' . $data_widget_kind . $widgetindex . '_html"><input type="radio" id="' . $data_widget_kind . $widgetindex . '_html" name="' . $data_widget_kind . $widgetindex . '" value="html"' . mcw_check($mcw_kind, "html") . ' ' . $display_only . '> HTML</label></nobr></div><br>'; echo '<div class="mcw-row">' . MCW_get_input_code($MyWidget, $data_widget_code, $widgetindex, $display_only) . '</div>'; echo '<div class="mcw-row-small">' . MCW_get_input_filters($data_widget_filter, $widgetindex, $mcw_filter, $display_only) . '</div>'; echo '<br><div class="mcw-row">' . MCW_get_input_foreign($MyWidget, $widgetindex, $data_foreign_widget_id, $display_only) . '</div>'; echo '<input type="hidden" name="' . $mcw_submit_trigger . $widgetindex . '" value="1" />'; }
?> " value="yes" <?php echo mcw_check($cache_options['allow_js'], 'yes'); ?> > Yes</label> <label for="<?php echo $data_options_allow_js . '_no'; ?> "><input type="radio" id="<?php echo $data_options_allow_js . '_no'; ?> " name="<?php echo $data_options_allow_js; ?> " value="no"<?php echo mcw_check($cache_options['allow_js'], 'no'); ?> > No</label> <div id="<?php echo $option_help_text_java; ?> " style="display:<?php if ($javascript_is_allowed) { echo 'none'; } else { echo 'block'; } ?> ;"> <div id="message" class="mcw_updated"> <p>