예제 #1
0
 public function get_view()
 {
     $dbc = CalendarPluginDB::get();
     $calendars = new CalendarsModel($dbc);
     $ret = '<form method="get" action="' . $_SERVER['PHP_SELF'] . '">
         <input type="hidden" name="_method" value="delete" />
         <div class="form-group">
         <label>Delete Calendar</label>
         <select name="id" class="form-control">
             <option value="0">Choose one...</option>';
     $ret .= $calendars->toOptions();
     $ret .= '</select>
         </div>
         <div class="form-group">
             <button type="submit" class="btn btn-danger">Delete</button>
         </div>
         </form>';
     return $ret;
 }