芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr_old/modules/News/function.admin_categoriestab.php
Execute($query); $rowclass = 'row1'; while ($dbresult && $row = $dbresult->FetchRow()) { $onerow = new stdClass(); $depth = count(split('\.', $row['hierarchy'])); $onerow->id = $row['news_category_id']; $onerow->name = str_repeat(' > ', $depth-1).$this->CreateLink($id, 'editcategory', $returnid, $row['news_category_name'], array('catid'=>$row['news_category_id'])); $onerow->editlink = $this->CreateLink($id, 'editcategory', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/edit.gif', $this->Lang('edit'),'','','systemicon'), array('catid'=>$row['news_category_id'])); $onerow->deletelink = $this->CreateLink($id, 'deletecategory', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/delete.gif', $this->Lang('delete'),'','','systemicon'), array('catid'=>$row['news_category_id']), $this->Lang('areyousure')); $onerow->rowclass = $rowclass; $entryarray[] = $onerow; ($rowclass=="row1"?$rowclass="row2":$rowclass="row1"); } $this->smarty->assign_by_ref('items', $entryarray); $this->smarty->assign('itemcount', count($entryarray)); #Setup links $this->smarty->assign('addlink', $this->CreateLink($id, 'addcategory', $returnid, $this->Lang('addcategory'), array(), '', false, false, 'class="pageoptions"')); $this->smarty->assign('addlink', $this->CreateLink($id, 'addcategory', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newfolder.gif', $this->Lang('addcategory'),'','','systemicon'), array(), '', false, false, '') .' '. $this->CreateLink($id, 'addcategory', $returnid, $this->Lang('addcategory'), array(), '', false, false, 'class="pageoptions"')); $this->smarty->assign('categorytext', $this->Lang('category')); #Display template echo $this->ProcessTemplate('categorylist.tpl'); // EOF ?>