Location: PHPKode > projects > PHP Ajax Forms Framework > pajff/forms/pajffyesno.php
<?php
/**
* Built-in Yes/No modal dialog
* 
* <p>Form definition file</p>
* 
* {@link http://sourceforge.net/projects/pajff Project home}
* 
* @package PAjFF
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author Atanas Markov hide@address.com
* @version 0.0.2
* @copyright 2006 by Atanas Markov
*
* @subpackage pajffyesno
**/

/**
 * Form HTML code
 *
 * @param pajff_session $session
 * @return string
 */
function pajffyesnoForm($session){
    $result= "<p align=\"center\"><font size=\"4\">$session->title</font></p>
              <p></p>
              <p align=\"center\">$session->message</p>
              <p></p>
              <p align=\"center\">
              <input type=\"button\" value=\"     Yes    \" id=\"yes\" name=\"yes\" onclick=\"".
		pajffSimpleEventReg('yes',$session,'','',false)
		."\">      <input type=\"button\" value=\"     No    \" id=\"no\" name=\"no\" onclick=\"".
		pajffSimpleEventReg('no',$session,'','',false)
		."\">
              </p>";
		
    return $result;
}

?>
Return current item: PHP Ajax Forms Framework