newmatchmaker.php 778 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. class newmatchmaker_c extends Control
  3. {
  4. function __construct()
  5. {
  6. parent::Control();
  7. $this->load_model("user");
  8. }
  9. function newmatchmaker_c()
  10. {
  11. $this->__construct();
  12. }
  13. function index_f()
  14. {
  15. if(!$_SESSION["user_id"])
  16. {
  17. error('',$this->url('login'));
  18. }
  19. $this->tpl->assign("sitetitle","发展红娘");
  20. $this->tpl->assign("uid",$_SESSION["user_id"]);
  21. // print_r($_SESSION["user_id"]);
  22. $this->tpl->display("newmatchmaker.".$this->tpl->ext);
  23. }
  24. function view_f()
  25. {
  26. if(!$_SESSION["user_id"])
  27. {
  28. error('',$this->url('login'));
  29. }
  30. $cid = $this->trans_lib->safe("id");
  31. //print_r($cid);
  32. $rs = $this->customer_m->customer_from_id($cid);
  33. $this->tpl->assign("rs",$rs);
  34. $this->tpl->display("msg_customer.".$this->tpl->ext);
  35. }
  36. }
  37. ?>