private function user_update_selected($update = array()) { $form = array('cheml' => $this->cheml(), 'chpwd' => $this->chpwd(), 'chdis' => $this->chdis(), 'chpro' => $this->chpro()); foreach ($form as $Id => $Name) { $selected = isset($_GET[$Id]) ? 'selected' : $Id; $update["user.update.{$selected}"] = app\avail::template($Name); } return $update; }