Esempio n. 1
0
 public function fill()
 {
     parent::fill();
     if ($this->Model->isMyAccount()) {
         $this->set_template('profile/profile.tpl');
         $this->assign('purposes_dating', PurposeDating::get_all_purposes());
     } else {
         $this->set_template('userProfile/user_profile.tpl');
         $this->assign('id', $this->Model->getProfileId());
     }
     $this->assign('IMAGES_APP', IMAGES_APP);
     $this->assign('balance_value', $this->Model->get_balance());
 }
Esempio n. 2
0
 public function load_profile_info($user_id)
 {
     $this->_set_user_by_id($user_id);
     return array('name' => $this->Fields['name']->get(), 'country' => $this->Fields['country']->get(), 'city' => $this->Fields['city']->get(), 'birthdate' => $this->Fields['birthdate']->get(), 'sex' => $this->Fields['sex']->get(), 'phone' => $this->Fields['phone']->get(), 'purpose_id' => $this->Fields['purpose']->get(), 'purpose_text' => PurposeDating::get_purpose_by_id($this->Fields['purpose']->get()), 'text' => $this->Fields['text']->get(), 'left_time_rise' => strtotime('+' . FREQUENCY_RISE . ' hours', strtotime($this->Fields['dt_publish']->get())) - time());
 }
Esempio n. 3
0
 public function fill()
 {
     parent::fill();
     $this->set_template('main/index.tpl');
     $this->assign('purposes_dating', PurposeDating::get_all_purposes());
 }