婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > dedecms織夢后臺美化修改自定義表單列表樣式

dedecms織夢后臺美化修改自定義表單列表樣式

POST TIME:2021-05-23 02:59

Dedecms有自定義表單功能,方便我們收集用戶信息。但是如果使用過這個功能的朋友就會知道,織夢這個自定義表單后臺列表樣式真的不好看。

 

我們修改后的樣式如下,看起來是不是更簡潔清爽了呢!

 

下面修改/你的網站后臺(默認dede)/templets/diy_list.htm文件,全部代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
 <title><?php echo $diy->name;?></title>
 <link rel="nofollow" href="css/base.css" rel="stylesheet" type="text/css" />
 </head>
 <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
 <div class="bodytitle">
     <div class="bodytitleleft"></div>
     <div class="bodytitletxt" style="padding-left:10px;"><?php echo $diy->name;?>內容列表</div>
 </div>
 <form action="diy_list.php" method="post">
 <input type="hidden" name="diyid" value="<?php echo $diyid;?>" />
 <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
 <tr>
     <td colspan="3" height="28" background='images/tbg.gif'>
     <div style='float:left'>&nbsp;<a rel="nofollow" href='diy_main.php'><b>自定義表單管理</b></a> &gt; <b>內容列表</b></div>
     <div style='float:right;padding-right:8px;'>
         <a rel="nofollow" href="../plus/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><img src='images/gtk-tmp.png' align='left' title="預覽" alt="預覽" /><u>前臺預覽</u></a>
     </div>
     </td>
 </tr>
 <tr><td colspan="3" bgcolor="#ffffff">
 <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
 <tr style="text-align:center;background:#FDE48E;"><td>id</td><td>審核</td><td>姓名</td><td>QQ</td><td>電話</td><td>留言內容</td><td>留言時間</td><td>操作</td></tr>
 <style>
 .msgfocus{ background:#F8FDE3;
 } .msgfocus:hover{ background:#D6EC7E;
 } </style>
 {dede:datalist} <?php
 if(!empty($fields))
 {$allowhtml = array('htmltext');
 $fields['sta'] = $fields['ifcheck'] == 1 ? '已審核' : '未審核'; ?>
 
 <tr style="text-align:center;" class="msgfocus"><td><input type="checkbox" name="id[]" value="<?php echo $fields['id']?>" class="np" /><?php echo $fields['id']?></td><td><?php echo $fields['sta']?></td><td><?php echo $fields['name']?></td><td><?php echo $fields['qq']?></td><td><?php echo $fields['tel']?></td><td style="width:50%;text-align:left;"><?php echo $fields['message']?></td><td><?php echo $fields['times']?></td><td><a rel="nofollow" href="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $fields['id']?>"><img src="images/feedback-edit.gif" border="0" width="45" height="18"></a></td></tr>
 
 <?php
 } else
 {    echo "<tr><td bgcolor="#ffffff">暫無記錄</td></tr>";
 } ?>
 {/dede:datalist} </table>
 </td></tr>
 <tr><td colspan="3" bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr>
 <tr>
 <td colspan="3" height='36' align="center" bgcolor="#F8FCF1">
     <label><input type="radio" name="action" value="check" class='np' />審核</label>
     <label><input type="radio" name="action" value="delete"  class='np' />刪除</label>
     &nbsp;&nbsp;     <input type="submit" name="submit" value="提交" class='np coolbg' />
 </td>
 </tr>
 </table>
 </form>
 </body>
 </html>



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 旬邑县| 嘉定区| 宝坻区| 铁力市| 西充县| 蒙城县| 海口市| 盐亭县| 汶上县| 新化县| 晋城| 奈曼旗| 滦南县| 黔南| 景德镇市| 南丹县| 溧水县| 辰溪县| 松阳县| 如皋市| 峨眉山市| 新余市| 贡觉县| 洛宁县| 界首市| 衡阳市| 潮安县| 犍为县| 青铜峡市| 出国| 涟水县| 藁城市| 东光县| 伊宁县| 时尚| 汶上县| 三原县| 新乐市| 和龙市| 瓮安县| 澎湖县|