if ($this->CheckPermission('Modify News')) {
        $onerow->editlink = $this->CreateLink($id, 'editarticle', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/edit.gif', $this->Lang('edit'), '', '', 'systemicon'), array('articleid' => $row['news_id']));
    }
    if ($this->CheckPermission('Delete News')) {
        $onerow->deletelink = $this->CreateLink($id, 'deletearticle', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/delete.gif', $this->Lang('delete'), '', '', 'systemicon'), array('articleid' => $row['news_id']), $this->Lang('areyousure'));
    }
    $entryarray[] = $onerow;
    $rowclass == "row1" ? $rowclass = "row2" : ($rowclass = "row1");
}
$smarty->assign_by_ref('items', $entryarray);
$smarty->assign('itemcount', count($entryarray));
$smarty->assign('addlink', $this->CreateLink($id, 'addarticle', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addarticle'), '', '', 'systemicon'), array(), '', false, false, '') . ' ' . $this->CreateLink($id, 'addarticle', $returnid, $this->Lang('addarticle'), array(), '', false, false, 'class="pageoptions"'));
$smarty->assign('form2start', $this->CreateFormStart($id, 'defaultadmin', $returnid));
$smarty->assign('form2end', $this->CreateFormEnd());
$smarty->assign('submit_reassign', $this->CreateInputSubmit($id, 'submit_reassign', $this->Lang('submit')));
$categorylist = news_ops::get_category_list();
$smarty->assign('categoryinput', $this->CreateInputDropdown($id, 'category', $categorylist));
if ($this->CheckPermission('Delete News')) {
    $smarty->assign('submit_massdelete', $this->CreateInputSubmit($id, 'submit_massdelete', $this->Lang('delete_selected'), '', '', $this->Lang('areyousure_deletemultiple')));
}
$smarty->assign('reassigntext', $this->Lang('reassign_category'));
$smarty->assign('selecttext', $this->Lang('select'));
$smarty->assign('filtertext', $this->Lang('title_filter'));
$smarty->assign('statustext', $this->Lang('status'));
$smarty->assign('startdatetext', $this->Lang('startdate'));
$smarty->assign('enddatetext', $this->Lang('enddate'));
$smarty->assign('statetext', $this->Lang('state'));
$smarty->assign('titletext', $this->Lang('title'));
$smarty->assign('postdatetext', $this->Lang('postdate'));
$smarty->assign('categorytext', $this->Lang('category'));
$gCms = cmsms();