{err}
{:if:notempty:vote}
Parere {vote}
{:endif}
[[ id: nome, kind: username, canmodify: true ]]
[[ id: commento, kind: TextArea, rows: 10, cols: 60]]
{:if:notempty:captcha} {captcha} {:endif}

[[ id: btnSubmit, kind: Submit, value: 'Invia', class: AdminPageFooterCommandButton ]]
[[ id: _vote, kind: hidden ]]
[[_onformaterrors{ //D('Errori!', $ev->FormValues()); //var_dump(func_get_arg(1)); //var_dump(func_get_arg(2)); //return "KAPPA"; }]] [[onvalidate{ //$a = func_get_arg(0); $v = $ev->FormValues(); $rv = array(); if (empty($v['nome'])) $rv['nome'] = 'E\' necessario inserire un nome'; if (empty($v['commento'])) $rv['commento'] = 'Per favore, inserisci un commento'; //if (empty($_POST['vote'])) //if (isset($_POST['vote']) && ! ($_POST['vote']>= 1 && $_POST['vote']<= 3)) // $rv['btnSubmit'] = 'Per favore, inserisci un voto'; return $rv; }]] [[oncomplete{ return '
Ti ringraziamo per avere insertito il commento. Esso sarà visibile al più presto, compatibilmente con la netiquette
'; }]]