Ejemplo n.º 1
0
 public function addStudent()
 {
     $city = ["" => "select"] + City::get_city_array();
     $states = ["" => "select"] + States::state_list();
     $this->layout->tab_id = 1;
     $this->layout->sidebar = View::make('admin.sidebar', ["page_id" => 1, "sub_id" => 0]);
     $this->layout->main = View::make('admin.students.addStudent', ["city" => $city, "states" => $states]);
 }
Ejemplo n.º 2
0
 public function editMember($member_id)
 {
     $member = Member::find($member_id);
     $cities = ["" => "select"] + City::get_city_array();
     $centers = ["" => "select"] + Center::get_center_array();
     $member_types = ["" => "select"] + Member::member_types();
     $states = States::state_list();
     return html_entity_decode(View::make('admin.manage.members.add', ["member" => $member, "centers" => $centers, "cities" => $cities, "states" => $states, 'member_types' => $member_types]));
 }