|
|
<?
header( "Content-Type: text/html; Charset=shift_jis" );
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
foreach( $_GET as $Key => $Value ) {
$_POST[$Key] = $_GET[$Key];
}
foreach( $_POST as $Key => $Value ) {
$_POST[$Key] = str_replace("\\\\", "\\", $Value );
$_POST[$Key] = str_replace("\\'", "'", $_POST[$Key] );
$_POST[$Key] = str_replace("\\\"", "\"", $_POST[$Key] );
}
$Text = mb_convert_encoding( $_POST['text'], "euc-jp", "shift_jis" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "euc-jp" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "euc-jp" );
$Text = mb_convert_encoding( $Text, "shift_jis", "euc-jp" );
?>
<HTML>
<HEAD>
<META http-equiv="Content-type" content="text/html; charset=shift_jis">
<STYLE>
PRE {
border-style:solid;
border-width:1px;
font-family:MS ゴシック;
font-size:13;
}
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD style='font-size:12'>
<b>IE の場合このボタンでクリップボードへコピーします</b> -->
<INPUT
type=button
value="コピー"
onClick='window.clipboardData.setData( "Text", document.getElementById("src").innerText )'
>
<PRE id="src"><?= $Text ?></PRE>
</TD></TR>
</TABLE>
</BODY>
</HTML>
| |
|
|
|
|
<?
header( "Content-Type: text/html; Charset=euc-jp" );
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
foreach( $_GET as $Key => $Value ) {
$_POST[$Key] = $_GET[$Key];
}
foreach( $_POST as $Key => $Value ) {
$_POST[$Key] = str_replace("\\\\", "\\", $Value );
$_POST[$Key] = str_replace("\\'", "'", $_POST[$Key] );
$_POST[$Key] = str_replace("\\\"", "\"", $_POST[$Key] );
}
$Text = htmlentities( $_POST['text'], ENT_NOQUOTES, "euc-jp" );
$Text = htmlentities( $Text, ENT_NOQUOTES, "euc-jp" );
?>
<HTML>
<HEAD>
<META http-equiv="Content-type" content="text/html; charset=euc-jp">
<STYLE>
PRE {
border-style:solid;
border-width:1px;
font-family:MS ゴシック;
font-size:13;
}
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD style='font-size:12'>
<b>IE の場合このボタンでクリップボードへコピーします</b> -->
<INPUT
type=button
value="コピー"
onClick='window.clipboardData.setData( "Text", document.getElementById("src").innerText )'
>
<PRE id="src"><?= $Text ?></PRE>
</TD></TR>
</TABLE>
</BODY>
</HTML>
| |
|
|
|
|
<?
header( "Content-Type: text/html; Charset=shift_jis" );
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
foreach( $_GET as $Key => $Value ) {
$_POST[$Key] = $_GET[$Key];
}
foreach( $_POST as $Key => $Value ) {
$_POST[$Key] = str_replace("\\\\", "\\", $Value );
$_POST[$Key] = str_replace("\\'", "'", $_POST[$Key] );
$_POST[$Key] = str_replace("\\\"", "\"", $_POST[$Key] );
}
$Text = $_POST['text'];
?>
<HTML>
<HEAD>
<META http-equiv="Content-type" content="text/html; charset=shift_jis">
<STYLE>
PRE {
border-style:solid;
border-width:1px;
font-family:MS ゴシック;
font-size:13;
}
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD style='font-size:12'>
<b>IE の場合このボタンでクリップボードへコピーします</b> -->
<INPUT
type=button
value="コピー"
onClick='window.clipboardData.setData( "Text", document.getElementById("src").innerHTML )'
>
<PRE id="src"><?= $Text ?></PRE>
</TD></TR>
</TABLE>
</BODY>
</HTML>
| |
|
|
|