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

📄 leftmain.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
📖 第 1 页 / 共 2 页
字号:
                    </table></td><tr>\n";}echo "        <tr><td height=7></td></tr>\n";echo "        <tr><td height=4 align=left valign=middle class=misc_items><input type='submit' name='submit_button' value='Submit' align='center'                 tabindex=6></td></tr></form>\n";if ($display_weather == "yes") {    echo "        <tr><td height=25 align=left valign=bottom class=misc_items><font color='00589C'><b><u>Weather Conditions:</u></b></font></td></tr>\n";    echo "        <tr><td height=7></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items><b>$city</b></td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items>Currently: $temp&#176;</td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items>Feels Like: $feelslike&#176;</td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items>Skies: $cloud_cover</td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items>Wind: $wind_dir $wind$mph</td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    if ($humidity == 'None') {        echo "        <tr><td align=left valign=middle class=misc_items>Humidity: $humidity</td></tr>\n";    } else {        echo "        <tr><td align=left valign=middle class=misc_items>Humidity: $humidity%</td></tr>\n";    }    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items>Visibility: $visibility miles</td></tr>\n";    echo "        <tr><td height=4></td></tr>\n";    echo "        <tr><td align=left valign=middle class=misc_items><font color='FF0000'>Last Updated: $time</font></td></tr>\n";}echo "        <tr><td height=90%></td></tr>\n";echo "      </table></td>\n";if ($request == 'POST') {    // signin/signout data passed over from timeclock.php //    $inout = $_POST['left_inout'];    $notes = ereg_replace("[^[:alnum:] \,\.\?-]","",strtolower($_POST['left_notes']));    // begin post validation //    if ($use_passwd == "yes") {        $employee_passwd = crypt($_POST['employee_passwd'], 'xy');    }    $query = "select punchitems from ".$db_prefix."punchlist";    $punchlist_result = mysql_query($query);    while ($row = mysql_fetch_array($punchlist_result)) {        $tmp_inout = "".$row['punchitems']."";    }    if (!isset($tmp_inout)) {echo "In/Out Status is not in the database.\n"; exit;}    // end post validation //    if ($show_display_name == "yes") {        if (!$displayname && !$inout) {            echo "    <td align=left class=right_main scope=col>\n";            echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";            echo "        <tr class=right_main_text>\n";            echo "          <td valign=top>\n";            echo "<br />\n";            echo "You have not chosen a username or a status. Please try again.\n";            include 'footer.php';            exit;        }        if (!$displayname) {            echo "    <td align=left class=right_main scope=col>\n";            echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";            echo "        <tr class=right_main_text>\n";            echo "          <td valign=top>\n";            echo "<br />\n";            echo "You have not chosen a username. Please try again.\n";            include 'footer.php';            exit;        }    }         elseif ($show_display_name == "no") {        if (!$fullname && !$inout) {            echo "    <td align=left class=right_main scope=col>\n";            echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";            echo "        <tr class=right_main_text>\n";            echo "          <td valign=top>\n";            echo "<br />\n";            echo "You have not chosen a username or a status. Please try again.\n";            include 'footer.php';            exit;        }        if (!$fullname) {            echo "    <td align=left class=right_main scope=col>\n";            echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";            echo "        <tr class=right_main_text>\n";            echo "          <td valign=top>\n";            echo "<br />\n";            echo "You have not chosen a username. Please try again.\n";            include 'footer.php';            exit;        }    }    if (!$inout) {        echo "    <td align=left class=right_main scope=col>\n";        echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";        echo "        <tr class=right_main_text>\n";        echo "          <td valign=top>\n";        echo "<br />\n";        echo "You have not chosen a status. Please try again.\n";        include 'footer.php';        exit;    }    @$fullname = addslashes($fullname);    @$displayname = addslashes($displayname);    // configure timestamp to insert/update //    $hour = gmdate('H');    $min = gmdate('i');    $sec = gmdate('s');    $month = gmdate('m');    $day = gmdate('d');    $year = gmdate('Y');    $tz_stamp = mktime ($hour, $min, $sec, $month, $day, $year);    if ($use_passwd == "no") {        if ($show_display_name == "yes") {            $sel_query = "select empfullname from ".$db_prefix."employees where displayname = '".$displayname."'";            $sel_result = mysql_query($sel_query);            while ($row=mysql_fetch_array($sel_result)) {                $fullname = stripslashes("".$row["empfullname"]."");                $fullname = addslashes($fullname);            }        }        if (strtolower($ip_logging) == "yes") {            $query = "insert into ".$db_prefix."info (fullname, `inout`, timestamp, notes, ipaddress) values ('".$fullname."', '".$inout."',                       '".$tz_stamp."', '".$notes."', '".$connecting_ip."')";        } else {            $query = "insert into ".$db_prefix."info (fullname, `inout`, timestamp, notes) values ('".$fullname."', '".$inout."', '".$tz_stamp."',                       '".$notes."')";        }        $result = mysql_query($query);        $update_query = "update ".$db_prefix."employees set tstamp = '".$tz_stamp."' where empfullname = '".$fullname."'";        $other_result = mysql_query($update_query);        echo "<head>\n";        echo "<meta http-equiv='refresh' content=0;url=index.php>\n";        echo "</head>\n";    } else {    if ($show_display_name == "yes") {        $sel_query = "select empfullname, employee_passwd from ".$db_prefix."employees where displayname = '".$displayname."'";        $sel_result = mysql_query($sel_query);        while ($row=mysql_fetch_array($sel_result)) {            $tmp_password = "".$row["employee_passwd"]."";            $fullname = "".$row["empfullname"]."";        }        $fullname = stripslashes($fullname);        $fullname = addslashes($fullname);    } else {        $sel_query = "select empfullname, employee_passwd from ".$db_prefix."employees where empfullname = '".$fullname."'";        $sel_result = mysql_query($sel_query);        while ($row=mysql_fetch_array($sel_result)) {            $tmp_password = "".$row["employee_passwd"]."";        }    }    if ($employee_passwd == $tmp_password) {        if (strtolower($ip_logging) == "yes") {            $query = "insert into ".$db_prefix."info (fullname, `inout`, timestamp, notes, ipaddress) values ('".$fullname."', '".$inout."',                       '".$tz_stamp."', '".$notes."', '".$connecting_ip."')";        } else {            $query = "insert into ".$db_prefix."info (fullname, `inout`, timestamp, notes) values ('".$fullname."', '".$inout."', '".$tz_stamp."',                       '".$notes."')";        }        $result = mysql_query($query);         $update_query = "update ".$db_prefix."employees set tstamp = '".$tz_stamp."' where empfullname = '".$fullname."'";        $other_result = mysql_query($update_query);        echo "<head>\n";        echo "<meta http-equiv='refresh' content=0;url=index.php>\n";        echo "</head>\n";    } else {        echo "    <td align=left class=right_main scope=col>\n";        echo "      <table width=100% height=100% border=0 cellpadding=10 cellspacing=1>\n";        echo "        <tr class=right_main_text>\n";        echo "          <td valign=top>\n";        echo "<br />\n";        if ($show_display_name == "yes") {            $strip_fullname = stripslashes($displayname);        } else {            $strip_fullname = stripslashes($fullname);        }        echo "You have entered the wrong password for $strip_fullname. Please try again.";        include 'footer.php'; exit;    }}}?>

⌨️ 快捷键说明

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