예제 #1
0
 /**
  * Create a hidden input field.
  *
  * @param string $name
  * @param string $value
  * @param array $options
  * @return string 
  * @static 
  */
 public static function hidden($name, $value = null, $options = array())
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \Bootstrapper\Form::hidden($name, $value, $options);
 }
예제 #2
0
 public static function navTree()
 {
     $data = Header::navigationdata();
     $view = '';
     foreach ($data as $key => $content) {
         $view .= '<li ><ul class="nav nav-list">';
         $view .= '<li class="nav-header" style="height:30px"><i class="icon-hdd"></i>&nbsp;' . Str::upper($content['header']);
         $view .= '<div class="form-inline pull-right" >';
         $view .= '<a href="#" onclick="deleteModule(' . $content['moduleid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
         //<em><small>Remove Module</small></em>
         $view .= '</div>';
         $view .= Form::hidden('module[]', $content['moduleid']);
         $view .= '</li>';
         if (!empty($content['parent']) || isset($content['parent'])) {
             $view .= '<li ><ul id="sortparent" class="nav nav-list connectedparent" style="padding-right:0px">';
             foreach ($content['parent'] as $parentkey => $parentcontent) {
                 $view .= '<li style="height:30px" ><i class="icon-arrow-right"></i>&nbsp;' . Str::title($parentcontent['alias']);
                 $view .= '<div class="form-inline pull-right">';
                 $view .= '<a href="#" onclick="addchildpages(' . $parentcontent['pageid'] . ')" data-toggle="modal" style="margin-bottom:10px;margin-left:5px;"><i class="icon-plus"></i></a>';
                 //<em><small>Add Sub Page</small></em>
                 $view .= '<a href="#" onclick="deletePage(' . $parentcontent['pageid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
                 //<em><small>Remove Page</small></em>
                 $view .= '</div>';
                 $view .= Form::hidden('parent[]', $parentcontent['pageid']);
                 $view .= '</li>';
                 if (!empty($parentcontent['child'])) {
                     $view .= '<li ><ul id="sortchild" class="nav nav-list connectedchild" style="padding-right:0px">';
                     foreach ($parentcontent['child'] as $childkey => $childvalue) {
                         $view .= '<li style="height:30px" ><i class="icon-arrow-right"></i>&nbsp;' . Str::title($childvalue['alias']);
                         $view .= '<div class="form-inline pull-right">';
                         $view .= '<a href="#" onclick="deletePage(' . $childvalue['childid'] . ')" style="margin-bottom:10px;margin-left:5px;"><i class="icon-remove alert-error"></i></a>';
                         //<em><small>Remove Sub Page</small></em>
                         $view .= '</div>';
                         $view .= '</li>';
                     }
                     $view .= '</ul></li>';
                 }
             }
             $view .= '</ul></li>';
         }
         $view .= '</ul></li>';
     }
     return $view;
 }