Http://www.ectouch.cn/topics/94.html
Effect
Operation:
1.
Modify the background controller file to call out the relevant field information. mobile\include\apps\admin\controller\advertcontroller.class.php function ad_list Position: $ad _list[$key] [' orders '] = $ This->get_orders ($value [' ad_id ']); Add code to the following line
if ($value [' media_type '] = = 0) { if (Strpos ($value [' Ad_code '], '/http ') = = = False && strpos ($value [' Ad_ Code '], ' https://') = = = False) { $ad _list[$key] [' ad_code '] = __url__. ' /‘. $value [' Ad_code ']; } else{ $ad _list[$key] [' ad_code '] = $value [' Ad_code ']; } }
2. Then just display it in the template file. mobile\include\apps\admin\view\advert_ad_list.php Location: <th class= "Text-center" >{$lang [' Media_type ']}</th > Add a row after
<th class= "Text-center" >{$lang [' ad_code_img ']}</th>
Location: <td class= "Text-center" >{$vo [' media_type ']}</td> add a row after
<TD class= "Text-center" ></td>
As for the width of the table and picture can be adjusted to the most appropriate display effect. Finally, modify a language pack file mobile\include\apps\admin\language\zh_cn\advert.php anywhere:
$_lang[' ad_code_img '] = ' advertising image ';
The modification is complete and the cache is cleared.
Reprint ECTouch1.0 Edit AD list display ad image in background ad management