芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/application/views/admin/knowledge/index.php
url =$grid_url; $grid->width = "auto"; $grid->height = "auto"; $grid->rowNum = 20; $grid->pager = "#pagerb"; $grid->container = ".grid-body"; $grid->ShowReloadButtonInTitle=true; $grid->ShowDownloadButtonInTitle=true; if(ACL::HasPermission("admin/knowledge/add")){ $grid->AddTitleRightHtml('
Add New
'); } $options_category=["0"=>"All Category"]; $mainobj=new Mknowledge(); $opts=Mcategory::getKnowledgeCategoryListHtmlOptionArray('A'); foreach ($opts as $key=>$vl){ $options_category[$key]=$vl; } $status=array_merge(["*"=>"All"],$mainobj->GetPropertyOptions("status")); $grid->AddSortableModel("Title", "title", 150 ,"left"); $grid->SetXSCombindeField("title"); $grid->AddModelCustomSearchable("Category", "cat_id", 150 ,"left","select",$options_category); $grid->AddSortableModel("Sticky/Pinned", "is_stickey", 50 ,"center"); $grid->AddModelCustomSearchable("Status", "status", 50 ,"center","select",$status); if(ACL::HasPermission("admin/knowledge/edit")){ $grid->AddModelNonSearchable("Action", "action", 50 ,"center"); } ?>
show();?>