-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathup.activite.php
More file actions
executable file
·79 lines (60 loc) · 1.7 KB
/
up.activite.php
File metadata and controls
executable file
·79 lines (60 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
$page='activite';
include("includes/base.access.php");
include("includes/class.utilisateur.php");
include("includes/class.activite.php");
$db = openDB();
$mode='modif';
if(isset($_POST['action']) && $_POST['action'] == "save"){
$n = new activite();
$n->id_activite = $_POST['id_activite'];
$n->id_utilisateur = $_POST['id_utilisateur'];
$n->semaine = $_POST['semaine'];
$n->annee = $_POST['annee'];
$n->AppelLeads = $_POST['AppelLeads'];
$n->AppelProspects = $_POST['AppelProspects'];
$n->AppelClients = $_POST['AppelClients'];
$n->EmailsLeads = $_POST['EmailsLeads'];
$n->EmailsProspects = $_POST['EmailsProspects'];
$n->EmailsClients = $_POST['EmailsClients'];
$n->VisiteLeads = $_POST['VisiteLeads'];
$n->VisiteProspects = $_POST['VisiteProspects'];
$n->VisiteClients = $_POST['VisiteClients'];
$n->save();
if(mysql_error()==""){
$error = "ok";
}else{
echo("erreur mysql : ".mysql_error());
}
}
?>
<?php include("includes/base.header.php"); ?>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".ajaxform").bind("keyup click",function(){
var str = $(this).serialize();
$.ajax({
type: "POST",
data: str
});
});
});
</script>
</head>
<body>
<?php include("includes/base.menu.php"); ?>
<div id="note"></div>
<p class="info">Semaine actuelle</p>
<?php
$u = new utilisateur();
$u->load($_COOKIE['nom']);
$n = new activite();
$n->dashboard($u->id_utilisateur,getCurrentWeek(),getCurrentYear(),$mode);
echo '<br /><p class="info">Semaine précédente</p>';
$n = new activite();
$n->dashboard($u->id_utilisateur,getPrevWeek(),getCurrentYear(),$mode);
closeDB($db);
?>
</body>
</html>