סנן על פי הרשאה <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 } ?> </DIV> <br> <input type="submit" value=" הצג "> </form> <!-- DISPLAY THE USER LISTS --> <?php if (!isset($displayUserInfo)) { $result = executeQuary($sql); if (mysql_num_rows($result) == 0) { ?>
function draw_page($persistent) { ?> <h1>ברוכים הבאים - אנא מלאו את הפרטים הבאים על מנת להצטרף למערכת</h1> <form name="registation" method="POST"> <table> <tr> <td>*שם פרטי:</td> <td> <input type="text" name="first_name" title="הכנס שם פרטי" value="<?php print_r($persistent["first_name"]); ?> "> </td> </tr> <tr> <td>*שם משפחה:</td> <td> <input type="text" name="last_name" title="הכנס שם משפחה"value="<?php print_r($persistent["last_name"]); ?> "> </td> </tr> <tr> <td>*שם משתמש:</td> <td> <input type="text" name="user_name" title="הכנס שם משתמש באותיות לועזיות" value="<?php print_r($persistent["user_name"]); ?> "> </td> </tr> <tr> <td>*סיסמא:</td> <td> <input type="password" name="pass1" title="הכנס סיסמה סודית" value=<?php print_r($persistent["pass1"]); ?> > </td> </tr> <tr> <td>*אימות סיסמא:</td> <td> <input type="password" name="pass2" title="הכנס סיסמה סודית" value=<?php print_r($persistent["pass1"]); ?> > </td> </tr> <tr> <td>בית ספר:</td> <td> <select name="memberOfGroup"> <?php getGroupsList(); ?> </select> </td> </tr> <tr> <td>מספר זהות:</td> <td> <input type="text" name="ID" title="הכנס מספר זהות בן 9 ספרות" value="<?php print_r($persistent["ID"]); ?> "> </td> </tr> <tr> <td>כתובת דוא"ל:</td> <td> <input type="text" name="email" title="הכנס כתובת דואר אלקטרוני" value=<?php print_r($persistent["email"]); ?> > </td> </tr> <tr> <td>תאריך לידה:</td> <td> <select name="year_of_birth" > <?php getYear(); ?> </select> <select name="month_of_birth" > <?php getMonth(); ?> </select> <select name="day_of_birth" > <?php getDay(); ?> </select> </td> </tr> <tr> <td>טלפון:</td> <td> <input type="text" name="phone" title="הכנס מספר טלפון "value=<?php print_r($persistent["phone"]); ?> > </td> </tr> <tr> <td>טלפון סלולרי:</td> <td> <input type="text" name="cell_phone" title="הכנס מספר טלפון סלולרי" value=<?php print_r($persistent["cell_phone"]); ?> > </td> </tr> <tr> <td>ישוב:</td> <td> <input type="text" name="city" title="הכנס את שם הישוב בו אתה גר" value=<?php print_r($persistent["city"]); ?> > </td> </tr> <tr> <td>רחוב:</td> <td> <input type="text" name="street" title="הכנס את שם הרחוב בו אתה גר" value=<?php print_r($persistent["street"]); ?> > </td> </tr> <tr> <td>מספר בית:</td> <td> <input type="text" name="house_number" title="הכנס את מספר הבית בו אתה גר" value=<?php print_r($persistent["house_number"]); ?> > </td> </tr> <tr> <td>שם האב:</td> <td> <input type="text" name="father_name" title="הכנס את שם האב" value="<?php print_r($persistent["father_name"]); ?> "> </td> </tr> <tr> <td> טלפון של האב:</td> <td> <input type="text" name="father_phone" title="הכנס מספר טלפון של האב" value=<?php print_r($persistent["father_phone"]); ?> > </td> </tr> <tr> <td>שם האם:</td> <td> <input type="text" name="mother_name" title="הכנס את שם האם" value="<?php print_r($persistent["mother_name"]); ?> "> </td> </tr> <tr> <td>טלפון של האם:</td> <td> <input type="text" name="mother_phone" title="הכנס מספר טלפון של האם" value=<?php print_r($persistent["mother_phone"]); ?> > </td> </tr> </table> <input type="submit" title="לחץ להרשמה" value="הירשם"></form> <?php }
function showPictures($GID = 0, $edit = 0, $viewAll = 0, $sql) { ?> <FORM method="post" action="viewPictures.php" name="viewPicturesForm"> <input type = "hidden" name="DeleteButton" value="0"> <!-- Group Messages --> <?php if ($viewAll) { ?> <div class="TITLE"> בחר קבוצה: <br> </div> <select name="groupID" onChange="javascript:GrouplistSubmitPIC()"> <?php getGroupsList($_POST[groupID]); ?> </select> <input type="hidden" name="listSubmit" value="0"> <?php } //end of view all if (!$GID) { echo "<h2> אין קבוצה !</h2>"; return 0; //if no group don't display any pictures } $result = executeQuary($sql); $rows = mysql_affected_rows(); if ($rows == 0) { ?> <table align="center"> <tr> <td class="PICTURES" align="center"><img src="img/logo.gif"><br><br>אין תמונות קבוצתיות</td> </tr> </table> <?php return; //<?php if ($rows>1) echo $rows; else echo 2; } else { $myRecord = mysql_fetch_array($result); ?> <table align="center" class="PICTURES"> <tr> <input type = "hidden" name="MainPicID" value="<?php echo $myRecord[PID]; ?> "> <td class="PICTURES" align="center" colspan="6" height="400" bordercolor="black"><img width="480" height="360" src="<?php echo $myRecord[link]; ?> " name="mainPicture" border="1"></td> </tr> <tr> <td class="PICTURES">הועלה ע"י:<br>תאריך:<br>הערות:<br><td> <td class="PICTURES" id="mainPictureDetails"><?php echo $myRecord[userUploaded] . "<br>" . $myRecord[date] . "<br>" . $myRecord[comment]; ?> </td> <?php if ($edit) { ?> <td class="PICTURES" align="center"><input type="submit" name="deletePictures" value=" מחק " title="לחץ כאן כדי למחוק את התמונה הראשית" onclick="return confirmPictureDelete()"></td> <?php } ?> </tr> </table> <br> <br> <table align="center" class="PICTURES"> <tr> <input type = "hidden" name="rightPicID" value="0"> <?php if (!($rows < 6 && $_POST['rightPicID'])) { ?> <td class="PICTURES" align="left"><a href="javascript:PrevPicSubmit('<?php echo $myRecord[PID]; ?> ')" title="קודם"><img src="img/rightArrow.jpg" border="0"></a></td> <?php } ?> <td class="PICTURES" bordercolor="black"><a href="javascript:ShowPic('<?php echo $myRecord[PID]; ?> ','<?php echo $myRecord[link]; ?> ','<?php echo $myRecord[userUploaded] . "<br>" . $myRecord[date] . "<br>" . $myRecord[comment]; ?> ')"><img width="120" height="90" src="<?php echo $myRecord[link]; ?> " alt="<?php echo $myRecord[comment]; ?> " border="1" ></a></td> <?php while ($myRecord = mysql_fetch_array($result)) { ?> <td class="PICTURES" bordercolor="black"><a href="javascript:ShowPic('<?php echo $myRecord[PID]; ?> ','<?php echo $myRecord[link]; ?> ','<?php echo $myRecord[userUploaded] . "<br>" . $myRecord[date] . "<br>" . $myRecord[comment]; ?> ')"><img width="120" height="90" src="<?php echo $myRecord[link]; ?> " alt="<?php echo $myRecord[comment]; ?> " border="1"></a></td> <?php $last = $myRecord; } if (!($rows < 6 && $_POST['leftPicID'])) { ?> <td class="PICTURES" align="right"><a href="javascript:NextPicSubmit('<?php echo $last[PID]; ?> ')" title="הבא"><img src="img/leftArrow.jpg" border="0"></a></td> <?php } ?> <input type = "hidden" name="leftPicID" value="0"> </tr> </table> <?php } }
<?php } else { ?> <!-- Group Messages --> <FORM method="POST" action="manageMessages.php" name="groupMessageForm"> <?php if ($allowViewAll) { ?> <div class="TITLE"> בחר קבוצה: <br> </div> <select name="groupID" onChange="javascript:GrouplistSubmitMSG()"> <?php getGroupsList($_POST[groupID]); ?> </select> <input type="hidden" name="listSubmit" value="0"> <?php } //end of view all ?> <!-- SHOW THE MESSAGE TEXT AREA OF THE GROUP MESSAGES --> <?php if ($allowViewAll) { $groupID = $_POST[groupID]; } else {
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 }