⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usersearch.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
📖 第 1 页 / 共 3 页
字号:
$tmp_var = $email_addy;$tmp_var2 = "Email Address";  if ((!empty($office_name)) && (!empty($group_name))) {  $query4 = "select empfullname, displayname, email, groups, office, admin, reports, time_admin, disabled from ".$db_prefix."employees            where email LIKE '%".$email_addy."%' and office = '".$office_name."' and groups = '".$group_name."'            order by empfullname";  $result4 = mysql_query($query4);  }   elseif (!empty($office_name)) {  $query4 = "select empfullname, displayname, email, groups, office, admin, reports, time_admin, disabled from ".$db_prefix."employees            where email LIKE '%".$email_addy."%' and office = '".$office_name."'            order by empfullname";  $result4 = mysql_query($query4);  }   elseif (empty($office_name)) {  $query4 = "select empfullname, displayname, email, groups, office, admin, reports, time_admin, disabled from ".$db_prefix."employees            where email LIKE '%".$email_addy."%'             order by empfullname";  $result4 = mysql_query($query4);  } }$tmp_var = stripslashes($tmp_var);$tmp_var2 = stripslashes($tmp_var2);$row_count = "0";while ($row=mysql_fetch_array($result4)) {@$user_count_rows = mysql_num_rows($user_count);@$admin_count_rows = mysql_num_rows($admin_count);@$reports_count_rows = mysql_num_rows($reports_count);$row_count++;if ($row_count == "1") {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>User Search Summary</th></tr>\n";echo "              <tr><td height=40 class=table_rows nowrap halign=left>Search Results for \"$tmp_var\" in $tmp_var2</td></tr>\n";echo "            </table>\n";echo "            <table class=table_border width=90% align=center border=0 cellpadding=0 cellspacing=0>\n";echo "              <tr>\n";echo "                <th class=table_heading nowrap width=3% align=left>&nbsp;</th>\n";echo "                <th class=table_heading nowrap width=13% align=left>Username</th>\n";echo "                <th class=table_heading nowrap width=18% align=left>Display Name</th>\n";//echo "                <th class=table_heading nowrap width=23% align=left>Email Address</th>\n";echo "                <th class=table_heading nowrap width=10% align=left>Office</th>\n";echo "                <th class=table_heading nowrap width=10% align=left>Group</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=3% align=center>Chg Pwd</th>\n";echo "                <th class=table_heading nowrap width=3% align=center>Delete</th>\n";echo "              </tr>\n";}$row_color = ($row_count % 2) ? $color2 : $color1;$empfullname = stripslashes("".$row['empfullname']."");$displayname = stripslashes("".$row['displayname']."");echo "              <tr class=table_border bgcolor='$row_color'><td class=table_rows width=3%>&nbsp;$row_count</td>\n";echo "                <td class=table_rows width=13%>&nbsp;<a class=footer_links title=\"Edit User: $empfullname\"                    href=\"useredit.php?username=$empfullname&officename=".$row["office"]."\">$empfullname</a></td>\n";echo "                <td class=table_rows width=18%>$displayname</td>\n";//echo "                <td class=table_rows width=23%>".$row["email"]."</td>\n";echo "                <td class=table_rows width=10%>".$row['office']."</td>\n";echo "                <td class=table_rows width=10%>".$row['groups']."</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";}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' /></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' /></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' /></td>\n";echo "              </tr>\n";}mysql_free_result($result4);if ($row_count == "0") {$post_username = stripslashes($post_username);echo "            <br />\n";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/cancel.png' /></td><td class=table_rows_red nowrap>                    &nbsp;A user was not found matching your criteria. Please try again.</td></tr>\n";echo "            </table>\n";echo "            <br />\n";echo "            <form name='form' action='$self' method='post'>\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/magnifier.png' />&nbsp;&nbsp;&nbsp;Search for User                </th></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>Username:</td><td colspan=2 width=80%                       style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'><input type='text' style='color:red;' size='25' maxlength='50'                       name='post_username' value=\"$post_username\"                       onFocus=\"javascript:form.display_name.disabled=true;form.email_addy.disabled=true;                      form.display_name.style.background='#eeeeee';form.email_addy.style.background='#eeeeee';\"></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Display Name:</td><td colspan=2 width=80%                       style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'><input type='text' style='color:red;' size='25' maxlength='50'                       name='display_name' value=\"$display_name\"                       onFocus=\"javascript:form.post_username.disabled=true;form.email_addy.disabled=true;                      form.post_username.style.background='#eeeeee';form.email_addy.style.background='#eeeeee';\"></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Email Address:</td><td colspan=2 width=80%                       style='color:red;font-family:Tahoma;font-size:10px;padding-left:20px;'><input type='text style='color:red;' size='25' maxlength='75'                       name='email_addy' value=\"$email_addy\"                       onFocus=\"javascript:form.post_username.disabled=true;form.display_name.disabled=true;                      form.post_username.style.background='#eeeeee';form.display_name.style.background='#eeeeee';\"></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Office:</td><td colspan=2 width=80%                       style='padding-left:20px;'>                      <select name='office_name' onchange='group_names();'>\n";echo "                      </select></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Group:</td><td colspan=2 width=80%                       style='padding-left:20px;'>                      <select name='group_name' onfocus='group_names();'>                        <option selected>$group_name</option>\n";echo "                      </select></td></tr>\n";echo "              <tr><td class=table_rows align=right colspan=3 style='color:#27408b;font-family:Tahoma;'><a class=footer_links                       href=\"usersearch.php\" style='text-decoration:underline;'>reset form</a></td></tr>\n";echo "            </table>\n";echo "            <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr><td height=40>&nbsp;</td></tr>\n";echo "              <tr><td width=30><input type='image' name='submit' value='Create User' align='middle'                       src='../images/buttons/search_button.png'></td><td><a href='useradmin.php'><img src='../images/buttons/cancel_button.png'                       border='0'></td></tr></table></form></td></tr>\n";include '../footer.php'; exit;} else {echo "            </table></td></tr>\n";include '../footer.php'; exit;}}}}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -