range() as $list) { $list['title'] = dhtmlspecialchars($list['title']); $listarray[$list['groupid']] = $list; } $onlinelist = ''; $query = array_merge(array(0 => array('groupid' => 0, 'grouptitle' => 'Member')), C::t('common_usergroup')->range()); foreach($query as $group) { $id = $group['groupid']; showtablerow('', array('class="td25"', 'class="td23 td28"', 'class="td24"', 'class="td24"', 'class="td21 td26"'), array( $listarray[$id]['url'] ? " " : '', '', $group['groupid'] <= 8 ? cplang('usergroups_system_'.$id) : $group['grouptitle'], '', '' )); } showsubmit('onlinesubmit', 'submit', 'td'); showtablefooter(); showformfooter(); } else { if(is_array($_GET['urlnew'])) { C::t('forum_onlinelist')->delete_all(); foreach($_GET['urlnew'] as $id => $url) { $url = trim($url); if($id == 0 || $url) { $data = array( 'groupid' => $id, 'displayorder' => $_GET['displayordernew'][$id], 'title' => $_GET['titlenew'][$id], 'url' => $url, ); C::t('forum_onlinelist')->insert($data); } } } updatecache(array('onlinelist', 'groupicon')); cpmsg('onlinelist_succeed', 'action=misc&operation=onlinelist', 'succeed'); } } elseif($operation == 'link') { if(!submitcheck('linksubmit')) { ?> ', '', '', '')); $query = C::t('common_friendlink')->fetch_all_by_displayorder(); foreach ($query as $forumlink) { $type = sprintf('%04b', $forumlink['type']); showtablerow('', array('class="td25"', 'class="td28"', '', '', 'class="td26"'), array( '', '', '', '', '', '', '', '', '', '', )); } echo '