Example #1
0
 }
 $menuBar = array('cancel' => '/admin/overview', 'save' => '');
 $this->content .= $this->makeToolbar($menuBar, 24);
 $this->content .= '<form id="mooTemplate" method="post" action="' . $_SERVER['REQUEST_URI'] . '">';
 $this->content .= '<select id="template_select" name="template">';
 foreach ($templates as $k => $t) {
     if ($template_name == $k) {
         $selected = 'selected="selected"';
     } else {
         $selected = null;
     }
     $this->content .= '<option value="' . $k . '" ' . $selected . '>' . $k . '</option>';
 }
 $this->content .= '</select>';
 $this->content .= '</form>';
 $js->load_json();
 $json = null;
 $json .= '<div id="download" class="download">';
 $json .= '<form id="mootools_edit" method="post" action="' . $_SERVER['REQUEST_URI'] . '">';
 $json .= '<input type="hidden" name="template" value="' . $template_name . '" />';
 //$json .= '<ul class="tabs">';
 foreach ($js->libs as $key => $value) {
     //$json .= '<li class="gradient"><a href="#'.$key.'">'.$key.'</a></li>';
     $tab_array[$key] = null;
 }
 //$json .= '</ul>';
 //$json .= '<div id="panelSet">';
 $sections = $template_files->listSections();
 unset($sections[0], $sections[1]);
 $panels = null;
 foreach ($js->libs as $key => $value) {