|
@@ -159,6 +159,27 @@ class refill_analysisControl extends SystemControl
|
|
|
{
|
|
|
$type = $_GET['type'] ?? 'provider';
|
|
|
$page = "analysis.new_version.{$type}";
|
|
|
+ if($type == 'provide')
|
|
|
+ {
|
|
|
+ global $config;
|
|
|
+ $provider_list = $this->providers();
|
|
|
+ foreach ($provider_list as $provider)
|
|
|
+ {
|
|
|
+ $quality = $provider['qualitys'];
|
|
|
+ if(empty($providers[$quality]['name'])) {
|
|
|
+ $quality_text = $provider['type'] == mtopcard\OilCardPaper ? $config['oil_quality_text'] : $config['phone_quality_text'];
|
|
|
+ $providers[$quality]['name'] = $quality_text[$quality];
|
|
|
+ }
|
|
|
+ $data = [
|
|
|
+ 'name' => $provider['store_name'],
|
|
|
+ 'value' => $provider['name']
|
|
|
+ ];
|
|
|
+ $providers[$quality]['data'][] = $data;
|
|
|
+ }
|
|
|
+ ksort($providers);
|
|
|
+ Tpl::output('providers', $providers);
|
|
|
+
|
|
|
+ }
|
|
|
Tpl::showpage($page);
|
|
|
}
|
|
|
|