質問編集履歴

1

コードを記載しました

2018/08/29 14:51

投稿

kimuwata
kimuwata

スコア11

test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,99 @@
5
5
  php.iniにて何か設定が必要なのでしょうか?
6
6
 
7
7
  ご教授お願いします
8
+
9
+ ```php
10
+
11
+ <?php
12
+
13
+ $howmany = $_GET["howmany"];
14
+
15
+ list($puren, $ooba, $cheese, $number, $kimuti) = preg_split("[-]", $howmany);
16
+
17
+ $nextordernumber ="./ordernumber/".$number;
18
+
19
+ $trueorfalse=touch($nextordernumber);
20
+
21
+ $hour = date("H");
22
+
23
+ $minute = date("i");
24
+
25
+ if ($minute < 30){
26
+
27
+ $minutes ='00';
28
+
29
+ }else{
30
+
31
+ $minutes ='30';
32
+
33
+ }
34
+
35
+ echo '<html>~略~</html>';
36
+
37
+
38
+
39
+ $orderfile = "./orders/".$number.".txt";
40
+
41
+ $cashfile = "./cash/".$number.".txt";
42
+
43
+ $cashingfile = "./cashing/".$number.".txt";
44
+
45
+ $presentfile = "./presenter/".$number.".txt";
46
+
47
+
48
+
49
+ $timesale = './halfhour/'.$hour.''.$minutes.'/'.$number.'.txt';
50
+
51
+ $makingfile =touch($orderfile);
52
+
53
+ $current = file_get_contents($orderfile);
54
+
55
+ $current= 'オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/><hr width="100%" size="4" color="black">';
56
+
57
+
58
+
59
+
60
+
61
+ $currentcash= 'オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/>
62
+
63
+ <input type="button" onclick="startcash'.$number.'()" class="square_btn" value="会計NO.'.$number.'"><script>
64
+
65
+ function startcash'.$number.'(){
66
+
67
+ location.href="cashing.php?value='.$number.'";
68
+
69
+ }
70
+
71
+ </script><hr width="100%" size="4" color="black">';
72
+
73
+
74
+
75
+ $presenters= '<style>a {color: black;text-decoration: none;}</style><a href="./presentserve.php?value='.$number.'"><div>オーダー'.$number.'<br/>プレーン'.$puren.'<br/>大葉'.$ooba.'<br/>チーズ'.$cheese.'<br/>キムチ'.$kimuti.'<br/>
76
+
77
+ <hr width="100%" size="4" color="black">
78
+
79
+ </div></a>';
80
+
81
+
82
+
83
+ $timedetail= ''.$puren.'-'.$ooba.'-'.$cheese.'-'.$kimuti.'';
84
+
85
+
86
+
87
+ $currentcasher= ''.$number.'-'.$puren.'-'.$ooba.'-'.$cheese.'-'.$kimuti.'';
88
+
89
+ file_put_contents($orderfile, $current);
90
+
91
+ file_put_contents($cashfile, $currentcash);
92
+
93
+ file_put_contents($cashingfile, $currentcasher);
94
+
95
+ file_put_contents($presentfile, $presenters);
96
+
97
+ file_put_contents($timesale, $timedetail);
98
+
99
+
100
+
101
+ ?>
102
+
103
+ ```