public function generate()
 {
     echo "<form";
     foreach ($this->formAttribs as $attribName => $attrib) {
         $val = is_array($attrib) ? implode(" ", $attrib) : $attrib;
         echo " " . $attribName . '="' . $val . '"';
     }
     echo ">";
     echo generateTokenField();
     foreach ($this->fields as $field) {
         $val = is_array($field['class']) ? implode(" ", $field['class']) : $field['class'];
         if (!isset($field['label']['for'])) {
             $field['label']['for'] = $field['input']['id'];
         }
         echo '<div class=' . $val . ">";
         echo $this->createLabel($field['label']);
         echo $this->createInput($field['input']);
         echo '</div>';
     }
     foreach ($this->buttons as $button) {
         $val = is_array($button['class']) ? implode(" ", $button['class']) : $button['class'];
         echo '<div class=' . $val . ">";
         if (!$button['multi']) {
             echo $this->createButton($button['button']);
         } else {
             for ($i = 0; $i < count($button['button']); $i++) {
                 echo $this->createButton($button['button'][$i]);
             }
         }
         echo '</div>';
     }
     echo "</form>";
 }
session_cache_expire(30);
$title = "Search Profile Activity";
//This should be the title for the page, included in the <title></title>
$helpPage = "approvefamilyprofilechange.php";
include 'header.php';
//including this will further include (globalFunctions.php and config.php)
?>

<section class="content">
    <div> 
        <form class="generic" method="post" action="<?php 
echo BASE_DIR;
?>
/searchProfileActivity.php">
            <?php 
echo generateTokenField();
?>
            <div class="formRow">                     
            	<label for="search_request_id">Enter request ID: </label>
            	<input class="formsingle formt" type="text" name="search_request_id" id="search_request_id" />
            </div>
            <div class="formRow">
            	<input id="searchActivity" class="btn" type="submit" name="Search" value="Search"/>
            </div>
       </form>
    </div>
</section>
   <?php 
$pageJavaScript = <<<EOF
\t   \t\$(function(){
\t        \$('#searchActivity').click(function(evt){
/**
 * generateChangePassForm function generates the change password form.
 * 
 * @param string $activation the activation code
 * @param string $user the username
 * 
 * @return string that has all the form elements 
 */
function generateChangePassForm($activation, $user)
{
    $newPassForm = '<form method="post" action="reset.php">';
    $newPassForm .= generateTokenField();
    //store activation key to verify the POST data
    $newPassForm .= '<input type="hidden" id="activation" name="activation" value="' . $activation . '" />';
    //store username to verify the POST data
    $newPassForm .= '<input type="hidden" id="username" name="username" value="' . $user . '" />';
    $newPassForm .= '<label for="newpass">New Password</label>
                    <input type="text" name="newpass" id="newpass"/>
                        <label for="verifypass">Verify Password</label>
                        <input type="text" name="verifypass" id "verifypass" />
                        <input type="submit" name="changePassword" id="changePassword" value="Change Password"/>
                        </form>';
    return $newPassForm;
}