$user_name_search_purify = $hp->purify($user_name_search); $search_purify = $hp->purify($Language->getText('admin_main', 'search')); echo '<form name="usersrch" action="userlist.php" method="get" class="form-horizontal"> <table> <tr> <td valign=top> <label> <strong>' . $Language->getText("admin_userlist", "status") . '</strong> </label> <select multiple name="status_values[]" size=8> <option value="ANY" ' . $anySelect . '>Any</option> <option value="' . PFUser::STATUS_ACTIVE . '" ' . getSelectedFromStatus(PFUser::STATUS_ACTIVE, $status_values) . '>' . $Language->getText("admin_userlist", "active") . '</option> <option value="' . PFUser::STATUS_RESTRICTED . '" ' . getSelectedFromStatus(PFUser::STATUS_RESTRICTED, $status_values) . '>' . $Language->getText("admin_userlist", "restricted") . '</option> <option value="' . PFUser::STATUS_DELETED . '" ' . getSelectedFromStatus(PFUser::STATUS_DELETED, $status_values) . '>' . $Language->getText("admin_userlist", "deleted") . '</option> <option value="' . PFUser::STATUS_SUSPENDED . '" ' . getSelectedFromStatus(PFUser::STATUS_SUSPENDED, $status_values) . '>' . $Language->getText("admin_userlist", "suspended") . '</option> <option value="' . PFUser::STATUS_PENDING . '" ' . getSelectedFromStatus(PFUser::STATUS_PENDING, $status_values) . '>' . $Language->getText("admin_userlist", "pending") . '</option> <option value="' . PFUser::STATUS_VALIDATED . '" ' . getSelectedFromStatus(PFUser::STATUS_VALIDATED, $status_values) . '>' . $Language->getText("admin_userlist", "validated") . '</option> <option value="' . PFUser::STATUS_VALIDATED_RESTRICTED . '" ' . getSelectedFromStatus(PFUser::STATUS_VALIDATED_RESTRICTED, $status_values) . '>' . $Language->getText("admin_userlist", "validated_restricted") . '</option> </select> </td> <td valign=top> <p> <label> <strong>' . $Language->getText('admin_main', 'search_user') . '</strong> </label> </p> <input type="text" name="user_name_search" class="user_name_search" placeholder="' . $search_purify . '" value="' . $user_name_search_purify . '" /> </td> </tr> </table> <div align="center"> <button type="submit" class="btn btn-primary">' . $search_purify . ' <i class="icon-search"></i> </button> </div>
$purifier = Codendi_HTMLPurifier::instance(); $group_name_search_purify = $purifier->purify($group_name_search); $search_purify = $purifier->purify($Language->getText('admin_main', 'search')); echo '<form name="groupsrch" action="grouplist.php" method="get" class="form-horizontal"> <table> <tr> <td valign=top> <label> <strong>' . $Language->getText("admin_userlist", "status") . '</strong> </label> <select name="status[]" size=7 multiple="multiple"> <option value="ANY" ' . $anySelect . '>Any</option> <option value="' . Project::STATUS_ACTIVE . '" ' . getSelectedFromStatus(Project::STATUS_ACTIVE, $status) . '>' . $Language->getText('admin_groupedit', 'status_A') . '</option> <option value="S" ' . getSelectedFromStatus("S", $status) . '>' . $Language->getText('admin_groupedit', 'status_s') . '</option> <option value="' . Project::STATUS_INCOMPLETE . '" ' . getSelectedFromStatus(Project::STATUS_INCOMPLETE, $status) . '>' . $Language->getText('admin_groupedit', 'status_I') . '</option> <option value="' . Project::STATUS_PENDING . '" ' . getSelectedFromStatus(Project::STATUS_PENDING, $status) . '>' . $Language->getText('admin_groupedit', 'status_P') . '</option> <option value="' . Project::STATUS_HOLDING . '" ' . getSelectedFromStatus(Project::STATUS_HOLDING, $status) . '>' . $Language->getText('admin_groupedit', 'status_H') . '</option> <option value="D" ' . getSelectedFromStatus("D", $status) . '>' . $Language->getText('admin_groupedit', 'status_D') . '</option> </select> </td> <td valign=top> <p> <label> <strong>' . $Language->getText('admin_main', 'search_group') . '</strong> </label> </p> <input type="text" name="group_name_search" class="project_name_search" placeholder="' . $search_purify . '" value="' . $group_name_search_purify . '" /> </td> </tr> </table> <div align="center"> <button type="submit" class="btn btn-primary">' . $search_purify . ' <i class="icon-search"></i> </button> </div>