-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservtext.php
95 lines (51 loc) · 1.84 KB
/
servtext.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
<script src="js/jquery.js"></script>
<?php
require('dataco.php');
require('phpopenx.php');
include('exit.php');
$txt = $_POST['mem1'];
$d=$_SESSION['numuser'];
if($txt==null || $txt==' '){}
else{
$sqlbc="SELECT id FROM temp WHERE num=? ";
$instbc= $super->prepare($sqlbc);
$instbc->bind_param("i",$nrr);
$nrr=$d;
$instbc->execute();
$resbc=$instbc->get_result();
$naa= $resbc->num_rows;
$instbc->close();
$nvv = $naa + 1 ;
$sqlb="INSERT INTO temp (num,im,type,position) VALUES ('$d',?,'2','$nvv')";
$ina= $super->prepare($sqlb);
$ina->bind_param("s",$ur);
$ur=$txt;
$ina->execute();
$ina->close();
$gg='00';
$bbg="$nvv$gg";
switch($nvv){
case 1:
$bbg="0";
break;
case 2:
$bbg="0";
break;}
echo'<script>
var gam="'.$nvv.'";
document.getElementById("totalitems").value=gam;
</script>';
echo '
<script>
$("#txx'.$nvv.'").ready(function(){
hh= document.getElementById("sate");
hh.style.position="relative";
$("#sate").animate({scrollLeft:('.$bbg.')},1000);
var a= "'.$txt.'";
var b= "'.$nvv.'";
var url="feedbackposttext.php";
$("#kung'.$nvv.'").text("....").show();
$.post(url,{request:"fa",mem2:a,mem1:b}, function(data){
$("#kung'.$nvv.'").html(data).show(); }); });
</script>
<div id="txx'.$nvv.'" ></div> '; }?>