質問編集履歴
1
全ソースの表示
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,11 +44,263 @@
|
|
44
44
|
|
45
45
|
### 該当のソースコード
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
```
|
50
|
-
|
51
|
-
|
47
|
+
user.blade.php
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
<body>
|
52
|
+
|
53
|
+
<html>
|
54
|
+
|
55
|
+
<main style="height:699px;">
|
56
|
+
|
57
|
+
<div class="scroll">
|
58
|
+
|
59
|
+
<section class="mobile_auth_search search_form">
|
60
|
+
|
61
|
+
<div class="tit head_area">
|
62
|
+
|
63
|
+
<section class="mobile_auth_search search_form">
|
64
|
+
|
65
|
+
<input type="hidden" value='0' class="search_display">
|
66
|
+
|
67
|
+
<div class="tit head_area">
|
68
|
+
|
69
|
+
<h3>認証番号一覧</h3>
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
{{Form::open(array('action' => 'MobilePhoneAuthController@search', 'method' => 'POST', 'id' => 'mobile_auth_search_form'))}}
|
74
|
+
|
75
|
+
{{Form::hidden('csv', 0, array('id' => 'csv'))}}
|
76
|
+
|
77
|
+
<div class="form-area cf">
|
78
|
+
|
79
|
+
<div class="form-part col2">
|
80
|
+
|
81
|
+
<p class="lbl">加盟店名</p>
|
82
|
+
|
83
|
+
<p class="inpt">
|
84
|
+
|
85
|
+
{{Form::select('affiliate_id',$affiliate_list , null , array('id' => 'affiliate_id'))}}
|
86
|
+
|
87
|
+
</p>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<div class="btn-area">
|
92
|
+
|
93
|
+
{{Form::button('search_btn', '検索', array('type' => 'button', 'class' => 'btn', 'id' => 'search'))}}
|
94
|
+
|
95
|
+
{{Form::button('reset', 'リセット', array('type' => 'button', 'class' => 'btn', 'id' => 'reset'))}}
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
{{Form::close()}}
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
</section>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</main>
|
108
|
+
|
109
|
+
</html>
|
110
|
+
|
111
|
+
</body>
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
MobilePhoneAuthController.php
|
116
|
+
|
117
|
+
```
|
118
|
+
|
119
|
+
<?php
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
namespace App\Http\Controllers;
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
use Illuminate\Http\Request;
|
128
|
+
|
129
|
+
use App\MobilePhoneAuth;
|
130
|
+
|
131
|
+
use App\M_Affiliate;
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
class MobilePhoneAuthController extends Controller
|
136
|
+
|
137
|
+
{
|
138
|
+
|
139
|
+
public function search(Request $request){
|
140
|
+
|
141
|
+
$affiliate_list = M_Affiliate::all('shop_name');
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
M_Affiliate.php
|
154
|
+
|
155
|
+
```
|
156
|
+
|
157
|
+
<?php
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
namespace App;
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
use Illuminate\Database\Eloquent\Model;
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
class M_Affiliate extends Model
|
170
|
+
|
171
|
+
{
|
172
|
+
|
173
|
+
protected $table = "m_affiliate";
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
protected $fillable = [
|
178
|
+
|
179
|
+
'affiliate_id','shop_name','shop_name_yagou','login_url_name', 'service_name', 'callcenter_n','callcenter_tel','operation_hours','bank_f','newitem_f','charge_scheme_a_init','charge_scheme_b_init','charge_margin_koza','charge_margin_card','agent_margin','shop_id_card','shop_pass_card',
|
180
|
+
|
181
|
+
'site_id_card','site_pass_card','sms_username', 'sms_password', 'logo_file_path','service_video_url','discharge_sounds_file_path','virtual_bank_branche_id','arbitrarily_coupon_flg','arbitrarily_sms_flg','login_line_flg','contactless_payment_flg','first_customer_confirm_flg','customize_css_flg','create_user','create_d','update_d','update_user','del_flg','discharge_sounds_file_path2'
|
182
|
+
|
183
|
+
];
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
```
|
190
|
+
|
191
|
+
migration
|
192
|
+
|
193
|
+
```
|
194
|
+
|
195
|
+
<?php
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
use Illuminate\Database\Migrations\Migration;
|
200
|
+
|
201
|
+
use Illuminate\Database\Schema\Blueprint;
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
class CreateMAffiliateTable extends Migration {
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
/**
|
210
|
+
|
211
|
+
* Run the migrations.
|
212
|
+
|
213
|
+
*
|
214
|
+
|
215
|
+
* @return void
|
216
|
+
|
217
|
+
*/
|
218
|
+
|
219
|
+
public function up()
|
220
|
+
|
221
|
+
{
|
222
|
+
|
223
|
+
Schema::create('m_affiliate', function(Blueprint $table)
|
224
|
+
|
225
|
+
{
|
226
|
+
|
227
|
+
$table->string('affiliate_id', 4)->primary();
|
228
|
+
|
229
|
+
$table->string('shop_name', 200)->nullable();
|
230
|
+
|
231
|
+
$table->string('shop_name_yagou')->nullable()->comment('屋号');
|
232
|
+
|
233
|
+
$table->string('login_url_name', 200)->nullable()->comment('ログインURLにセットする名称');
|
234
|
+
|
235
|
+
$table->string('service_name', 200)->nullable()->comment('サービス名');
|
236
|
+
|
237
|
+
$table->string('callcenter_n', 200)->nullable();
|
238
|
+
|
239
|
+
$table->string('callcenter_tel', 13)->nullable();
|
240
|
+
|
241
|
+
$table->string('operation_hours', 200)->nullable();
|
242
|
+
|
243
|
+
$table->integer('bank_flag')->nullable();
|
244
|
+
|
245
|
+
$table->integer('newitem_flag')->nullable();
|
246
|
+
|
247
|
+
$table->boolean('charge_scheme_a_initial')->nullable();
|
248
|
+
|
249
|
+
$table->boolean('charge_scheme_b_initial')->nullable();
|
250
|
+
|
251
|
+
$table->integer('charge_margin_koza')->comment('口座振替手数料');
|
252
|
+
|
253
|
+
$table->integer('charge_margin_card')->comment('クレジットカード手数料');
|
254
|
+
|
255
|
+
$table->integer('agent_margin')->default(0)->comment('収納代行手数料');
|
256
|
+
|
257
|
+
$table->string('shop_id_card', 20)->nullable();
|
258
|
+
|
259
|
+
$table->string('shop_pass_card', 100)->nullable();
|
260
|
+
|
261
|
+
$table->string('site_id_card', 20)->nullable();
|
262
|
+
|
263
|
+
$table->string('site_pass_card', 100)->nullable();
|
264
|
+
|
265
|
+
$table->string('sms_username', 100)->nullable()->comment('SMSアカウント');
|
266
|
+
|
267
|
+
$table->string('sms_password', 100)->nullable()->comment('SMSパスワード');
|
268
|
+
|
269
|
+
$table->string('logo_file_path')->nullable()->comment('ロゴ・ファイル・path');
|
270
|
+
|
271
|
+
$table->string('service_video_url', 510)->nullable()->comment('サービス紹介動画URL');
|
272
|
+
|
273
|
+
$table->string('discharge_sounds_file_path')->nullable()->comment('音声・ファイル・path');
|
274
|
+
|
275
|
+
$table->string('virtual_bank_branche_id')->nullable()->comment('仮想銀行支店マスタID');
|
276
|
+
|
277
|
+
$table->boolean('arbitrarily_coupon_flg')->nullable()->comment('クーポン任意付与設定フラグ');
|
278
|
+
|
279
|
+
$table->boolean('arbitrarily_sms_flg')->nullable()->comment('SMS任意付与設定フラグ');
|
280
|
+
|
281
|
+
$table->boolean('login_line_flg')->nullable()->comment('LINE連携フラグ');
|
282
|
+
|
283
|
+
$table->boolean('contactless_payment_flg')->nullable()->comment('非接触決済フラグ');
|
284
|
+
|
285
|
+
$table->boolean('first_customer_confirm_flg')->nullable()->default(0)->comment('一見顧客確認画面フラグ');
|
286
|
+
|
287
|
+
$table->boolean('customize_css_flg')->nullable()->comment('オリジナル会員ページ');
|
288
|
+
|
289
|
+
$table->string('create_user', 80)->nullable();
|
290
|
+
|
291
|
+
$table->dateTime('create_date')->nullable();
|
292
|
+
|
293
|
+
$table->dateTime('update_date')->nullable();
|
294
|
+
|
295
|
+
$table->string('update_user', 80)->nullable();
|
296
|
+
|
297
|
+
$table->boolean('del_flg', 1)->nullable();
|
298
|
+
|
299
|
+
$table->string('discharge_sounds_file_path2')->nullable()->comment('音声・ファイル・path');
|
300
|
+
|
301
|
+
});
|
302
|
+
|
303
|
+
}
|
52
304
|
|
53
305
|
```
|
54
306
|
|