/
achat_pa.php
executable file
·213 lines (197 loc) · 7.46 KB
/
achat_pa.php
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
session_start();
if (!$_SESSION['perso_iduser']){
$verification ="formulaire.php?retour=achat_pa.php";
echo "<script language='JavaScript'>\n
document.location.replace('$verification');
</script>\n";
die();
}
?>
<html>
<head>
<title> Achat Petites Annonces </title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="Javascript" type="text/javascript" src="include/jquery-1.10.1.min.js"></script>
<script language="Javascript" type="text/javascript" src="include/format.20110630-1100.min.js"></script>
<?php
require("gestion/gest_achat_pa.php");
?>
<script language="javascript" type="text/javascript" >
function valachat(i){
var tmp = "";
if (parseInt($("#rescalcul1").val()) >= 0){
Calcul();
if ((parseInt($('#soldeA').val()) - parseInt($('#rescalcul1').val())) < 0){
alert("Le solde ne le permet pas...");
}
else{
$('#page-loader').show();
document.achatpa.action="gestion/mes_achatpa.php";
document.achatpa.submit();
}
}
else{
alert("Faites le calcul d'abord...");
}
}
function gotoCitoyens(){
$('#page-loader').show();
$tmp = "citoyen_detail.php";
document.location.replace($tmp);
}
function gotoEntreprises(){
$('#page-loader').show();
$tmp = "entreprise_detail.php";
document.location.replace($tmp);
}
function gotoEtats(){
$('#page-loader').show();
$tmp = "info_etat.php";
document.location.replace($tmp);
}
function gotoTransactions(){
$('#page-loader').show();
$tmp = "achat_stock.php";
document.location.replace($tmp);
}
</script>
</head>
<body onload="infojoueur(); AffichePA(); $('#page-loader').hide();" style="background-color:#E0E0E0;">
<script language="Javascript" type="text/javascript" src="gestion/gest_achat_pa.js"></script>
<script language="Javascript" type="text/javascript" src="gestion/infojoueur.js"></script>
<div id="page-loader">
<div id="loading-mask" style=""></div>
<div id="loading">
<div id="loading-ind" class="loading-indicator" style="width:250px;">
<CENTER>
<span id="loading-titre">EcoMicro™</span>
<br><br><br>
<img id="loading-image" src="obj/wait1.gif" width="64" height="64"/>
<br><br><br>
<span id="loading-msg">Chargement en cours.</span>
<br>
<span id="loading-msg">Veuillez patienter...</span>
</CENTER>
</div>
</div>
</div>
<CENTER><div style="width:1300px;">
<table width='100%'>
<tr>
<td width='200'>
<div class="margin5 logo">
<CENTER>
<a href="index.php">
<img src="obj/logo.gif" alt="logo">
</a>
</BR>
NKWeb, Kaora 2013
</CENTER>
</div>
</td>
<td valign=top>
<table width='100%'>
<tr>
<td valign=top>
<CENTER>
<div id="menu">
<table width='100%'>
<tr>
<td valign=top width='25%'>
<div id="divMenuCitoyen" class="menuIndex boutonVert tailleSimple" onClick="gotoCitoyens();">Citoyens</div>
</td>
<td valign=top width='25%'>
<div id="divMenuEntreprise" class="menuIndex boutonOrange tailleSimple" onClick="gotoEntreprises();">Entreprises</div>
</td>
<td valign=top width='25%'>
<div id="divMenuEtat" class="menuIndex boutonRouge tailleSimple" onClick="gotoEtats();">Etats</div>
</td>
<td valign=top width='25%'>
<div id="divMenuTransaction" class="menuIndex boutonBleu tailleSimple" onClick="gotoTransactions();">Transactions</div>
</td>
</tr>
</table>
</div>
</CENTER>
<div id="enteted" class="cadreClair textPetit">
<ul>
<li>Cet écran vous permet de proposer l'achat de produit d'occasion.
Cette proposition doit encore être validée par le vendeur pour que l'achat soit effectif.
<li>Le tarif unitaire hors taxe (HT) doit être saisi. Il est préférable de le négocier au préalable avec le vendeur, c'est le montant qu'il va percevoir.
<li>Le tarif toutes taxes comprises (TTC) est indiqué en appliquant la taxe d'état, mais il sera recalculé lors de la validation par le vendeur.
</ul>
</div>
</td>
</tr>
</table>
</td>
<td width='400' valign=top>
<CENTER>
<div id="tabdroiteh" class="margin5 infoUser"> </div>
</CENTER>
</td>
</tr>
</table>
<table width='100%'>
<tr>
<td valign=top>
<CENTER><div id="divSSMenuTransac"> </div></CENTER>
</td>
</tr>
</table>
<table width='100%'>
<tr>
<td valign=top class="cadreClair">
<CENTER><div id="tabcentrec"> </div></CENTER>
</td>
<td width='400' valign=top></td>
</tr>
</table>
<table width='100%'>
<tr>
<td valign=top>
<div class="cadrePrincipal">
<div class="textGros"><CENTER><b>Petites annonces</b></CENTER></div>
<div id="divAchatPA">
<table border='0' width='100%' cellspacing="0">
<tr height='40'>
<td width='100'><b> Pays</b></td>
<td width='130'><b> Propriétaire</b></td>
<td width='150'><b> Produit</b></td>
<td width='200'><CENTER><b>Image</b></CENTER></td>
<td width='100'><CENTER><b>Valeur</b></CENTER></td>
</tr>
</table>
<div id="achatPA" class="scroll-1"> </div>
</div>
<div id="divPA" style="display:none;"> </div>
</div>
</td>
<td valign=top width='400'>
<CENTER>
<div class="margin5 padding5" style="height:540px;">
</BR>
</BR>
</BR>
</BR>
<img src="obj/achat1.jpg" alt="" width="215" height="135" />
</BR>
</BR>
</BR>
</BR>
</BR>
</BR>
</BR>
</BR>
<img src="obj/achat2.jpg" alt="" width="215" height="135" />
</div>
</CENTER>
</td>
</tr>
</table>
</div></CENTER>
</body>
</html>