<link rel="stylesheet" type="text/css" href="css/modelwindow.css" /> <link rel="stylesheet" type="text/css" href="css/list.css" /> <link rel="stylesheet" type="text/css" href="css/link.css" /> <div id="subcolumnwrap"> <div id="treecolumn"> <div id="coltree" style="overflow-y:auto; height:350px; background: #D7DADB;"> <font size="5" face="Agency FB"><center><strong>Item Categories</strong></center></font> <ul class="catList"> <?php require_once 'core/init.php'; $categoryStruct = Category::getCatList(); foreach ($categoryStruct as $mcat1) { //echo "1"; foreach ($mcat1 as $mcat2) { $Cur_label = $mcat2->get_label(); $name = $mcat2->get_name(); $Cur_id = $mcat2->get_id(); //if(is_object($mcat2)){echo"%%";} //echo"$id "; echo "<li class='catList' id={$Cur_label} onclick=catCliked('" . $Cur_label . "','" . $name . "','" . $Cur_id . "')>"; echo "<a for={$Cur_label} href='#'>{$name}</a>"; echo "</li>"; echo "<div id={$Cur_label}.1>"; echo "</div>"; } }
public function uploadAction() { $this->model->load('Category'); $category = new Category(); $this->model->load('App'); $app = new App(); $data = array('title' => 'index', 'current_cat' => '', 'apps' => $app->getAppList(), 'topApps' => $app->getAppsDownloadest(), 'categories' => $category->getCatList()); $this->loadView('upload', $data); }