Hallo,
ich wollte in einer Komponente den Editor als Text eingabe einbinden. Leider schaffe ich es nicht, könnte mir da jemand weiterhelfen.
Ich hab hier mal den Code, oder werden noch weitere Daten benötogt.
Am liebsten wäre mir, dass ich das Feld Beschreibung mit dem Editor befüllen könnte.
danke
<?php defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
// do field validation
if (form.text.value == "") {
alert( "<?php echo JText::_( 'Auto must have a text', true ); ?>" );
} else {
submitform( pressbutton );
}
}
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Details' ); ?></legend>
<table class="admintable">
<tr>
<td width="110" class="key">
<label for="title">
<?php echo JText::_( 'Text' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="text" id="text" size="60" value="<?php echo $this->auto->text; ?>" />
<?php echo JText::_( 'Drachentype eingeben' ); ?>
</td>
</tr>
<tr>
<td width="110" class="key">
<label for="alias">
<?php echo JText::_( 'Manufacturer' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="hersteller" id="hersteller" size="60" value="<?php echo $this->auto->hersteller; ?>" />
<?php echo JText::_( 'wer hat den Drachen gebaut' ); ?>
</td>
</tr>
<tr>
<td class="key">
<label for="lag">
<?php echo JText::_( 'Photo klein (120px)' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="photo_klein" id="photo_klein" size="60" value="<?php echo $this->auto->photo_klein; ?>" />
<?php echo JText::_( 'http://www.carlapascal.de//images/stories/Bilder/Drachen/Drachentasche/' ); ?>
</td>
</tr>
<tr>
<td class="key">
<label for="lag">
<?php echo JText::_( 'BFT' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="bft" id="bft" size="15" value="<?php echo $this->auto->bft; ?>" />
<?php echo JText::_( 'Windbereich in dem der Drachen fliegt' ); ?>
</td>
</tr>
<tr>
<td class="key">
<?php echo JText::_( 'Beschreibung' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="beschreibung" id="beschreibung" size="180" value="<?php echo $this->auto->beschreibung; ?>" />
<?php echo JText::_( 'hier die Beschreibung des Drachen eingeben' ); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php if ($this->auto->photo_klein){?>
<img src="<?php echo $this->auto->photo_klein; ?>">
<?php } ?>
</td>
</tr>
<tr>
<td class="key">
<label for="lag">
<?php echo JText::_( 'Photo gross (350px)' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="photo_gross" id="photo_gross" size="60" value="<?php echo $this->auto->photo_gross; ?>" />
<?php echo JText::_( 'http://www.carlapascal.de//images/stories/Bilder/Drachen/Drachentasche/' ); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php if ($this->auto->photo_gross){?>
<img src="<?php echo $this->auto->photo_gross; ?>">
<?php } ?>
</td>
</tr>
<tr>
<td width="120" class="key">
<?php echo JText::_( 'Published' ); ?>:
</td>
<td>
<?php echo JHTML::_( 'select.booleanlist', 'published', 'class="inputbox"', $this->auto->published ); ?>
</td>
</tr>
</table>
</fieldset>
</div>
<div class="clr"></div>
<div class="clr"></div>
<input type="hidden" name="option" value="com_auto" />
<input type="hidden" name="id" value="<?php echo $this->auto->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="auto" />
</form>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen