Première version en Python.
authortech <tech@poste220.admin.kh.auf>
Mon, 5 Nov 2012 03:30:52 +0000 (10:30 +0700)
committertech <tech@poste220.admin.kh.auf>
Mon, 5 Nov 2012 03:30:52 +0000 (10:30 +0700)
190 files changed:
admin/admin_authen.php [deleted file]
admin/images/tclyit_silver.jpg [deleted file]
admin/images/tclyit_silver_1.jpg [deleted file]
admin/index_admin.php [deleted file]
excel.php [deleted file]
forms/creer_infos.php [deleted file]
forms/home.php [deleted file]
forms/liste_infos.php [deleted file]
forms/login.php [deleted file]
forms/mdp_oublie.php [deleted file]
forms/search_infos.php [deleted file]
images/alert.gif [deleted file]
images/auf.gif [deleted file]
images/auf.jpg [deleted file]
images/boule.png [deleted file]
images/error.png [deleted file]
images/error_.gif [deleted file]
images/paf.ico [deleted file]
images/register.jpg [deleted file]
images/warning.png [deleted file]
includes/connection.php [deleted file]
includes/functions.php [deleted file]
includes/redirect.php [deleted file]
includes/styles/style.css [deleted file]
includes/tclyit_cam_pc.php [deleted file]
index.php [deleted file]
index_main.php [deleted file]
index_mdpo.php [deleted file]
index_pwd.php [deleted file]
index_search.php [deleted file]
paf0/manage.py [new file with mode: 0755]
paf0/paf/.DS_Store [new file with mode: 0755]
paf0/paf/._.DS_Store [new file with mode: 0755]
paf0/paf/._admin.py [new file with mode: 0755]
paf0/paf/._forms.py [new file with mode: 0755]
paf0/paf/._models.py [new file with mode: 0755]
paf0/paf/._urls.py [new file with mode: 0755]
paf0/paf/._util.py [new file with mode: 0755]
paf0/paf/._views 2.py [new file with mode: 0755]
paf0/paf/._views.py [new file with mode: 0755]
paf0/paf/__init__.py [new file with mode: 0755]
paf0/paf/__init__.pyc [new file with mode: 0755]
paf0/paf/admin.py [new file with mode: 0755]
paf0/paf/admin.pyc [new file with mode: 0755]
paf0/paf/forms.py [new file with mode: 0755]
paf0/paf/forms.pyc [new file with mode: 0755]
paf0/paf/migrations/0001_initial.py [new file with mode: 0755]
paf0/paf/migrations/0001_initial.pyc [new file with mode: 0755]
paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.py [new file with mode: 0755]
paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.pyc [new file with mode: 0755]
paf0/paf/migrations/0003_auto__del_field_student_user.py [new file with mode: 0755]
paf0/paf/migrations/0003_auto__del_field_student_user.pyc [new file with mode: 0755]
paf0/paf/migrations/0004_auto__add_field_student_identifier.py [new file with mode: 0755]
paf0/paf/migrations/0004_auto__add_field_student_identifier.pyc [new file with mode: 0755]
paf0/paf/migrations/0005_auto__add_field_student_user.py [new file with mode: 0755]
paf0/paf/migrations/0005_auto__add_field_student_user.pyc [new file with mode: 0755]
paf0/paf/migrations/0006_auto__del_field_student_user.py [new file with mode: 0755]
paf0/paf/migrations/0006_auto__del_field_student_user.pyc [new file with mode: 0755]
paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.py [new file with mode: 0755]
paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.pyc [new file with mode: 0755]
paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.py [new file with mode: 0755]
paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.pyc [new file with mode: 0755]
paf0/paf/migrations/0009_auto__add_area__add_field_location_area__add_field_location_city__add_.py [new file with mode: 0755]
paf0/paf/migrations/0009_auto__add_area__add_field_location_area__add_field_location_city__add_.pyc [new file with mode: 0755]
paf0/paf/migrations/0010_auto__add_field_currentacademic_university__add_field_currentacademic_.py [new file with mode: 0755]
paf0/paf/migrations/0010_auto__add_field_currentacademic_university__add_field_currentacademic_.pyc [new file with mode: 0755]
paf0/paf/migrations/0011_auto__add_field_currentacademic_student.py [new file with mode: 0755]
paf0/paf/migrations/0011_auto__add_field_currentacademic_student.pyc [new file with mode: 0755]
paf0/paf/migrations/0012_auto__del_location__del_country__del_continent__del_area__add_level__c.py [new file with mode: 0755]
paf0/paf/migrations/0012_auto__del_location__del_country__del_continent__del_area__add_level__c.pyc [new file with mode: 0755]
paf0/paf/migrations/0013_auto__add_field_currentacademic_entry_year__add_field_currentacademic_.py [new file with mode: 0755]
paf0/paf/migrations/0013_auto__add_field_currentacademic_entry_year__add_field_currentacademic_.pyc [new file with mode: 0755]
paf0/paf/migrations/0014_auto__add_diplomaobtained.py [new file with mode: 0755]
paf0/paf/migrations/0014_auto__add_diplomaobtained.pyc [new file with mode: 0755]
paf0/paf/migrations/0015_auto__add_country__add_employment__add_city__add_entreprise__add_field.py [new file with mode: 0755]
paf0/paf/migrations/0015_auto__add_country__add_employment__add_city__add_entreprise__add_field.pyc [new file with mode: 0755]
paf0/paf/migrations/__init__.py [new file with mode: 0755]
paf0/paf/migrations/__init__.pyc [new file with mode: 0755]
paf0/paf/models.py [new file with mode: 0755]
paf0/paf/models.pyc [new file with mode: 0755]
paf0/paf/templates/.DS_Store [new file with mode: 0755]
paf0/paf/templates/._.DS_Store [new file with mode: 0755]
paf0/paf/templates/._base_enseignant.html [new file with mode: 0755]
paf0/paf/templates/._base_etudiant.html [new file with mode: 0755]
paf0/paf/templates/._edit_info copy.html [new file with mode: 0755]
paf0/paf/templates/._edit_info.html [new file with mode: 0755]
paf0/paf/templates/._register.html [new file with mode: 0755]
paf0/paf/templates/._register_success.html [new file with mode: 0755]
paf0/paf/templates/._student_info.html [new file with mode: 0755]
paf0/paf/templates/._student_list.html [new file with mode: 0755]
paf0/paf/templates/base_enseignant.html [new file with mode: 0755]
paf0/paf/templates/base_etudiant.html [new file with mode: 0755]
paf0/paf/templates/edit_info copy.html [new file with mode: 0755]
paf0/paf/templates/edit_info.html [new file with mode: 0755]
paf0/paf/templates/etablissement_detail.html [new file with mode: 0755]
paf0/paf/templates/etablissement_list.html [new file with mode: 0755]
paf0/paf/templates/personne_detail.html [new file with mode: 0755]
paf0/paf/templates/personne_list.html [new file with mode: 0755]
paf0/paf/templates/register.html [new file with mode: 0755]
paf0/paf/templates/register_success.html [new file with mode: 0755]
paf0/paf/templates/student_info.html [new file with mode: 0755]
paf0/paf/templates/student_list.html [new file with mode: 0755]
paf0/paf/tests.py [new file with mode: 0755]
paf0/paf/urls.py [new file with mode: 0755]
paf0/paf/urls.pyc [new file with mode: 0755]
paf0/paf/util.py [new file with mode: 0755]
paf0/paf/views 2.py [new file with mode: 0755]
paf0/paf/views.py [new file with mode: 0755]
paf0/paf/views.pyc [new file with mode: 0755]
paf0/paf0/.DS_Store [new file with mode: 0755]
paf0/paf0/._.DS_Store [new file with mode: 0755]
paf0/paf0/._settings.py [new file with mode: 0755]
paf0/paf0/._urls.py [new file with mode: 0755]
paf0/paf0/._views.py [new file with mode: 0755]
paf0/paf0/__init__.py [new file with mode: 0755]
paf0/paf0/__init__.pyc [new file with mode: 0755]
paf0/paf0/media/.DS_Store [new file with mode: 0755]
paf0/paf0/media/._.DS_Store [new file with mode: 0755]
paf0/paf0/media/css/._edit_info.css [new file with mode: 0755]
paf0/paf0/media/css/._style.css [new file with mode: 0755]
paf0/paf0/media/css/._style_student_list.css [new file with mode: 0755]
paf0/paf0/media/css/base.css [new file with mode: 0755]
paf0/paf0/media/css/changelists.css [new file with mode: 0755]
paf0/paf0/media/css/edit_info.css [new file with mode: 0755]
paf0/paf0/media/css/forms.css [new file with mode: 0755]
paf0/paf0/media/css/style.css [new file with mode: 0755]
paf0/paf0/media/css/style_student_list.css [new file with mode: 0755]
paf0/paf0/media/css/widgets.css [new file with mode: 0755]
paf0/paf0/media/images/459.gif [new file with mode: 0755]
paf0/paf0/media/images/boxy-ne.png [new file with mode: 0755]
paf0/paf0/media/images/boxy-nw.png [new file with mode: 0755]
paf0/paf0/media/images/boxy-se.png [new file with mode: 0755]
paf0/paf0/media/images/boxy-sw.png [new file with mode: 0755]
paf0/paf0/media/images/chart_bar_edit.png [new file with mode: 0755]
paf0/paf0/media/images/comment-actif.png [new file with mode: 0755]
paf0/paf0/media/images/comment-inactif.png [new file with mode: 0755]
paf0/paf0/media/images/document.png [new file with mode: 0755]
paf0/paf0/media/images/document.svg [new file with mode: 0755]
paf0/paf0/media/images/favicon.ico [new file with mode: 0755]
paf0/paf0/media/images/icones/indicateur.png [new file with mode: 0755]
paf0/paf0/media/images/icones/projet.png [new file with mode: 0755]
paf0/paf0/media/images/lightbulb.png [new file with mode: 0755]
paf0/paf0/media/images/loading.gif [new file with mode: 0755]
paf0/paf0/media/images/logo.gif [new file with mode: 0755]
paf0/paf0/media/images/menubck.png [new file with mode: 0755]
paf0/paf0/media/images/mnubck.png [new file with mode: 0755]
paf0/paf0/media/images/page_white_edit.png [new file with mode: 0755]
paf0/paf0/media/images/page_white_magnify.png [new file with mode: 0755]
paf0/paf0/media/images/page_white_medal.png [new file with mode: 0755]
paf0/paf0/media/images/pdf.png [new file with mode: 0755]
paf0/paf0/media/images/photo.png [new file with mode: 0755]
paf0/paf0/media/images/srcbck.png [new file with mode: 0755]
paf0/paf0/media/images/user.png [new file with mode: 0755]
paf0/paf0/media/images/zoom.png [new file with mode: 0755]
paf0/paf0/media/js/jquery-1.3.2.min.js [new file with mode: 0755]
paf0/paf0/settings.py [new file with mode: 0755]
paf0/paf0/settings.pyc [new file with mode: 0755]
paf0/paf0/templates/.DS_Store [new file with mode: 0755]
paf0/paf0/templates/._.DS_Store [new file with mode: 0755]
paf0/paf0/templates/._base.html [new file with mode: 0755]
paf0/paf0/templates/._connexion.html [new file with mode: 0755]
paf0/paf0/templates/._home.html [new file with mode: 0755]
paf0/paf0/templates/admin/._change_list.html [new file with mode: 0755]
paf0/paf0/templates/admin/base_site.html [new file with mode: 0755]
paf0/paf0/templates/admin/change_list.html [new file with mode: 0755]
paf0/paf0/templates/base.html [new file with mode: 0755]
paf0/paf0/templates/connexion.html [new file with mode: 0755]
paf0/paf0/templates/deconnexion.html [new file with mode: 0755]
paf0/paf0/templates/home.html [new file with mode: 0755]
paf0/paf0/templates/registration/.DS_Store [new file with mode: 0755]
paf0/paf0/templates/registration/._.DS_Store [new file with mode: 0755]
paf0/paf0/templates/registration/._password_change_done.html [new file with mode: 0755]
paf0/paf0/templates/registration/._password_change_done_student.html [new file with mode: 0755]
paf0/paf0/templates/registration/._password_change_form.html [new file with mode: 0755]
paf0/paf0/templates/registration/._password_change_form_admin.html [new file with mode: 0755]
paf0/paf0/templates/registration/._password_change_form_student.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_done.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_done_admin.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_done_student.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_form.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_form_admin.html [new file with mode: 0755]
paf0/paf0/templates/registration/password_change_form_student.html [new file with mode: 0755]
paf0/paf0/urls.py [new file with mode: 0755]
paf0/paf0/urls.pyc [new file with mode: 0755]
paf0/paf0/views.py [new file with mode: 0755]
paf0/paf0/views.pyc [new file with mode: 0755]
paf0/paf0/wsgi.py [new file with mode: 0755]
paf0/paf0/wsgi.pyc [new file with mode: 0755]
pafauf_bdd.sql [deleted file]
php_excel.php [deleted file]

diff --git a/admin/admin_authen.php b/admin/admin_authen.php
deleted file mode 100644 (file)
index 9664904..0000000
+++ /dev/null
@@ -1,569 +0,0 @@
-<?php\r
-       session_start();\r
-       $admin=$HTTP_SESSION_VARS["admin"];\r
-       $gen_m=$HTTP_SESSION_VARS["gen_m"];\r
-       $UserName=$HTTP_SESSION_VARS["UserName"];\r
-       $Password=$HTTP_SESSION_VARS["Password"];\r
-       if(!($admin == "y" || $gen_m == "y")){\r
-               include("./includes/function.php");\r
-       redirect("index.php");\r
-    }\r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<html>\r
-<head>\r
-<title>.:|| Administrateur - Mot de passe ||:.</title>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
-<link href="../styles/styles.css" rel="stylesheet" type="text/css">\r
-<script language="javascript1.2" type="text/javascript">\r
-       function delete_message(){\r
-                       var flag=true;\r
-                       if (!confirm("Est-ce que vous voudriez vraiment supprimer cette information?")) flag =false;\r
-                       return flag;\r
-       }\r
-       \r
-       function validate_txt_box_1(Password){\r
-               var flag = true;\r
-               if(Password.txtUserName.value == 0){\r
-                       alert("Entrez l'identifiant, s.v.p!");\r
-                       Password.txtUserName.focus();\r
-                       return false;\r
-               }\r
-       <?php if($_REQUEST["MODI"] == ""){ ?>\r
-               if(Password.txtPassword.value == 0){\r
-                       alert("Entrez le mot de passe, s.v.p!");\r
-                       Password.txtPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtMail.value == 0){\r
-                       alert("Entrez le mail, s.v.p!");\r
-                       Password.txtMail.focus();\r
-                       return false;\r
-               }\r
-       <?php } ?>\r
-               if(Password.selPerm.value == "Choisissez"){\r
-                       alert("Choisissez la permission, s.v.p!");\r
-                       Password.selPerm.focus();\r
-                       return false;\r
-               }\r
-//--------------------------Modifier------------------------------------\r
-       <?php if($_REQUEST["MODI"] != ""){ ?>\r
-               if(Password.txtOPassword.value == 0){\r
-                       alert("Entrez l'ancien mot de passe, s.v.p!");\r
-                       Password.txtOPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtNPassword.value == 0){\r
-                       alert("Entrez le nouveau mot de passe, s.v.p!");\r
-                       Password.txtNPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtMail.value == 0){\r
-                       alert("Entrez le mail, s.v.p!");\r
-                       Password.txtMail.focus();\r
-                       return false;\r
-               }\r
-       <?php } ?>\r
-       }\r
-</script>\r
-</head>\r
-<?php include("includes/connection.php"); ?>\r
-<?php include("includes/tclyit_cam_pc.php"); ?>\r
-<?php include("includes/function.php"); ?>\r
-<?php include("includes/menu.php")?>\r
-<?php\r
-       $kompler = "ChhunlyPhallen";\r
-       $AID = $_REQUEST["AID"];\r
-       $MODI = $_REQUEST["MODI"]; //Modif_strqrt\r
-       $DEL = $_REQUEST["DEL"]; //Del_strqrt\r
-       $txtUserName = $_REQUEST["txtUserName"];\r
-       $txtOPassword = tcly($_REQUEST["txtOPassword"],$kompler); //echo $txtOPassword;\r
-       $txtNPassword = tcly($_REQUEST["txtNPassword"],$kompler);\r
-       $txtPassword = tcly($_REQUEST["txtPassword"],$kompler);\r
-       $txtMail = $_REQUEST["txtMail"];\r
-       $SEL = $_REQUEST["selPerm"];\r
-       if($_REQUEST["cmdSave"]){\r
-               if($MODI == ""){\r
-                       if(check_email($txtMail)){\r
-                               $Str = "insert into tbladmin(username,password,admail,permission) values('".$txtUserName."','".$txtPassword."','".$txtMail."','".$SEL."')";\r
-                               mysql_query($Str) or die("Les informations ne peuvent pas enregistrer!");\r
-                               redirect("admin_authen.php");\r
-                       }else{ $MailErreur = "Pardon, l'addresse mail est incorrect!"; }\r
-               }else{\r
-//---------------Vérifier l'ancien mot de passe----------------------------------------\r
-                       $Sql = "Select password from tbladmin where password='".$txtOPassword."'";\r
-                       $Query = mysql_query($Sql);\r
-                       $Col = mysql_fetch_row($Query);\r
-                       if(($Col[0] == "") && !(check_email($txtMail))){\r
-                               $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
-                               $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
-                       }elseif(($Col[0] == "")){\r
-                               $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
-                       }elseif(!(check_email($txtMail))){\r
-                               $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
-                       }else{\r
-                               $Upd = "update tbladmin set username='".$txtUserName."',password='".$txtNPassword."',admail='".$txtMail."',permission='".$SEL."' where aid=".$AID;\r
-                               mysql_query($Upd) or die("Les informations ne peuvent pas modifier!");\r
-                               redirect("admin_authen.php");\r
-                       }\r
-               }\r
-       }\r
-//---------------------Information selectée--------------------------------------------\r
-       if($MODI != ""){\r
-               $Stp = mysql_query("select * from tbladmin where aid=".$AID);\r
-               if($Stp){\r
-                       $Row = mysql_fetch_array($Stp);\r
-                       $UName = $Row["username"];\r
-                       $Pwd = $Row["password"];\r
-                       $Mail = $Row["admail"];\r
-                       $Perm = $Row["permission"];\r
-               }\r
-               $Title = "Modifier Information";\r
-       }else{ $Title = "Ajouter Information"; }\r
-\r
-//---------------------Supprimer information------------------------------------------\r
-       if($DEL != ""){\r
-               $Del = "delete from tbladmin where aid=".$AID;\r
-               mysql_query($Del) or die("Cet information ne peut pas supprimer!");\r
-               $DEL = "";\r
-               $MODI = "";\r
-       }\r
-?>\r
-<body bgcolor="#fbfcf7" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\r
-<center>\r
-<form name="Password" method="post">\r
-<table id="Table_01" width="1000" height="600" border="0" cellpadding="0" cellspacing="0">\r
-       <tr>\r
-               <td rowspan="20" width="17" height="749">&nbsp;</td>\r
-               <td colspan="11">\r
-                       <img src="images/tclyitd_02.png" width="967" height="9" alt=""></td>\r
-               <td rowspan="20" width="15" height="749">&nbsp;</td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="9" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_04.png" width="27" height="1" alt=""></td>\r
-               <td colspan="3" rowspan="5">\r
-                       <img src="images/tclyitd_05.png" width="204" height="37" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_06.png" width="527" height="1" alt=""></td>\r
-               <td rowspan="14">\r
-                       <img src="images/tclyitd_07.png" width="89" height="85" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_08.png" width="9" height="1" alt=""></td>\r
-               <td rowspan="14">\r
-                       <img src="images/tclyitd_09.png" width="87" height="85" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_10.png" width="24" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_11.png" width="27" height="11" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_12.png" width="527" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_13.png" width="9" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_14.png" width="24" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_15.png" width="27" height="11" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_16.png" width="527" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_17.png" width="9" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_18.png" width="24" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_19.png" width="27" height="10" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_20.png" width="527" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_21.png" width="9" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_22.png" width="24" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_23.png" width="27" height="11" alt=""></td>\r
-               <td colspan="3" rowspan="3">\r
-                       <img src="images/tclyitd_24.png" width="527" height="11" alt=""></td>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_25.png" width="9" height="11" alt=""></td>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_26.png" width="24" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="4" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td rowspan="6">\r
-                       <img src="images/tclyitd_27.png" width="133" height="39" alt=""></td>\r
-               <td colspan="2">\r
-                       <img src="images/tclyitd_28.png" width="71" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td colspan="2">\r
-                       <img src="images/tclyitd_29.png" width="71" height="6" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="6" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_30.png" width="27" height="10" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_31.png" width="153" height="10" alt=""></td>\r
-               <td rowspan="5">\r
-                       <img src="images/tclyitd_32.png" width="388" height="35" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_33.png" width="57" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_34.png" width="9" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_35.png" width="24" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_36.png" width="27" height="11" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_37.png" width="153" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_38.png" width="57" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_39.png" width="9" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_40.png" width="24" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_41.png" width="27" height="10" alt=""></td>\r
-               <td colspan="3">\r
-                       <img src="images/tclyitd_42.png" width="153" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_43.png" width="57" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_44.png" width="9" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_45.png" width="24" height="10" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_46.png" width="27" height="9" alt=""></td>\r
-               <td colspan="3" rowspan="3">\r
-                       <img src="images/tclyitd_47.png" width="153" height="9" alt=""></td>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_48.png" width="57" height="9" alt=""></td>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_49.png" width="9" height="9" alt=""></td>\r
-               <td rowspan="3">\r
-                       <img src="images/tclyitd_50.png" width="24" height="9" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td rowspan="2">\r
-                       <img src="images/tclyitd_51.png" width="133" height="8" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="3" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_52.png" width="388" height="5" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="5" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td colspan="7" rowspan="2">\r
-                       <img src="images/tclyitd_53.png" width="758" height="8" alt=""></td>\r
-               <td rowspan="2">\r
-                       <img src="images/tclyitd_54.png" width="9" height="8" alt=""></td>\r
-               <td rowspan="2">\r
-                       <img src="images/tclyitd_55.png" width="24" height="8" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/tclyitd_56.png" width="89" height="7" alt=""></td>\r
-               <td>\r
-                       <img src="images/tclyitd_57.png" width="87" height="7" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="7" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td colspan="3" width="187" height="612" valign="top" bgcolor="#b19681"><?php menu(); ?></td>\r
-               <td colspan="8" width="780" height="612" align="center" valign="top">\r
-                       <table width="780" height="612" cellpadding="0" cellspacing="0" border="1" style="border-right-color:#993366; border-style:solid;">\r
-                               <tr>\r
-                                       <td style="padding-left:10px; padding-top:20px;" align="center" valign="<?php if($admin == "y"){ ?>top<?php }else{ echo"middle"; } ?>">\r
-                                               <?php if($admin == "y"){ ?>\r
-                                               <table width="450" height="193" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
-                                                       <tr>\r
-                                                               <td align="center" style="padding-bottom:10px;">\r
-                                                                       <table width="496" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
-                                                                               <tr bgcolor="#56541f">\r
-                                                                                       <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong><?php echo $Title; ?></strong></td>\r
-                                                                               </tr>\r
-                                                                               <tr>\r
-                                                                                       <td>\r
-                                                                                               <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <input type="text" name="txtUserName" value="<?php if($MODI == ""){ echo $txtUserName; }else{ echo $UName; } ?>" size="40" />\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <?php if($MODI == ""){ ?>\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <input type="password" name="txtPassword" value="<?php echo $Pwd; ?>" size="40">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
-                                                                                                                       <input type="text" name="txtMail" value="<?php if($MODI == ""){ echo $txtMail; }else{ echo $Mail; } ?>" size="40">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <?php }else{ ?>\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Ancien Mot de passe : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $Invalid; ?></div>\r
-                                                                                                                       <input type="password" name="txtOPassword" value="" size="40">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Nouveau Mot de passe : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <input type="password" name="txtNPassword" value="" size="40">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <tr>\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
-                                                                                                                       <input type="text" name="txtMail" value="<?php echo $Mail; ?>" size="40">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <?php } ?>\r
-                                                                                                       <tr bgcolor="#E4D8A3">\r
-                                                                                                               <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission : </span>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <?php if($MODI == ""){ ?>\r
-                                                                                                                               <select name="selPerm" style="width:265;">\r
-                                                                                                                                       <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                                                                       <option value="1">Administrateur</option>\r
-                                                                                                                                       <option value="2">Utilisateur</option>\r
-                                                                                                                               </select>\r
-                                                                                                                       <?php }else{ ?>\r
-                                                                                                                               <select name="selPerm" style="width:265;">\r
-                                                                                                                                       <?php if($Perm == 1){ ?>\r
-                                                                                                                                               <option value="1" selected="selected">Administrateur</option>\r
-                                                                                                                                               <option value="2">Utilisateur</option>\r
-                                                                                                                                               <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                                                                       <?php } ?>\r
-                                                                                                                                       <?php if($Perm == 2){ ?>\r
-                                                                                                                                               <option value="2" selected="selected">Utilisateur</option>\r
-                                                                                                                                               <option value="1">Administrateur</option>\r
-                                                                                                                                               <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                                                                       <?php } ?>                                                                                                                                      \r
-                                                                                                                               </select>\r
-                                                                                                                       <?php } ?>\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <tr>\r
-                                                                                                               <td></td>\r
-                                                                                                               <td align="right" style="padding-right:45px; padding-bottom:5px; padding-top:10px;">\r
-                                                                                                                       <input type="submit" name="cmdSave" value="Sauvegarder" onClick="return validate_txt_box_1(Password);" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer;">\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <tr bgcolor="#EEF1B6">\r
-                                                                                                               <td colspan="2" align="left" style="padding-right:5px; padding-left:5px; padding-bottom:5px; padding-top:10px;">\r
-                                                                                                                       <font style="font-size:12px; font-weight:bold; color:#3300FF;"><u>Note</u> : </font>\r
-                                                                                                                       <font style="font-size:10px; font-weight:normal; color:#993300;">\r
-                                                                                                                               - <i><b>Administrateur</b></i> : Permettre pour ajouter, modifier et supprimer les informations.<br>\r
-                                                                                                                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- <i><b>Utilisateur</b></i> : Permettre pour ajouter et modifier les informations.\r
-                                                                                                                       </font>\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                               </table>\r
-                                                                                       </td>\r
-                                                                               </tr>\r
-                                                                 </table>\r
-                                                               </td>\r
-                                                       </tr>\r
-                                                       <tr>\r
-                                                               <td align="center" style="padding-top:10px; padding-bottom:20px;">\r
-                                                                       <table width="450" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
-                                                                               <tr bgcolor="#56541f">\r
-                                                                                       <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong>Liste de l'information</strong></td>\r
-                                                                               </tr>\r
-                                                                               <tr>\r
-                                                                                       <td align="center" valign="top">\r
-                                                                                               <table width="700" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#CCCCCC;">\r
-                                                                                                       <tr bgcolor="#CBD898" class="style2">\r
-                                                                                                               <td width="215" align="left" style="padding-bottom:5px;; padding-top:5px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant</span></td>\r
-                                                                                                               <td width="96" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe</span></td>\r
-                                                                                                               <td width="106" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission</span></td>\r
-                                                                                                               <td width="" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Email</span></td>\r
-                                                                                                               <td width="133" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Modifier</span></td>\r
-                                                                                                               <td width="138" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                                                                       <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Supprimer</span></td>\r
-                                                                                                       </tr>\r
-                                                                                                       <?php\r
-                                                                                                       //----------------Montrer l'information------------------------------------------------\r
-                                                                                                               $Sql = "select * from tbladmin order by permission";\r
-                                                                                                               if($Sql){\r
-                                                                                                                       $Swl = mysql_query($Sql);\r
-                                                                                                                       while($Rows = mysql_fetch_array($Swl)){\r
-                                                                                                                               $AID = $Rows["aid"];\r
-                                                                                                                               $UserName = $Rows["username"];\r
-                                                                                                                               $Password = $Rows["password"];\r
-                                                                                                                               $Mails = $Rows["admail"];\r
-                                                                                                                               $Perm = $Rows["permission"];\r
-                                                                                                                               if($Perm == 1){\r
-                                                                                                                                       $Permission = "Administrateur";\r
-                                                                                                                               }else{ $Permission = "Utilisateur"; }\r
-                                                                                                       ?>\r
-                                                                                                       <tr bgcolor="#E1E3B0">\r
-                                                                                                               <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <?php echo $UserName; ?>\r
-                                                                                                               </td>\r
-                                                                                                               <td title="<?php echo phlen($Password,$kompler); ?>" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <?php echo $Password; ?>\r
-                                                                                                               </td>\r
-                                                                                                               <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <?php echo $Permission; ?>\r
-                                                                                                               </td>\r
-                                                                                                               <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                                                                       <?php echo $Mails; ?>\r
-                                                                                                               </td>\r
-                                                                                                               <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                                                                       <input type="button" name="cmdEdit" value="  Modifier  " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF; font-weight:normal;" title='Modifier : <?php echo $UserName; ?>' onClick="javascript:document.location.href='<?php echo"$_PHP_SELF?AID=$AID&MODI=Modif_strqrt"; ?>'" />\r
-                                                                                                                       <!--<a href="<?php echo"$_PHP_SELF?AID=$AID&MODI=Modif_strqrt"; ?>" title="Modifier : <?php echo $UserName; ?>"><img src="images/tclyit_m.png" width="122" height="28" border="0"></a>-->\r
-                                                                                                               </td>\r
-                                                                                                               <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                                                                       <input type="button" name="cmdDelete" value="Supprimer" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title='Supprimer : <?php echo $UserName; ?>' onClick="javascript: if(window.confirm('Confirmez-vous la suppression de <?php echo "\' ".$UserName." \'"; ?>?')){document.location.href='<?php echo"$_PHP_SELF?AID=$AID&DEL=Del_strqrt"; ?>'}" />\r
-                                                                                                                       <!--<a href="<?php echo"$_PHP_SELF?AID=$AID&DEL=Del_strqrt"; ?>" title="Supprimer : <?php echo $UserName; ?>"><img src="images/tclyits_m.png" width="122" height="28" onClick="return delete_message();" border="0"></a>-->\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                                       <?php } } ?>\r
-                                                                                                       <tr>\r
-                                                                                                               <td colspan="5"></td>\r
-                                                                                                               <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                                                                       <input type="button" name="cmdAjouter" value="    Ajouter   " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title="Ajouter nouveau utilisateur" onClick="javascript:document.location.href='<?php echo"admin_authen.php"; ?>'" />\r
-                                                                                                               </td>\r
-                                                                                                       </tr>\r
-                                                                                               </table>\r
-                                                                                       </td>\r
-                                                                               </tr>\r
-                                                                               <tr bgcolor="#E2CEAF"><td align="center" style="padding-top:8px; padding-bottom:8px;"><i>Veuillez mettre votre curseur sur le mot de passe vous allez voir le vrai mot de passe!</i></td></tr>\r
-                                                                 </table>\r
-                                                               </td>\r
-                                                       </tr>\r
-                                         </table>\r
-                                       <?php }else{ echo"<font style='color:#FF0000; font-size:16px; font-weight:bold;'><i>Pardon, Vous n'avez pas permission pour accéder dans cette page!<br>Administrateur seulement qui peut l'accéder.</i></font>"; } ?>\r
-                                       </td>\r
-                               </tr>\r
-                       </table>\r
-               </td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="612" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td colspan="11">\r
-                       <img src="images/tclyitd_60.png" width="967" height="12" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="12" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <?php include("includes/footer_admin.php"); ?>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="13" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td colspan="11">\r
-                       <img src="images/tclyitd_62.png" width="967" height="11" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
-       </tr>\r
-       <tr>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="17" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="27" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="133" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="27" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="44" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="82" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="388" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="57" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="89" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="9" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="87" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="24" height="1" alt=""></td>\r
-               <td>\r
-                       <img src="images/spacer.gif" width="15" height="1" alt=""></td>\r
-               <td></td>\r
-       </tr>\r
-</table>\r
-</form>\r
-       <script language="javascript" type="text/javascript">\r
-               setTimeout("document.Password.txtUserName.focus()",1);\r
-       </script>\r
-</center>\r
-</body>\r
-</html>\r
diff --git a/admin/images/tclyit_silver.jpg b/admin/images/tclyit_silver.jpg
deleted file mode 100644 (file)
index efd475b..0000000
Binary files a/admin/images/tclyit_silver.jpg and /dev/null differ
diff --git a/admin/images/tclyit_silver_1.jpg b/admin/images/tclyit_silver_1.jpg
deleted file mode 100644 (file)
index 2ef67f5..0000000
Binary files a/admin/images/tclyit_silver_1.jpg and /dev/null differ
diff --git a/admin/index_admin.php b/admin/index_admin.php
deleted file mode 100644 (file)
index bf1725c..0000000
+++ /dev/null
@@ -1,343 +0,0 @@
-<?php session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserName"];\r
-       $Password=$_SESSION["Password"];\r
-       if(!($admin == "y")){\r
-               include("includes/redirect.php");\r
-       redirect("index.php");\r
-    }\r
-       \r
-       //-----------session expirée-------------------\r
-       if(isset($_SESSION['started'])){\r
-               if((mktime() - $_SESSION['started'] - 60*30) > 0 ){\r
-                       unset($_SESSION["loginAUFKH"]);\r
-                       unset($_SESSION["adminAUFPPKH"]);\r
-                       redirect("index.php");\r
-               }\r
-       }else{\r
-               $_SESSION['started'] = mktime();\r
-       }\r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<title>Gestion de mot de passe -- Administrateur</title>\r
-<script language="javascript1.2" type="text/javascript">\r
-       function delete_message(){\r
-                       var flag=true;\r
-                       if (!confirm("Est-ce que vous voudriez vraiment supprimer cette information?")) flag =false;\r
-                       return flag;\r
-       }\r
-       \r
-       function validate_txt_box_1(Password){\r
-               var flag = true;\r
-               if(Password.txtUserName.value == 0){\r
-                       alert("Entrez l'identifiant, s.v.p!");\r
-                       Password.txtUserName.focus();\r
-                       return false;\r
-               }\r
-       <?php if($_REQUEST["MODI"] == ""){ ?>\r
-               if(Password.txtPassword.value == 0){\r
-                       alert("Entrez le mot de passe, s.v.p!");\r
-                       Password.txtPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtMail.value == 0){\r
-                       alert("Entrez le mail, s.v.p!");\r
-                       Password.txtMail.focus();\r
-                       return false;\r
-               }\r
-       <?php } ?>\r
-               if(Password.selPerm.value == "Choisissez"){\r
-                       alert("Choisissez la permission, s.v.p!");\r
-                       Password.selPerm.focus();\r
-                       return false;\r
-               }\r
-//--------------------------Modifier------------------------------------\r
-       <?php if($_REQUEST["MODI"] != ""){ ?>\r
-               if(Password.txtOPassword.value == 0){\r
-                       alert("Entrez l'ancien mot de passe, s.v.p!");\r
-                       Password.txtOPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtNPassword.value == 0){\r
-                       alert("Entrez le nouveau mot de passe, s.v.p!");\r
-                       Password.txtNPassword.focus();\r
-                       return false;\r
-               }\r
-               if(Password.txtMail.value == 0){\r
-                       alert("Entrez le mail, s.v.p!");\r
-                       Password.txtMail.focus();\r
-                       return false;\r
-               }\r
-       <?php } ?>\r
-       }\r
-</script>\r
-</head>\r
-<?php\r
-       include("../includes/connection.php");\r
-       include("../includes/functions.php");\r
-       include("../includes/redirect.php");\r
-       \r
-       $kompler = "{%#bb^csr%#}";\r
-       $ID = $_REQUEST["ID"];\r
-       $MODI = $_REQUEST["MODI"]; //Modif_strqrt\r
-       $DEL = $_REQUEST["DEL"]; //Del_strqrt\r
-       $txtUserName = strtolower(str_replace("'","",$_REQUEST["txtUserName"]));\r
-       $txtOPassword = encrptPwd(strtolower($_REQUEST["txtOPassword"]),$kompler); //echo $txtOPassword;\r
-       $txtNPassword = encrptPwd(strtolower($_REQUEST["txtNPassword"]),$kompler);\r
-       $txtPassword = encrptPwd(strtolower($_REQUEST["txtPassword"]),$kompler);\r
-       $txtMail = $_REQUEST["txtMail"];\r
-       $SEL = $_REQUEST["selPerm"];\r
-       if($_REQUEST["cmdSave"]){\r
-               if($MODI == ""){\r
-                       if(check_email($txtMail)){\r
-                               $Str = "insert into passwd(login,Passwd,Email,Permission) values('".$txtUserName."','".$txtPassword."','".$txtMail."','".$SEL."')";\r
-                               mysql_query($Str) or die("Les informations ne peuvent pas enregistrer!");\r
-                               redirect("index_admin.php");\r
-                       }else{ $MailErreur = "Pardon, l'addresse mail est incorrect!"; }\r
-               }else{\r
-//---------------Vérifier l'ancien mot de passe----------------------------------------\r
-                       $Sql = "Select Passwd from passwd where Passwd='".$txtOPassword."'";\r
-                       $Query = mysql_query($Sql);\r
-                       $Col = mysql_fetch_row($Query);\r
-                       if(($Col[0] == "") && !(check_email($txtMail))){\r
-                               $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
-                               $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
-                       }elseif(($Col[0] == "")){\r
-                               $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
-                       }elseif(!(check_email($txtMail))){\r
-                               $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
-                       }else{\r
-                               $Upd = "update passwd set login='".$txtUserName."',Passwd='".$txtNPassword."',Email='".$txtMail."',Permission='".$SEL."' where ID=".$ID;\r
-                               mysql_query($Upd) or die("Les informations ne peuvent pas modifier!");\r
-                               redirect("index_admin.php");\r
-                       }\r
-               }\r
-       }\r
-//---------------------Information selectée--------------------------------------------\r
-       if($MODI != ""){\r
-               $Stp = mysql_query("select * from passwd where ID=".$ID);\r
-               if($Stp){\r
-                       $Row = mysql_fetch_array($Stp);\r
-                       $UName = $Row["login"];\r
-                       $Pwd = $Row["Passwd"];\r
-                       $Mail = $Row["Email"];\r
-                       $Perm = $Row["Permission"];\r
-               }\r
-               $Title = "Modifier Information";\r
-       }else{ $Title = "Ajouter Information"; }\r
-\r
-//---------------------Supprimer information------------------------------------------\r
-       if($DEL != ""){\r
-               $Del = "delete from passwd where ID=".$ID;\r
-               mysql_query($Del) or die("Cet information ne peut pas supprimer!");\r
-               $DEL = "";\r
-               $MODI = "";\r
-       }\r
-?>\r
-<body>\r
-       <center>\r
-<?php\r
-       echo "You have logged in ... ";\r
-       echo "[<a href='../index.php?logout_sqrt'>Logout</a>]";\r
-       echo "<small>&nbsp;&nbsp;&nbsp;&nbsp;<a href='../index_main.php' title='Accueil'>Accueil</a></small>";\r
-?><br><br>\r
-\r
-       <form name="Password" method="post">\r
-       <table width="450" height="193" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
-               <tr>\r
-                       <td align="center" style="padding-bottom:10px;">\r
-                               <table width="496" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
-                                       <tr bgcolor="#56541f">\r
-                                               <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong><?php echo $Title; ?></strong></td>\r
-                                       </tr>\r
-                                       <tr>\r
-                                               <td>\r
-                                                       <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant : </span>\r
-                                                                       </td>\r
-                                                                       <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <input type="text" name="txtUserName" value="<?php if($MODI == ""){ echo $txtUserName; }else{ echo $UName; } ?>" size="40" />\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <?php if($MODI == ""){ ?>\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <input type="password" name="txtPassword" value="<?php echo $Pwd; ?>" maxlength="8" size="40">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
-                                                                               <input type="text" name="txtMail" value="<?php if($MODI == ""){ echo $txtMail; }else{ echo $Mail; } ?>" size="40">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <?php }else{ ?>\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Ancien Mot de passe : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $Invalid; ?></div>\r
-                                                                               <input type="password" name="txtOPassword" value="" size="40">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Nouveau Mot de passe : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <input type="password" name="txtNPassword" value="" size="40">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <tr>\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
-                                                                               <input type="text" name="txtMail" value="<?php echo $Mail; ?>" size="40">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <?php } ?>\r
-                                                               <tr bgcolor="#E4D8A3">\r
-                                                                       <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission : </span>\r
-                                                                       </td>\r
-                                                                       <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <?php if($MODI == ""){ ?>\r
-                                                                                       <select name="selPerm" style="width:265;">\r
-                                                                                               <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                               <option value="1">Administrateur</option>\r
-                                                                                               <option value="2">Utilisateur</option>\r
-                                                                                       </select>\r
-                                                                               <?php }else{ ?>\r
-                                                                                       <select name="selPerm" style="width:265;">\r
-                                                                                               <?php if($Perm == 1){ ?>\r
-                                                                                                       <option value="1" selected="selected">Administrateur</option>\r
-                                                                                                       <option value="2">Utilisateur</option>\r
-                                                                                                       <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                               <?php } ?>\r
-                                                                                               <?php if($Perm == 2){ ?>\r
-                                                                                                       <option value="2" selected="selected">Utilisateur</option>\r
-                                                                                                       <option value="1">Administrateur</option>\r
-                                                                                                       <option value="Choisissez">[--Choisissez Permission--]</option>\r
-                                                                                               <?php } ?>                                                                                                                                      \r
-                                                                                       </select>\r
-                                                                               <?php } ?>\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <tr>\r
-                                                                       <td></td>\r
-                                                                       <td align="right" style="padding-right:45px; padding-bottom:5px; padding-top:10px;">\r
-                                                                               <input type="submit" name="cmdSave" value="Sauvegarder" onClick="return validate_txt_box_1(Password);" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer;">\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <tr bgcolor="#EEF1B6">\r
-                                                                       <td colspan="2" align="left" style="padding-right:5px; padding-left:5px; padding-bottom:5px; padding-top:10px;">\r
-                                                                               <font style="font-size:12px; font-weight:bold; color:#3300FF;"><u>Note</u> : </font>\r
-                                                                               <font style="font-size:10px; font-weight:normal; color:#993300;">\r
-                                                                                       - <i><b>Administrateur</b></i> : Permettre pour ajouter, modifier et supprimer les informations.<br>\r
-                                                                                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- <i><b>Utilisateur</b></i> : Permettre pour ajouter et modifier les informations.\r
-                                                                               </font>\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                       </table>\r
-                                               </td>\r
-                                       </tr>\r
-                         </table>\r
-                       </td>\r
-               </tr>\r
-               <tr>\r
-                       <td align="center" style="padding-top:10px; padding-bottom:20px;">\r
-                               <table width="450" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
-                                       <tr bgcolor="#56541f">\r
-                                               <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong>Liste de l'information</strong></td>\r
-                                       </tr>\r
-                                       <tr>\r
-                                               <td align="center" valign="top">\r
-                                                       <table width="700" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#CCCCCC;">\r
-                                                               <tr bgcolor="#CBD898" class="style2">\r
-                                                                       <td width="215" align="left" style="padding-bottom:5px;; padding-top:5px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant</span></td>\r
-                                                                       <td width="96" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe</span></td>\r
-                                                                       <td width="106" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission</span></td>\r
-                                                                       <td width="" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Email</span></td>\r
-                                                                       <td width="133" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Modifier</span></td>\r
-                                                                       <td width="138" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
-                                                                               <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Supprimer</span></td>\r
-                                                               </tr>\r
-                                                               <?php\r
-                                                               //----------------Montrer l'information------------------------------------------------\r
-                                                                       $Sql = "select * from passwd order by login";\r
-                                                                       if($Sql){\r
-                                                                               $Swl = mysql_query($Sql);\r
-                                                                               while($Rows = mysql_fetch_array($Swl)){\r
-                                                                                       $ID = $Rows["ID"];\r
-                                                                                       $UserName = $Rows["login"];\r
-                                                                                       $Password = $Rows["Passwd"];\r
-                                                                                       $Mails = $Rows["Email"];\r
-                                                                                       $Perm = $Rows["Permission"];\r
-                                                                                       if($Perm == 1){\r
-                                                                                               $Permission = "Administrateur";\r
-                                                                                       }else{ $Permission = "Utilisateur"; }\r
-                                                               ?>\r
-                                                               <tr bgcolor="#E1E3B0">\r
-                                                                       <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <?php echo $UserName; ?>\r
-                                                                       </td>\r
-                                                                       <td title="<?php echo decrptPwd($Password,$kompler); ?>" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <?php echo $Password; ?>\r
-                                                                       </td>\r
-                                                                       <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <?php echo $Permission; ?>\r
-                                                                       </td>\r
-                                                                       <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
-                                                                               <?php echo $Mails; ?>\r
-                                                                       </td>\r
-                                                                       <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                               <input type="button" name="cmdEdit" value="  Modifier  " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF; font-weight:normal;" title='Modifier : <?php echo $UserName; ?>' onClick="javascript:document.location.href='<?php echo"$_PHP_SELF?ID=$ID&MODI=Modif_strqrt"; ?>'" />\r
-                                                                               <!--<a href="<?php echo"$_PHP_SELF?ID=$ID&MODI=Modif_strqrt"; ?>" title="Modifier : <?php echo $UserName; ?>"><img src="images/tclyit_m.png" width="122" height="28" border="0"></a>-->\r
-                                                                       </td>\r
-                                                                       <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                               <input type="button" name="cmdDelete" value="Supprimer" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title='Supprimer : <?php echo $UserName; ?>' onClick="javascript: if(window.confirm('Confirmez-vous la suppression de <?php echo "\' ".$UserName." \'"; ?>?')){document.location.href='<?php echo"$_PHP_SELF?ID=$ID&DEL=Del_strqrt"; ?>'}" />\r
-                                                                               <!--<a href="<?php echo"$_PHP_SELF?ID=$ID&DEL=Del_strqrt"; ?>" title="Supprimer : <?php echo $UserName; ?>"><img src="images/tclyits_m.png" width="122" height="28" onClick="return delete_message();" border="0"></a>-->\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                               <?php } } ?>\r
-                                                               <tr>\r
-                                                                       <td colspan="5"></td>\r
-                                                                       <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
-                                                                               <input type="button" name="cmdAjouter" value="    Ajouter   " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title="Ajouter nouveau utilisateur" onClick="javascript:document.location.href='<?php echo"index_admin.php"; ?>'" />\r
-                                                                       </td>\r
-                                                               </tr>\r
-                                                       </table>\r
-                                               </td>\r
-                                       </tr>\r
-                                       <tr bgcolor="#E2CEAF"><td align="center" style="padding-top:8px; padding-bottom:8px;"><i>Veuillez mettre votre curseur sur le mot de passe vous allez voir le vrai mot de passe!</i></td></tr>\r
-                         </table>\r
-                       </td>\r
-               </tr>\r
-  </table>\r
-   </form>\r
-  </center>\r
\r
-</body>\r
-</html>\r
diff --git a/excel.php b/excel.php
deleted file mode 100644 (file)
index 740c499..0000000
--- a/excel.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php\r
-       error_reporting (E_ALL ^ E_NOTICE); //------pour &eacute;viter les notices sur les variables---------------\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       include("includes/redirect.php");\r
-       if(!($admin == "y")){\r
-       redirect("index.php");\r
-    }\r
-\r
-$cdate = date("Y-m-d");\r
-\r
-header("Content-type: application/vnd.ms-excel");\r
-header("Content-Disposition: attachment; filename=tableau_on_$cdate.xls");\r
-\r
-\r
-// selectionner la base de donn&eacute;es\r
-include("includes/connection.php");\r
-include("includes/functions.php");\r
-/*$mysql_host = 'localhost';\r
-$mysql_user = 'root';\r
-$mysql_pass = 'root';\r
-$mysql_db      = 'pafauf_bdd';\r
-$query_string = "select * from v_excel";\r
-$mysql_link = mysql_connect($mysql_host,$mysql_user,$mysql_pass);\r
-\r
-mysql_select_db($mysql_db, $mysql_link);*/\r
-$sql = "SELECT * FROM v_excel";\r
-$sql = mysql_query($sql);\r
-\r
-$tbl= " <table border='100px' cellpadding='0' cellspacing='0'>\r
-<tr bgcolor='#CCCCCC' height='30px'>\r
-<td width='30px'><b>No.</b></td>\r
-<td width='100px'><b>Nom</b></td>\r
-<td width='150px'><b>Pr&eacute;nom</b></td>\r
-<td width='50px'><b>Genre</b></td>\r
-<td width='150px'><b>Date de Naissance</b></td>\r
-<td width='100px'><b>Nationalit&eacute;</b></td>\r
-<td width='100px'><b>Universit&eacute;</b></td>\r
-<td width='100px'><b>Facult&eacute;</b></td>\r
-<td width='50px'><b>Promotion</b></td>\r
-<td width='100px'><b>Ann&eacute;e Dimpl&ocirc;me</b></td>\r
-<td width='50px'><b>DELF / DALF</td>\r
-<td width='100px'><b>Ann&eacute;e DELF / DALF</b></td>\r
-<td width='100px'><b>Autres Langues</b></td>\r
-<td width='100px'><b>E-mail</b></td>\r
-<td width='100px'><b>T&eacute;l&eacute;phone Personnel</b></td>\r
-<td width='200px'><b>Adresse Personnelle</b></td>\r
-<td width='100px'><b>T&eacute;l&eacute;phone Parents</b></td>\r
-<td width='200px'><b>Adresse Parents</b></td>\r
-<td width='100px'><b>Titre du Travail ou Stage</b></td>\r
-<td width='200px'><b>Adresse du Travail ou Stage Actuel</b></td>\r
-</tr>";\r
-$i=1;\r
-while ($data = mysql_fetch_array($sql))\r
-{\r
-$tbl = $tbl . "<tr>";\r
-$tbl = $tbl . "<td>" . $i . "</td>";\r
-$tbl = $tbl . "<td>" . $data['1'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['2'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['3'] . "</td>";\r
-$tbl = $tbl . "<td>" . ChangeDateValueSelect($data['4']) . "</td>";\r
-$tbl = $tbl . "<td>" . $data['5'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['6'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['7'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['8'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['9'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['10'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['11'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['12'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['13'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['14'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['15'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['16'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['17'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['18'] . "</td>";\r
-$tbl = $tbl . "<td>" . $data['19'] . "</td>";\r
-$i++;\r
-$tbl = $tbl . "</tr>";\r
-}\r
-$tbl = $tbl . "</table>";\r
-\r
-print $tbl ; \r
-\r
-?>\r
diff --git a/forms/creer_infos.php b/forms/creer_infos.php
deleted file mode 100644 (file)
index 766af90..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-       <h2>Remplire vos informations</h2>\r
-    <p>Veillez-vous remplire vos informations pr&eacute;cises :</h2>&nbsp;&nbsp;&nbsp;<span style="background-color:#03F; color:#FFF; font-weight:bold;"><?php echo $Msg; ?></span><span style="background-color:#C33C33; color:#FFFFFF; font-weight:bold;"><?php echo $MsgError; ?></span>\r
-    <table width="100%" cellpadding="2" cellspacing="2" border="0" style="border-collapse:collapse;">\r
-       <tr><td width="18%">Nom<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="text" name="txtNom" value="<?php echo str_replace("`","'",$Rows['1']); ?>" maxlength="200" size="20" />&nbsp;&nbsp;<?php echo $ErrorNom; ?></td>\r
-            <td width="49%" align="center" style="background-color:#EDE7D8;"><b>Votre compte et mot de passe</b></td>\r
-        </tr>\r
-        <tr><td>Pr&eacute;nom<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="text" name="txtPrenom" value="<?php echo str_replace("`","'",$Rows['2']); ?>" maxlength="200" size="20" />&nbsp;&nbsp;<?php echo $ErrorPreNom; ?></td>\r
-            <td width="49%" rowspan="5" valign="top" style="background-color:#F4F4EC; padding-left:15px;">\r
-               <table cellpadding="3" cellspacing="3" border="0" width="80%" style="border-collapse:collapse;">\r
-                       <tr><td width="27%">Login :</td><td width="73%"><?php echo "C".$Rows['0']; ?></td></tr>\r
-                    <tr><td>Mot de passe :</td><td><?php echo decrptPwd($Rows['7'],$kompler); ?></td></tr>\r
-                    <tr><td colspan="2" style="padding-top:15px;">\r
-                               <a onClick="JavaScript:window.open('index_pwd.php','win5strildkdfjwi7599%6&&%%$idjd__e434534%$##$%**','width=900, height=330' )"; style="cursor:pointer;text-decoration:underline; color:#FF0000;" title="modifier vote mot de passe">\r
-                               Changer mot de passe ?</a></td></tr>\r
-                </table>\r
-            </td>\r
-        </tr>\r
-        <tr>\r
-               <td>Genre<span style="color:#F00F00">*</span> :</td>\r
-               <td>\r
-               <?php\r
-                                       if($Rows['3']=="F"){\r
-                                               $CheckedF = "checked";\r
-                                               $CheckedM = "";\r
-                                       }elseif($Rows['3']=="M"){\r
-                                               $CheckedM = "checked";\r
-                                               $CheckedF = "";\r
-                                       }else{\r
-                                               $CheckedM = "";\r
-                                               $CheckedF = "";\r
-                                       }\r
-                               ?>\r
-               <input type="radio" name="Sexe" value="F" <?php if($_REQUEST["Sexe"] == "F"){ echo "checked"; }else{ echo $CheckedF; } ?>> F\r
-                               <input type="radio" name="Sexe" value="M" <?php if($_REQUEST["Sexe"] == "M"){ echo "checked"; }else{ echo $CheckedM; } ?>> M &nbsp;&nbsp;<?php echo $ErrorSexe; ?></td>\r
-        </tr>\r
-        <tr><td>Date de naissance<span style="color:#F00F00">*</span> :</td>\r
-               <td width="33%"><select name="selJour" id="selJour">\r
-                       <?php\r
-                                               list($AA, $MM, $JJ) = split("-",$Rows['4']);\r
-                                               if($JJ != ""){ ?><option value="<?php echo $JJ; ?>"><?php echo $JJ; ?></option><?php } ?>\r
-                       <option value="">jour</option><?php for($i=1; $i <=31; $i++){ ?>\r
-                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                </select> &nbsp;&nbsp;\r
-                       <select name="selMois" id="selMois">\r
-                       <?php if($MM != ""){ ?><option value="<?php echo $MM; ?>"><?php echo $MM; ?></option><?php } ?>\r
-                       <option value="">mois</option><?php for($i=1; $i <=12; $i++){ ?>\r
-                    <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                </select> &nbsp;&nbsp;\r
-                <select name="selAnnee" id="selAnnee">\r
-                       <?php if($AA != ""){ ?><option value="<?php echo $AA; ?>"><?php echo $AA; ?></option><?php } ?>\r
-                       <option value="">ann&eacute;e</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>\r
-                    <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-          </select>&nbsp;&nbsp;<?php echo $ErrorDDN; ?>&nbsp;(JJ-MM-AAAA)</td>\r
-        </tr>\r
-               <tr><td width="18%">Nationalit&eacute;<span style="color:#F00F00">*</span> :</td>\r
-               <td><!--<?php if($Rows['5']!=""){ $SelNat=$Rows['5']; }else{ $SelNat=$_REQUEST["Nationalite"]; } ?>-->\r
-                       <!--<select name="Nationalite"><?php echo ArrayToSelectBox($Nationalite,$SelNat,1,''); ?></select>-->\r
-            <select name="Nationalite">\r
-               <?php\r
-                               //------------Retrieve data while EtudiantID is not nothing--------------------\r
-                                 $Strs = mysql_query("Select nationalite from tblinscrit where id=".$IDEtudiant."");\r
-                                 if($Strs){\r
-                                       $RowsNat = mysql_fetch_row($Strs);\r
-                                       $Nom = $RowsNat['0'];\r
-                                 }\r
-                                 if($Nom == ""){\r
-                                       if($_REQUEST["Nationalite"] == ""){ ?>\r
-                                               <option value="">Choississez...</option> <?php\r
-                                       }else{ ?>\r
-                                               <option value="<?php echo $_REQUEST["Nationalite"]; ?>" selected><?php echo $_REQUEST["Nationalite"]; ?></option>\r
-                                               <option value="">Choississez...</option>\r
-                                       <?php }\r
-                                       $Pql=mysql_query("Select * from tblnationalite");\r
-                                       if($Pql){\r
-                                         while($PRows=mysql_fetch_array($Pql)){\r
-                                                 $INom=$PRows["nom"];\r
-                                                 if($INom != $_REQUEST["Nationalite"]){\r
-                                                         echo"<OPTION VALUE='$INom'>$INom</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }else{\r
-                                       echo"<OPTION VALUE='$Nom'>$Nom</OPTION>\n";\r
-                                       ?><option value="">Choississez...</option><?php\r
-                                       $Pql=mysql_query("Select * from tblnationalite");\r
-                                       if($Pql){\r
-                                         while($PRows=mysql_fetch_array($Pql)){\r
-                                                 $INom=$PRows["nom"];\r
-                                                 if($INom != $Nom){\r
-                                                         echo"<OPTION VALUE='$INom'>$INom</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }\r
-                                       ?>\r
-            </select>\r
-                       </td>\r
-        </tr>\r
-        <tr><td width="18%">Universit&eacute;<span style="color:#F00F00">*</span> :</td>\r
-               <td><select name="Etablissement" id="Etablissement">\r
-                <?php\r
-                               //------------Retrieve data while EtudiantID is not nothing--------------------\r
-                                 $StrEt = mysql_query("Select universite from tblinscrit where id=".$IDEtudiant."");\r
-                                 if($StrEt){\r
-                                       $RowsEt = mysql_fetch_row($StrEt);\r
-                                       $NomEt = str_replace("`","'",$RowsEt['0']);\r
-                                 }\r
-                                 if($NomEt == ""){\r
-                                       if($_REQUEST["Etablissement"] == ""){ ?>\r
-                                               <option value="">Choississez...</option> <?php\r
-                                       }else{ ?>\r
-                                               <option value="<?php echo str_replace("\'","'",$_REQUEST["Etablissement"]); ?>" selected><?php echo str_replace("\'","'",$_REQUEST["Etablissement"]); ?></option>\r
-                                               <option value="">Choississez...</option>\r
-                                       <?php }\r
-                                       $StEt=mysql_query("Select * from tbluniversite");\r
-                                       if($StEt){\r
-                                         while($PRowsEt=mysql_fetch_array($StEt)){\r
-                                                 $INomEt=str_replace("`","'",$PRowsEt["nom"]);\r
-                                                 if($INomEt != str_replace("\'","'",$_REQUEST["Etablissement"])){\r
-                                                         echo"<OPTION VALUE='$INomEt'>$INomEt</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }else{\r
-                                       echo"<OPTION VALUE='$NomEt'>$NomEt</OPTION>\n";\r
-                                       ?><option value="">Choississez...</option><?php\r
-                                       $StEt=mysql_query("Select * from tbluniversite");\r
-                                       if($StEt){\r
-                                         while($PRowsEt=mysql_fetch_array($StEt)){\r
-                                                 $INomEt=str_replace("`","'",$PRowsEt["nom"]);\r
-                                                 if($INomEt != $NomEt){\r
-                                                         echo"<OPTION VALUE='$INomEt'>$INomEt</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }\r
-                                       ?>\r
-                </select>\r
-                       </td>\r
-        </tr>\r
-        <tr><td width="18%">Facult&eacute;<span style="color:#F00F00">*</span> :</td>\r
-               <td><select name="Domaine">\r
-                <?php\r
-                               //------------Retrieve data while EtudiantID is not nothing--------------------\r
-                                 $StrFac = mysql_query("Select faculte from tblinscrit where id=".$IDEtudiant."");\r
-                                 if($StrFac){\r
-                                       $RowsFac = mysql_fetch_row($StrFac);\r
-                                       $NomFac = $RowsFac['0'];\r
-                                 }\r
-                                 if($NomFac == ""){\r
-                                       if($_REQUEST["Domaine"] == ""){ ?>\r
-                                               <option value="">Choississez...</option> <?php\r
-                                       }else{ ?>\r
-                                               <option value="<?php echo $_REQUEST["Domaine"]; ?>" selected><?php echo $_REQUEST["Domaine"]; ?></option>\r
-                                               <option value="">Choississez...</option>\r
-                                       <?php }\r
-                                       $StFac = mysql_query("Select * from tbldomaine");\r
-                                       if($StFac){\r
-                                         while($PRowsFac = mysql_fetch_array($StFac)){\r
-                                                 $INomFac =$PRowsFac["nom"];\r
-                                                 if($INomFac != $_REQUEST["Domaine"]){\r
-                                                         echo"<OPTION VALUE='$INomFac'>$INomFac</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }else{\r
-                                       echo"<OPTION VALUE='$NomFac'>$NomFac</OPTION>\n";\r
-                                       ?><option value="">Choississez...</option><?php\r
-                                       $StFac = mysql_query("Select * from tbldomaine");\r
-                                       if($StFac){\r
-                                         while($PRowsFac = mysql_fetch_array($StFac)){\r
-                                                 $INomFac = $PRowsFac["nom"];\r
-                                                 if($INomFac != $NomFac){\r
-                                                         echo"<OPTION VALUE='$INomFac'>$INomFac</OPTION>\n";\r
-                                                 }\r
-                                               } \r
-                                       } \r
-                                 }\r
-                                       ?>\r
-                </select>\r
-                       </td><td style="background-color:#EDE7D8; padding-left:17px;">\r
-               <strong><a href="index.php?page=liste_infos" title="liste des informations">Liste des informations >></a></strong>\r
-            </td>\r
-        </tr>\r
-               <tr><td width="18%">Promotion<span style="color:#F00F00">*</span> :</td>\r
-               <td><select name="selPromotion" id="selPromotion">\r
-                       <option value="<?php echo $Rows['10']; ?>"><?php echo $Rows['10']; ?></option>\r
-                                       <?php if($_REQUEST["selPomotion"]!= ""){ ?><option value="<?php echo $_REQUEST["selPomotion"]; ?>"><?php echo $_REQUEST["selPomotion"]; ?></option><?php } ?>\r
-                                       <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>\r
-                                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                               </select>&nbsp;&nbsp;<?php echo $ErrorPRO; ?> Ann&eacute;e obt. Dipl&ocirc;me : &nbsp;\r
-                               <select name="selAnneeDiplome" id="selAnneeDiplome">\r
-                       <option value="<?php echo $Rows['11']; ?>"><?php echo $Rows['11']; ?></option>\r
-                                       <?php if($_REQUEST["selAnneeDiplome"]!= ""){ ?><option value="<?php echo $_REQUEST["selAnneeDiplome"]; ?>"><?php echo $_REQUEST["selAnneeDiplome"]; ?></option><?php } ?>\r
-                                       <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>\r
-                                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                               </select>\r
-                       </td><td rowspan="11" valign="top" style="background-color:#F4F4EC; padding-left:15px; padding-top:15px;">\r
-               <table cellpadding="3" cellspacing="3" border="1" width="100%" style="border-collapse:collapse; border-color:#999;">\r
-                       <tr><td colspan="1">Nom et Pr&eacute;nom :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['1'])." ".str_replace("`","'",$Rows['2']); ?></td></tr>\r
-                    <tr><td width="29%">Genre :</td><td width="10%"><?php echo $Rows['3']; ?></td><td width="29%">Date de Naissance :</td><td width="32%"><?php echo ChangeDateValueSelect($Rows['4']); ?></td></tr>\r
-                    <tr><td colspan="1">Nationalit&eacute; :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['5']); ?></td></tr>\r
-                    <tr><td colspan="1">Universit&eacute; :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['8']); ?></td></tr>\r
-                    <tr><td colspan="1">Facult&eacute; :</td>\r
-                    <td colspan="3"><?php echo str_replace("`","'",$Rows['9']); ?> &nbsp;&nbsp;&nbsp;&nbsp;| Promo. :&nbsp; <?php echo $Rows['10']; ?>&nbsp;&nbsp;| Ann&eacute;e Dipl&ocirc;me : &nbsp; <?php echo $Rows['11']; ?></td></tr>\r
-                    <tr><td>DELF / DALF :</td><td><?php echo $Rows['12']; ?></td><td>Ann&eacute;e Obtention :</td><td><?php echo $Rows['13']; ?></td></tr>\r
-                    <tr><td colspan="1">Autres Langues :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['14']); ?></td></tr>\r
-                    <tr><td colspan="1">Mail :</td><td colspan="3"><?php echo $Rows['15']; ?></td></tr>\r
-                    <tr><td colspan="1">T&eacute;l&eacute;phone personnel :</td><td colspan="3"><?php echo $Rows['16']; ?></td></tr>\r
-                    <tr><td colspan="1">Adresse personnelle :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['17']); ?></td></tr>\r
-                    <tr><td colspan="1">T&eacute;l&eacute;phone parents :</td><td colspan="3"><?php echo $Rows['18']; ?></td></tr>\r
-                    <tr><td colspan="1">Adresse parents :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['19']); ?></td></tr>\r
-                    <tr><td colspan="1">Titre travail / stage :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['20']); ?></td></tr>\r
-                    <tr><td colspan="1">Adresse travail / stage actuel :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['21']); ?></td></tr>\r
-                    <tr><td colspan="1">Divers :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['22']); ?></td></tr>\r
-                </table>\r
-            </td>\r
-        </tr>\r
-               <tr><td width="18%">DELF / DALF :</td>\r
-               <td><select name="selDelf" id="selDelf">\r
-                       <option value="<?php echo $Rows['12']; ?>"><?php echo $Rows['12']; ?></option>\r
-                                       <?php if($_REQUEST["selDelf"]!=""){ ?><option value="<?php echo $_REQUEST["selDelf"]; ?>"><?php echo $_REQUEST["selDelf"]; ?></option><?php } ?>\r
-                                       <option value="">choisissez</option>\r
-                                       <option value="DELF">DELF</option>\r
-                                       <option value="DALF">DALF</option>\r
-                               </select>&nbsp;&nbsp; Ann&eacute;e obtention : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r
-                               <select name="selAnneeDelf" id="selAnneeDelf">\r
-                       <option value="<?php echo $Rows['13']; ?>"><?php echo $Rows['13']; ?></option>\r
-                                       <?php if($_REQUEST["selAnneeDelf"]!= ""){ ?><option value="<?php echo $_REQUEST["selAnneeDelf"]; ?>"><?php echo $_REQUEST["selAnneeDelf"]; ?></option><?php } ?>\r
-                                       <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>\r
-                                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                               </select>\r
-                       </td>\r
-        </tr>\r
-               <tr><td width="18%">Autres Langues :</td>\r
-               <td><input type="text" name="txtLangue" value="<?php if($Rows['14'] !=""){ echo str_replace("`","'",$Rows['14']); }else{ echo $_REQUEST["txtLangue"]; } ?>" maxlength="1000" size="20" /></td>\r
-        </tr>\r
-        <tr><td width="18%">Mail :</td>\r
-               <td><input type="text" name="txtMail" value="<?php if($Rows['15'] !=""){ echo str_replace("`","'",$Rows['15']); }else{ echo $_REQUEST["txtMail"]; } ?>" maxlength="100" size="20" />&nbsp;&nbsp;<?php echo $ErrorMail; ?></td>\r
-        </tr>\r
-        <tr><td width="18%">T&eacute;l&eacute;phone personnel :</td>\r
-               <td><input type="text" name="txtTelephonepersonnel" value="<?php if($Rows['16'] !=""){ echo str_replace("`","'",$Rows['16']); }else{ echo $_REQUEST["txtTelephonepersonnel"]; } ?>" maxlength="20" size="20" /></td>\r
-        </tr>\r
-        <tr><td width="18%">Adresse personnelle :</td>\r
-               <td><textarea name="txtAdressepersonnelle" rows="3" cols="30"><?php if($Rows['17'] !=""){ echo str_replace("`","'",$Rows['17']); }else{ echo $_REQUEST["txtAdressepersonnelle"]; } ?></textarea></td>\r
-        </tr>\r
-               <tr><td width="18%">T&eacute;l&eacute;phone parents :</td>\r
-               <td><input type="text" name="txtTelephoneparents" value="<?php if($Rows['18'] !=""){ echo str_replace("`","'",$Rows['18']); }else{ echo $_REQUEST["txtTelephoneparents"]; } ?>" maxlength="20" size="20" /></td>\r
-        </tr>\r
-        <tr><td width="18%">Adresse parents :</td>\r
-               <td><textarea name="txtAdresseparents" rows="3" cols="30"><?php if($Rows['19'] !=""){ echo str_replace("`","'",$Rows['19']); }else{ echo $_REQUEST["txtAdresseparents"];} ?></textarea></td>\r
-        </tr>\r
-               <tr><td width="18%">Titre travail / stage :</td>\r
-               <td><input type="text" name="txtTitretravail" value="<?php if($Rows['20'] !=""){ echo str_replace("`","'",$Rows['20']); }else{ echo $_REQUEST["txtTitretravail"]; } ?>" maxlength="800" size="20" /></td>\r
-        </tr>\r
-        <tr><td width="18%">Adresse travail / stage actuel :</td>\r
-               <td><textarea name="txtAdresseTravail" rows="3" cols="30"><?php if($Rows['21'] !=""){ echo str_replace("`","'",$Rows['21']); }else{ echo $_REQUEST["txtAdresseTravail"]; } ?></textarea></td>\r
-        </tr>\r
-               <tr><td width="18%">Divers :</td>\r
-               <td><textarea name="txtDivers" rows="5" cols="30"><?php if($Rows['22'] !=""){ echo str_replace("`","'",$Rows['22']); }else{ echo $_REQUEST["txtDivers"]; } ?></textarea></td>\r
-        </tr>\r
-        <tr><td></td><td colspan="3"><input type="submit" name="cmdSave" value="Sauvegarder" /> &nbsp;&nbsp;<span style="background-color:#FCFFCF"><i><span style="color:#F00F00">*</span> : c'est obligatoire de remplire.</i></span></td></tr>\r
-    </table>\r
-    <p> </p>\r
diff --git a/forms/home.php b/forms/home.php
deleted file mode 100644 (file)
index 5bc886f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-       <h3>Explications</h3>\r
-    <p>Ce site sera donc exclusivement r&eacute;serv&eacute; &agrave; cet effet avec comme seules entr&eacute;es:\r
-      <br />\r
-      1/ cr&eacute;ation de l'identification\r
-      <br />\r
-      2/ mise &agrave; jour de la fiche individuelle\r
-Il s'agit donc de tester la r&eacute;activit&eacute; des &eacute;tudiants, leur capacit&eacute; et leur motivation pour entrer dans ce genre de site, de mettre &agrave; jour leur fichier de mani&egrave;re interactive, d'&ecirc;tre capable de cr&eacute;er un identifiant, etc.\r
-Un accompagnement se effectu&eacute; par l'&eacute;quipe du CNF.<br />\r
-Le site sera donc basique. Toutes les saisies des &eacute;tudiants sont de toute fa&ccedil;on n&eacute;cessaires pour pouvoir les suivre, ce travail sera donc quoiqu'il arrive utile.</p>\r
-    <?php if($_SESSION["UserNamePAF"] ==""){ ?>\r
-    <h2>Cr&eacute;er votre login.</h2>\r
-    <p>Vous allez besoin de cr&eacute;er votre login avant remplire vos informations.</p><a href="<?php echo"$PHP_SELF?page=login" ?>" style="text-decoration:none; color:#603603;" title="Cliquer ici pour cr&eacute;er votre login"><img src="./images/register.jpg" width="102" height="15" border="0"></a>\r
-    <p><hr color="#E6E6E6" size="1" /></p><?php } ?>\r
-    <h2>Vous &ecirc;tes d&eacute;j&agrave; inscrit.</h2>\r
-    <p>Veuillez remplire votre compte identifiant et mot de passe.</p>\r
-    <table width="100%" cellpadding="3" cellspacing="3" border="0" style="border-collapse:collapse;">\r
-       <tr><td width="16%">Votre login :</td>\r
-       <td width="84%"><input type="text" name="txtUserName" size="25" /></td></tr>\r
-        <tr><td>Mot de passe :</td><td><input type="password" name="txtPassword" size="25" /></td></tr>\r
-        <tr><td></td><td><input type="submit" name="cmdLogin" value="Connexion" />\r
-                       &nbsp; <?php if($_REQUEST["msg"]=="0"){ echo "<font style='color:#F00F00;'>Connexion &eacute;chou&eacute;e....</font>"; }else{ echo $Message; } ?></td></tr>\r
-               <tr><td></td><td style="padding-top:10px;"><img src="./images/boule.png" width="11" height="12" /> <a href="index_mdpo.php" title="mot de passe oubli&eacute;" style="text-decoration:none;"><b>Mot de passe oubli&eacute; ?</b></a></td></tr>\r
-    </table>\r
-    <p> </p>\r
diff --git a/forms/liste_infos.php b/forms/liste_infos.php
deleted file mode 100644 (file)
index cee0333..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php \r
-       if($_SESSION["UserNamePAF"]==""){ redirect("index.php"); } ?>\r
-    <h2>Liste des informations</h2>\r
-    <p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p>\r
-    <table width="100%" cellpadding="3" cellspacing="3" border="1" style="border-collapse:collapse; padding-top:20px;">\r
-       <tr><td width="4%"><strong>No.</strong></td>\r
-               <td width="4%"><strong>Login</strong></td>\r
-               <td width="14%"><strong>Nom & Pr&eacute;nom</strong></td>\r
-            <td width="5%" align="center"><strong>Genre</strong></td>\r
-            <td width="12%"><strong>Date de Naissance</strong></td>\r
-            <td width="17%"><strong>Universit&eacute;</strong></td>\r
-            <td width="13%"><strong>Facult&eacute;</strong></td>\r
-            <td width="13%"><strong>T&eacute;l&eacute;phone</strong></td>\r
-            <td width="18%"><strong>E-mail</strong></td>\r
-        </tr>\r
-        <?php\r
-                       $i=1;\r
-                       $Stt = mysql_query("Select id, nom, prenom, sexe, datedenaissance, nationalite, login, motdepasse, universite, faculte, promotion, anneediplome, delf, anneedelf, langueautre, email, telephonepersonnelle, adressepersonnelle, telephoneparents, adresseparents, titretravail, adressetravail, divers, datein from tblinscrit order by id desc");\r
-                       $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";\r
-                       while($row=mysql_fetch_array($Stt)){ ?>\r
-        <tr><td><?php echo $i; ?></td>\r
-               <td><?php echo "C".$row["id"]; ?></td>\r
-               <td><?php echo str_replace("`","'",$row["nom"])." ".str_replace("`","'",$row["prenom"]); ?></td>\r
-            <td align="center"><?php echo $row["sexe"]; ?></td>\r
-            <td><?php echo ChangeDateValueSelect($row["datedenaissance"]); ?></td>\r
-            <td><?php echo str_replace("`","'",$row["universite"]); ?></td>\r
-            <td><?php echo str_replace("`","'",$row["faculte"]); ?></td>\r
-            <td><?php echo $row["telephonepersonnelle"]; ?></td>\r
-            <td><?php echo $row["email"]; ?></td>\r
-               </tr>\r
-        <?php $i++; } ?>\r
-    </table>\r
-    <p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p>\r
diff --git a/forms/login.php b/forms/login.php
deleted file mode 100644 (file)
index 2544ef6..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<h2>Cr&eacute;er votre login</h2>\r
-    <table width="100%" cellpadding="3" cellspacing="3" border="0" style="border-collapse:collapse;">\r
-               <tr><td colspan="2">Veillez-vous remplire vos informations pr&eacute;cises :</td>\r
-                       <td width="48%" rowspan="6" valign="top"><?php echo $ErrorSave; ?><?php if($IDS != "" && $ErrorSave == ""){ ?>\r
-                               <table cellpadding="3" cellspacing="3" border="0" width="100%" style="border-collapse:collapse;">\r
-                                       <tr><td colspan="2"><font size="3" style="font-weight:bold; color:#000066;">\r
-                                               F&eacute;licitation ! Votre compte login a &eacute;t&eacute; cr&eacute;&eacute;.</font>\r
-                                               <hr color="#99CC00" size="1" /></td></tr>\r
-                                       <tr><td width="41%" style="padding-left:10px;"><?php echo"Nom et Pr&eacute;nom :"; ?></td>\r
-                                       <td width="59%"><?php echo $Rows['1']." ".$Rows['2']; ?></td>\r
-                                       </tr>\r
-                                       <tr><td style="padding-left:10px;"><?php echo"Date de naissance :"; ?></td><td><?php echo ChangeDateValueSelect($Rows['3']); ?></td></tr>\r
-                                       <tr><td style="padding-left:10px;"><?php echo"Login :"; ?></td><td><?php echo"C".$Rows['5']; ?></td></tr>\r
-                                       <tr><td style="padding-left:10px; padding-bottom:15px;"><?php echo"Mote de passe :"; ?></td>\r
-                                       <td style="padding-bottom:15px;"><?php echo decrptPwd($Rows['4'],$kompler); ?></td></tr>\r
-                                       <tr>\r
-                                         <td colspan="2" align="right" style="background-color:#F1ECC5;">\r
-                                               <font size="2" style="font-weight:bold;"><a href="index.php" style="text-decoration:none;" title="connexion">>>> Connectez-vous?</a></font></td>\r
-                                       </tr>\r
-                               </table><?php } ?>                </td>\r
-               </tr>\r
-       <tr><td width="18%">Nom<span style="color:#F00F00">*</span> :</td>\r
-                 <td><input type="text" name="txtNom" value="<?php echo $_REQUEST["txtNom"]; ?>" size="20" title="Vous devez remplire votre nom." />               &nbsp;&nbsp;<?php echo $ErrorNom; ?></td>\r
-        </tr>\r
-        <tr><td>Pr&eacute;nom<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="text" name="txtPrenom" value="<?php echo $_REQUEST["txtPrenom"]; ?>" size="20" title="Vous devez remplire votre pr&eacute;nom." />&nbsp;&nbsp;<?php echo $ErrorPreNom; ?></td>\r
-        </tr>\r
-        <tr><td>Date de naissance<span style="color:#F00F00">*</span> :</td>\r
-               <td width="34%">\r
-               <select name="selJour" id="selJour" title="Vous devez remplire votre jour de naissance.">\r
-                       <?php if($_REQUEST["selJour"]!= ""){ ?><option value="<?php echo $_REQUEST["selJour"]; ?>"><?php echo $_REQUEST["selJour"]; ?></option><?php } ?>\r
-                       <option value="">jour</option><?php for($i=1; $i <=31; $i++){ ?>\r
-                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                </select> &nbsp;&nbsp;\r
-                       <select name="selMois" id="selMois" title="Vous devez remplire votre mois de naissance.">\r
-                       <?php if($_REQUEST["selMois"]!= ""){ ?><option value="<?php echo $_REQUEST["selMois"]; ?>"><?php echo $_REQUEST["selMois"]; ?></option><?php } ?>\r
-                       <option value="">mois</option><?php for($i=1; $i <=12; $i++){ ?>\r
-                    <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-                </select> &nbsp;&nbsp;\r
-                <select name="selAnnee" id="selAnnee" title="Vous devez remplire votre ann&eacute;e de naissance.">\r
-                       <?php if($_REQUEST["selAnnee"]!= ""){ ?><option value="<?php echo $_REQUEST["selAnnee"]; ?>"><?php echo $_REQUEST["selAnnee"]; ?></option><?php } ?>\r
-                       <option value="">ann&eacute;e</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>\r
-                    <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>\r
-          </select>&nbsp;&nbsp;<?php echo $ErrorDDN; ?></td>\r
-        </tr>\r
-        <tr><td width="18%">Mot de passe<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="password" name="txtMotdepasse" maxlength="10" value="<?php echo $_REQUEST["txtMotdepasse"]; ?>"  size="20" title="Vous devez remplire votre mot de passe." />&nbsp;&nbsp;<?php echo $ErrorMDP; ?></td>\r
-        </tr>\r
-        <tr><td width="18%">Confirmer<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="password" name="txtMotdepasseconfirmer" maxlength="10" value="<?php echo $_REQUEST["txtMotdepasseconfirmer"]; ?>" size="20" title="Vous devez remplire votre mot de passe confirm&eacute;." />&nbsp;&nbsp;<?php echo $ErrorMDPC." ".$ErrorMotPasse; ?></td>\r
-        </tr>\r
-        <tr><td></td><td colspan="3"><input type="submit" name="cmdSave" value="Sauvegarder" /><p><span style="background-color:#FCFFCF">Note : -<i><span style="color:#F00F00">*</span> : c'est obligatoire de remplire.<br />\r
-                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Mot de passe est maximum 10 caract&egrave;res.</i></span></p></td></tr>\r
-    </table>\r
-    <p> </p>\r
diff --git a/forms/mdp_oublie.php b/forms/mdp_oublie.php
deleted file mode 100644 (file)
index 1503758..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<h2>Mot de passe oubli&eacute;</h2>\r
-    <table width="100%" cellpadding="3" cellspacing="3" border="0" style="border-collapse:collapse;">\r
-               <tr>\r
-                 <td colspan="2">Veillez-vous remplire votre mail pr&eacute;cis : &nbsp;&nbsp;&nbsp;<?php echo $MsgErrors; ?></td>\r
-               </tr>\r
-       <tr><td width="20%">Courriel<span style="color:#F00F00">*</span> :</td>\r
-               <td><input type="text" name="txtMail" size="30" />&nbsp;&nbsp;<?php echo $ErrorMail; ?></td>\r
-        </tr>\r
-        <tr><td></td><td colspan="2"><input type="submit" name="cmdSend" value="  Envoyer  " />\r
-        <p><span style="background-color:#FCFFCF">Note : -<i><span style="color:#F00F00">*</span> : c'est obligatoire de remplire.<br /></i></span></p></td></tr>\r
-    </table>\r
-    <p> </p>\r
diff --git a/forms/search_infos.php b/forms/search_infos.php
deleted file mode 100644 (file)
index 94c78b1..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php //if($_SESSION["UserNamePAF"]==""){ redirect("index.php"); } ?>\r
-    <h2>(<?php echo $Num; ?>) r&eacute;sultat de recherche avec : "<?php echo $StrSearch; ?>"</h2>\r
-    <!--<p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p>-->\r
-    <table width="100%" cellpadding="3" cellspacing="3" border="1" style="border-collapse:collapse; padding-top:20px;">\r
-       <tr><td width="4%"><strong>No.</strong></td>\r
-               <td width="4%"><strong>Login</strong></td>\r
-               <td width="14%"><strong>Nom & Pr&eacute;nom</strong></td>\r
-            <td width="5%" align="center"><strong>Genre</strong></td>\r
-            <td width="12%"><strong>Date de Naissance</strong></td>\r
-            <td width="17%"><strong>Universit&eacute;</strong></td>\r
-            <td width="13%"><strong>Facult&eacute;</strong></td>\r
-            <td width="13%"><strong>T&eacute;l&eacute;phone</strong></td>\r
-            <td width="18%"><strong>E-mail</strong></td>\r
-        </tr>\r
-        <?php\r
-                       $i=1;\r
-                       $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";\r
-                       while($row=mysql_fetch_array($Sql_Ct)){ ?>\r
-        <tr><td><?php echo $i; ?></td>\r
-               <td><?php echo "C".$row["id"]; ?></td>\r
-               <td><?php echo str_replace("`","'",$row["nom"])." ".str_replace("`","'",$row["prenom"]); ?></td>\r
-            <td align="center"><?php echo $row["sexe"]; ?></td>\r
-            <td><?php echo ChangeDateValueSelect($row["datedenaissance"]); ?></td>\r
-            <td><?php echo str_replace("`","'",$row["universite"]); ?></td>\r
-            <td><?php echo str_replace("`","'",$row["faculte"]); ?></td>\r
-            <td><?php echo $row["telephonepersonnelle"]; ?></td>\r
-            <td><?php echo $row["email"]; ?></td>\r
-               </tr>\r
-        <?php $i++; } ?>\r
-    </table>\r
-    <p>&nbsp;</p>\r
-       <?php if($_SESSION["UserNamePAF"]!=""){ ?>\r
-    <p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p><?php } ?>\r
diff --git a/images/alert.gif b/images/alert.gif
deleted file mode 100644 (file)
index 2a0f2b1..0000000
Binary files a/images/alert.gif and /dev/null differ
diff --git a/images/auf.gif b/images/auf.gif
deleted file mode 100644 (file)
index bba795d..0000000
Binary files a/images/auf.gif and /dev/null differ
diff --git a/images/auf.jpg b/images/auf.jpg
deleted file mode 100644 (file)
index 77ad764..0000000
Binary files a/images/auf.jpg and /dev/null differ
diff --git a/images/boule.png b/images/boule.png
deleted file mode 100644 (file)
index 92bbe17..0000000
Binary files a/images/boule.png and /dev/null differ
diff --git a/images/error.png b/images/error.png
deleted file mode 100644 (file)
index 74a720a..0000000
Binary files a/images/error.png and /dev/null differ
diff --git a/images/error_.gif b/images/error_.gif
deleted file mode 100644 (file)
index c1019fe..0000000
Binary files a/images/error_.gif and /dev/null differ
diff --git a/images/paf.ico b/images/paf.ico
deleted file mode 100644 (file)
index 4bbd16c..0000000
Binary files a/images/paf.ico and /dev/null differ
diff --git a/images/register.jpg b/images/register.jpg
deleted file mode 100644 (file)
index bf318af..0000000
Binary files a/images/register.jpg and /dev/null differ
diff --git a/images/warning.png b/images/warning.png
deleted file mode 100644 (file)
index 2de8803..0000000
Binary files a/images/warning.png and /dev/null differ
diff --git a/includes/connection.php b/includes/connection.php
deleted file mode 100644 (file)
index da905ae..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php\r
-$dbhost = 'localhost';\r
-$dbuser = 'root';\r
-$dbpass = '';\r
-$dbname = 'pafauf_bdd';\r
-\r
-$conn = mysql_connect($dbhost, $dbuser, $dbpass,true) or die ('Erreur connexion au mysql');\r
-mysql_select_db($dbname,$conn);\r
-mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'", $conn);\r
-//mysql_set_charset('utf8', $conn) or die("Erreur : "). mysql_error();\r
-//echo"Successfully connected to server!!!";\r
-?>\r
diff --git a/includes/functions.php b/includes/functions.php
deleted file mode 100644 (file)
index abef413..0000000
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php\r
-       function format_date($date){\r
-                //$date = array_shift;\r
-       \r
-               if ($date == -1){ return "&nbsp;"; }\r
-       \r
-               $date *= 24 * 3600;\r
-               list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);\r
-               return ( 1900 + $year ) . "-" . ++$mon . "-" . ++$mday;\r
-               //return date('Y-m-d',$date);\r
-       }\r
-       \r
-       /*//-------Select box------------------------\r
-       \r
-       $Nationalite = array(\r
-    "Cambodgienne"=>"Cambodgienne",\r
-       "Cambodgien"=>"Cambodgien",\r
-       "Belge"=>"Belge",\r
-       "Canadienne"=>"Canadienne",\r
-       "Canadien"=>"Canadien",\r
-       "Chinoise"=>"Chinoise",\r
-       "Chinois"=>"Chinois",\r
-       "Française"=>"Française",\r
-       "Français"=>"Français",\r
-       "Laotienne"=>"Laotienne",\r
-       "Laotien"=>"Laotien",\r
-       "Suisse"=>"Suisse",\r
-       "Vietnamienne"=>"Vietnamienne",\r
-       "Vietnamien"=>"Vietnamien",\r
-       "Malagasy"=>"Malagasy",\r
-       "Autre"=>"Autre");\r
-    \r
-       $Activite = array(\r
-    "??"=>"??",\r
-       "AUF"=>"AUF",\r
-       "Etudiant"=>"Etudiant",\r
-       "Enseignant"=>"Enseignant",\r
-       "Autre"=>"Autre");\r
-    \r
-       $Domaine = array(\r
-    "??"=>"??",\r
-       "Agronomie"=>"Agronomie",\r
-       "Anglais"=>"Anglais",\r
-       "Archéologie"=>"Archéologie",\r
-       "Architecture"=>"Architecture",\r
-       "Biologie"=>"Biologie",\r
-       "Chimie"=>"Chimie",\r
-       "Commerce"=>"Commerce",\r
-       "Droit"=>"Droit",\r
-       "Français"=>"Français",\r
-       "Génie Civil"=>"Génie Civil",\r
-       "Génie Electrique"=>"Génie Electrique",\r
-       "Génie Industriel"=>"Génie Industriel",\r
-       "Géographie"=>"Géographie",\r
-       "Géologie"=>"Géologie",\r
-       "Gestion"=>"Gestion",\r
-       "Histoire"=>"Histoire",\r
-       "Hydraulique"=>"Hydraulique",\r
-       "Informatique"=>"Informatique",\r
-       "Ingénieur"=>"Ingénieur",\r
-       "Littérature"=>"Littérature",\r
-       "Linguistique"=>"Linguistique",\r
-       "Mathématique"=>"Mathématique",\r
-       "Médecine"=>"Médecine",\r
-       "Odontostomatologie"=>"Odontostomatologie",\r
-       "Pharmacie"=>"Pharmacie",\r
-       "Philosophie"=>"Philosophie",\r
-       "Technicien"=>"Technicien",\r
-       "Touriste"=>"Touriste");\r
-       \r
-       $Etablissement = array(\r
-    "??"=>"??",\r
-       "AUF"=>"AUF",\r
-       "Ecole Royale d'Administration"=>"Ecole Royale d'Administration",\r
-       "Faculty of Business"=>"Faculty of Business",\r
-       "ITC"=>"ITC",\r
-       "Lycée"=>"Lycée",\r
-       "Univ. Royale de Phnom Penh"=>"Univ. Royale de Phnom Penh",\r
-       "Univ. Royale des Beaux-Arts"=>"Univ. Royale des Beaux-Arts",\r
-       "Univ. Royale d'Agronomie"=>"Univ. Royale d'Agronomie",\r
-       "Univ. des Sciences de la Santé"=>"Univ. des Sciences de la Santé",\r
-       "Univ. de Droit et Siences-Eco"=>"Univ. de Droit et Siences-Eco");\r
-       \r
-    $Groupe = array(\r
-    "Usagers"=>"Usagers",\r
-       "CNF"=>"CNF",\r
-       "Admin"=>"Admin");\r
-       \r
-       //================Array to select box================================================\r
-        function ArrayToSelectBox($arr,$sel = '',$usekey=1,$nullvalue='') {\r
-               while (list( $key, $val ) = each($arr)) {\r
-                       if($sel && $usekey && ($key == $sel || is_array($sel) && in_array($key,$sel))) {\r
-                               $select_v=" selected='selected'";\r
-                       } else if ($sel && !$usekey && ($val == $sel || is_array($sel) && in_array($val,$sel))) {\r
-                               $select_v=" selected='selected'";\r
-                       } else {\r
-                               $select_v='';\r
-                       }\r
-               \r
-                       if($nullvalue != '') {\r
-                               if ($key == $nullvalue) {\r
-                                       $key = '';          \r
-                               }\r
-                       }\r
-               \r
-                       if ($usekey == 1) {\r
-                               echo "<option value=\"$key\"$select_v>$val</option>\n";\r
-                       } else {\r
-                               if(($nullvalue != '') && ($key == '')) {\r
-                                       echo "<option value=\"$key\"$select_v>$val</option>\n";\r
-                               } else {\r
-                                       echo "<option$select_v>$val</option>\n";\r
-                               }\r
-                       }\r
-               }\r
-       }*/\r
-       \r
-       //---------------------Encrypt Password---------------------------------------------------\r
-       \r
-       function EncryptPsWord($password) {\r
-               mt_srand((double)microtime()*1000000);\r
-               $salt = mhash_keygen_s2k(MHASH_SHA1, $password, substr(pack('h*', md5(mt_rand())), 0, 8), 4);\r
-               $hash = "{BBCSR}".base64_encode(mhash(MHASH_SHA1, $password.$salt).$salt);\r
-               return $hash;\r
-       }\r
-       //---------------------Decrypt Password---------------------------------------------------\r
-       function DecryptPsWord($password, $hash) {\r
-               $hash = base64_decode(substr($hash, 6));\r
-               $original_hash = substr($hash, 0, 20);\r
-               $salt = substr($hash, 20);\r
-               $new_hash = mhash(MHASH_SHA1, $password . $salt);\r
-               if (strcmp($original_hash, $new_hash) == 0){\r
-                       //      ... do something because your password is valid ...\r
-                       /*echo"Bravo.......!!<br>";\r
-                       echo $original_hash."<br>";\r
-                       echo $new_hash;*/\r
-                       return 1;\r
-               }else{\r
-                       //echo 'Unauthorized: Authorization has been refused for the credentials you provided. Please login with a valid username and password.';\r
-                       return 0;\r
-                       //... be sure to clear your session data ... \r
-               }\r
-       }\r
-       \r
-\r
-       //----------Encrypt----------------------------\r
-       \r
-       function encrptPwd($string, $key) {\r
-               $result = '';\r
-               for($i=0; $i<strlen($string); $i++){\r
-               $char = substr($string, $i, 1);\r
-               $keychar = substr($key, ($i % strlen($key))-1, 1);\r
-               $char = chr(ord($char)+ord($keychar));\r
-               $result.=$char;\r
-               }\r
-               return base64_encode($result);\r
-       }\r
-\r
-       //----------Decrypt----------------------------\r
-       function decrptPwd($string, $key) {\r
-               $result = '';\r
-               $string = base64_decode($string);\r
-               \r
-               for($i=0; $i<strlen($string); $i++){\r
-               $char = substr($string, $i, 1);\r
-               $keychar = substr($key, ($i % strlen($key))-1, 1);\r
-               $char = chr(ord($char)-ord($keychar));\r
-               $result.=$char;\r
-               }\r
-               return $result;\r
-       }\r
-       //--------------Check Mail----------------------\r
-       \r
-       function check_email($email){\r
-  // First, we check that there's one @ symbol, and that the lengths are right\r
-  if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)){\r
-    return false;\r
-  }\r
-  // Split it into sections\r
-  $email_array = explode("@", $email);\r
-  $local_array = explode(".", $email_array[0]);\r
-  for ($i = 0; $i < sizeof($local_array); $i++){\r
-     if (!ereg("^(([A-Za-z0-9!#$%&#038;'*+/=?^_`{|}~-][A-Za-z0-9!#$%&#038;'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])){\r
-      return false;\r
-    }\r
-  }\r
-// Check if domain is IP. If not, it should be valid domain name\r
-  if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])){\r
-    $domain_array = explode(".", $email_array[1]);\r
-    if (sizeof($domain_array) < 2) {\r
-        return false; // Not enough parts to domain\r
-  }\r
-    for ($i = 0; $i < sizeof($domain_array); $i++){\r
-      if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])){\r
-        return false;\r
-      }\r
-    }\r
-  }\r
-  return true;\r
-}\r
-\r
-//----------------------------Change Date Value---------------------------------\r
-       //===========From DD/MM/YYYY to YYYY/MM/DD==================================\r
-    function ChangeDateValueInsert($Date){\r
-       if($Date != ""){\r
-               $DateChange=split('[-]',$Date);\r
-               $Str="$DateChange[2]/$DateChange[1]/$DateChange[0]";\r
-               return $Str;\r
-        }\r
-       }\r
-       //===========From YYYY/MM/DD to DD/MM/YYYY==================================\r
-    function ChangeDateValueSelect($DateSe){\r
-       if($DateSe != ""){\r
-               $DateChangeSe=split('[-]',$DateSe);\r
-               $StrSe="$DateChangeSe[2]/$DateChangeSe[1]/$DateChangeSe[0]";\r
-               return $StrSe;\r
-        }\r
-       }\r
-       //===========From YYYY/MM/DD to DD/MM/YYYY==================================\r
-?>\r
diff --git a/includes/redirect.php b/includes/redirect.php
deleted file mode 100644 (file)
index 92c7f92..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php\r
-       function redirect($url){\r
-               die('<meta http-equiv="refresh" content="0; URL='.$url.'">');\r
-       }\r
-?>
\ No newline at end of file
diff --git a/includes/styles/style.css b/includes/styles/style.css
deleted file mode 100644 (file)
index 5a41492..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-@charset "utf-8";\r
-/* CSS Document */\r
-\r
-<!--\r
-body {\r
-       font: 100% Verdana, Arial, Helvetica, sans-serif;\r
-       background: #666666;\r
-       margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */\r
-       padding: 0;\r
-       text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */\r
-       color: #000000;\r
-}\r
-.oneColLiqCtrHdr #container {\r
-       font:Verdana, Geneva, sans-serif;\r
-       font-size:12px;\r
-       width: 80%;  /* this will create a container 80% of the browser width */\r
-       background: #FFFFFF;\r
-       margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */\r
-       border: 1px solid #000000;\r
-       text-align: left; /* this overrides the text-align: center on the body element. */\r
-}\r
-.oneColLiqCtrHdr #header {\r
-       background: #DDDDDD; \r
-       padding: 0 0px 0 0px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */\r
-}\r
-.oneColLiqCtrHdr #header h1 {\r
-       margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */\r
-       padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */\r
-}\r
-.oneColLiqCtrHdr #searchContent {\r
-       padding: 0 0px;\r
-       text-align: right;\r
-}\r
-.oneColLiqCtrHdr #mainContent {\r
-       padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */\r
-       background: #FFFFFF;\r
-}\r
-.oneColLiqCtrHdr #footer { \r
-       padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */\r
-       background:#DDDDDD;\r
-} \r
-.oneColLiqCtrHdr #footer p {\r
-       margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */\r
-       padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */\r
-}\r
--->
\ No newline at end of file
diff --git a/includes/tclyit_cam_pc.php b/includes/tclyit_cam_pc.php
deleted file mode 100644 (file)
index 61d2264..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php\r
-//--Veuillez m'aider pour améliorer cette fonction--et envoyer à tclyit@gmail.com\r
-//--------Vos critiques sont bienvenues!!----------------------------------------\r
-//----------Encrypt----------------------------\r
-\r
-function tcly($string, $key) {\r
-$result = '';\r
-for($i=0; $i<strlen($string); $i++){\r
-$char = substr($string, $i, 1);\r
-$keychar = substr($key, ($i % strlen($key))-1, 1);\r
-$char = chr(ord($char)+ord($keychar));\r
-$result.=$char;\r
-}\r
-return base64_encode($result);\r
-}\r
-\r
-/*$key1 = "Chhunly";\r
-$Se = "1@2!3#^&%()-_+=[{}}|\;:,.Chhunly";\r
-$See = encrypt($Se,$key1);\r
-echo "Encrypt: ".$See."<br /><br />";*/\r
-\r
-//----------Decrypt----------------------------\r
-function bbcsr($string, $key) {\r
-$result = '';\r
-$string = base64_decode($string);\r
-\r
-for($i=0; $i<strlen($string); $i++){\r
-$char = substr($string, $i, 1);\r
-$keychar = substr($key, ($i % strlen($key))-1, 1);\r
-$char = chr(ord($char)-ord($keychar));\r
-$result.=$char;\r
-}\r
-return $result;\r
-}\r
-/*$key2 = "Chhunly";\r
-$Sd = "n4OaiaiRyp91kIqZy5CrnuPl8urItIqUj6/UzeOx1OE=";\r
-$Sdd = decrypt($Sd,$key2);\r
-echo "Decrypt: ".$Sdd;*/\r
-\r
-//------------Valider Email Addresse--------------------------------\r
-\r
-function check_emails($email){\r
-  // First, we check that there's one @ symbol, and that the lengths are right\r
-  if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)){\r
-    return false;\r
-  }\r
-  // Split it into sections\r
-  $email_array = explode("@", $email);\r
-  $local_array = explode(".", $email_array[0]);\r
-  for ($i = 0; $i < sizeof($local_array); $i++){\r
-     if (!ereg("^(([A-Za-z0-9!#$%&#038;'*+/=?^_`{|}~-][A-Za-z0-9!#$%&#038;'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])){\r
-      return false;\r
-    }\r
-  }\r
-// Check if domain is IP. If not, it should be valid domain name\r
-  if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])){\r
-    $domain_array = explode(".", $email_array[1]);\r
-    if (sizeof($domain_array) < 2) {\r
-        return false; // Not enough parts to domain\r
-  }\r
-    for ($i = 0; $i < sizeof($domain_array); $i++){\r
-      if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])){\r
-        return false;\r
-      }\r
-    }\r
-  }\r
-  return true;\r
-}\r
-?>
\ No newline at end of file
diff --git a/index.php b/index.php
deleted file mode 100644 (file)
index 919c6ca..0000000
--- a/index.php
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php\r
-       error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED);\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       include("includes/redirect.php");\r
-       if($_GET['actlogin'] == "logout"){\r
-               unset($_SESSION["loginAUFKH"]);\r
-               unset($_SESSION["adminAUFPPKH"]);\r
-               unset($_SESSION["UserNamePAF"]);\r
-               unset($_SESSION["PasswordPAF"]);\r
-               echo "<center>Vous avez d&eacute;connect&eacute; ... ";\r
-               redirect("index.php");\r
-               //echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";\r
-    }\r
-       \r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<title>P A F -- AUF Phnom Penh, Cambodge</title>\r
-<link rel="shortcut icon" type="image/ico" href="images/paf.ico" />\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<link href="includes/styles/style.css" rel="stylesheet" type="text/css" />\r
-</head>\r
-<?php\r
-       include("includes/connection.php");\r
-       include("includes/functions.php");\r
-       if($_REQUEST["ID"] !=""){\r
-               $IDS = $_REQUEST["ID"];\r
-               //-----------Tirer les inforamtions après sauvegarder---------\r
-               $Strs = "Select id, nom, prenom, datedenaissance, motdepasse, id from tblinscrit where id=".$IDS."";\r
-               $Rows = mysql_fetch_row(mysql_query($Strs)) or die("Erreur de tirer les informations.");\r
-       }\r
-       $kompler = "{%#bb^csr%#}";\r
-       //----------------Sauvegarder les informations-------------------------------\r
-       if(($_REQUEST["page"]=="login")&&($_REQUEST["cmdSave"])){\r
-               include("includes/tclyit_cam_pc.php");\r
-               /*$txtMDP = $_REQUEST["txtMotdepasse"]; echo $txtMDP;\r
-               $txtMDPC = $_REQUEST["txtMotdepasseconfirmer"]; echo $txtMDPC;*/\r
-               if($_REQUEST["txtNom"]==""){\r
-                       $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif($_REQUEST["txtPrenom"]==""){\r
-                       $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                       $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif($_REQUEST["txtMotdepasse"] != $_REQUEST["txtMotdepasseconfirmer"]){\r
-                               $ErrorMotPasse = "<img src='./images/error.png' title='Votre mot de passe confirm&eacute; n`est pas correct.'>";\r
-               }elseif($_REQUEST["txtMotdepasse"]==""){\r
-                       $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre .'>";\r
-                       }\r
-               }elseif($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                       $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-               }else{\r
-                       //----------Sauvegarder les informations ---------------\r
-                       $DOB = $_REQUEST["selAnnee"]."-".$_REQUEST["selMois"]."-".$_REQUEST["selJour"];\r
-                       //-----------Comparer les infos avant saugarder-----------------\r
-                       $StrC = mysql_query("Select * from tblinscrit where nom='".str_replace("'","`",$_REQUEST["txtNom"])."' and prenom='".str_replace("'","`",$_REQUEST["txtPrenom"])."' and datedenaissance='".$DOB."'");\r
-                       $CountRec = mysql_num_rows($StrC);\r
-                       if($CountRec == "0"){\r
-                               $Str = "Insert Into tblinscrit (nom, prenom, datedenaissance, motdepasse, login, dateinlogin) Values('".str_replace("'","`",$_REQUEST["txtNom"])."','".str_replace("'","`",$_REQUEST["txtPrenom"])."','".$DOB."', '".encrptPwd(strtolower($_REQUEST["txtMotdepasse"]),$kompler)."','C','".date("Y-m-d")."')";\r
-                               @mysql_query($Str) or die("Veuillez contacter l'administrateur. On ne peut pas sauvgarder ces informations (log in).");\r
-                               $ID = mysql_insert_id();\r
-                               redirect("$PHP_SELF?page=login&ID=$ID");\r
-                       }else{\r
-                               $ErrorSave = "<span style='background-color:#F00; color:#FFFFFF;'><strong>Pardon, ces informations existent d&eacute;j&agrave;.</strong></span>";\r
-                       }\r
-               }\r
-       }\r
-       \r
-       //-------------------------------XXXXXXXXXX-------Search--------XXXXXXXXXX------------------\r
-       if($_REQUEST["cmdSearch"] && $_REQUEST["txtSearch"]!=""){\r
-               $StrSearch = $_REQUEST["txtSearch"];\r
-               redirect("index_search.php?str_sch=$StrSearch");\r
-       }\r
-       \r
-       //=========================xxxxxxxxxxxxxxxxxxxxxxxxxxxxx==============================\r
-       //-----------------------Accer le PAF par le compte cr&eacute;&eacute;------------------------------\r
-       if($_REQUEST["cmdLogin"]){\r
-               if($_REQUEST['txtUserName'] <> "" && $_REQUEST['txtPassword'] <> "") {\r
-                               include("includes/connection.php");\r
-                               $Scq=mysql_query("select * from tblinscrit");\r
-                               $Scount = mysql_num_rows($Scq); //echo"Ha..ha..".$Scount;\r
-                               if($Scount == 0){\r
-                                       redirect("index.php");\r
-                               }else{\r
-                                       //$txtPWD = decrptPwd($_SERVER['PHP_AUTH_PW'],$kompler);\r
-                                       $Query=mysql_query("Select * from tblinscrit where id = '".substr($_REQUEST["txtUserName"],1)."' and motdepasse = '".encrptPwd(strtolower($_REQUEST['txtPassword']),$kompler)."'");\r
-                                       $Col=mysql_fetch_row($Query);\r
-                                       if($Col[0] <> ""){\r
-                                               $_SESSION["adminAUFPPKH"]="y";\r
-                                               $_SESSION["UserNamePAF"]=$_REQUEST['txtUserName'];\r
-                                               $_SESSION["PasswordPAF"]=$_REQUEST['txtPassword'];\r
-                                               $St = "Insert into tblaccountaccess (username,accesstime) values('".$_REQUEST['txtUserName']."',CURRENT_TIMESTAMP)";\r
-                                               @mysql_query($St) or die("2");\r
-                                               redirect("index_main.php");\r
-                                               echo "<center>Vous êtes connect&eacute; ... ";\r
-                                               echo "[<a href='" . $_SERVER['PHP_SELF'] . "?actlogin=logout'>D&eacute;connexion</a>]</center>";\r
-                                       }else{\r
-                                               unset($_SESSION["loginAUFKH"]);\r
-                                               unset($_SESSION["adminAUFPPKH"]);\r
-                                               unset($_SESSION["UserNamePAF"]);\r
-                                               unset($_SESSION["PasswordPAF"]);\r
-                                               $Message = "0";\r
-                                               redirect("index.php?msg=$Message");\r
-                                               //echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";\r
-                                       }\r
-                               }\r
-                 }else{\r
-                       unset($_SESSION["loginAUFKH"]);\r
-                       unset($_SESSION["adminAUFPPKH"]);\r
-                       unset($_SESSION["UserNamePAF"]);\r
-                       unset($_SESSION["PasswordPAF"]);\r
-                       echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";\r
-                       $Message = "<font style='color:#F00F00;'>Connexion &eacute;chou&eacute;e....</font>";\r
-                 }\r
-       }\r
-               \r
-       //--------------Tirer information de Session----------------------------\r
-       if($_REQUEST["ID"] =="" && $_SESSION["UserNamePAF"] !=""){\r
-               $St = "Select id, nom, prenom from tblinscrit where id=".substr($UserName,1);\r
-               $Rows = mysql_fetch_row(mysql_query($St)) or die("Contactez votre administrateur...(&eacute;rreur: select session id)");\r
-               $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";\r
-       }\r
-?>\r
-<body class="oneColLiqCtrHdr">\r
-<form name="PAF" method="post" enctype="application/x-www-form-urlencoded">\r
-<div id="container">\r
-  <div id="header">\r
-       <table width="100%" cellpadding="0" cellspacing="0">\r
-       <tr><td colspan="2"><a href="http://www.auf.org/" title="AUF" target="_blank"><img src="images/auf.gif" width="155" height="110" border="0" /></a></td>\r
-               <td width="39%" align="right"><h1 class="oneColLiqCtrHdr"><a href="index.php" title="Page d'accueil" style="text-decoration:none;">P A F</a></h1></td>\r
-                       <td width="41%" valign="bottom" align="right" style="padding-bottom:15px; padding-right:10px;">\r
-                               <?php echo $Rows['1']." ".$Rows['2']; ?> &nbsp; <?php echo $Deconnexion; ?></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #header --></div>\r
-  <div id="searchContent">\r
-       <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" width="100%" align="right">\r
-       <tr><td width="94%" align="right"><!--Hyperlines g&eacute;n&eacute;raux en tête--------------->\r
-                               <?php if (($_SESSION["UserNamePAF"] !="")&&($_REQUEST["page"] =="login")){ ?>\r
-                                       <a href="index.php" title="Accueil">Accueil</a> > <a href="index_main.php" title="cr&eacute;er vos informations d&eacute;tailles">Cr&eacute;er infos</a> > Cr&eacute;er login\r
-                               <?php }elseif (($_SESSION["UserNamePAF"] =="") &&($_REQUEST["page"]=="")){ ?>\r
-                                       Accueil > <a href="index_main.php" title="cr&eacute;er vos informations d&eacute;tailles">Cr&eacute;er infos</a>\r
-                <?php }elseif(($_SESSION["UserNamePAF"]!="")&&($_REQUEST["page"]=="")){ ?>\r
-                       Accueil > <a href="index_main.php" title="modifier vos informations d&eacute;tailles">Modifier infos</a>\r
-                               <?php }elseif ($_REQUEST["page"] =="login"){ ?>\r
-                                       <a href="index.php" title="Accueil">Accueil</a> > Cr&eacute;er login\r
-                               <?php }elseif(($_SESSION["UserNamePAF"] !="")&&($_REQUEST["page"]=="liste_infos")){ ?>\r
-                       <a href="index.php" title="Accueil">Accueil</a> > <a href="index_main.php" title="modifier vos informations d&eacute;tailles">Modifier infos</a> > Liste des informations\r
-                <?php } ?>\r
-                               &nbsp;&nbsp;&nbsp; Rechercher : <input type="text" name="txtSearch" value="<?php echo $_REQUEST["txtSearch"]; ?>" />\r
-                       </td>\r
-            <td width="6%" align="left"><input type="submit" name="cmdSearch" value="OK" /></td>\r
-        </tr>\r
-    </table>\r
-  </div>\r
-  <div id="mainContent">\r
-    <?php\r
-               if($_REQUEST["page"]==""){\r
-               include("forms/home.php");\r
-               }elseif($_REQUEST["page"]=="login"){\r
-                       include("forms/login.php");\r
-               }elseif($_REQUEST["page"]=="liste_infos"){\r
-                       include("forms/liste_infos.php");\r
-               }\r
-       ?>\r
-       <!-- end #mainContent --></div>\r
-  <div id="footer">\r
-       <table cellpadding="0" cellspacing="0" border="0" height="40" width="100%">\r
-       <tr><td width="80%">Agence Universitaire de la Francophonie -- Antenne de Phnom Penh, Cambodge</td>\r
-               <td width="20%" align="center"><!--Administrateur--></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #footer --></div>\r
-<!-- end #container --></div>\r
-</form>\r
-</body>\r
-</html>\r
diff --git a/index_main.php b/index_main.php
deleted file mode 100644 (file)
index 26fc563..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php\r
-       error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED); \r
-       //------pour &eacute;viter les notices sur les variables---------------\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       include("includes/redirect.php");\r
-       if(!($admin == "y")){\r
-       redirect("index.php");\r
-    }\r
-       \r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<title>P A F -- AUF Phnom Penh, Cambodge</title>\r
-<link rel="shortcut icon" type="image/ico" href="images/paf.ico" />\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<link href="includes/styles/style.css" rel="stylesheet" type="text/css" />\r
-</head>\r
-<?php\r
-       include("includes/connection.php");\r
-       include("includes/functions.php");\r
-       $kompler = "{%#bb^csr%#}";\r
-       //----------------Sauvegarder les informations-------------------------------\r
-       if($_REQUEST["cmdSave"]){\r
-               include("includes/tclyit_cam_pc.php");\r
-               /*$txtMDP = $_REQUEST["txtMotdepasse"]; echo $txtMDP;\r
-               $txtMDPC = $_REQUEST["txtMotdepasseconfirmer"]; echo $txtMDPC;*/\r
-               if($_REQUEST["txtNom"]==""){\r
-                       $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["Sexe"]==""){\r
-                               $ErrorSexe = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["selPromotion"]==""){\r
-                               $ErrorPRO = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       $MsgError = "Erreur, vos informations n'ont pas mis  jour.";\r
-               }elseif($_REQUEST["txtPrenom"]==""){\r
-                       $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["Sexe"]==""){\r
-                               $ErrorSexe = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["selPromotion"]==""){\r
-                               $ErrorPRO = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       $MsgError = "Erreur, vos informations n'ont pas mis  jour.";\r
-               }elseif($_REQUEST["Sexe"]==""){\r
-                       $ErrorSexe = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["selPromotion"]==""){\r
-                               $ErrorPRO = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       $MsgError = "Erreur, vos informations n'ont pas mis  jour.";\r
-               }elseif(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                       $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPrenom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["Sexe"]==""){\r
-                               $ErrorSexe = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["selPromotion"]==""){\r
-                               $ErrorPRO = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       $MsgError = "Erreur, vos informations n'ont pas mis  jour.";\r
-               }elseif((check_email($_REQUEST["txtMail"])==false)&&($_REQUEST["txtMail"]!="")){\r
-                       $ErrorMail = "<img src='./images/error.png' title='Veuillez v&eacute;rifier votre mail.'>";\r
-                       $MsgError = "Erreur, vos informations n'ont pas mis  jour.";\r
-               }else{\r
-                       //----------Sauvegarder les informations ---------------\r
-                       $DOB = $_REQUEST["selAnnee"]."-".$_REQUEST["selMois"]."-".$_REQUEST["selJour"];\r
-                       $Str = "Update tblinscrit Set nom='".str_replace("'","`",$_REQUEST["txtNom"])."', prenom='".str_replace("'","`",$_REQUEST["txtPrenom"])."', sexe='".$_REQUEST["Sexe"]."', datedenaissance='".$DOB."', nationalite='".str_replace("'","`",$_REQUEST["Nationalite"])."', universite='".str_replace("'","`",$_REQUEST["Etablissement"])."', faculte='".str_replace("'","`",$_REQUEST["Domaine"])."', promotion='".$_REQUEST["selPromotion"]."', anneediplome='".$_REQUEST["selAnneeDiplome"]."', delf='".str_replace("'","`",$_REQUEST["selDelf"])."', anneedelf='".$_REQUEST["selAnneeDelf"]."', langueautre='".str_replace("'","`",$_REQUEST["txtLangue"])."', email='".str_replace("'","`",$_REQUEST["txtMail"])."', telephonepersonnelle='".str_replace("'","`",$_REQUEST["txtTelephonepersonnel"])."', adressepersonnelle='".str_replace("'","`",$_REQUEST["txtAdressepersonnelle"])."', telephoneparents='".str_replace("'","`",$_REQUEST["txtTelephoneparents"])."', adresseparents='".str_replace("'","`",$_REQUEST["txtAdresseparents"])."', titretravail='".str_replace("'","`",$_REQUEST["txtTitretravail"])."', adressetravail='".str_replace("'","`",$_REQUEST["txtAdresseTravail"])."', divers='".str_replace("'","`",$_REQUEST["txtDivers"])."', datein='".date("Y-m-d")."' Where id=".substr($UserName,1);\r
-                       mysql_query($Str) or die("<br /><br /><span style='background-color:#F00F00; color:#FFFFFF;'>Veuillez contacter l'administrateur. On ne peut pas sauvgarder ces informations (info d&eacute;taille).</span>");\r
-                       $Msg = "Vos informatios ont mis &agrave; jour.";\r
-                       //redirect("$PHP_SELF?page=login&ID=$ID");\r
-               }\r
-       }\r
-       \r
-       //-------------------------------XXXXXXXXXX-------Search--------XXXXXXXXXX------------------\r
-       if($_REQUEST["cmdSearch"]){\r
-               $StrSearch = $_REQUEST["txtSearch"];\r
-               redirect("index_search.php?str_sch=$StrSearch");\r
-       }\r
-       //--------------Tirer information de Session----------------------------\r
-       if($_SESSION["UserNamePAF"] !=""){\r
-               $IDEtudiant = substr($UserName,1);\r
-               $St = "Select id, nom, prenom, sexe, datedenaissance, nationalite, login, motdepasse, universite, faculte, promotion, anneediplome, delf, anneedelf, langueautre, email, telephonepersonnelle, adressepersonnelle, telephoneparents, adresseparents, titretravail, adressetravail, divers, datein from tblinscrit where id=".substr($UserName,1);\r
-               $Rows = mysql_fetch_row(mysql_query($St)) or die("Contactez votre administrateur...(&eacute;rreur: select session id)");\r
-               $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";\r
-       }\r
-?>\r
-<body class="oneColLiqCtrHdr">\r
-<form name="PAF" method="post" enctype="application/x-www-form-urlencoded">\r
-<div id="container">\r
-  <div id="header">\r
-       <table width="100%" cellpadding="0" cellspacing="0"  border="0">\r
-       <tr><td colspan="2"><a href="http://www.auf.org/" title="AUF" target="_blank"><img src="images/auf.gif" width="155" height="110" border="0" /></a></td>\r
-               <td width="39%" align="right"><h1 class="oneColLiqCtrHdr"><a href="index.php" title="Page d'accueil" style="text-decoration:none;">P A F</a></h1></td>\r
-                       <td width="41%" valign="bottom" align="right" style="padding-bottom:15px; padding-right:10px;">\r
-                               <?php echo $Rows['1']." ".$Rows['2']; ?> &nbsp; <?php echo $Deconnexion; ?></td>\r
-\r
-        </tr>\r
-    </table>\r
-  <!-- end #header --></div>\r
-  <div id="searchContent">\r
-       <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" width="100%" align="right">\r
-       <tr><td width="94%" align="right">\r
-                               <a href="index.php" title="Accueil">Accueil</a>&nbsp; > Cr&eacute;er infos\r
-                               &nbsp;&nbsp;&nbsp; Rechercher : <input type="text" name="txtSearch" value="<?php echo $_REQUEST["txtSearch"]; ?>" />\r
-                       </td>\r
-          <td width="6%" align="left"><input type="submit" name="cmdSearch" value="Go" /></td>\r
-        </tr>\r
-    </table>\r
-  </div>\r
-  <div id="mainContent">\r
-    <?php\r
-               if($_REQUEST["page"]==""){\r
-               include("forms/creer_infos.php");\r
-               }elseif($_REQUEST["page"]=="login"){\r
-                       include("forms/creer_infos.php");\r
-               }elseif($_REQUEST["page"]=="login_f"){\r
-                       include("forms/login_success.php");\r
-               }\r
-       ?>\r
-       <!-- end #mainContent --></div>\r
-  <div id="footer">\r
-       <table cellpadding="0" cellspacing="0" border="0" height="40" width="100%">\r
-       <tr><td width="80%">Agence Universitaire de la Francophonie -- Antenne de Phnom Penh, Cambodge</td>\r
-               <td width="20%" align="center"><!--Administrateur--></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #footer --></div>\r
-<!-- end #container --></div>\r
-</form>\r
-</body>\r
-</html>\r
diff --git a/index_mdpo.php b/index_mdpo.php
deleted file mode 100644 (file)
index 9f9bc78..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php\r
-       error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED);\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       \r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<title>P A F -- AUF Phnom Penh, Cambodge</title>\r
-<link rel="shortcut icon" type="image/ico" href="images/paf.ico" />\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<link href="includes/styles/style.css" rel="stylesheet" type="text/css" />\r
-</head>\r
-<?php\r
-       include("includes/connection.php");\r
-       include("includes/functions.php");\r
-       include("includes/redirect.php");\r
-       $kompler = "{%#bb^csr%#}";\r
-       //----------------Sauvegarder les informations-------------------------------\r
-       if($_REQUEST["cmdSend"]){\r
-               if($_REQUEST["txtMail"]==""){\r
-                       $ErrorMail = "<img src='./images/error.png' title='Veuillez saisire votre adresse de courriel.'>";\r
-                       $MsgErrors = "<span style='background-color:#F00F00; color:#FFFFFF;'>Erreur, votre mot de passe n'a pas envoy&eacute;.</span>";\r
-               }elseif(check_email($_REQUEST["txtMail"])==false){\r
-                       $ErrorMail = "<img src='./images/error.png' title='Veuillez v&eacute;rifier votre mail.'>";\r
-                       $MsgErrors = "<span style='background-color:#F00; color:#FFFFFF;'>Erreur, votre mot de passe n'a pas envoy&eacute;.</span>";\r
-               }else{\r
-                       //----------tirer le mot de passe et login----------\r
-                       $Strs = "Select login, motdepasse, id from tblinscrit where email='".$_REQUEST["txtMail"]."'";\r
-                       $Row = mysql_fetch_row(mysql_query($Strs));\r
-                       if(mysql_num_rows(mysql_query($Strs))>0){\r
-                               //----------Envoyer les informations ---------------\r
-                               $Subject = "PAF : Mot de passe oubli&eacute;";\r
-                               $Today = date("Y-m-d");\r
-                               $Time = date("Y-m-d H:i:s",time());\r
-                               $Body = "<html><head><title></title></head><body>\r
-                                       <table width=\"584\" border=\"0\" cellpadding=\"0\" cellspacing=\"6\">\r
-                                       <tr>\r
-                                          <td colspan=\"2\" align=\"right\" style=\"padding-right:20px; padding-bottom:10px;\">Date : ".$Time."</td>\r
-                                 </tr>\r
-                                 <tr bgcolor=\"#E2F080\">\r
-                                          <td colspan=\"2\">Suject : Mot de passe oubli&eacute;</td>\r
-                                  </tr>\r
-                                  <tr>\r
-                                          <td width=\"30%\">Login : </td>\r
-                                          <td width=\"70%\">".$Row['0'].$Row['2']."</td>\r
-                                 </tr>\r
-                                        <tr>\r
-                                          <td>Mot de passe : </td>\r
-                                          <td>".decrptPwd($Row['1'],$kompler)."</td>\r
-                                        </tr>\r
-                                        <tr><td colspan=\"5\"><hr size=\"1\"></td></tr>\r
-                               </table>\r
-                               </body>\r
-                               </html>";\r
-                               $headers  = 'MIME-Version: 1.0' . "\r\n";\r
-                               $headers .= 'Content-type: text/html; charset=iso-8859-15;' . "\r\n";\r
-                               //------------to sender-----------------------------------------\r
-                               $Footer = "<br><br>Cordialement,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;PAF<br><br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <br><br>Ce courriel a &eacute;t&eacute; envoy&eacute; par le PAF (".$Time.").<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>";\r
-                               $headerss .= "Content-type: text/html; charset=iso-8859-1\r\n";\r
-                               $headerss .= "From: PAF\r\n".\r
-                                       "Reply-To:" . "\r\n" .\r
-                                       "X-Mailer: PHP/" . phpversion();\r
-                               $MailAddressReply = $_REQUEST["txtMail"];\r
-                               $SubjectReply="Cordialement";\r
-                               $BodyReply=$Body."<br />Merci beaucoup pour votre intérêt.";\r
-                               //echo $MailAddressReply."<br>".$SubjectReply."<br>".$BodyReply." ".$Footer,$headerss;\r
-                               //----------Mail infos to mail address---------------------------------\r
-                               //@mail($MailAddressReply,$SubjectReply,$BodyReply." ".$Footer,$headerss) or die("On ne peut pas envoyer à cet adresse de courriel.");\r
-                               $MsgErrors = "<span style='background-color:#000FFF; color:#FFFFFF;'>Votre mot de passe a &eacute;t&eacute; envoy&eacute; &agrave; votre mail.</span>";\r
-                       }else{\r
-                               $MsgErrors = "<span style='background-color:#F00; color:#FFFFFF;'>Erreur, votre adresse de courriel n'est pas correct.</span>";\r
-                       }\r
-               }\r
-       }\r
-       \r
-       //-------------------------------XXXXXXXXXX-------Search-------XXXXXXXXXX------------------\r
-       if($_REQUEST["cmdSearch"]){\r
-               $StrSearch = $_REQUEST["txtSearch"];\r
-               redirect("index_search.php?str_sch=$StrSearch");\r
-       }\r
-?>\r
-<body class="oneColLiqCtrHdr">\r
-<form name="PAF" method="post" enctype="application/x-www-form-urlencoded">\r
-<div id="container">\r
-  <div id="header">\r
-       <table width="100%" cellpadding="0" cellspacing="0">\r
-       <tr><td colspan="2"><a href="http://www.auf.org/" title="AUF" target="_blank"><img src="images/auf.gif" width="155" height="110" border="0" /></a></td>\r
-               <td width="39%" align="right"><h1 class="oneColLiqCtrHdr"><a href="index.php" title="Page d'accueil" style="text-decoration:none;">P A F</a></h1></td>\r
-                       <td width="41%" valign="bottom" align="right" style="padding-bottom:15px; padding-right:10px;"></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #header --></div>\r
-  <div id="searchContent">\r
-       <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" width="100%" align="right">\r
-       <tr><td width="94%" align="right"><!--Hyperlines g&eacute;n&eacute;raux en tête--------------->\r
-                                       <a href="index.php" title="Accueil">Accueil</a> > Mot de passe oubli&eacute;\r
-                               &nbsp;&nbsp;&nbsp; Rechercher : <input type="text" name="txtSearch" value="<?php echo $StrSearch; ?>" />\r
-                       </td>\r
-            <td width="6%" align="left"><input type="submit" name="cmdSearch" value="OK" /></td>\r
-        </tr>\r
-    </table>\r
-  </div>\r
-  <div id="mainContent">\r
-    <?php\r
-       include("forms/mdp_oublie.php");\r
-       ?>\r
-    <!-- end #mainContent -->\r
-  </div>\r
-  <div id="footer">\r
-       <table cellpadding="0" cellspacing="0" border="0" height="40" width="100%">\r
-       <tr><td width="80%">Agence Universitaire de la Francophonie -- Antenne de Phnom Penh, Cambodge</td>\r
-               <td width="20%" align="center">Administrateur</td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #footer --></div>\r
-<!-- end #container --></div>\r
-</form>\r
-</body>\r
-</html>\r
diff --git a/index_pwd.php b/index_pwd.php
deleted file mode 100644 (file)
index a3463e0..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php\r
-       error_reporting (E_ALL ^ E_NOTICE); //------pour &eacute;viter les notices sur les variables---------------\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       include("includes/redirect.php");\r
-       if(!($admin == "y")){\r
-       redirect("index.php");\r
-    }\r
-       \r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<title>P A F -- AUF Phnom Penh, Cambodge</title>\r
-<link rel="shortcut icon" type="image/ico" href="images/paf.ico" />\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<link href="includes/styles/style.css" rel="stylesheet" type="text/css" />\r
-</head>\r
-<?php\r
-       include("includes/connection.php");\r
-       include("includes/functions.php");\r
-       $kompler = "{%#bb^csr%#}";\r
-       //----------------Sauvegarder les informations-------------------------------\r
-       if($_REQUEST["cmdSave"]){\r
-               include("includes/tclyit_cam_pc.php");\r
-               /*$txtMDP = $_REQUEST["txtMotdepasse"]; echo $txtMDP;\r
-               $txtMDPC = $_REQUEST["txtMotdepasseconfirmer"]; echo $txtMDPC;*/\r
-               if($_REQUEST["txtMotdepasse"] != $_REQUEST["txtMotdepasseconfirmer"]){\r
-                               $ErrorMotPasse = "<img src='images/error.png' title='Votre mot de passe confirm&eacute; n`est pas correct.'>";\r
-               }elseif($_REQUEST["txtMotdepasse"]==""){\r
-                       $ErrorMDP = "<img src='images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                       $ErrorMDPC = "<img src='images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-               }else{\r
-                       //----------Sauvegarder les informations ---------------\r
-                       $Str = "Update tblinscrit set motdepasse='".encrptPwd(strtolower($_REQUEST["txtMotdepasse"]),$kompler)."' Where id=".substr($_SESSION["UserNamePAF"],1);\r
-                       @mysql_query($Str) or die("Veuillez contacter l'administrateur. On ne peut pas sauvgarder ces informations (modifier mot de passe).");\r
-                       exit;\r
-               }\r
-       }\r
-?>\r
-<body class="oneColLiqCtrHdr">\r
-<form name="PAF" method="post" enctype="application/x-www-form-urlencoded">\r
-<div id="container">\r
-  <div id="header">\r
-       <table width="100%" cellpadding="0" cellspacing="0">\r
-       <tr><td colspan="2"><a href="http://www.auf.org/" title="AUF" target="_blank"><img src="images/auf.gif" width="155" height="110" border="0" /></a></td>\r
-               <td width="39%" align="right"><h1 class="oneColLiqCtrHdr">P A F</h1></td>\r
-                       <td width="41%" valign="bottom" align="right" style="padding-bottom:15px; padding-right:10px;">\r
-                               <?php echo $Rows['1']." ".$Rows['2']; ?> &nbsp; <?php echo $Deconnexion; ?></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #header --></div>\r
-  <div id="mainContent">\r
-   <table width="100%" cellpadding="3" cellspacing="3" border="0" style="border-collapse:collapse;">\r
-               <tr><td colspan="2"><h2>Modifier vote mot de passe</h2></td>\r
-       <tr><td width="26%">Nouveau mot de passe :</td>\r
-       <td width="74%"><input type="password" name="txtMotdepasse" size="25" />&nbsp;&nbsp;<?php echo $ErrorMDP ; ?></td></tr>\r
-        <tr><td>Confirmer :</td><td><input type="password" name="txtMotdepasseconfirmer" size="25" />&nbsp;&nbsp;<?php echo $ErrorMDPC." ".$ErrorMotPasse; ?></td></tr>\r
-        <tr><td></td><td><input type="submit" name="cmdSave" value="Sauvegarder" />\r
-                       &nbsp; <?php if($_REQUEST["msg"]=="0"){ echo "<font style='color:#F00F00;'>Connexion &eacute;chou&eacute;e....</font>"; }else{ echo $Message; } ?></td></tr>\r
-               <tr><td></td><td style="padding-top:10px;"></td></tr>\r
-    </table>\r
-       <!-- end #mainContent --></div>\r
-  <div id="footer">\r
-       <table cellpadding="0" cellspacing="0" border="0" height="40" width="100%">\r
-       <tr><td width="80%">Agence Universitaire de la Francophonie -- Antenne de Phnom Penh, Cambodge</td>\r
-               <td width="20%" align="center">Administrateur</td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #footer --></div>\r
-<!-- end #container --></div>\r
-</form>\r
-</body>\r
-</html>\r
diff --git a/index_search.php b/index_search.php
deleted file mode 100644 (file)
index cd05bf3..0000000
+++ /dev/null
@@ -1,215 +0,0 @@
-<?php\r
-       error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED);\r
-       session_start();\r
-       $admin=$_SESSION["adminAUFPPKH"];\r
-       $UserName=$_SESSION["UserNamePAF"];\r
-       $Password=$_SESSION["PasswordPAF"];\r
-       \r
-?>\r
-<?php \r
-       header("Content-type: text/html; charset=utf-8");\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<title>P A F -- AUF Phnom Penh, Cambodge</title>\r
-<link rel="shortcut icon" type="image/ico" href="images/paf.ico" />\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<link href="includes/styles/style.css" rel="stylesheet" type="text/css" />\r
-</head>\r
-<?php\r
-       include("includes/connection.php");\r
-       include("includes/functions.php");\r
-       if($_REQUEST["ID"] !=""){\r
-               $IDS = $_REQUEST["ID"];\r
-               //-----------Tirer les inforamtions aprÚs sauvegarder---------\r
-               $Strs = "Select nom, prenom, datedenaissance, motdepasse, id from tblinscrit where id=".$IDS."";\r
-               $Rows = mysql_fetch_row(mysql_query($Strs)) or die("Erreur de tirer les informations.");\r
-       }\r
-       $kompler = "{%#bb^csr%#}";\r
-       //----------------Sauvegarder les informations-------------------------------\r
-       if(($_REQUEST["page"]=="login")&&($_REQUEST["cmdSave"])){\r
-               include("includes/tclyit_cam_pc.php");\r
-               /*$txtMDP = $_REQUEST["txtMotdepasse"]; echo $txtMDP;\r
-               $txtMDPC = $_REQUEST["txtMotdepasseconfirmer"]; echo $txtMDPC;*/\r
-               if($_REQUEST["txtNom"]==""){\r
-                       $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif($_REQUEST["txtPrenom"]==""){\r
-                       $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif(($_REQUEST["selJour"]=="")||($_REQUEST["selMois"]=="")||($_REQUEST["selAnnee"]=="")){\r
-                       $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       }\r
-               }elseif($_REQUEST["txtMotdepasse"] != $_REQUEST["txtMotdepasseconfirmer"]){\r
-                               $ErrorMotPasse = "<img src='./images/error.png' title='Votre mot de passe confirm&eacute; n`est pas correct.'>";\r
-               }elseif($_REQUEST["txtMotdepasse"]==""){\r
-                       $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                               $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre .'>";\r
-                       }\r
-               }elseif($_REQUEST["txtMotdepasseconfirmer"]==""){\r
-                       $ErrorMDPC = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe confirm&eacute;.'>";\r
-                       if($_REQUEST["txtMotdepasse"]==""){\r
-                               $ErrorMDP = "<img src='./images/error.png' title='Veuillez saisire votre mot de passe.'>";\r
-                       }\r
-                       if(($_REQUEST["selJour"]=="jour")||($_REQUEST["selMois"]=="mois")||($_REQUEST["selAnnee"]=="ann&eacute;e")){\r
-                               $ErrorDDN = "<img src='./images/error.png' title='Veuillez saisire votre date de naissance.'>";\r
-                       }\r
-                       if($_REQUEST["txtPrenom"]==""){\r
-                               $ErrorPreNom = "<img src='./images/error.png' title='Veuillez saisire votre pr&eacute;nom.'>";\r
-                       }\r
-                       if($_REQUEST["txtNom"]==""){\r
-                               $ErrorNom = "<img src='./images/error.png' title='Veuillez saisire votre nom.'>";\r
-                       }\r
-               }else{\r
-                       //----------Sauvegarder les informations ---------------\r
-                       $DOB = $_REQUEST["selAnnee"]."-".$_REQUEST["selMois"]."-".$_REQUEST["selJour"];\r
-                       $Str = "Insert Into tblinscrit (nom, prenom, datedenaissance, motdepasse, login, dateinlogin) Values('".str_replace("'","`",$_REQUEST["txtNom"])."','".str_replace("'","`",$_REQUEST["txtPrenom"])."','".$DOB."', '".encrptPwd(strtolower($_REQUEST["txtMotdepasse"]),$kompler)."','C','".date("Y-m-d")."')";\r
-                       @mysql_query($Str) or die("Veuillez contacter l'administrateur. On ne peut pas sauvgarder ces informations (log in).");\r
-                       $ID = mysql_insert_id();\r
-                       redirect("$PHP_SELF?page=login&ID=$ID");\r
-               }\r
-       }\r
-       \r
-       //=========================xxxxxxxxxxxxxxxxxxxxxxxxxxxxx==============================\r
-       //-----------------------Accer le PAF par le compte cr&eacute;&eacute;------------------------------\r
-       if($_REQUEST["cmdLogin"]){\r
-               if($_REQUEST['txtUserName'] <> "" && $_REQUEST['txtPassword'] <> "") {\r
-                               include("includes/connection.php");\r
-                               $Scq=mysql_query("select * from tblinscrit");\r
-                               $Scount = mysql_num_rows($Scq); //echo"Ha..ha..".$Scount;\r
-                               if($Scount == 0){\r
-                                       $_SESSION['adminAUFPPKH']="y";\r
-                                       redirect("admin/index_admin.php");\r
-                               }else{\r
-                                       //$txtPWD = decrptPwd($_SERVER['PHP_AUTH_PW'],$kompler);\r
-                                       $Query=mysql_query("Select * from tblinscrit where id = '".substr($_REQUEST["txtUserName"],1)."' and motdepasse = '".encrptPwd(strtolower($_REQUEST['txtPassword']),$kompler)."'");\r
-                                       $Col=mysql_fetch_row($Query);\r
-                                       if($Col[0] <> ""){\r
-                                               $_SESSION["adminAUFPPKH"]="y";\r
-                                               $_SESSION["UserNamePAF"]=$_REQUEST['txtUserName'];\r
-                                               $_SESSION["PasswordPAF"]=$_REQUEST['txtPassword'];\r
-                                               $St = "Insert into tblaccountaccess (username,accesstime) values('".$_REQUEST['txtUserName']."',CURRENT_TIMESTAMP)";\r
-                                               @mysql_query($St) or die("2");\r
-                                               redirect("index_main.php");\r
-                                               echo "<center>Vous Ãªtes connect&eacute; ... ";\r
-                                               echo "[<a href='" . $_SERVER['PHP_SELF'] . "?actlogin=logout'>D&eacute;connexion</a>]</center>";\r
-                                       }else{\r
-                                               unset($_SESSION["loginAUFKH"]);\r
-                                               unset($_SESSION["adminAUFPPKH"]);\r
-                                               unset($_SESSION["UserNamePAF"]);\r
-                                               unset($_SESSION["PasswordPAF"]);\r
-                                               $Message = "0";\r
-                                               //redirect("index.php?msg=$Message");\r
-                                               //echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";\r
-                                       }\r
-                               }\r
-                 }else{\r
-                       unset($_SESSION["loginAUFKH"]);\r
-                       unset($_SESSION["adminAUFPPKH"]);\r
-                       unset($_SESSION["UserNamePAF"]);\r
-                       unset($_SESSION["PasswordPAF"]);\r
-                       echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";\r
-                       $Message = "<font style='color:#F00F00;'>Connexion &eacute;chou&eacute;e....</font>";\r
-                 }\r
-       }\r
-       //-------------------------------XXXXXXXXXX-------Search-------XXXXXXXXXX------------------\r
-       if($_REQUEST["str_sch"]!="" && $_REQUEST["cmdSearch"]){\r
-               $StrSearch = $_REQUEST["txtSearch"];\r
-               $Sql_Ct=mysql_query("Select id, nom, prenom, sexe, datedenaissance, nationalite, login, motdepasse, universite, faculte, promotion, anneediplome, delf, anneedelf, langueautre, email, telephonepersonnelle, adressepersonnelle, telephoneparents, adresseparents, titretravail, adressetravail, divers, datein from tblinscrit where nom like '%$StrSearch%' or prenom like '%$StrSearch%' or nationalite like '%$StrSearch%' or universite like '%$StrSearch%' or faculte like '%$StrSearch%' or promotion='$StrSearch' or anneediplome='$StrSearch' or delf like '%$StrSearch%' or anneedelf='$StrSearch' or langueautre like '%$StrSearch%' or email like '%$StrSearch%' or telephonepersonnelle like '%$StrSearch%' or adressepersonnelle like '%$StrSearch%' or telephoneparents like '%$StrSearch%' or adresseparents like '%$StrSearch%' or titretravail like '%$StrSearch%' or adressetravail like '%$StrSearch%' or divers like '%$StrSearch%' order by nom asc");\r
-               $Num=mysql_num_rows($Sql_Ct);\r
-       }elseif($_REQUEST["str_sch"]!=""){\r
-               $StrSearch = $_REQUEST["str_sch"];\r
-               $Sql_Ct=mysql_query("Select id, nom, prenom, sexe, datedenaissance, nationalite, login, motdepasse, universite, faculte, promotion, anneediplome, delf, anneedelf, langueautre, email, telephonepersonnelle, adressepersonnelle, telephoneparents, adresseparents, titretravail, adressetravail, divers, datein from tblinscrit where nom like '%$StrSearch%' or prenom like '%$StrSearch%' or nationalite like '%$StrSearch%' or universite like '%$StrSearch%' or faculte like '%$StrSearch%' or promotion='$StrSearch' or anneediplome='$StrSearch' or delf like '%$StrSearch%' or anneedelf='$StrSearch' or langueautre like '%$StrSearch%' or email like '%$StrSearch%' or telephonepersonnelle like '%$StrSearch%' or adressepersonnelle like '%$StrSearch%' or telephoneparents like '%$StrSearch%' or adresseparents like '%$StrSearch%' or titretravail like '%$StrSearch%' or adressetravail like '%$StrSearch%' or divers like '%$StrSearch%' order by nom asc");\r
-               $Num=mysql_num_rows($Sql_Ct);\r
-       }\r
-       \r
-       //--------------Tirer information de Session-----------------------------------------------\r
-       if($_SESSION["UserNamePAF"] !=""){\r
-               $St = "Select id, nom, prenom from tblinscrit where id=".substr($UserName,1);\r
-               $Rowss = mysql_fetch_row(mysql_query($St)) or die("Contactez votre administrateur...(&eacute;rreur: select session id)");\r
-               $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";\r
-       }\r
-?>\r
-<body class="oneColLiqCtrHdr">\r
-<form name="PAF" method="post" enctype="application/x-www-form-urlencoded">\r
-<div id="container">\r
-  <div id="header">\r
-       <table width="100%" cellpadding="0" cellspacing="0">\r
-       <tr><td colspan="2"><a href="http://www.auf.org/" title="AUF" target="_blank"><img src="images/auf.gif" width="155" height="110" border="0" /></a></td>\r
-               <td width="39%" align="right"><h1 class="oneColLiqCtrHdr"><a href="index.php" title="Page d'accueil" style="text-decoration:none;">P A F</a></h1></td>\r
-                       <td width="41%" valign="bottom" align="right" style="padding-bottom:15px; padding-right:10px;">\r
-                               <?php echo $Rowss['1']." ".$Rowss['2']; ?> &nbsp; <?php echo $Deconnexion; ?></td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #header --></div>\r
-  <div id="searchContent">\r
-       <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" width="100%" align="right">\r
-       <tr><td width="94%" align="right"><!--Hyperlines g&eacute;n&eacute;raux en tête--------------->\r
-                                       <a href="index.php" title="Accueil">Accueil</a> > Recherche\r
-                               &nbsp;&nbsp;&nbsp; Rechercher : <input type="text" name="txtSearch" value="<?php echo $StrSearch; ?>" />\r
-                       </td>\r
-            <td width="6%" align="left"><input type="submit" name="cmdSearch" value="OK" /></td>\r
-        </tr>\r
-    </table>\r
-  </div>\r
-  <div id="mainContent">\r
-    <?php\r
-               include("forms/search_infos.php");\r
-       ?>\r
-    <!-- end #mainContent -->\r
-  </div>\r
-  <div id="footer">\r
-       <table cellpadding="0" cellspacing="0" border="0" height="40" width="100%">\r
-       <tr><td width="80%">Agence Universitaire de la Francophonie -- Antenne de Phnom Penh, Cambodge</td>\r
-               <td width="20%" align="center">Administrateur</td>\r
-        </tr>\r
-    </table>\r
-  <!-- end #footer --></div>\r
-<!-- end #container --></div>\r
-</form>\r
-</body>\r
-</html>\r
diff --git a/paf0/manage.py b/paf0/manage.py
new file mode 100755 (executable)
index 0000000..f3c330f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+import os
+import sys
+
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "paf0.settings")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)
diff --git a/paf0/paf/.DS_Store b/paf0/paf/.DS_Store
new file mode 100755 (executable)
index 0000000..648dba8
Binary files /dev/null and b/paf0/paf/.DS_Store differ
diff --git a/paf0/paf/._.DS_Store b/paf0/paf/._.DS_Store
new file mode 100755 (executable)
index 0000000..941570a
Binary files /dev/null and b/paf0/paf/._.DS_Store differ
diff --git a/paf0/paf/._admin.py b/paf0/paf/._admin.py
new file mode 100755 (executable)
index 0000000..6dd3b92
Binary files /dev/null and b/paf0/paf/._admin.py differ
diff --git a/paf0/paf/._forms.py b/paf0/paf/._forms.py
new file mode 100755 (executable)
index 0000000..fc1b80c
Binary files /dev/null and b/paf0/paf/._forms.py differ
diff --git a/paf0/paf/._models.py b/paf0/paf/._models.py
new file mode 100755 (executable)
index 0000000..a3efe63
Binary files /dev/null and b/paf0/paf/._models.py differ
diff --git a/paf0/paf/._urls.py b/paf0/paf/._urls.py
new file mode 100755 (executable)
index 0000000..a248731
Binary files /dev/null and b/paf0/paf/._urls.py differ
diff --git a/paf0/paf/._util.py b/paf0/paf/._util.py
new file mode 100755 (executable)
index 0000000..e5ee075
Binary files /dev/null and b/paf0/paf/._util.py differ
diff --git a/paf0/paf/._views 2.py b/paf0/paf/._views 2.py
new file mode 100755 (executable)
index 0000000..d3dce85
Binary files /dev/null and b/paf0/paf/._views 2.py differ
diff --git a/paf0/paf/._views.py b/paf0/paf/._views.py
new file mode 100755 (executable)
index 0000000..1c3a734
Binary files /dev/null and b/paf0/paf/._views.py differ
diff --git a/paf0/paf/__init__.py b/paf0/paf/__init__.py
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/paf0/paf/__init__.pyc b/paf0/paf/__init__.pyc
new file mode 100755 (executable)
index 0000000..c3854a5
Binary files /dev/null and b/paf0/paf/__init__.pyc differ
diff --git a/paf0/paf/admin.py b/paf0/paf/admin.py
new file mode 100755 (executable)
index 0000000..5d4cab3
--- /dev/null
@@ -0,0 +1,146 @@
+from django.contrib import admin
+from paf.models import Student, LinguisticLevel, CurrentAcademic, University, Faculty, Level, DiplomaObtained, City, Country, Employment, Entreprise
+from django.http import HttpResponseRedirect
+from django.core.urlresolvers import reverse
+from django.core.exceptions import PermissionDenied
+from django.contrib.auth.models import User
+from django import forms
+
+
+class LinguisticLevelAdmin(admin.ModelAdmin):
+    fieldsets = (
+        ('Delf/Dalf', {
+            'fields': ('delf_dalf', 'year_delf_dalf')
+        }),
+        ('Autre', {
+            'fields': ('other', 'year_other')
+        }),
+    )
+
+
+class LinguisticLevelInline(admin.TabularInline):
+    model = LinguisticLevel
+    
+    def get_readonly_fields(self, request, obj=None):
+        if request.user.username == 'enseignant':
+            return ('delf_dalf', 'year_delf_dalf', 'other', 'year_other')
+        return ()
+
+class CurrentAcademicInline(admin.TabularInline):
+    model = CurrentAcademic
+    
+    def get_readonly_fields(self, request, obj=None):
+        if request.user.username == 'enseignant':
+            return ('university', 'faculty', 'level', 'specialty', 'city', 'entry_year', 'end_year', 'certified')
+        return ()
+
+class DiplomaObtainedInline(admin.TabularInline):
+    model = DiplomaObtained
+    
+    def get_readonly_fields(self, request, obj=None):
+        if request.user.username == 'enseignant':
+            return ('university', 'entitle', 'level', 'year')
+        return ()
+
+class EmploymentInline(admin.StackedInline):
+    model = Employment
+    
+    def get_readonly_fields(self, request, obj=None):
+        if request.user.username == 'enseignant':
+            return ('entreprise', 'activity_sector', 'country', 'website', 'position', 'detail_position', 'observation')
+        return ()
+
+class StudentForm(forms.ModelForm):
+    class Meta:
+        model = Student
+        widgets = {
+            'identifier': forms.TextInput(attrs={'readonly':'readonly'}),
+        }
+
+
+class StudentAdmin(admin.ModelAdmin):
+    form = StudentForm
+    list_display = ('firstname', 'lastname', 'tel', 'email')
+    search_fields = ('firstname', 'lastname')
+    list_filter = ('sex', 'linguisticlevel__delf_dalf', 'currentacademic__university__name',)
+    date_hierarchy = 'dob'
+    ordering = ('-lastname',)
+    inlines = [CurrentAcademicInline, LinguisticLevelInline, DiplomaObtainedInline, EmploymentInline]
+    readonly_fields = ('identifier',)
+    fields = ('identifier', 'firstname', 'lastname', 'nationality', 'sex', 'dob', 'email', 'tel', 'parent_tel', 'parent_address')
+    
+    
+    def get_readonly_fields(self, request, obj=None):
+        if request.user.username == 'enseignant':
+            return ('identifier', 'firstname', 'lastname', 'nationality', 'sex', 'dob', 'email', 'tel', 'parent_tel', 'parent_address')
+        return ()
+    
+    def queryset(self, request):
+        qs = super(StudentAdmin, self).queryset(request)
+        if request.user.first_name == 'student':
+            return qs.filter(identifier=request.user.username)
+        else:
+            return qs
+
+    def change_view(self, request, object_id, form_url='', extra_context=None):
+        if request.user.first_name == 'student':
+            self.change_form_template = 'edit_info.html'
+        elif request.user.username == 'enseignant':
+            #self.readonly_fields = list(self.fields)
+            #for inline in self.get_inline_instances(request):
+            #    inline.readonly_fields = list(inline.fields)
+            #self.readonly_fields = ('identifier', 'firstname', 'lastname', 'nationality', 'sex', 'dob', 'email', 'tel', 'parent_tel', 'parent_address')
+
+            self.change_form_template = 'student_info.html'
+        else:
+            self.change_form_template = None
+        return super(StudentAdmin, self).change_view(request, object_id, form_url, extra_context)
+        
+    def changelist_view(self, request, extra_context=None):
+        if request.user.first_name == 'student':
+            student = Student.objects.get(identifier=request.user.username)
+            return HttpResponseRedirect(reverse('edit_info'))
+        elif request.user.username == 'enseignant':
+            self.change_list_template = 'student_list.html'
+        else:
+            self.change_list_template = None
+        return super(StudentAdmin, self).changelist_view(request, extra_context)
+
+    def delete_model(self, request, obj):
+        User.objects.filter(username=obj.identifier).delete()
+        obj.delete()
+    
+class CurrentAcademicAdmin(admin.ModelAdmin):
+    pass
+
+class FacultyAdmin(admin.ModelAdmin):
+    pass
+
+class UniversityAdmin(admin.ModelAdmin):
+    pass
+
+class LevelAdmin(admin.ModelAdmin):
+    pass
+
+class CityAdmin(admin.ModelAdmin):
+    pass
+
+class EntrepriseAdmin(admin.ModelAdmin):
+    pass
+
+class CountryAdmin(admin.ModelAdmin):
+    pass
+
+class DiplomaObtainedAdmin(admin.ModelAdmin):
+    pass
+
+
+admin.site.register(Entreprise, CityAdmin)
+admin.site.register(Country, CityAdmin)
+admin.site.register(City, CityAdmin)
+admin.site.register(Student, StudentAdmin)
+admin.site.register(University, UniversityAdmin)
+admin.site.register(Faculty, FacultyAdmin)
+admin.site.register(Level, LevelAdmin)
+admin.site.register(DiplomaObtained, DiplomaObtainedAdmin)
+admin.site.register(CurrentAcademic, CurrentAcademicAdmin)
\ No newline at end of file
diff --git a/paf0/paf/admin.pyc b/paf0/paf/admin.pyc
new file mode 100755 (executable)
index 0000000..908e7d9
Binary files /dev/null and b/paf0/paf/admin.pyc differ
diff --git a/paf0/paf/forms.py b/paf0/paf/forms.py
new file mode 100755 (executable)
index 0000000..f752f87
--- /dev/null
@@ -0,0 +1,79 @@
+from django import forms
+from captcha.fields import CaptchaField
+from paf.models import Student
+from django.contrib.auth.models import User, Group
+from string import zfill
+
+class RegistrationForm(forms.Form):
+    NATIONALITY_CHOICES = (
+        ('KH', 'Cambodgienne'),
+        ('LA', 'Laotienne'),
+        ('AN', 'Vietnamienne'),
+        ('ZZ', 'Autre'),
+    )
+    GENDER_CHOICES = (
+        ('M', 'Male'),
+        ('F', 'Female'),
+    )
+    lastname = forms.CharField()
+    firstname= forms.CharField()
+    nationality = forms.ChoiceField(choices=NATIONALITY_CHOICES)
+    sex = forms.ChoiceField(choices=GENDER_CHOICES)
+    dob = forms.DateField(label='date of birth', input_formats=('%d/%m/%Y',), help_text='input date of the form dd/mm/yyyy')
+    tel = forms.CharField()
+    parent_tel = forms.CharField(required=False)
+    parent_address = forms.CharField(max_length=120)
+    email = forms.EmailField(required=False)
+    captcha = CaptchaField()
+    password = forms.CharField(widget=forms.PasswordInput)
+    confirm_password = forms.CharField(widget=forms.PasswordInput)
+    
+    def clean_confirm_password(self):
+        if self.cleaned_data['password'] != self.cleaned_data['confirm_password']:
+            raise forms.ValidationError("Your confirm password is different from password!")
+    
+    def save(self):
+        student = self.create_student()
+        self.create_user(student)
+        return student
+            
+    def create_student(self):
+        cd = self.cleaned_data
+        student = Student(lastname=cd['lastname']
+                            , firstname=cd['firstname']
+                            , nationality=cd['nationality']
+                            , sex=cd['sex']
+                            , dob=cd['dob']
+                            , email=cd['email']
+                            , tel=cd['tel']
+                            , parent_tel=cd['parent_tel']
+                            , parent_address=cd['parent_address'])
+        student.identifier = self.calculate_identifier(student)
+        student.save()
+        return student
+        
+    def calculate_identifier(self, student):
+        try:
+            last_identifier = Student.objects.filter(nationality=student.nationality).order_by('-identifier')[0].identifier
+            tmp = int(last_identifier[2:]) + 1
+            return last_identifier[:2] + zfill(tmp, len(last_identifier)-2)
+        except:
+            return student.nationality + '0000001'
+
+    def create_user(self, student):
+        cd = self.cleaned_data
+        user = User(username=student.identifier, is_staff=1, first_name='student')
+        user.set_password(cd['password'])
+        user.save()
+        group = self.get_student_group()
+        user.groups = [group]
+        user.save()
+        return user
+        
+    def get_student_group(self):
+        try:
+            group = Group.objects.get(name='student')
+        except:
+            group = Group(name='student')
+            group.save()
+        return group
\ No newline at end of file
diff --git a/paf0/paf/forms.pyc b/paf0/paf/forms.pyc
new file mode 100755 (executable)
index 0000000..70da4d6
Binary files /dev/null and b/paf0/paf/forms.pyc differ
diff --git a/paf0/paf/migrations/0001_initial.py b/paf0/paf/migrations/0001_initial.py
new file mode 100755 (executable)
index 0000000..616aefd
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        pass
+
+    def backwards(self, orm):
+        pass
+
+    models = {
+        
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0001_initial.pyc b/paf0/paf/migrations/0001_initial.pyc
new file mode 100755 (executable)
index 0000000..a6c44a4
Binary files /dev/null and b/paf0/paf/migrations/0001_initial.pyc differ
diff --git a/paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.py b/paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.py
new file mode 100755 (executable)
index 0000000..b98064e
--- /dev/null
@@ -0,0 +1,109 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'LinguisticLevel'
+        db.create_table('paf_linguisticlevel', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('delf_dalf', self.gf('django.db.models.fields.CharField')(max_length=2, blank=True)),
+            ('year_delf_dalf', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
+            ('other', self.gf('django.db.models.fields.CharField')(max_length=1, blank=True)),
+            ('year_other', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
+            ('student', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['paf.Student'], unique=True)),
+        ))
+        db.send_create_signal('paf', ['LinguisticLevel'])
+
+        # Adding model 'Student'
+        db.create_table('paf_student', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('lastname', self.gf('django.db.models.fields.CharField')(max_length=50)),
+            ('firstname', self.gf('django.db.models.fields.CharField')(max_length=50)),
+            ('nationality', self.gf('django.db.models.fields.CharField')(max_length=2)),
+            ('sex', self.gf('django.db.models.fields.CharField')(max_length=1)),
+            ('dob', self.gf('django.db.models.fields.DateField')()),
+            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
+            ('tel', self.gf('django.db.models.fields.CharField')(max_length=20)),
+            ('parent_tel', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)),
+            ('parent_address', self.gf('django.db.models.fields.CharField')(max_length=120)),
+            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
+        ))
+        db.send_create_signal('paf', ['Student'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'LinguisticLevel'
+        db.delete_table('paf_linguisticlevel')
+
+        # Deleting model 'Student'
+        db.delete_table('paf_student')
+
+
+    models = {
+        'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        'auth.permission': {
+            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
+            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.pyc b/paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.pyc
new file mode 100755 (executable)
index 0000000..16a4ee9
Binary files /dev/null and b/paf0/paf/migrations/0002_auto__add_linguisticlevel__add_student.pyc differ
diff --git a/paf0/paf/migrations/0003_auto__del_field_student_user.py b/paf0/paf/migrations/0003_auto__del_field_student_user.py
new file mode 100755 (executable)
index 0000000..52ac419
--- /dev/null
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Deleting field 'Student.user'
+        db.delete_column('paf_student', 'user_id')
+
+
+    def backwards(self, orm):
+        # Adding field 'Student.user'
+        db.add_column('paf_student', 'user',
+                      self.gf('django.db.models.fields.related.OneToOneField')(default=1, to=orm['auth.User'], unique=True),
+                      keep_default=False)
+
+
+    models = {
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0003_auto__del_field_student_user.pyc b/paf0/paf/migrations/0003_auto__del_field_student_user.pyc
new file mode 100755 (executable)
index 0000000..8dd60d0
Binary files /dev/null and b/paf0/paf/migrations/0003_auto__del_field_student_user.pyc differ
diff --git a/paf0/paf/migrations/0004_auto__add_field_student_identifier.py b/paf0/paf/migrations/0004_auto__add_field_student_identifier.py
new file mode 100755 (executable)
index 0000000..0b7d779
--- /dev/null
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding field 'Student.identifier'
+        db.add_column('paf_student', 'identifier',
+                      self.gf('django.db.models.fields.CharField')(default='', max_length=9, blank=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'Student.identifier'
+        db.delete_column('paf_student', 'identifier')
+
+
+    models = {
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0004_auto__add_field_student_identifier.pyc b/paf0/paf/migrations/0004_auto__add_field_student_identifier.pyc
new file mode 100755 (executable)
index 0000000..29811ea
Binary files /dev/null and b/paf0/paf/migrations/0004_auto__add_field_student_identifier.pyc differ
diff --git a/paf0/paf/migrations/0005_auto__add_field_student_user.py b/paf0/paf/migrations/0005_auto__add_field_student_user.py
new file mode 100755 (executable)
index 0000000..930a947
--- /dev/null
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding field 'Student.user'
+        db.add_column('paf_student', 'user',
+                      self.gf('django.db.models.fields.related.OneToOneField')(default=1, to=orm['auth.User'], unique=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'Student.user'
+        db.delete_column('paf_student', 'user_id')
+
+
+    models = {
+        'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        'auth.permission': {
+            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
+            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0005_auto__add_field_student_user.pyc b/paf0/paf/migrations/0005_auto__add_field_student_user.pyc
new file mode 100755 (executable)
index 0000000..998d546
Binary files /dev/null and b/paf0/paf/migrations/0005_auto__add_field_student_user.pyc differ
diff --git a/paf0/paf/migrations/0006_auto__del_field_student_user.py b/paf0/paf/migrations/0006_auto__del_field_student_user.py
new file mode 100755 (executable)
index 0000000..5cb350c
--- /dev/null
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Deleting field 'Student.user'
+        db.delete_column('paf_student', 'user_id')
+
+
+    def backwards(self, orm):
+        # Adding field 'Student.user'
+        db.add_column('paf_student', 'user',
+                      self.gf('django.db.models.fields.related.OneToOneField')(default=1, to=orm['auth.User'], unique=True),
+                      keep_default=False)
+
+
+    models = {
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0006_auto__del_field_student_user.pyc b/paf0/paf/migrations/0006_auto__del_field_student_user.pyc
new file mode 100755 (executable)
index 0000000..76aa033
Binary files /dev/null and b/paf0/paf/migrations/0006_auto__del_field_student_user.pyc differ
diff --git a/paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.py b/paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.py
new file mode 100755 (executable)
index 0000000..a95e251
--- /dev/null
@@ -0,0 +1,87 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Faculty'
+        db.create_table('paf_faculty', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+            ('university', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.University'])),
+        ))
+        db.send_create_signal('paf', ['Faculty'])
+
+        # Adding model 'University'
+        db.create_table('paf_university', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+        ))
+        db.send_create_signal('paf', ['University'])
+
+        # Adding model 'CurrentAcademic'
+        db.create_table('paf_currentacademic', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('faculty', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.Faculty'])),
+        ))
+        db.send_create_signal('paf', ['CurrentAcademic'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'Faculty'
+        db.delete_table('paf_faculty')
+
+        # Deleting model 'University'
+        db.delete_table('paf_university')
+
+        # Deleting model 'CurrentAcademic'
+        db.delete_table('paf_currentacademic')
+
+
+    models = {
+        'paf.currentacademic': {
+            'Meta': {'object_name': 'CurrentAcademic'},
+            'faculty': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Faculty']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'paf.faculty': {
+            'Meta': {'object_name': 'Faculty'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
+        },
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
+        },
+        'paf.university': {
+            'Meta': {'object_name': 'University'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.pyc b/paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.pyc
new file mode 100755 (executable)
index 0000000..cf955ab
Binary files /dev/null and b/paf0/paf/migrations/0007_auto__add_faculty__add_university__add_currentacademic.pyc differ
diff --git a/paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.py b/paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.py
new file mode 100755 (executable)
index 0000000..c70396c
--- /dev/null
@@ -0,0 +1,105 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Country'
+        db.create_table('paf_country', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+            ('continent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.Continent'])),
+        ))
+        db.send_create_signal('paf', ['Country'])
+
+        # Adding model 'Continent'
+        db.create_table('paf_continent', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+        ))
+        db.send_create_signal('paf', ['Continent'])
+
+        # Adding model 'Location'
+        db.create_table('paf_location', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('continent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.Continent'])),
+            ('country', self.gf('smart_selects.db_fields.GroupedForeignKey')(to=orm['paf.Country'], group_field='continent')),
+        ))
+        db.send_create_signal('paf', ['Location'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'Country'
+        db.delete_table('paf_country')
+
+        # Deleting model 'Continent'
+        db.delete_table('paf_continent')
+
+        # Deleting model 'Location'
+        db.delete_table('paf_location')
+
+
+    models = {
+        'paf.continent': {
+            'Meta': {'object_name': 'Continent'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'paf.country': {
+            'Meta': {'object_name': 'Country'},
+            'continent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Continent']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'paf.currentacademic': {
+            'Meta': {'object_name': 'CurrentAcademic'},
+            'faculty': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Faculty']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'paf.faculty': {
+            'Meta': {'object_name': 'Faculty'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
+        },
+        'paf.linguisticlevel': {
+            'Meta': {'object_name': 'LinguisticLevel'},
+            'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
+            'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
+            'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
+            'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
+        },
+        'paf.location': {
+            'Meta': {'object_name': 'Location'},
+            'continent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Continent']"}),
+            'country': ('smart_selects.db_fields.GroupedForeignKey', [], {'to': "orm['paf.Country']", 'group_field': "'continent'"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'paf.student': {
+            'Meta': {'object_name': 'Student'},
+            'dob': ('django.db.models.fields.DateField', [], {}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
+            'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
+            'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
+            'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
+            'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
+        },
+        'paf.university': {
+            'Meta': {'object_name': 'University'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['paf']
\ No newline at end of file
diff --git a/paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.pyc b/paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.pyc
new file mode 100755 (executable)
index 0000000..9210a07
Binary files /dev/null and b/paf0/paf/migrations/0008_auto__add_country__add_continent__add_location.pyc differ
diff --git a/paf0/paf/migrations/0009_auto__add_area__add_field_location_area__add_field_location_city__add_.py b/paf0/paf/migrations/0009_auto__add_area__add_field_location_area__add_field_location_city__add_.py
new file mode 100755 (executable)
index 0000000..796cf70
--- /dev/null
@@ -0,0 +1,123 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Area'
+        db.create_table('paf_area', (
+   &n