芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/application/views/admin/ticket/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; $grid->loadComplete="data_on_complete"; $need_cookie_name=!empty($is_nr)?$is_nr:''; $cookie_name=Mapp_setting::get_cookie_prefix()."_".$cookie_post_fix; $need_reply_cookie_name=Mapp_setting::get_cookie_prefix()."_nr_".$need_cookie_name; $is_checked=false; $is_need_reply=false; if(isset($_COOKIE[$cookie_name]) && $_COOKIE[$cookie_name]=="Y"){ $is_checked=true; } if(isset($_COOKIE[$need_reply_cookie_name]) && $_COOKIE[$need_reply_cookie_name]=="Y"){ $is_need_reply=true; } if(!empty($is_nr)) { $grid->AddTitleRightHtml( '
' . __( 'Need Reply ' ) . '
' ); } $grid->AddTitleRightHtml('
'.__('Enable Auto Reload (every %d min) ',1).'
'); $grid->AddSearchProperty("Track ID", "ticket_track_id"); $grid->AddSearchProperty("Client Email", "client_email"); $grid->AddSearchProperty("Client Name", "client_name"); $grid->AddModel("Title", "title", 260 ,"left"); $grid->SetXSCombindeField("title"); $grid->AddModelNonSearchable("Open Time", "opened_time", 60 ,"center","",true); $grid->AddModelNonSearchable("Assigned", "assigned_on", 100 ,"left"); $grid->AddModelNonSearchable("Last Reply", "last_replied_by", 100 ,"center"); $grid->AddModelNonSearchable("L.Reply Time", "last_reply_time", 60 ,"center","",true); $grid->isColumnChoseable=true; $customes=Mcustom_field::getGridColumn(); get_grid_custom_column($grid,$customes); if(ACL::HasPermission("admin/ticket/details")){ $grid->AddModelNonSearchable("Action", "action", 80 ,"center"); } $categories=["0"=>"All Category"]+Mcategory::getCategoryListHtmlOptionArrayOnlyTicket('A'); $ticket=new Mticket(); $prTicket=array_merge(["*"=>"All Priorities"],$ticket->GetPropertyOptions("priroty")); $grid->AddSearchProperty("Category", "cat_id","select",$categories); $grid->AddSearchProperty("Priority", "priroty","select",$prTicket); ?>
show();?>