Viewing file: editxt.php (2.75 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>Editor General de Texto</title>
<script language="Javascript1.2">
//Directory must end with a '/'
//Examples:
// AK_editor_url = "TextAreaPro/";
AK_editor_url = "";
document.write('<scr' + 'ipt src="' + AK_editor_url+ 'wysiwyg.js" language="Javascript1.2"></scr' + 'ipt>');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body text="#000000" bgcolor="#FFFFFF">
<form action="reqsave.php" method="post">
<?php
require('conexion3.php');
$consul = "SELECT *
FROM news where id=$id";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
$myrow = mysql_fetch_array($result);
$idacc2 = $myrow["id"];
$fechaacc2 = $myrow["fecha"];
$catacc2 = $myrow["cat"];
$titularacc2 = $myrow["titular"];
$textoacc2 = $myrow["texto"];
?>
<p align="center">
<textarea cols="90" rows="30" name="MyTextAreaName">
<?php echo $textoacc2; ?>
</textarea>
<script language="JavaScript">
//comment any button that you want to hide
var AK_DisplayedButtons = Array(
'FontName',
'FontSize',
'SelectAll',
'Delete',
'Cut',
'Copy',
'Paste',
'SaveAs',
'Print',
'Separator',
'Bold',
'Italic',
'Underline',
'Strikethrough',
'Separator',
'JustifyLeft',
'JustifyCenter',
'JustifyRight',
'JustifyFull',
'Separator',
'InsertOrderedList',
'InsertUnorderedList',
'Outdent',
'Indent',
'Separator',
'SuperScript',
'SubScript',
'Separator',
'CreateLink',
'Unlink',
'Image',
'Separator',
'Forecolor',
'Backcolor',
'Separator'
//the last one has NO comma
);
var AK_width = 600;
var AK_height = 300;
// All fields are optional. Place "null" where you don't want to specify.
//ak_wysiwyg_generator(width, height, "TextAreaName", DisplayedButtonList);
ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", AK_DisplayedButtons);
//Examples:
// ak_wysiwyg_generator(null, null, "MyTextAreaName", AK_DisplayedButtons);
// ak_wysiwyg_generator(AK_width, AK_height, null, AK_DisplayedButtons);
// ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", null);
// It can be no parameter at all
// ak_wysiwyg_generator();
</script>
<!--<input type="Submit"> -->
</p>
<p align="center">
<input type="submit" name="Submit" value="Guardar Cambios">
<input name="user" type="hidden" id="user" value="<?php echo $user; ?>">
<input name="id" type="hidden" id="id" value="<?php echo $id; ?>">
</p>
</form>
</body>
</html>
|