-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchecklist.php.original3
More file actions
executable file
·210 lines (190 loc) · 5.22 KB
/
checklist.php.original3
File metadata and controls
executable file
·210 lines (190 loc) · 5.22 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
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
<?php
// Directory define
define('COMMON', 'common/');
define('QSG', 'qsg/');
define('UM', 'um/');
define('MODAL', 'modals/');
include('inc.find.php');
// Variables - Basic
$model = $_POST['model'];
$type = $_POST['type'];
$os = $_POST['os'];
$dest = $_POST['dest'];
$language = $_POST['language'];
$person = $_POST['person'];
$date = date('Y/m/d');
$time = date('Y/m/d H:i:s');
// Variables - Detailed
$battery = $_POST['battery'];
$network = $_POST['network'];
$sim = $_POST['sim'];
$book = $_POST['book'];
if (isset($_POST['waterproof'])) {
$waterproof = $_POST['waterproof'];
}
// 특이사항 label용
function label($var) {
echo "<span class=\"label label-info\">$var</span> \r\n";
}
function info($var) {
echo $var;
}
$n = 1;
?>
<div class="container">
<div id="checklist">
<div class="row">
<!-- 모델 정보 -->
<div class="col-sm-7">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Check Information</h3>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>모델명</dt>
<dd><?php info($model); ?></dd>
<dt>자재 / OS</dt>
<dd><?php info($type); ?> / <?php info($os); ?></dd>
<dt>언어 (출향지)</dt>
<dd><?php info($language); ?> (<?php info($dest); ?>)</dd>
<dt>검수자 (검수일)</dt>
<dd><?php info($person); ?> (<abbr title="<?php echo $time; ?>"><?php info($date); ?></abbr>)</dd>
<dt>특이사항</dt>
<dd>
<?php
if ($battery == "sep") {
label("분리형");
} else {
label("일체형");
}
if ($network == "3g") {
label("3G");
} elseif ($network == "lte") {
label("LTE");
} else {
label("Wi-Fi Only");
}
if ($sim == "ss") {
label("Single SIM");
} elseif ($sim == "ds") {
label("Dual SIM");
} elseif ($sim == "na") {
null;
} else {
label("SS/DS");
}
if ($book == "qsg") {
label("QSG 합본");
} elseif ($book == "sim") {
label("SS/DS 합본");
} elseif ($book == "series") {
label("시리즈 합본");
}
if (isset($waterproof)) {
if ($waterproof == "yes") {
label("방수");
}
}
?>
</dd>
</dl>
</div>
</div>
</div>
<!-- 참고 자료 -->
<div class="col-sm-5">
<div id="reference">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">참고 자료</h3>
</div>
<div class="panel-body">
<?php include('inc.check.ref.php'); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10">
<div class="page-header">
<h3>Quality Checklist</h1>
</div>
</div>
<!-- PASS / FAIL 표기 -->
<div class="col-sm-2">
<div class="bg-success">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="table-responsive">
<table class="table table-bordered table-hover table-condensed" id="chkTable">
<thead>
<tr>
<th>No.</th>
<th>구분#1</th>
<th>구분#2</th>
<th>검수 사항</th>
<th>확인</th>
<th>비고</th>
<th>예시</th>
<th>위키</th>
</tr>
</thead>
<tbody>
<?php
$modals = scandir(MODAL, 0);
// modal 불러오기
for ($i = 2; $i < count($modals); $i++) {
$modalFiles = [];
include MODAL . $modals[$i];
$modalFiles = array_push($modalFiles, $modals[$i]);
}
// Checklist
$files_common = scandir(COMMON, 0);
$files_qsg = scandir(QSG, 0);
$files_um = scandir(UM, 0);
// include $type . '/' . ''
// $aaa = preg_find('/'.strtolower($dest).'_'.strtolower($language).'_'.strtolower($type).'_\d+\.php$/D', strtolower($type));
// foreach ($aaa as $file) {
// include $file;
// }
function checklist() {
}
$common = preg_find('/^common_\d+\.php$/', COMMON, PREG_FIND_SORTKEYS);
$temp_type = preg_find('/^common_'.strtolower($type).'.+\.php$/D', strtolower($type), PREG_FIND_SORTKEYS);
// $temp_common = preg_find('/'.strtolower($dest).'_'.strtolower($type).'_common_'.'_\d+\.php$/D', strtolower($type));
$temp_dest = preg_find('/^'.strtolower($dest).'_.+\.php$/D', strtolower($type), PREG_FIND_SORTKEYS);
$temp_common_language = preg_find('/^common_'.strtolower($language).'_\d+\.php$/D', strtolower($type), PREG_FIND_SORTKEYS);
print_r($temp_common_language);
// 공통
foreach ($common as $file) { include_once $file; }
// 자재
foreach ($temp_type as $file) { include_once $file; }
// 공통 언어
foreach ($temp_common_language as $file) { include_once $file; }
// 출향지
foreach ($temp_dest as $file) { include_once $file; }
?>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<pre class="pre-scrollable">
<?php
print_r(get_included_files());
print_r($_POST);
print_r($_SESSION);
unset($n);
?>
</pre>
</div>
</div>
</div>
</div>