专注于discuz,uchome,dedecms等各类PHP程序仿站(二次开发和模板制作)。

« »
2014-06-29discuz

1,942 阅读

discuz 后台列表试问悬浮表格页头

先看效果:

 

直接放代码:

$tdstyle=array(‘width=”25″‘,’width=”112″‘,’width=”30″‘,’width=”115″‘,’width=”130″‘,’width=”70″‘,’width=”80″‘,’width=”70″‘,”,’width=”145″‘,’width=”120″‘,’width=”210″‘,’width=”80″‘);
showtableheader(”, ”, ‘id=”peixunenroll_header” style=”min-width:1600px;*width:1600px;”‘);
showsubtitle(array(”,’peixun_enroll_orderno’,'peixun_enroll_studentnum’,'username’,'peixun_class_name’,'peixun_enroll_pay’,'peixun_pay_status’,'status’,'peixun_enroll_profile’,'peixun_space_profile’,'dateline’,'peixun_enroll_adminnote’,'operation’), ‘header tbm’, $tdstyle);
showtablefooter();
echo ‘<script type=”text/javascript”>floatbottom(\’peixunenroll_header\’);</script>’;
showtableheader(cplang(‘result’).’ ‘.$count ,’ style=”min-width:1600px;*width:1600px;“‘);
showsubtitle(array(”,’peixun_enroll_orderno’,'peixun_enroll_studentnum’,'username’,'peixun_class_name’,'peixun_enroll_pay’,'peixun_pay_status’,'status’,'peixun_enroll_profile’,'peixun_space_profile’,'dateline’,'peixun_enroll_adminnote’,'operation’), ‘header’, $tdstyle);
foreach($enrolllist as $enroll) {
showtablerow(”, $tdstyle, array(
“<input class=\”checkbox\” type=\”checkbox\” name=\”eidarray[]\” value=\”$enroll[eid]\” />”,
$enroll['orderno'],
$enroll['studentnum'],
‘<a href=”home.php?mod=space&uid=’.$enroll['uid'].’”  target=”_blank” >’.$enroll['username'],
“<a href=\”".ADMINSCRIPT.”?action=peixunenroll&operation=list&search=1&classid=$enroll[classid]\”>”.$enroll['classname'].”</a>”,
(intval($enroll['pay'])>0 ? $enroll['pay'] : $enroll['price']).(intval($enroll['payed'])>0&&$enroll['status']==3 ? ‘<br />’.cplang(‘peixun_enroll_payed’).’:’.$enroll['payed'] : ”),
lang_status(lang(‘train’,'pay_status_arr’),$enroll['status']),
‘<b>’.cplang(‘peixun_invoice_status’).’:</b><br />’. lang_status(lang(‘train’,'invoice_status_arr’),$enroll['invoice']).’<br />’.
‘<b>’.cplang(‘peixun_agreement_status’).’:</b><br />’.lang_status(lang(‘train’,'agreement_status_arr’),$enroll['agreement']).’<br />’.
‘<b>’.cplang(‘peixun_enroll_profile’).’:</b><br />’.lang_status(lang(‘train’,'profile_status_arr’),$enroll['profile']),
$enroll['invoicename'].’<br />’.$enroll['name'].’<br />’.$enroll['address'].’<br />’.$enroll['mobile'].’<br />’.$enroll['zipcode'].’<br />’.$enroll['note'],
$users[$enroll['uid']]['realname'].’<br >’.'<a href=”http://wpa.qq.com/msgrd?v=3&uin=’.$users[$enroll['uid']]['qq'].’&site=qq&menu=yes” target=”_blank” style=”BACKGROUND:url(http://wpa.qq.com/pa?p=2:’.$users[$enroll['uid']]['qq'].’:52) no-repeat center left;padding-left:30px;”>’.$users[$enroll['uid']]['qq'].’</a><br >’.$users[$enroll['uid']]['mobile'].’<br >’.$users[$enroll['uid']]['idcard'],
cplang(‘peixun_enroll_time’).’:<br />’.$enroll['dateline'].($enroll['payline'] ? ‘<br />’.cplang(‘peixun_pay_time’).’:<br />’.$enroll['payline'] : ”),
‘<textarea style=”width:210px;” rows=”4″ name=”adminnote['.$enroll[eid].’]” >’.$enroll['adminnote'].’</textarea>’,
“<a target=’_blank’ href=\”".ADMINSCRIPT.”?action=peixunenroll&operation=edit&eid=$enroll[eid]\” class=\”act\”>$lang[peixun_enroll_edit]</a>”.
“<br /><a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=group&uid=$enroll[uid]\” class=\”act\”>$lang[usergroup]</a><br /><a href=\”".ADMINSCRIPT.”?action=members&operation=access&uid=$enroll[uid]\” class=\”act\”>$lang[members_access]</a>”.
“<br />”.($_G['setting']['extcredits'] ? “<a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=credit&uid=$enroll[uid]\” class=\”act\”>$lang[credits]</a>” : “<span disabled>$lang[edit]</span>”).
“<br /><a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=medal&uid=$enroll[uid]\” target=’_blank’ class=\”act\”>$lang[medals]</a>”.
“<br /><a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=repeat&uid=$enroll[uid]\” target=’_blank’  class=\”act\”>$lang[members_repeat]</a>”.
“<br /><a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=edit&uid=$enroll[uid]\” target=’_blank’  class=\”act\”>$lang[detail]</a>”.
“<br /><a target=’_blank’ href=\”".ADMINSCRIPT.”?action=members&operation=ban&uid=$enroll[uid]\”  target=’_blank’ class=\”act\”>$lang[members_ban]</a>”
), TRUE);
}
showtablerow(”, array(‘class=”td25″ colspan=”5″‘), array(‘<input name=”chkall” id=”chkall” type=”checkbox” onclick=”checkAll(\’prefix\’, this.form, \’eidarray\’, \’chkall\’)” /><label for=”chkall”>’.cplang(‘select_all’).’</label>’));
showtablefooter();

 

重点注意:

整个表格的宽度和表格中每一列的宽度都必须写最大可能的值,否则悬浮的列表可能和实际的列表不会对齐!

原创文章如转载,请注明:转载自火跃工作室
本文网址:http://www.huoyue.org/discuz-admin-table-fix

日志信息 »

该日志于2014-06-29 14:28由 火跃 发表在discuz分类下, 评论已关闭。

相关日志 »

没有评论

抱歉,评论被关闭