Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

/mvc/elements/account/logout

[return to app]
1 <?php
2
echo $html->jsInline($html->jsTools(true)
3                    . 
'document.writeln("<a href=\"javascript: dom(\'logoutform\').submit();\">Logout</a>");');
4 echo 
$form->open(array('action' => '/''id' => 'logoutform'));
5 echo 
$form->hidden('logout''logout');
6 echo 
$form->submit(array('name' => 'logoutbutton''id' => 'logoutbutton''value' => 'Logout'));
7 echo 
$form->close();
8 echo 
$html->jsInline('dom("logoutform").className = "logoutformjs";');