/
step_MySQL.php
executable file
·68 lines (67 loc) · 2.2 KB
/
step_MySQL.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
<?php
require_once(dirname(__FILE__) . '/../../INTER-Mediator.php');
IM_Entry(
array(
array(
'name' => 'prefecture',
'table' => 'not_available',
'view' => 'postalcode',
'aggregation-select'=>'MIN(id) AS pref_id, f7 AS pref',
'aggregation-from'=>'postalcode',
'aggregation-group-by'=>'f7',
'records' => 10000,
'maxrecords' => 10000,
'key' => 'pref_id',
'navi-control' => 'step',
'before-move-nextstep'=>'doAfterPrefSelection',
'appending-data'=>array(
array('pref_id'=>101, 'pref'=>'埼玉県'),
array('pref_id'=>102, 'pref'=>'神奈川県'),
array('pref_id'=>103, 'pref'=>'千葉県'),
)
),
array(
'name' => 'city',
'table' => 'not_available',
'view' => 'postalcode',
'aggregation-select'=>'MIN(id) AS city_id, f8 AS city',
'aggregation-from'=>'postalcode',
'aggregation-group-by'=>'f8',
'records' => 10000,
'maxrecords' => 10000,
'key' => 'city_id',
'navi-control' => 'step-hide',
'before-move-nextstep'=>'doAfterCitySelection'
),
array(
'name' => 'town',
'table' => 'not_available',
'view' => 'postalcode',
'aggregation-select'=>'MIN(id) AS town_id, f9 AS town',
'aggregation-from'=>'postalcode',
'aggregation-group-by'=>'f9',
'records' => 10000,
'maxrecords' => 10000,
'key' => 'town_id',
'navi-control' => 'step-hide',
'before-move-nextstep'=>'doAfterTownSelection'
),
array(
'name' => 'wrapup',
'table' => 'not_available',
'view' => 'postalcode',
'records' => 10000,
'maxrecords' => 10000,
'key' => 'id',
'navi-control' => 'step-hide',
'before-move-nextstep'=>'doAfterLastSelection'
),
),
array(
'credit-including' => 'footer',
),
array(
'db-class' => 'PDO',
),
false
);