📄 groupedit.php
字号:
echo " <td class=table_rows width=3% align=center>".$admin."</td>\n";}if ("".$row["time_admin"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/accept.png' /></td>\n";} else { $time_admin = ""; echo " <td class=table_rows width=3% align=center>".$time_admin."</td>\n";}if ("".$row["reports"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/accept.png' /></td>\n";} else { $reports = ""; echo " <td class=table_rows width=3% align=center>".$reports."</td>\n";}if ((strpos($user_agent, "MSIE 6")) || (strpos($user_agent, "MSIE 5")) || (strpos($user_agent, "MSIE 4")) || (strpos($user_agent, "MSIE 3"))) {echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Edit User: $empfullname\" href=\"useredit.php?username=$empfullname&officename=".$row["office"]."\">Edit</a></td>\n";echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Change Password: $empfullname\" href=\"chngpasswd.php?username=$empfullname&officename=".$row["office"]."\">Chg Pwd</a></td>\n";echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Delete User: $empfullname\" href=\"userdelete.php?username=$empfullname&officename=".$row["office"]."\">Delete</a></td></tr>\n";} else {echo " <td class=table_rows width=3% align=center><a title=\"Edit User: $empfullname\" href=\"useredit.php?username=$empfullname&officename=".$row["office"]."\"> <img border=0 src='../images/icons/application_edit.png' /></a></td>\n";echo " <td class=table_rows width=3% align=center><a title=\"Change Password: $empfullname\" href=\"chngpasswd.php?username=$empfullname&officename=".$row["office"]."\"><img border=0 src='../images/icons/lock_edit.png' /></a></td>\n";echo " <td class=table_rows width=3% align=center><a title=\"Delete User: $empfullname\" href=\"userdelete.php?username=$empfullname&officename=".$row["office"]."\"> <img border=0 src='../images/icons/delete.png' /></a></td></tr>\n";}}}if ($user_count_rows > '0') { echo " </table></td></tr>\n";include '../footer.php'; exit;} elseif ($user_count_rows == '0') { echo " </td></tr>\n";include '../footer.php'; exit;}} else {$query4 = "update ".$db_prefix."employees set groups = ('".$post_groupname."'), office = ('".$post_officename."') where groups = ('".$get_group."') and office = ('".$get_office."')";$result4 = mysql_query($query4);$query5 = "update ".$db_prefix."groups set groupname = ('".$post_groupname."'), officeid = ('".$post_officeid."') where groupname = ('".$get_group."') and officeid = ('".$orig_officeid."')";$result5 = mysql_query($query5);echo " <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr>\n";echo " <td class=table_rows width=20 align=center><img src='../images/icons/accept.png' /></td> <td class=table_rows_green> Group properties updated successfully.</td></tr>\n";echo " </table>\n";echo " <br />\n";echo " <table align=center class=table_border width=60% border=0 cellpadding=3 cellspacing=0>\n";echo " <tr>\n";echo " <th class=rightside_heading nowrap halign=left colspan=3><img src='../images/icons/group_edit.png' /> Edit Group - $get_group</th>\n";echo " </tr>\n";echo " <tr><td height=15></td></tr>\n";echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>New Group Name:</td><td align=left class=table_rows colspan=2 width=80% style='padding-left:20px;'>$post_groupname</td></tr>\n";echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>New Parent Office:</td><td align=left class=table_rows colspan=2 width=80% style='padding-left:20px;'>$post_officename</td></tr>\n";echo " <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>User Count:</td><td align=left class=table_rows colspan=2 width=80% style='padding-left:20px;'>$user_cnt</td></tr>\n";echo " <tr><td height=15></td></tr>\n";echo " </table>\n";echo " <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";echo " <tr><td height=20 align=left> </td></tr>\n";echo " <tr><td><a href='groupadmin.php'><img src='../images/buttons/done_button.png' border='0'></a></td></tr></table>\n";$user_count = mysql_query("select empfullname from ".$db_prefix."employees where groups = ('".$post_groupname."') and office = ('".$post_officename."') order by empfullname");@$user_count_rows = mysql_num_rows($user_count);$admin_count = mysql_query("select empfullname from ".$db_prefix."employees where admin = '1' and groups = ('".$post_groupname."') and office = ('".$post_officename."')");@$admin_count_rows = mysql_num_rows($admin_count);$time_admin_count = mysql_query("select empfullname from ".$db_prefix."employees where time_admin = '1' and groups = ('".$post_groupname."') and office = ('".$post_officename."')");@$time_admin_count_rows = mysql_num_rows($time_admin_count);$reports_count = mysql_query("select empfullname from ".$db_prefix."employees where reports = '1' and groups = ('".$post_groupname."') and office = ('".$post_officename."')");@$reports_count_rows = mysql_num_rows($reports_count);if ($user_count_rows > '0') {echo " <br /><br /><br /><hr /><br />\n";echo " <table width=90% align=center height=40 border=0 cellpadding=0 cellspacing=0>\n";echo " <tr><th class=table_heading_no_color nowrap width=100% halign=left>Members of $post_groupname Group in $post_officename Office</th></tr>\n";echo " <tr><td height=40 class=table_rows nowrap halign=left><img src='../images/icons/user_green.png' /> Total Users: $user_count_rows <img src='../images/icons/user_orange.png' /> Sys Admin Users: $admin_count_rows <img src='../images/icons/user_red.png' /> Time Admin Users: $time_admin_count_rows <img src='../images/icons/user_suit.png' /> Reports Users: $reports_count_rows</td></tr>\n";echo " </table>\n";echo " <table class=table_border width=90% align=center border=0 cellpadding=0 cellspacing=0>\n";echo " <tr><th class=table_heading nowrap width=3% align=left> </th>\n";echo " <th class=table_heading nowrap width=23% align=left>Username</th>\n";echo " <th class=table_heading nowrap width=23% align=left>Display Name</th>\n";echo " <th class=table_heading nowrap width=28% align=left>Email Address</th>\n";echo " <th class=table_heading width=3% align=center>Disabled</th>\n";echo " <th class=table_heading width=3% align=center>Sys Admin</th>\n";echo " <th class=table_heading width=3% align=center>Time Admin</th>\n";echo " <th class=table_heading nowrap width=3% align=center>Reports</th>\n";echo " <th class=table_heading nowrap width=3% align=center>Edit</th>\n";echo " <th class=table_heading width=5% align=center>Change Passwd</th>\n";echo " <th class=table_heading nowrap width=3% align=center>Delete</th></tr>\n";$row_count = 0;$query = "select empfullname, displayname, email, groups, office, admin, reports, time_admin, disabled from ".$db_prefix."employees where groups = ('".$post_groupname."') order by empfullname";$result = mysql_query($query);while ($row=mysql_fetch_array($result)) {$empfullname = stripslashes("".$row['empfullname']."");$displayname = stripslashes("".$row['displayname']."");$row_count++;$row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr class=table_border bgcolor='$row_color'><td class=table_rows width=3%> $row_count</td>\n";echo " <td class=table_rows width=24%> <a class=footer_links title=\"Edit User: $empfullname\" href=\"useredit.php?username=$empfullname\">$empfullname</a></td>\n";echo " <td class=table_rows width=24%> $displayname</td>\n";echo " <td class=table_rows width=29%> ".$row["email"]."</td>\n";if ("".$row["disabled"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/cross.png' /></td>\n";} else { $disabled = ""; echo " <td class=table_rows width=3% align=center>".$disabled."</td>\n";}if ("".$row["admin"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/accept.png' /></td>\n";} else { $admin = ""; echo " <td class=table_rows width=3% align=center>".$admin."</td>\n";}if ("".$row["time_admin"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/accept.png' /></td>\n";} else { $time_admin = ""; echo " <td class=table_rows width=3% align=center>".$time_admin."</td>\n";}if ("".$row["reports"]."" == 1) { echo " <td class=table_rows width=3% align=center><img src='../images/icons/accept.png' /></td>\n";} else { $reports = ""; echo " <td class=table_rows width=3% align=center>".$reports."</td>\n";}if ((strpos($user_agent, "MSIE 6")) || (strpos($user_agent, "MSIE 5")) || (strpos($user_agent, "MSIE 4")) || (strpos($user_agent, "MSIE 3"))) {echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Edit User: $empfullname\" href=\"useredit.php?username=$empfullname&officename=".$row["office"]."\">Edit</a></td>\n";echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Change Password: $empfullname\" href=\"chngpasswd.php?username=$empfullname&officename=".$row["office"]."\">Chg Pwd</a></td>\n";echo " <td class=table_rows width=3% align=center><a style='color:#27408b;text-decoration:underline;' title=\"Delete User: $empfullname\" href=\"userdelete.php?username=$empfullname&officename=".$row["office"]."\">Delete</a></td></tr>\n";} else {echo " <td class=table_rows width=3% align=center><a title=\"Edit User: $empfullname\" href=\"useredit.php?username=$empfullname&officename=".$row["office"]."\"> <img border=0 src='../images/icons/application_edit.png' /></a></td>\n";echo " <td class=table_rows width=3% align=center><a title=\"Change Password: $empfullname\" href=\"chngpasswd.php?username=$empfullname&officename=".$row["office"]."\"><img border=0 src='../images/icons/lock_edit.png' /></a></td>\n";echo " <td class=table_rows width=3% align=center><a title=\"Delete User: $empfullname\" href=\"userdelete.php?username=$empfullname&officename=".$row["office"]."\"> <img border=0 src='../images/icons/delete.png' /></a></td></tr>\n";}}}if ($user_count_rows > '0') { echo " </table></td></tr>\n";include '../footer.php'; exit;} elseif ($user_count_rows == '0') { echo " </td></tr>\n";include '../footer.php'; exit;}}}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -