| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/modip/infosystem_v7/application/controllers/ |
Upload File : |
<?php
function add_publication_submit() {
$id_user=$_POST['id_user'];
if($id_user==NULL) $id_user=$_SESSION['user_logged'];
if(!permission_exists("add_publication", $id_user)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$id_publication_type=strip($_POST['id_publication_type']);
$authors=strip($_POST['authors']);
$title=strip($_POST['title']);
$description=strip($_POST['description']);
$year=strip($_POST['year']);
$add_info=strip($_POST['add_info']);
if($id_publication_type==NULL||$authors==NULL||$title==NULL||$description==NULL||$year==NULL) {
$_SESSION['error_message']="Πρέπει να συμπληρώσετε όλα τα υποχρεωτικά πεδία.";
add_publication($id_user,$id_publication_type,$authors,$title,$description,$year,$add_info);
return;
}
if((!ctype_digit($year))||$year<1900||$year>2100) {
$_SESSION['error_message']="Το έτος που δώσατε δεν είναι έγκυρο. Πρέπει να είναι της μορφής εεεε και να έχει εύρος 1900 - 2100.";
add_publication($id_user,$id_publication_type,$authors,$title,$description,$year,$add_info);
return;
}
query("INSERT INTO __publications (id_user, id_publication_type, authors, title, description, year, add_info) VALUES ('".$id_user."', '".$id_publication_type."', '".$authors."', '".$title."', '".$description."', '".$year."', '".$add_info."')");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η δημοσίευση καταχωρήθηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την καταχώρηση της δημοσίευσης.";
manage_user_publications($id_user);
}
function delete_publication($id_publication) {
if(!permission_exists("delete_publication", $id_publication)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$id_user=publication_to_user($id_publication);
query("DELETE FROM __publications WHERE id='".$id_publication."'");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η δημοσίευση διεγράφη επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά τη διαγραφή της δημοσίευσης.";
manage_user_publications($id_user);
}
function update_publication_submit() {
$id_publication=$_POST['id_publication'];
if(!permission_exists("update_publication", $id_publication)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$id_user=publication_to_user($id_publication);
$id_publication_type=strip($_POST['id_publication_type']);
$authors=strip($_POST['authors']);
$title=strip($_POST['title']);
$description=strip($_POST['description']);
$year=strip($_POST['year']);
$add_info=strip($_POST['add_info']);
if($id_publication_type==NULL||$authors==NULL||$title==NULL||$description==NULL||$year==NULL) {
$_SESSION['error_message']="Πρέπει να συμπληρώσετε όλα τα υποχρεωτικά πεδία.";
update_publication($id_publication);
return;
}
if((!ctype_digit($year))||$year<1900||$year>2100) {
$_SESSION['error_message']="Το έτος που δώσατε δεν είναι έγκυρο. Πρέπει να είναι της μορφής εεεε και να έχει εύρος 1900 - 2100.";
update_publication($id_publication);
return;
}
$no_changes=mysql_num_rows(query("SELECT * FROM __publications WHERE id='".$id_publication."' AND id_user='".$_SESSION['user_logged']."' AND id_publication_type='".$id_publication_type."' AND authors='".$authors."' AND title='".$title."' AND description='".$description."' AND year='".$year."' AND add_info='".$add_info."'"));
if($no_changes>0) {
$_SESSION['error_message']="Δεν κάνατε κάποια τροποποίηση στη δημοσίευση.";
manage_user_publications($id_user);
return;
}
query("UPDATE __publications SET id_publication_type='".$id_publication_type."', authors='".$authors."', title='".$title."', description='".$description."', year='".$year."', add_info='".$add_info."', update_date='".date('Y-m-d H:i:s')."' WHERE id='".$id_publication."'");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η δημοσίευση τροποποιήθηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την τροποποίηση της δημοσίευσης.";
manage_user_publications($id_user);
}
function add_scientific_work_submit() {
$id_user=$_POST['id_user'];
if($id_user==NULL) $id_user=$_SESSION['user_logged'];
if(!permission_exists("add_scientific_work", $id_user)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$year=strip($_POST['year']);
$citations=strip($_POST['citations']);
$press_references=strip($_POST['press_references']);
$book_reviews=strip($_POST['book_reviews']);
$conference_committees=strip($_POST['conference_committees']);
$journal_editors=strip($_POST['journal_editors']);
$conference_invitations=strip($_POST['conference_invitations']);
$patents=strip($_POST['patents']);
$awards=strip($_POST['awards']);
$honors=strip($_POST['honors']);
$comments=strip($_POST['comments']);
if($year==NULL||$citations==NULL&&$press_references==NULL&&$book_reviews==NULL&&$conference_committees==NULL&&$journal_editors==NULL&&$conference_invitations==NULL&&$patents==NULL&&$awards==NULL&&$honors==NULL) {
$_SESSION['error_message']="Πρέπει να συμπληρώσετε το έτος και τουλάχιστον ένα από τα διαθέσιμα πεδία.";
add_scientific_work($id_user,$year,$citations,$press_references,$book_reviews,$conference_committees,$journal_editors,$conference_invitations,$patents,$awards,$honors,$comments);
return;
}
if((!ctype_digit($year))||$year<1900||$year>2100) {
$_SESSION['error_message']="Το έτος που δώσατε δεν είναι έγκυρο. Πρέπει να είναι της μορφής εεεε και να έχει εύρος 1900 - 2100.";
add_scientific_work($id_user,$year,$citations,$press_references,$book_reviews,$conference_committees,$journal_editors,$conference_invitations,$patents,$awards,$honors,$comments);
return;
}
if(($citations!=NULL&&$citations<0)||
($press_references!=NULL&&$press_references<0)||
($book_reviews!=NULL&&$book_reviews<0)||
($conference_committees!=NULL&&$conference_committees<0)||
($journal_editors!=NULL&&$journal_editors<0)||
($conference_invitations!=NULL&&$conference_invitations<0)||
($patents!=NULL&&$patents<0)||
($awards!=NULL&&$awards<0)||
($honors!=NULL&&$honors<0)) {
$_SESSION['error_message']="Όλα τα υποχρεωτικά πεδία πρέπει να είναι αριθμητικά και θετικά.";
add_scientific_work($id_user,$year,$citations,$press_references,$book_reviews,$conference_committees,$journal_editors,$conference_invitations,$patents,$awards,$honors,$comments);
return;
}
if(($citations+$press_references+$book_reviews+$conference_committees+$journal_editors+$conference_invitations+$patents+$awards+$honors)<=0) {
$_SESSION['error_message']="Τουλάχιστον ένα πεδίο πρέπει να είναι συμπληρωμένο με θετικό ακέραιο και όχι μηδέν (0).";
add_scientific_work($id_user,$year,$citations,$press_references,$book_reviews,$conference_committees,$journal_editors,$conference_invitations,$patents,$awards,$honors,$comments);
return;
}
if(mysql_num_rows(query("SELECT * FROM __scientific_works WHERE id_user='".$_SESSION['user_logged']."' AND year='".$year."'"))!=0) {
$_SESSION['error_message']="Έχετε ήδη καταχωρήσει αναγνώριση επιστημονικού και άλλου έργο για το έτος ".$year.".";
add_scientific_work($id_user,$year,$citations,$press_references,$book_reviews,$conference_committees,$journal_editors,$conference_invitations,$patents,$awards,$honors,$comments);
return;
}
query("INSERT INTO __scientific_works (id_user, year, citations, press_references, book_reviews, conference_committees, journal_editors, conference_invitations, patents, awards, honors, comments) VALUES ('".$id_user."', '".$year."', '".$citations."', '".$press_references."', '".$book_reviews."', '".$conference_committees."', '".$journal_editors."', '".$conference_invitations."', '".$patents."', '".$awards."', '".$honors."', '".$comments."')");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η αναγνώριση του επιστημονικού και άλλου έργου για το έτος ".$year." καταχωρήθηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την καταχώρηση της αναγνώρισης του επιστημονικού και άλλου έργου.";
manage_user_scientific_works($id_user);
}
function delete_scientific_work($id_scientific_work) {
if(!permission_exists("delete_scientific_work", $id_scientific_work)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$id_user=scientific_work_to_user($id_scientific_work);
$scientific_work_i=mysql_fetch_array(query("SELECT * FROM __scientific_works WHERE id='".$id_scientific_work."' AND id_user='".$_SESSION['user_logged']."'"));
query("DELETE FROM __scientific_works WHERE id='".$id_scientific_work."'");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η αναγνώριση επιστημονικού και άλλου έργου για το έτος ".$scientific_work_i['year']." διεγράφη επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά τη διαγραφή της αναγνώρισης επιστημονικού και άλλου έργου του έτους ".$scientific_work_i['year'].".";
manage_user_scientific_works($id_user);
}
function update_scientific_work_submit() {
$id_scientific_work=$_POST['id_scientific_work'];
if(!permission_exists("update_scientific_work", $id_scientific_work)) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
$id_user=scientific_work_to_user($id_scientific_work);
$citations=strip($_POST['citations']);
$press_references=strip($_POST['press_references']);
$book_reviews=strip($_POST['book_reviews']);
$conference_committees=strip($_POST['conference_committees']);
$journal_editors=strip($_POST['journal_editors']);
$conference_invitations=strip($_POST['conference_invitations']);
$patents=strip($_POST['patents']);
$awards=strip($_POST['awards']);
$honors=strip($_POST['honors']);
$comments=strip($_POST['comments']);
if($citations==NULL&&$press_references==NULL&&$book_reviews==NULL&&$conference_committees==NULL&&$journal_editors==NULL&&$conference_invitations==NULL&&$patents==NULL&&$awards==NULL&&$honors==NULL) {
$_SESSION['error_message']="Πρέπει να συμπληρώσετε τουλάχιστον ένα από τα διαθέσιμα πεδία.";
update_scientific_work($id_scientific_work);
return;
}
if(($citations!=NULL&&$citations<0)||
($press_references!=NULL&&$press_references<0)||
($book_reviews!=NULL&&$book_reviews<0)||
($conference_committees!=NULL&&$conference_committees<0)||
($journal_editors!=NULL&&$journal_editors<0)||
($conference_invitations!=NULL&&$conference_invitations<0)||
($patents!=NULL&&$patents<0)||
($awards!=NULL&&$awards<0)||
($honors!=NULL&&$honors<0)) {
$_SESSION['error_message']="Όλα τα υποχρεωτικά πεδία πρέπει να είναι αριθμητικά και θετικά.";
update_scientific_work($id_scientific_work);
return;
}
if(($citations+$press_references+$book_reviews+$conference_committees+$journal_editors+$conference_invitations+$patents+$awards+$honors)<=0) {
$_SESSION['error_message']="Τουλάχιστον ένα πεδίο πρέπει να είναι συμπληρωμένο με θετικό ακέραιο και όχι μηδέν (0).";
update_scientific_work($id_scientific_work);
return;
}
$no_changes=mysql_num_rows(query("SELECT * FROM __scientific_works WHERE id='".$id_scientific_work."' AND citations='".$citations."' AND press_references='".$press_references."' AND book_reviews='".$book_reviews."' AND conference_committees='".$conference_committees."' AND journal_editors='".$journal_editors."' AND conference_invitations='".$conference_invitations."' AND patents='".$patents."' AND awards='".$awards."' AND honors='".$honors."' AND comments='".$comments."'"));
if($no_changes>0) {
$_SESSION['error_message']="Δεν κάνατε κάποια τροποποίηση στην αναγνώριση του επιστημονικού και άλλου έργου.";
manage_user_scientific_works($id_user);
return;
}
query("UPDATE __scientific_works SET citations='".$citations."', press_references='".$press_references."', book_reviews='".$book_reviews."', conference_committees='".$conference_committees."', journal_editors='".$journal_editors."', conference_invitations='".$conference_invitations."', patents='".$patents."', awards='".$awards."', honors='".$honors."', comments='".$comments."' WHERE id='".$id_scientific_work."'");
/*+++ ΚΑΘΑΡΙΣΜΑ ΕΙΣΑΓΩΓΙΚΩΝ ΑΠΟ ΥΠΟΒΑΛΟΜΕΝΑ STRING */
if(mysql_affected_rows()>0) $_SESSION['success_message']="Η αναγνώριση του επιστημονικού και άλλου έργου τροποποιήθηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την τροποποίηση της αναγνώρισης του επιστημονικού και άλλου έργου.";
manage_user_scientific_works($id_user);
}
function manage_current_teacher_sheet_submit() {
$id_unit=strip($_POST['id_unit']);
$id_user=strip($_POST['id_user']);
if((!permission_exists("manage_current_teacher_sheet", $id_unit))&&(!permission_exists("manage_current_proxy_teacher_sheet", $id_unit))) {
$_SESSION['error_message']="Δεν έχετε τα απαραίτητα δικαιώματα να προβάλετε αυτή τη σελίδα.";
default_page();
return;
}
if (permission_exists("manage_current_teacher_sheet", $id_unit)&&inventory_period_is_open(current_semester())){
//normal mode
$proxy=0;
$id_user=$_SESSION['user_logged'];
}
else if (permission_exists("manage_current_proxy_teacher_sheet", $id_unit)&&inventory_moderation_period_is_open(current_semester())) {
//proxy mode
$proxy=1;
if (!teacher_sheet_permission_currently_exists_unit($id_user, $id_unit)){
default_page();
return;
}
}
else {
default_page();
return;
}
$unit_data_i=mysql_fetch_array(query("SELECT * FROM __units WHERE id='".$id_unit."'"));
$courses_data_d=query("SELECT DISTINCT __courses.title, __courses.coursecode FROM __courses, __classes, __relations, __course_assignments WHERE __relations.id_user='".$id_user."' AND __relations.relation_chain=__course_assignments.relation_chain AND __course_assignments.id_class=__classes.id AND __classes.semester='".current_semester()."' AND __classes.id_course=__courses.id AND __courses.id_unit='".$id_unit."'");
$i_0_a=get_setting('institute_name');
$i_0_b=unit_id_to_name($unit_data_i['parent']);
$i_0_c=$unit_data_i['name'];
$user_data_i=mysql_fetch_array(query("SELECT last_name, first_name, scientific_specialization FROM __users WHERE id='".$id_user."'"));
$i_0_e=$user_data_i['last_name']." ".$user_data_i['first_name'];
/***+++ ΕΚΚΑΘΑΡΙΣΗ ΤΩΝ $_SESSION['last_name']." ".$_SESSION['first_name'] */
if ($proxy) $i_0_e.="<br /><i>Το παρόν δελτίο συμπληρώθηκε από: <b>".$_SESSION['last_name']." ".$_SESSION['first_name']."</b></i>";
$i_0_f=$user_data_i['scientific_specialization'];
$i_0_g="";
if(mysql_num_rows($courses_data_d)!=1) $i_0_g.="<ol>";
while($course_data_i=mysql_fetch_array($courses_data_d)) {
if(mysql_num_rows($courses_data_d)!=1) $i_0_g.="<li>";
$i_0_g.=$course_data_i[1]." - ".$course_data_i[0];
if(mysql_num_rows($courses_data_d)!=1) $i_0_g.="</li>\n";
}
if(mysql_num_rows($courses_data_d)!=1) $i_0_g.="</ol>";
$last_year=date("Y",strtotime(current_semester("starting_date")));
for($year=$last_year;$year>$last_year-5;$year--) {
${'i_1_'.($last_year-$year+1).'_0'}=$year;
for($type=1;$type<=no_publication_types();$type++) {
$record=mysql_num_rows(query("SELECT * FROM __publications WHERE id_user=".$id_user." AND year='".$year."' AND id_publication_type='".$type."'"));
if($record!="0") ${'i_1_'.($last_year-$year+1).'_'.$type}=$record;
}
}
for($type=1;$type<=no_publication_types();$type++) {
$record=mysql_num_rows(query("SELECT * FROM __publications WHERE id_user=".$id_user." AND year BETWEEN '".(date('Y')-4)."' AND '".date('Y')."' AND id_publication_type='".$type."'"));
if($record!="0") ${'i_1_6_'.$type}=$record;
}
for($type=1;$type<=no_publication_types();$type++) {
$record=mysql_num_rows(query("SELECT * FROM __publications WHERE id_user=".$id_user." AND id_publication_type='".$type."'"));
if($record!="0") ${'i_1_7_'.$type}=$record;
}
$i_2="";
for($type=1;$type<=no_publication_types();$type++) {
$i=1;
$publication_d=query("SELECT * FROM __publications WHERE id_user=".$id_user." AND year BETWEEN '".(date('Y')-4)."' AND '".date('Y')."' AND id_publication_type='".$type."' ORDER BY year DESC, authors ASC");
$publication_type=mysql_fetch_array(query("SELECT * FROM __publication_types WHERE id='".$type."'"));
if(mysql_num_rows($publication_d)!=0){
$i_2.="<b>".$publication_type['name_plural']."</b>
<ol>
";
while($publication_i=mysql_fetch_array($publication_d)) {
$i_2.="<li>".$publication_i['authors'].", <b>".$publication_i['title']."</b>, ".$publication_i['description'].", ".$publication_i['year']."</li>
";
}
$i_2.="</ol><br />";
}
}
for($year=$last_year;$year>$last_year-5;$year--) {
$scientific_works=mysql_fetch_array(query("SELECT * FROM __scientific_works WHERE id_user=".$id_user." AND year='".$year."'"));
${'i_3_'.($last_year-$year+1).'_0'}=$year;
${'i_3_'.($last_year-$year+1).'_1'}=$scientific_works['citations'];
${'i_3_'.($last_year-$year+1).'_2'}=$scientific_works['press_references'];
${'i_3_'.($last_year-$year+1).'_3'}=$scientific_works['book_reviews'];
${'i_3_'.($last_year-$year+1).'_4'}=$scientific_works['conference_committees'];
${'i_3_'.($last_year-$year+1).'_5'}=$scientific_works['journal_editors'];
${'i_3_'.($last_year-$year+1).'_6'}=$scientific_works['conference_invitations'];
${'i_3_'.($last_year-$year+1).'_7'}=$scientific_works['patents'];
${'i_3_'.($last_year-$year+1).'_8'}=$scientific_works['awards'];
${'i_3_'.($last_year-$year+1).'_9'}=$scientific_works['honors'];
}
$scientific_works=mysql_fetch_array(query("SELECT SUM(citations), SUM(press_references), SUM(book_reviews), SUM(conference_committees), SUM(journal_editors), SUM(conference_invitations), SUM(patents), SUM(awards), SUM(honors) FROM __scientific_works WHERE id_user=".$id_user." AND year BETWEEN '".(date('Y')-4)."' AND '".date('Y')."'"));
$i_3_6_1=$scientific_works['SUM(citations)'];
$i_3_6_2=$scientific_works['SUM(press_references)'];
$i_3_6_3=$scientific_works['SUM(book_reviews)'];
$i_3_6_4=$scientific_works['SUM(conference_committees)'];
$i_3_6_5=$scientific_works['SUM(journal_editors)'];
$i_3_6_6=$scientific_works['SUM(conference_invitations)'];
$i_3_6_7=$scientific_works['SUM(patents)'];
$i_3_6_8=$scientific_works['SUM(awards)'];
$i_3_6_9=$scientific_works['SUM(honors)'];
$scientific_works=mysql_fetch_array(query("SELECT SUM(citations), SUM(press_references), SUM(book_reviews), SUM(conference_committees), SUM(journal_editors), SUM(conference_invitations), SUM(patents), SUM(awards), SUM(honors) FROM __scientific_works WHERE id_user=".$id_user));
$i_3_7_1=$scientific_works['SUM(citations)'];
$i_3_7_2=$scientific_works['SUM(press_references)'];
$i_3_7_3=$scientific_works['SUM(book_reviews)'];
$i_3_7_4=$scientific_works['SUM(conference_committees)'];
$i_3_7_5=$scientific_works['SUM(journal_editors)'];
$i_3_7_6=$scientific_works['SUM(conference_invitations)'];
$i_3_7_7=$scientific_works['SUM(patents)'];
$i_3_7_8=$scientific_works['SUM(awards)'];
$i_3_7_9=$scientific_works['SUM(honors)'];
$i_3_8="";
for($year=$last_year;$year>$last_year-5;$year--) {
$scientific_works_comments=mysql_fetch_array(query("SELECT comments FROM __scientific_works WHERE id_user=".$id_user." AND year='".$year."'"));
if($scientific_works_comments['comments']==NULL) continue;
$i_3_8.="<b>".$year."</b>
<ul>".$scientific_works_comments['comments']."</ul>
";
}
$i_4_1=strip($_POST['i_4_1']);
$i_4_2=strip($_POST['i_4_2']);
$i_4_3=strip($_POST['i_4_3']);
$ii_1=strip($_POST['ii_1']);
$ii_2=strip($_POST['ii_2']);
$ii_3=strip($_POST['ii_3']);
$ii_4=strip($_POST['ii_4']);
$ii_5=strip($_POST['ii_5']);
$ii_6=strip($_POST['ii_6']);
$ii_7=strip($_POST['ii_7']);
$ii_8=strip($_POST['ii_8']);
$ii_9=strip($_POST['ii_9']);
$ii_10=strip($_POST['ii_10']);
$iii=strip($_POST['iii']);
$i_3_8=str_replace("'", "`", $i_3_8);
$i_2=str_replace("'", "`", $i_2);
$is_submitted=mysql_num_rows(query("SELECT * FROM __teacher_sheets WHERE id_user='".$id_user."' AND semester='".current_semester()."' AND id_unit='".$id_unit."'"));
if ($proxy){
$id_proxy_user=$_SESSION['user_logged'];
}else{
$id_proxy_user=0;
}
// if(isset($_SESSION['user_proxy'])) $id_proxy_user=$_SESSION['user_proxy'];
if($_POST['posttype']=="sub") {
if($is_submitted==0) query("INSERT INTO __teacher_sheets (id_user, id_unit, semester, i_0_a, i_0_b, i_0_c, i_0_e, i_0_f, i_0_g, i_1_1_0, i_1_1_1, i_1_1_2, i_1_1_3, i_1_1_4, i_1_1_5, i_1_1_6, i_1_1_7, i_1_1_8, i_1_1_9, i_1_1_10, i_1_2_0, i_1_2_1, i_1_2_2, i_1_2_3, i_1_2_4, i_1_2_5, i_1_2_6, i_1_2_7, i_1_2_8, i_1_2_9, i_1_2_10, i_1_3_0, i_1_3_1, i_1_3_2, i_1_3_3, i_1_3_4, i_1_3_5, i_1_3_6, i_1_3_7, i_1_3_8, i_1_3_9, i_1_3_10, i_1_4_0, i_1_4_1, i_1_4_2, i_1_4_3, i_1_4_4, i_1_4_5, i_1_4_6, i_1_4_7, i_1_4_8, i_1_4_9, i_1_4_10, i_1_5_0, i_1_5_1, i_1_5_2, i_1_5_3, i_1_5_4, i_1_5_5, i_1_5_6, i_1_5_7, i_1_5_8, i_1_5_9, i_1_5_10, i_1_6_1, i_1_6_2, i_1_6_3, i_1_6_4, i_1_6_5, i_1_6_6, i_1_6_7, i_1_6_8, i_1_6_9, i_1_6_10, i_1_7_1, i_1_7_2, i_1_7_3, i_1_7_4, i_1_7_5, i_1_7_6, i_1_7_7, i_1_7_8, i_1_7_9, i_1_7_10, i_2, i_3_1_0, i_3_1_1, i_3_1_2, i_3_1_3, i_3_1_4, i_3_1_5, i_3_1_6, i_3_1_7, i_3_1_8, i_3_1_9, i_3_2_0, i_3_2_1, i_3_2_2, i_3_2_3, i_3_2_4, i_3_2_5, i_3_2_6, i_3_2_7, i_3_2_8, i_3_2_9, i_3_3_0, i_3_3_1, i_3_3_2, i_3_3_3, i_3_3_4, i_3_3_5, i_3_3_6, i_3_3_7, i_3_3_8, i_3_3_9, i_3_4_0, i_3_4_1, i_3_4_2, i_3_4_3, i_3_4_4, i_3_4_5, i_3_4_6, i_3_4_7, i_3_4_8, i_3_4_9, i_3_5_0, i_3_5_1, i_3_5_2, i_3_5_3, i_3_5_4, i_3_5_5, i_3_5_6, i_3_5_7, i_3_5_8, i_3_5_9, i_3_6_1, i_3_6_2, i_3_6_3, i_3_6_4, i_3_6_5, i_3_6_6, i_3_6_7, i_3_6_8, i_3_6_9, i_3_7_1, i_3_7_2, i_3_7_3, i_3_7_4, i_3_7_5, i_3_7_6, i_3_7_7, i_3_7_8, i_3_7_9, i_3_8, i_4_1, i_4_2, i_4_3, ii_1, ii_2, ii_3, ii_4, ii_5, ii_6, ii_7, ii_8, ii_9, ii_10, iii, submitted, id_proxy_user, submit_date) VALUES ('".$id_user."', '".$id_unit."', '".current_semester()."', '".$i_0_a."', '".$i_0_b."', '".$i_0_c."', '".$i_0_e."', '".$i_0_f."', '".$i_0_g."', '".$i_1_1_0."', '".$i_1_1_1."', '".$i_1_1_2."', '".$i_1_1_3."', '".$i_1_1_4."', '".$i_1_1_5."', '".$i_1_1_6."', '".$i_1_1_7."', '".$i_1_1_8."', '".$i_1_1_9."', '".$i_1_1_10."', '".$i_1_2_0."', '".$i_1_2_1."', '".$i_1_2_2."', '".$i_1_2_3."', '".$i_1_2_4."', '".$i_1_2_5."', '".$i_1_2_6."', '".$i_1_2_7."', '".$i_1_2_8."', '".$i_1_2_9."', '".$i_1_2_10."', '".$i_1_3_0."', '".$i_1_3_1."', '".$i_1_3_2."', '".$i_1_3_3."', '".$i_1_3_4."', '".$i_1_3_5."', '".$i_1_3_6."', '".$i_1_3_7."', '".$i_1_3_8."', '".$i_1_3_9."', '".$i_1_3_10."', '".$i_1_4_0."', '".$i_1_4_1."', '".$i_1_4_2."', '".$i_1_4_3."', '".$i_1_4_4."', '".$i_1_4_5."', '".$i_1_4_6."', '".$i_1_4_7."', '".$i_1_4_8."', '".$i_1_4_9."', '".$i_1_4_10."', '".$i_1_5_0."', '".$i_1_5_1."', '".$i_1_5_2."', '".$i_1_5_3."', '".$i_1_5_4."', '".$i_1_5_5."', '".$i_1_5_6."', '".$i_1_5_7."', '".$i_1_5_8."', '".$i_1_5_9."', '".$i_1_5_10."', '".$i_1_6_1."', '".$i_1_6_2."', '".$i_1_6_3."', '".$i_1_6_4."', '".$i_1_6_5."', '".$i_1_6_6."', '".$i_1_6_7."', '".$i_1_6_8."', '".$i_1_6_9."', '".$i_1_6_10."', '".$i_1_7_1."', '".$i_1_7_2."', '".$i_1_7_3."', '".$i_1_7_4."', '".$i_1_7_5."', '".$i_1_7_6."', '".$i_1_7_7."', '".$i_1_7_8."', '".$i_1_7_9."', '".$i_1_7_10."', '".$i_2."', '".$i_3_1_0."', '".$i_3_1_1."', '".$i_3_1_2."', '".$i_3_1_3."', '".$i_3_1_4."', '".$i_3_1_5."', '".$i_3_1_6."', '".$i_3_1_7."', '".$i_3_1_8."', '".$i_3_1_9."', '".$i_3_2_0."', '".$i_3_2_1."', '".$i_3_2_2."', '".$i_3_2_3."', '".$i_3_2_4."', '".$i_3_2_5."', '".$i_3_2_6."', '".$i_3_2_7."', '".$i_3_2_8."', '".$i_3_2_9."', '".$i_3_3_0."', '".$i_3_3_1."', '".$i_3_3_2."', '".$i_3_3_3."', '".$i_3_3_4."', '".$i_3_3_5."', '".$i_3_3_6."', '".$i_3_3_7."', '".$i_3_3_8."', '".$i_3_3_9."', '".$i_3_4_0."', '".$i_3_4_1."', '".$i_3_4_2."', '".$i_3_4_3."', '".$i_3_4_4."', '".$i_3_4_5."', '".$i_3_4_6."', '".$i_3_4_7."', '".$i_3_4_8."', '".$i_3_4_9."', '".$i_3_5_0."', '".$i_3_5_1."', '".$i_3_5_2."', '".$i_3_5_3."', '".$i_3_5_4."', '".$i_3_5_5."', '".$i_3_5_6."', '".$i_3_5_7."', '".$i_3_5_8."', '".$i_3_5_9."', '".$i_3_6_1."', '".$i_3_6_2."', '".$i_3_6_3."', '".$i_3_6_4."', '".$i_3_6_5."', '".$i_3_6_6."', '".$i_3_6_7."', '".$i_3_6_8."', '".$i_3_6_9."', '".$i_3_7_1."', '".$i_3_7_2."', '".$i_3_7_3."', '".$i_3_7_4."', '".$i_3_7_5."', '".$i_3_7_6."', '".$i_3_7_7."', '".$i_3_7_8."', '".$i_3_7_9."', '".$i_3_8."', '".$i_4_1."', '".$i_4_2."', '".$i_4_3."', '".$ii_1."', '".$ii_2."', '".$ii_3."', '".$ii_4."', '".$ii_5."', '".$ii_6."', '".$ii_7."', '".$ii_8."', '".$ii_9."', '".$ii_10."', '".$iii."', '1', '".$id_proxy_user."', '".date('Y-m-d H:i:s')."')");
else query("UPDATE __teacher_sheets SET i_0_a='".$i_0_a."', i_0_b='".$i_0_b."', i_0_c='".$i_0_c."', i_0_e='".$i_0_e."', i_0_f='".$i_0_f."', i_0_g='".$i_0_g."', i_1_1_0='".$i_1_1_0."', i_1_1_1='".$i_1_1_1."', i_1_1_2='".$i_1_1_2."', i_1_1_3='".$i_1_1_3."', i_1_1_4='".$i_1_1_4."', i_1_1_5='".$i_1_1_5."', i_1_1_6='".$i_1_1_6."', i_1_1_7='".$i_1_1_7."', i_1_1_8='".$i_1_1_8."', i_1_1_9='".$i_1_1_9."', i_1_1_10='".$i_1_1_10."', i_1_2_0='".$i_1_2_0."', i_1_2_1='".$i_1_2_1."', i_1_2_2='".$i_1_2_2."', i_1_2_3='".$i_1_2_3."', i_1_2_4='".$i_1_2_4."', i_1_2_5='".$i_1_2_5."', i_1_2_6='".$i_1_2_6."', i_1_2_7='".$i_1_2_7."', i_1_2_8='".$i_1_2_8."', i_1_2_9='".$i_1_2_9."', i_1_2_10='".$i_1_2_10."', i_1_3_0='".$i_1_3_0."', i_1_3_1='".$i_1_3_1."', i_1_3_2='".$i_1_3_2."', i_1_3_3='".$i_1_3_3."', i_1_3_4='".$i_1_3_4."', i_1_3_5='".$i_1_3_5."', i_1_3_6='".$i_1_3_6."', i_1_3_7='".$i_1_3_7."', i_1_3_8='".$i_1_3_8."', i_1_3_9='".$i_1_3_9."', i_1_3_10='".$i_1_3_10."', i_1_4_0='".$i_1_4_0."', i_1_4_1='".$i_1_4_1."', i_1_4_2='".$i_1_4_2."', i_1_4_3='".$i_1_4_3."', i_1_4_4='".$i_1_4_4."', i_1_4_5='".$i_1_4_5."', i_1_4_6='".$i_1_4_6."', i_1_4_7='".$i_1_4_7."', i_1_4_8='".$i_1_4_8."', i_1_4_9='".$i_1_4_9."', i_1_4_10='".$i_1_4_10."', i_1_5_0='".$i_1_5_0."', i_1_5_1='".$i_1_5_1."', i_1_5_2='".$i_1_5_2."', i_1_5_3='".$i_1_5_3."', i_1_5_4='".$i_1_5_4."', i_1_5_5='".$i_1_5_5."', i_1_5_6='".$i_1_5_6."', i_1_5_7='".$i_1_5_7."', i_1_5_8='".$i_1_5_8."', i_1_5_9='".$i_1_5_9."', i_1_5_10='".$i_1_5_10."', i_1_6_1='".$i_1_6_1."', i_1_6_2='".$i_1_6_2."', i_1_6_3='".$i_1_6_3."', i_1_6_4='".$i_1_6_4."', i_1_6_5='".$i_1_6_5."', i_1_6_6='".$i_1_6_6."', i_1_6_7='".$i_1_6_7."', i_1_6_8='".$i_1_6_8."', i_1_6_9='".$i_1_6_9."', i_1_6_10='".$i_1_6_10."', i_1_7_1='".$i_1_7_1."', i_1_7_2='".$i_1_7_2."', i_1_7_3='".$i_1_7_3."', i_1_7_4='".$i_1_7_4."', i_1_7_5='".$i_1_7_5."', i_1_7_6='".$i_1_7_6."', i_1_7_7='".$i_1_7_7."', i_1_7_8='".$i_1_7_8."', i_1_7_9='".$i_1_7_9."', i_1_7_10='".$i_1_7_10."', i_2='".$i_2."', i_3_1_0='".$i_3_1_0."', i_3_1_1='".$i_3_1_1."', i_3_1_2='".$i_3_1_2."', i_3_1_3='".$i_3_1_3."', i_3_1_4='".$i_3_1_4."', i_3_1_5='".$i_3_1_5."', i_3_1_6='".$i_3_1_6."', i_3_1_7='".$i_3_1_7."', i_3_1_8='".$i_3_1_8."', i_3_1_9='".$i_3_1_9."', i_3_2_0='".$i_3_2_0."', i_3_2_1='".$i_3_2_1."', i_3_2_2='".$i_3_2_2."', i_3_2_3='".$i_3_2_3."', i_3_2_4='".$i_3_2_4."', i_3_2_5='".$i_3_2_5."', i_3_2_6='".$i_3_2_6."', i_3_2_7='".$i_3_2_7."', i_3_2_8='".$i_3_2_8."', i_3_2_9='".$i_3_2_9."', i_3_3_0='".$i_3_3_0."', i_3_3_1='".$i_3_3_1."', i_3_3_2='".$i_3_3_2."', i_3_3_3='".$i_3_3_3."', i_3_3_4='".$i_3_3_4."', i_3_3_5='".$i_3_3_5."', i_3_3_6='".$i_3_3_6."', i_3_3_7='".$i_3_3_7."', i_3_3_8='".$i_3_3_8."', i_3_3_9='".$i_3_3_9."', i_3_4_0='".$i_3_4_0."', i_3_4_1='".$i_3_4_1."', i_3_4_2='".$i_3_4_2."', i_3_4_3='".$i_3_4_3."', i_3_4_4='".$i_3_4_4."', i_3_4_5='".$i_3_4_5."', i_3_4_6='".$i_3_4_6."', i_3_4_7='".$i_3_4_7."', i_3_4_8='".$i_3_4_8."', i_3_4_9='".$i_3_4_9."', i_3_5_0='".$i_3_5_0."', i_3_5_1='".$i_3_5_1."', i_3_5_2='".$i_3_5_2."', i_3_5_3='".$i_3_5_3."', i_3_5_4='".$i_3_5_4."', i_3_5_5='".$i_3_5_5."', i_3_5_6='".$i_3_5_6."', i_3_5_7='".$i_3_5_7."', i_3_5_8='".$i_3_5_8."', i_3_5_9='".$i_3_5_9."', i_3_6_1='".$i_3_6_1."', i_3_6_2='".$i_3_6_2."', i_3_6_3='".$i_3_6_3."', i_3_6_4='".$i_3_6_4."', i_3_6_5='".$i_3_6_5."', i_3_6_6='".$i_3_6_6."', i_3_6_7='".$i_3_6_7."', i_3_6_8='".$i_3_6_8."', i_3_6_9='".$i_3_6_9."', i_3_7_1='".$i_3_7_1."', i_3_7_2='".$i_3_7_2."', i_3_7_3='".$i_3_7_3."', i_3_7_4='".$i_3_7_4."', i_3_7_5='".$i_3_7_5."', i_3_7_6='".$i_3_7_6."', i_3_7_7='".$i_3_7_7."', i_3_7_8='".$i_3_7_8."', i_3_7_9='".$i_3_7_9."', i_3_8='".$i_3_8."', i_4_1='".$i_4_1."', i_4_2='".$i_4_2."', i_4_3='".$i_4_3."', ii_1='".$ii_1."', ii_2='".$ii_2."', ii_3='".$ii_3."', ii_4='".$ii_4."', ii_5='".$ii_5."', ii_6='".$ii_6."', ii_7='".$ii_7."', ii_8='".$ii_8."', ii_9='".$ii_9."', ii_10='".$ii_10."', iii='".$iii."', submitted='1', id_proxy_user='".$id_proxy_user."', submit_date='".date('Y-m-d H:i:s')."' WHERE id_user='".$id_user."' AND semester='".current_semester()."' AND submitted='-1' AND id_unit='".$id_unit."'");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Το Απογραφικό Δελτίο Διδάσκοντος για το τρέχον εξάμηνο υποβλήθηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την υποβολή του Απογραφικού Δελτίου Διδάσκοντος για το τρέχον εξάμηνο.";
calculate_obligations();
default_page();
}
if($_POST['posttype']=="save") {
if($is_submitted==0) query("INSERT INTO __teacher_sheets (id_user, id_unit, semester, i_0_a, i_0_b, i_0_c, i_0_e, i_0_f, i_0_g, i_1_1_0, i_1_1_1, i_1_1_2, i_1_1_3, i_1_1_4, i_1_1_5, i_1_1_6, i_1_1_7, i_1_1_8, i_1_1_9, i_1_1_10, i_1_2_0, i_1_2_1, i_1_2_2, i_1_2_3, i_1_2_4, i_1_2_5, i_1_2_6, i_1_2_7, i_1_2_8, i_1_2_9, i_1_2_10, i_1_3_0, i_1_3_1, i_1_3_2, i_1_3_3, i_1_3_4, i_1_3_5, i_1_3_6, i_1_3_7, i_1_3_8, i_1_3_9, i_1_3_10, i_1_4_0, i_1_4_1, i_1_4_2, i_1_4_3, i_1_4_4, i_1_4_5, i_1_4_6, i_1_4_7, i_1_4_8, i_1_4_9, i_1_4_10, i_1_5_0, i_1_5_1, i_1_5_2, i_1_5_3, i_1_5_4, i_1_5_5, i_1_5_6, i_1_5_7, i_1_5_8, i_1_5_9, i_1_5_10, i_1_6_1, i_1_6_2, i_1_6_3, i_1_6_4, i_1_6_5, i_1_6_6, i_1_6_7, i_1_6_8, i_1_6_9, i_1_6_10, i_1_7_1, i_1_7_2, i_1_7_3, i_1_7_4, i_1_7_5, i_1_7_6, i_1_7_7, i_1_7_8, i_1_7_9, i_1_7_10, i_2, i_3_1_0, i_3_1_1, i_3_1_2, i_3_1_3, i_3_1_4, i_3_1_5, i_3_1_6, i_3_1_7, i_3_1_8, i_3_1_9, i_3_2_0, i_3_2_1, i_3_2_2, i_3_2_3, i_3_2_4, i_3_2_5, i_3_2_6, i_3_2_7, i_3_2_8, i_3_2_9, i_3_3_0, i_3_3_1, i_3_3_2, i_3_3_3, i_3_3_4, i_3_3_5, i_3_3_6, i_3_3_7, i_3_3_8, i_3_3_9, i_3_4_0, i_3_4_1, i_3_4_2, i_3_4_3, i_3_4_4, i_3_4_5, i_3_4_6, i_3_4_7, i_3_4_8, i_3_4_9, i_3_5_0, i_3_5_1, i_3_5_2, i_3_5_3, i_3_5_4, i_3_5_5, i_3_5_6, i_3_5_7, i_3_5_8, i_3_5_9, i_3_6_1, i_3_6_2, i_3_6_3, i_3_6_4, i_3_6_5, i_3_6_6, i_3_6_7, i_3_6_8, i_3_6_9, i_3_7_1, i_3_7_2, i_3_7_3, i_3_7_4, i_3_7_5, i_3_7_6, i_3_7_7, i_3_7_8, i_3_7_9, i_3_8, i_4_1, i_4_2, i_4_3, ii_1, ii_2, ii_3, ii_4, ii_5, ii_6, ii_7, ii_8, ii_9, ii_10, iii, submitted, id_proxy_user, submit_date) VALUES ('".$id_user."', '".$id_unit."', '".current_semester()."', '".$i_0_a."', '".$i_0_b."', '".$i_0_c."', '".$i_0_e."', '".$i_0_f."', '".$i_0_g."', '".$i_1_1_0."', '".$i_1_1_1."', '".$i_1_1_2."', '".$i_1_1_3."', '".$i_1_1_4."', '".$i_1_1_5."', '".$i_1_1_6."', '".$i_1_1_7."', '".$i_1_1_8."', '".$i_1_1_9."', '".$i_1_1_10."', '".$i_1_2_0."', '".$i_1_2_1."', '".$i_1_2_2."', '".$i_1_2_3."', '".$i_1_2_4."', '".$i_1_2_5."', '".$i_1_2_6."', '".$i_1_2_7."', '".$i_1_2_8."', '".$i_1_2_9."', '".$i_1_2_10."', '".$i_1_3_0."', '".$i_1_3_1."', '".$i_1_3_2."', '".$i_1_3_3."', '".$i_1_3_4."', '".$i_1_3_5."', '".$i_1_3_6."', '".$i_1_3_7."', '".$i_1_3_8."', '".$i_1_3_9."', '".$i_1_3_10."', '".$i_1_4_0."', '".$i_1_4_1."', '".$i_1_4_2."', '".$i_1_4_3."', '".$i_1_4_4."', '".$i_1_4_5."', '".$i_1_4_6."', '".$i_1_4_7."', '".$i_1_4_8."', '".$i_1_4_9."', '".$i_1_4_10."', '".$i_1_5_0."', '".$i_1_5_1."', '".$i_1_5_2."', '".$i_1_5_3."', '".$i_1_5_4."', '".$i_1_5_5."', '".$i_1_5_6."', '".$i_1_5_7."', '".$i_1_5_8."', '".$i_1_5_9."', '".$i_1_5_10."', '".$i_1_6_1."', '".$i_1_6_2."', '".$i_1_6_3."', '".$i_1_6_4."', '".$i_1_6_5."', '".$i_1_6_6."', '".$i_1_6_7."', '".$i_1_6_8."', '".$i_1_6_9."', '".$i_1_6_10."', '".$i_1_7_1."', '".$i_1_7_2."', '".$i_1_7_3."', '".$i_1_7_4."', '".$i_1_7_5."', '".$i_1_7_6."', '".$i_1_7_7."', '".$i_1_7_8."', '".$i_1_7_9."', '".$i_1_7_10."', '".$i_2."', '".$i_3_1_0."', '".$i_3_1_1."', '".$i_3_1_2."', '".$i_3_1_3."', '".$i_3_1_4."', '".$i_3_1_5."', '".$i_3_1_6."', '".$i_3_1_7."', '".$i_3_1_8."', '".$i_3_1_9."', '".$i_3_2_0."', '".$i_3_2_1."', '".$i_3_2_2."', '".$i_3_2_3."', '".$i_3_2_4."', '".$i_3_2_5."', '".$i_3_2_6."', '".$i_3_2_7."', '".$i_3_2_8."', '".$i_3_2_9."', '".$i_3_3_0."', '".$i_3_3_1."', '".$i_3_3_2."', '".$i_3_3_3."', '".$i_3_3_4."', '".$i_3_3_5."', '".$i_3_3_6."', '".$i_3_3_7."', '".$i_3_3_8."', '".$i_3_3_9."', '".$i_3_4_0."', '".$i_3_4_1."', '".$i_3_4_2."', '".$i_3_4_3."', '".$i_3_4_4."', '".$i_3_4_5."', '".$i_3_4_6."', '".$i_3_4_7."', '".$i_3_4_8."', '".$i_3_4_9."', '".$i_3_5_0."', '".$i_3_5_1."', '".$i_3_5_2."', '".$i_3_5_3."', '".$i_3_5_4."', '".$i_3_5_5."', '".$i_3_5_6."', '".$i_3_5_7."', '".$i_3_5_8."', '".$i_3_5_9."', '".$i_3_6_1."', '".$i_3_6_2."', '".$i_3_6_3."', '".$i_3_6_4."', '".$i_3_6_5."', '".$i_3_6_6."', '".$i_3_6_7."', '".$i_3_6_8."', '".$i_3_6_9."', '".$i_3_7_1."', '".$i_3_7_2."', '".$i_3_7_3."', '".$i_3_7_4."', '".$i_3_7_5."', '".$i_3_7_6."', '".$i_3_7_7."', '".$i_3_7_8."', '".$i_3_7_9."', '".$i_3_8."', '".$i_4_1."', '".$i_4_2."', '".$i_4_3."', '".$ii_1."', '".$ii_2."', '".$ii_3."', '".$ii_4."', '".$ii_5."', '".$ii_6."', '".$ii_7."', '".$ii_8."', '".$ii_9."', '".$ii_10."', '".$iii."', '-1', '".$id_proxy_user."', '".date('Y-m-d H:i:s')."')");
else query("UPDATE __teacher_sheets SET i_0_a='".$i_0_a."', i_0_b='".$i_0_b."', i_0_c='".$i_0_c."', i_0_e='".$i_0_e."', i_0_f='".$i_0_f."', i_0_g='".$i_0_g."', i_1_1_0='".$i_1_1_0."', i_1_1_1='".$i_1_1_1."', i_1_1_2='".$i_1_1_2."', i_1_1_3='".$i_1_1_3."', i_1_1_4='".$i_1_1_4."', i_1_1_5='".$i_1_1_5."', i_1_1_6='".$i_1_1_6."', i_1_1_7='".$i_1_1_7."', i_1_1_8='".$i_1_1_8."', i_1_1_9='".$i_1_1_9."', i_1_1_10='".$i_1_1_10."', i_1_2_0='".$i_1_2_0."', i_1_2_1='".$i_1_2_1."', i_1_2_2='".$i_1_2_2."', i_1_2_3='".$i_1_2_3."', i_1_2_4='".$i_1_2_4."', i_1_2_5='".$i_1_2_5."', i_1_2_6='".$i_1_2_6."', i_1_2_7='".$i_1_2_7."', i_1_2_8='".$i_1_2_8."', i_1_2_9='".$i_1_2_9."', i_1_2_10='".$i_1_2_10."', i_1_3_0='".$i_1_3_0."', i_1_3_1='".$i_1_3_1."', i_1_3_2='".$i_1_3_2."', i_1_3_3='".$i_1_3_3."', i_1_3_4='".$i_1_3_4."', i_1_3_5='".$i_1_3_5."', i_1_3_6='".$i_1_3_6."', i_1_3_7='".$i_1_3_7."', i_1_3_8='".$i_1_3_8."', i_1_3_9='".$i_1_3_9."', i_1_3_10='".$i_1_3_10."', i_1_4_0='".$i_1_4_0."', i_1_4_1='".$i_1_4_1."', i_1_4_2='".$i_1_4_2."', i_1_4_3='".$i_1_4_3."', i_1_4_4='".$i_1_4_4."', i_1_4_5='".$i_1_4_5."', i_1_4_6='".$i_1_4_6."', i_1_4_7='".$i_1_4_7."', i_1_4_8='".$i_1_4_8."', i_1_4_9='".$i_1_4_9."', i_1_4_10='".$i_1_4_10."', i_1_5_0='".$i_1_5_0."', i_1_5_1='".$i_1_5_1."', i_1_5_2='".$i_1_5_2."', i_1_5_3='".$i_1_5_3."', i_1_5_4='".$i_1_5_4."', i_1_5_5='".$i_1_5_5."', i_1_5_6='".$i_1_5_6."', i_1_5_7='".$i_1_5_7."', i_1_5_8='".$i_1_5_8."', i_1_5_9='".$i_1_5_9."', i_1_5_10='".$i_1_5_10."', i_1_6_1='".$i_1_6_1."', i_1_6_2='".$i_1_6_2."', i_1_6_3='".$i_1_6_3."', i_1_6_4='".$i_1_6_4."', i_1_6_5='".$i_1_6_5."', i_1_6_6='".$i_1_6_6."', i_1_6_7='".$i_1_6_7."', i_1_6_8='".$i_1_6_8."', i_1_6_9='".$i_1_6_9."', i_1_6_10='".$i_1_6_10."', i_1_7_1='".$i_1_7_1."', i_1_7_2='".$i_1_7_2."', i_1_7_3='".$i_1_7_3."', i_1_7_4='".$i_1_7_4."', i_1_7_5='".$i_1_7_5."', i_1_7_6='".$i_1_7_6."', i_1_7_7='".$i_1_7_7."', i_1_7_8='".$i_1_7_8."', i_1_7_9='".$i_1_7_9."', i_1_7_10='".$i_1_7_10."', i_2='".$i_2."', i_3_1_0='".$i_3_1_0."', i_3_1_1='".$i_3_1_1."', i_3_1_2='".$i_3_1_2."', i_3_1_3='".$i_3_1_3."', i_3_1_4='".$i_3_1_4."', i_3_1_5='".$i_3_1_5."', i_3_1_6='".$i_3_1_6."', i_3_1_7='".$i_3_1_7."', i_3_1_8='".$i_3_1_8."', i_3_1_9='".$i_3_1_9."', i_3_2_0='".$i_3_2_0."', i_3_2_1='".$i_3_2_1."', i_3_2_2='".$i_3_2_2."', i_3_2_3='".$i_3_2_3."', i_3_2_4='".$i_3_2_4."', i_3_2_5='".$i_3_2_5."', i_3_2_6='".$i_3_2_6."', i_3_2_7='".$i_3_2_7."', i_3_2_8='".$i_3_2_8."', i_3_2_9='".$i_3_2_9."', i_3_3_0='".$i_3_3_0."', i_3_3_1='".$i_3_3_1."', i_3_3_2='".$i_3_3_2."', i_3_3_3='".$i_3_3_3."', i_3_3_4='".$i_3_3_4."', i_3_3_5='".$i_3_3_5."', i_3_3_6='".$i_3_3_6."', i_3_3_7='".$i_3_3_7."', i_3_3_8='".$i_3_3_8."', i_3_3_9='".$i_3_3_9."', i_3_4_0='".$i_3_4_0."', i_3_4_1='".$i_3_4_1."', i_3_4_2='".$i_3_4_2."', i_3_4_3='".$i_3_4_3."', i_3_4_4='".$i_3_4_4."', i_3_4_5='".$i_3_4_5."', i_3_4_6='".$i_3_4_6."', i_3_4_7='".$i_3_4_7."', i_3_4_8='".$i_3_4_8."', i_3_4_9='".$i_3_4_9."', i_3_5_0='".$i_3_5_0."', i_3_5_1='".$i_3_5_1."', i_3_5_2='".$i_3_5_2."', i_3_5_3='".$i_3_5_3."', i_3_5_4='".$i_3_5_4."', i_3_5_5='".$i_3_5_5."', i_3_5_6='".$i_3_5_6."', i_3_5_7='".$i_3_5_7."', i_3_5_8='".$i_3_5_8."', i_3_5_9='".$i_3_5_9."', i_3_6_1='".$i_3_6_1."', i_3_6_2='".$i_3_6_2."', i_3_6_3='".$i_3_6_3."', i_3_6_4='".$i_3_6_4."', i_3_6_5='".$i_3_6_5."', i_3_6_6='".$i_3_6_6."', i_3_6_7='".$i_3_6_7."', i_3_6_8='".$i_3_6_8."', i_3_6_9='".$i_3_6_9."', i_3_7_1='".$i_3_7_1."', i_3_7_2='".$i_3_7_2."', i_3_7_3='".$i_3_7_3."', i_3_7_4='".$i_3_7_4."', i_3_7_5='".$i_3_7_5."', i_3_7_6='".$i_3_7_6."', i_3_7_7='".$i_3_7_7."', i_3_7_8='".$i_3_7_8."', i_3_7_9='".$i_3_7_9."', i_3_8='".$i_3_8."', i_4_1='".$i_4_1."', i_4_2='".$i_4_2."', i_4_3='".$i_4_3."', ii_1='".$ii_1."', ii_2='".$ii_2."', ii_3='".$ii_3."', ii_4='".$ii_4."', ii_5='".$ii_5."', ii_6='".$ii_6."', ii_7='".$ii_7."', ii_8='".$ii_8."', ii_9='".$ii_9."', ii_10='".$ii_10."', iii='".$iii."', id_proxy_user='".$id_proxy_user."', submit_date='".date('Y-m-d H:i:s')."' WHERE id_user='".$id_user."' AND semester='".current_semester()."' AND submitted='-1' AND id_unit='".$id_unit."'");
if(mysql_affected_rows()>0) $_SESSION['success_message']="Το Απογραφικό Δελτίο Διδάσκοντος για το τρέχον εξάμηνο αποθηκεύτηκε επιτυχώς.";
else $_SESSION['error_message']="Απροσδόκητο σφάλμα κατά την αποθήκευση του Απογραφικού Δελτίου Διδάσκοντος για το τρέχον εξάμηνο.";
calculate_obligations();
manage_current_teacher_sheet($id_unit);
}
}
?>