-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWaitItemModeList.php
More file actions
77 lines (51 loc) · 1.42 KB
/
Copy pathWaitItemModeList.php
File metadata and controls
77 lines (51 loc) · 1.42 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
<?php
require_once("session.php");
$session=new session();
if(!$SerialNumbers=$session->get_value("SerialNumbers"))
{
echo "******************取得SerialNumbers失敗******************";
exit();
}
require_once("connect_mysql_class.php");
require_once("mysql_inc.php");
$db=new DB();
$db->connect_db($_DB['host'], $_DB['username'], $_DB['password'], $_DB['dbname']);
$SelectItem=json_decode($_POST['ItemID']);
for($i=0;$i<count($SelectItem);$i++)
{
$query="Select ItemName From StoreTakenItem Where Store ='".$SerialNumbers."' and TakenItemID = '".$SelectItem[$i]."'";
$db->query($query);
$temp=$db->fetch_array();
$ItemName[]=$temp['ItemName'];
}
?>
<div id="WaitItemModeList">
<?php
for($i=0;$i<count($SelectItem);$i++){
if($i%4==0&&$i!=0)
echo '</div>';
if($i%4==0)
echo '<div class="WaitItemModeListTr">';
echo '<div class="WaitItemModeListTd" name="'.$SelectItem[$i].'" >';
echo $ItemName[$i];
echo '<hr>';
echo '<div class="WaitCustomList" name="'.$SelectItem[$i].'" ></div>';
echo '</div>';
}
echo '</div>';
?>
</div>
<script>
var ItemID=[];
$('.WaitItemModeListTd').each(function(){
ItemID.push($(this).attr('name'));
});
WaitItemModeUpdate(ItemID);
$('.CustomDataBlock').live("mouseover",function(){
$(this).css("background","yellow");
});
$('.CustomDataBlock').live("mouseout",function(){
$(this).css("background","white");
});
$('.CustomDataBlock').live("click",WaitItemClickEvent);
</script>