PMA\libraries\Encoding::kanjiEncodingForm PHP Метод

kanjiEncodingForm() публичный статический Метод

Defines radio form fields to switch between encoding modes
public static kanjiEncodingForm ( ) : string
Результат string xhtml code for the radio controls
    public static function kanjiEncodingForm()
    {
        return '<ul><li>' . '<input type="radio" name="knjenc" value="" checked="checked" ' . 'id="kj-none" />' . '<label for="kj-none">' . _pgettext('None encoding conversion', 'None') . '</label>' . '<input type="radio" name="knjenc" value="EUC-JP" id="kj-euc" />' . '<label for="kj-euc">EUC</label>' . '<input type="radio" name="knjenc" value="SJIS" id="kj-sjis" />' . '<label for="kj-sjis">SJIS</label>' . '</li>' . '<li>' . '<input type="checkbox" name="xkana" value="kana" id="kj-kana" />' . '<label for="kj-kana">' . __('Convert to Kana') . '</label><br />' . '</li></ul>';
    }

Usage Example

Пример #1
0
/**
 * Prints Html For Export Options Format-specific options
 *
 * @param ExportPlugin[] $export_list Export List
 *
 * @return string
 */
function PMA_getHtmlForExportOptionsFormat($export_list)
{
    $html = '<div class="exportoptions" id="format_specific_opts">';
    $html .= '<h3>' . __('Format-specific options:') . '</h3>';
    $html .= '<p class="no_js_msg" id="scroll_to_options_msg">';
    $html .= __('Scroll down to fill in the options for the selected format ' . 'and ignore the options for other formats.');
    $html .= '</p>';
    $html .= PMA_pluginGetOptions('Export', $export_list);
    $html .= '</div>';
    if (Encoding::canConvertKanji()) {
        // Japanese encoding setting
        $html .= '<div class="exportoptions" id="kanji_encoding">';
        $html .= '<h3>' . __('Encoding Conversion:') . '</h3>';
        $html .= Encoding::kanjiEncodingForm();
        $html .= '</div>';
    }
    $html .= '<div class="exportoptions" id="submit">';
    $html .= PMA\libraries\Util::getExternalBug(__('SQL compatibility mode'), 'mysql', '50027', '14515');
    global $cfg;
    if ($cfg['ExecTimeLimit'] > 0) {
        $html .= '<input type="submit" value="' . __('Go') . '" id="buttonGo" onclick="check_time_out(' . $cfg['ExecTimeLimit'] . ')"/>';
    } else {
        // if the time limit set is zero, then time out won't occur
        // So no need to check for time out.
        $html .= '<input type="submit" value="' . __('Go') . '" id="buttonGo" />';
    }
    $html .= '</div>';
    return $html;
}
All Usage Examples Of PMA\libraries\Encoding::kanjiEncodingForm