1
Editor / Re:JCE editor. Colore link inline
« il: 22 Lug 2009, 09:46:37 »
nessuno sa darmi un aiuto riguardo questo problema?
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
<a href=""><span style="color:#ff00000"> link </span></a>
<input type="text" name="formEdit[type0]" />
<input type="text" name="formEdit[type1]" />
<input type="text" name="formEdit[type2]" />
<input type="text" name="formEdit[type3]" />
function submit()
{
$data = JRequest::getVar('formEdit', array(), 'post', 'array');
$model = $this->getModel('componentmodel');
$model->upTypes($data); $this->setRedirect('index.php?option=com_mycomponent);
}
function upTypes($data)
{
$row =& $this->getTable('type');
for($i=0;$i<4;$i++)
{
$row->id=($i+1);
$row->type=$data['type'.$i];
if (!$row->store())
{
JError::raiseWarning(500, $row->getError());
}
}
}
class Tabletypeevent extends JTable
{
var $id = null;
var $type=null;
function __construct(& $db)
{
parent::__construct('#__component_type', 'id', $db);
}
}
![]() |
|