//sequence_treatment before upload
$sequence_treatment = new sequence_treatment();
$check_seq_friends_display = $sequence_treatment->check_seq_friends();
$check_seq_friends_hist_display = $sequence_treatment->check_seq_friends_hist();
$sequence_treatment->seq_compare($check_seq_friends_display, $check_seq_friends_hist_display);
$csv_filename = basename($_FILES['uploadedfile']['name']);
echo "<p>" . $csv_filename . "</p>";
$date = date("d_m_Y");
$date_csv = $date . ".txt";
$all_friends_update_csv = "allfriends.txt";
$compare = strcasecmp($csv_filename, $date_csv);
$username = $_SESSION['username'];
$uploader = new uploader();
$reference_table_handling = new reference_table_handling();
//get day of week
$worktable_handling = new worktable_handling();
$today = $worktable_handling->get_dayofweek();
echo "<p>today: " . $today . "</p>";
if ($compare != 0) {
    $compare = strcasecmp($csv_filename, $all_friends_update_csv);
    if ($compare != 0) {
        echo "תאריך הקובץ לא זהה לתאריך של היום או ששם הקובץ (" . $csv_filename . ") לא  בפורמט הנכון (" . $date_csv . ")";
    } else {
        $addauto_ind = 1;
        //28-02-2014 - if 1 then match the uploader to insert update all_friends
        $check_log_num = 1;
        //28-02-2014 - if 1 then upload to draft only
        $uploader->draft_uploader($check_log_num, $addauto_ind);
        //28-02-2014
        $reference_table_handling->add_records();
    }
<html dir="rtl" lang="he">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="styles.css">
<title>מערכת מעקב נוכחות - מרכז "בני ברוך" פתח גהגה תקוה</title>
<?php 
include "class_lib.php";
?>
</head>
<body>

<?php 
include 'top_menu.html';
//$dbcon=new dbcon();
//$set_db_time_zone = $dbcon->set_db_time_zone();
$worktable_handling = new worktable_handling();
$get_dayofweek = $worktable_handling->get_dayofweek();
$show_curr_datetime = $worktable_handling->show_curr_datetime();
$admin_oper = new admin_oper();
$BeginTime = $admin_oper->GetBeginTime();
echo "<p>עכשיו " . $show_curr_datetime . " יום " . $get_dayofweek . "</p>";
echo "<p> זמן תחילת השיעור " . $BeginTime . "</p>";
?>
<button onclick="window.location.href='admin.php'">עדכן זמן התחלה</button>
<p></p>
<form enctype="multipart/form-data" action="report_uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="500000" />
<font face="Arial, Helvetica, sans-serif">טעינת קובץ</font><input name="uploadedfile" type="file" /><br />
<input type="submit" value="שלח" />
</form>
<body>
 
<?php 
include 'top_menu.html';
include 'dbcon.php';
$tbl_name = "report";
$reference_tbl_name = "all_friends";
$id_empty = "id=\"empty\"";
$id_title = "id=\"title\"";
$orderby = "name";
$day = "";
// $q_call_ind=" and $reference_tbl_name.call_ind="
$q_misgeret = " and {$reference_tbl_name}.misgeret  IS NOT NULL";
$q_reason = " and {$tbl_name}.reason not like 'מחק'";
$q_rcode = " and {$tbl_name}.reason_code not like 'מחק'";
$worktable_handling = new worktable_handling();
$absents = $worktable_handling->count_report_records();
$q_group = " ";
$q_call_ind = "";
$q_last_name = "";
?>
<table>
<tr>
<td <?php 
echo $id_empty;
?>
>
<!--lamed form-->
<div class="pagination">בלחיצה על "סגירת יום" יעודכנו  אוטומטית סטאטוסים "ל" ו- "לא" בהתאם לנדרש</div>
<form method="post" action="<?php 
echo 'http://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
Esempio n. 4
0
</head>
<body>
 
<?php 
include 'top_menu.html';
include 'dbcon.php';
$tbl_name_hist = "report_hist";
$reference_tbl_name = "all_friends";
$id_empty = "id=\"empty\"";
$id_title = "id=\"title\"";
$orderby = "name";
$day = "";
$q_misgeret = " and {$reference_tbl_name}.misgeret  IS NOT NULL";
$q_reason = " and {$tbl_name_hist}.reason not like 'מחק'";
$q_rcode = " and {$tbl_name_hist}.reason_code not like 'מחק'";
$worktable_handling = new worktable_handling();
$absents = $worktable_handling->count_report_records();
$q_group = " ";
?>
<table>
<tr>
<td <?php 
echo $id_empty;
?>
>
<!--lamed form-->
<font face="Arial, Helvetica, sans-serif">לחץ לעדכון "ל" גורף</font>
<form method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" onsubmit="return confirm ( 'אם תאשר את ההודעה, כל השורות של היום עם קוד מצב ריק יקבלו קוד מצב = ל! האם אתה בטוח?' )">