人人商城

contact.php 989B

123456789101112131415161718192021222324
  1. <?php
  2. if (!(defined('ES_PATH'))) {
  3. exit('Access Denied');
  4. }
  5. class ContactController extends Controller
  6. {
  7. public function index()
  8. {
  9. global $_W;
  10. global $_GPC;
  11. $uniacid = intval($_GPC['__uniacid']);
  12. $articles = pdo_fetchall('SELECT * FROM ' . tablename('ewei_shop_system_article') . ' AS a' . "\n" . ' WHERE a.status = 1 ORDER BY RAND() DESC LIMIT 4 ');
  13. $relevant_top = pdo_fetch('SELECT * FROM ' . tablename('ewei_shop_system_article') . ' AS a' . "\n" . ' WHERE a.status = 1 ORDER BY RAND()');
  14. $relevant = pdo_fetchall('SELECT * FROM ' . tablename('ewei_shop_system_article') . ' AS a' . "\n" . ' WHERE a.status = 1 ORDER BY RAND() DESC LIMIT 6 ');
  15. $casebanner = pdo_fetch('select contact from ' . tablename('ewei_shop_system_setting') . ' where uniacid = :uniacid ', array(':uniacid' => $uniacid));
  16. $basicset = $this->basicset();
  17. $title = '联系我们';
  18. include $this->template('contact/index');
  19. }
  20. }
  21. ?>