<br>
		<?php 
if ($allowViewAll) {
    ?>
		<div  id="addNewFileLayerTitle" onmousemove="javascript:LayerOnMouseOver(addNewFileLayerTitle)" onclick="javascript:showMenu(addNewFileLayer)">
			<img src="img/searchSymbol.jpg"> 		סינון מתקדם
		
		</div>
		<DIV id="addNewFileLayer">
		<br>
סנן על פי הרשאה
		<br>
			<input type="checkbox" name="sortByPermission" value="check">
			<select name="PID">
				<?php 
    getPermissionList();
    ?>
			</select>
		<br>
		
		סנן עפ"י קבוצה:
		<br>			
			<input type="checkbox" name="sortByGroup" value="check">
			<select name="GID">
				<?php 
    getGroupsList();
    ?>
			</select>
		<?php 
}
?>
Example #2
0
    function getUserInfoHTML($edit = 0, $notAllowdToEdit = 0)
    {
        if ($edit) {
            $LineStart = "<input type=\"text\" name=\"";
            $LineMiddle = "\" value=\"";
            $LineEnd = "\"";
        } else {
            $LineStart = "";
            $LineMiddle = "";
            $LineEnd = "";
        }
        if (isset($_POST[add_user])) {
            $addUser = true;
            ?>
		<input type="hidden" name="addUser" value="addUser">
		<?php 
        }
        ?>
	 	
	 	<input type="hidden" name="newUserApproval" value="<?php 
        echo $this->uname;
        ?>
">
	 	<input type="hidden" name="getUserInfo" value="<?php 
        echo $this->uname;
        ?>
">
	 	<input type="hidden" name="uname" value="<?php 
        echo $this->uname;
        ?>
">  
	 	<!-- 
	 	
	 	-->
	 	<table>
	 		<tr>
	 			<td>שם פרטי	</td>
	 			<td><?php 
        //echo $this->firstName
        ?>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "firstName";
        }
        echo $LineMiddle . $this->firstName . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>שם משפחה</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "lastName";
        }
        echo $LineMiddle . $this->lastName . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>שם משתמש</td>
	 			<td>
	 				<?php 
        //echo $this->uname;
        ?>
	 				<?php 
        echo $LineStart;
        if ($addUser) {
            echo "uname";
        }
        echo $LineMiddle . $this->uname . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>תעודת זהות</td>
	 			<td>
	 			<?php 
        echo $LineStart;
        if ($edit) {
            echo "id";
        }
        echo $LineMiddle . $this->id . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>בית ספר</td>
	 			<td>
	 			<?php 
        //From generalFunctions.php
        if ($edit && $edit != -1) {
            ?>
 
		 					<select name="memberOfGroup" >
									<?php 
            getGroupsList($this->memberOfGroup);
            ?>
 
							</select>
	 					<?php 
        } else {
            getUserGroup($this->uname, true);
            //Echo to screen
        }
        ?>
	 			
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>טלפון</td>
	 			<td>
	 			<?php 
        echo $LineStart;
        if ($edit) {
            echo "phone";
        }
        echo $LineMiddle . $this->phone . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>טלפון נייד</td>
	 			<td>
	 			<?php 
        echo $LineStart;
        if ($edit) {
            echo "cellPhone";
        }
        echo $LineMiddle . $this->cellPhone . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>דוא"ל</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "email";
        }
        echo $LineMiddle . $this->email . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td> תאריך לידה</td>
	 			<td>
	 				<?php 
        //echo $LineStart;
        if ($edit) {
            ?>
 
		 								<select name="year_of_birth" >
										<?php 
            getYear($this->BirthYear);
            ?>
										</select>
		
		    
										<select name="month_of_birth" >
										<?php 
            getMonth($this->birthMonth);
            ?>
										</select>
		
		    
										<select name="day_of_birth" >
										<?php 
            getDay($this->birthDay);
            ?>
										</select> <?php 
        } else {
            if (strcmp($this->BirthYear, "") != 0 && $this->BirthYear != 0) {
                echo $LineMiddle . $this->birthDay . "/" . $this->birthMonth . "/" . $this->BirthYear . $LineEnd;
            }
        }
        ?>
</td>
	 		</tr>
	 		<tr>
	 			<td>ישוב</td>
	 			<td>
		 			<?php 
        echo $LineStart;
        if ($edit) {
            echo "city";
        }
        echo $LineMiddle . $this->city . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>רחוב</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "street";
        }
        echo $LineMiddle . $this->Street . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>מס' בית</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "houseNumber";
        }
        echo $LineMiddle . $this->houseNumber . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>שם האב</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "fatherName";
        }
        echo $LineMiddle . $this->fatherName . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>מספר טלפון של האב</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "fatherPhoneNumber";
        }
        echo $LineMiddle . $this->fatherPhoneNo . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>שם האם</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "motherName";
        }
        echo $LineMiddle . $this->motherName . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>מספר טלפון של האם</td>
	 			<td>
	 				<?php 
        echo $LineStart;
        if ($edit) {
            echo "motherPhoneNumber";
        }
        echo $LineMiddle . $this->motherPhoneNo . $LineEnd;
        ?>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>הרשאות</td>
	 			
	 			<td>
	 				<?php 
        //From generalFunctions.php
        if ($edit == 1) {
            ?>
 
		 					<select name="permissionGroup" >
									<?php 
            getPermissionList($this->permission[PID]);
            ?>
							</select>
	 					<?php 
        } else {
            if (isset($this->permission[PGroupName])) {
                echo $this->permission[PGroupName];
            } else {
                echo "חניך";
            }
        }
        ?>
	 				<input type="hidden" name="approved" value="<?php 
        echo $this->approved();
        ?>
">
	 				</td>
	 		</tr> 			
	 		<?php 
        //			$this->birthDay="";
        //			$this->birthMonth="";
        //
        //			$this->city="";
        //			$this->Street="";
        //			$this->houseNumber="";
        //
        //			$this->memberOfGroup="";
        //			$this->permissionGroup="";
        //
        //			$this->approvedUser="";
        ?>
 
	 	</table>
	 	<table>
	 		<tr>
	 			<?php 
        if ($edit) {
            ?>
	 					<td>
	 						<input type="submit" name="userUpdateSave" value="שמור שינויים">
	 					</td>
	 					<td>
	 						<input type="submit" name="userUpdeateCancel" value="בטל שינויים">
	 					</td>
	 					<td>
	 						<input type="submit" name="resetPassword" value="איפוס סיסמא" title="איפוס הסיסמא ל1234">
	 					</td>
	 				<?php 
        } else {
            if (!$notAllowdToEdit) {
                ?>
<td><input type="submit" name="editUserData" value="ערוך"></td>
	 					<?php 
            }
        }
        ?>
	 		</tr>
	 	</table>
	 	<?php 
    }