ææ¶åå 为ç½ç«åè½éæ±ï¼æ们éè¦ä¸ºç»æ¢¦ç¨åºçæ ç®é¡µæ·»å 缩ç¥å¾åè½ï¼è¿éæä¸ä¸ªæ ç®æ·»å 缩ç¥å¾çæ¹æ³ï¼ä¾å¤§å®¶åèã
æ¶åå°æ件å¦ä¸ï¼æ³¨æå¤ä»½ï¼ï¼
dede/catalog_add.php
dede/catalog_edit.php
dede/templets/catalog_add.htm
dede/templets/catalog_edit.htm
æå¼æ件夹templetsè¿ä¸ªç®å½ï¼å¨éé¢æ°å»ºä¸ä¸ªæ件夹typeimgï¼ç¨äºç¬ç«åæ¾æ ç®ç¼©ç¥å¾
æ°å å段 typeimg
åå°æ§è¡SQLï¼åç¼é»è®¤ä¸ºdede_ å
·ä½åç¼æ ¹æ®èªå·±ç½ç«ä¿®æ¹ï¼ï¼
alter table `dede_arctype` add `typeimg` char(100) NOT NULL default '';
æå¼dede/catalog_add.phpï¼æ¥æ¾ï¼
$queryTemplate = "insert into `dede_arctype`
å°ï¼
(reid,topid,sortrank,typename,typedir,
æ¿æ¢ä¸ºï¼
(reid,topid,sortrank,typename,typedir,typeimg,
å°ï¼
('~reid~','~topid~','~rank~','~typename~','~typedir~',
æ¿æ¢ä¸ºï¼
('~reid~','~topid~','~rank~','~typename~','~typedir~','~typeimg~',
æå¼dede/catalog_edit.php
æ¥æ¾ï¼
$upquery = "Update `dede_arctype` set
å¨å
¶ä¸é¢æ°å ä¸è¡
`typeimg`='$typeimg',
æå¼dede/templets/catalog_add.htm æ¥æ¾
<tr>
<td height="26">å表å½åè§åï¼</td>
<td>
<input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" class="pubinputs" style="width:250px" />
<img src="img/help.gif" alt="帮å©" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/></td>
</tr>
å¨å
¶ä¸é¢å¢å 以ä¸å
容ï¼
<tr>
<td height="65">æ ç®å¾çï¼</td>
<td>
<input name="typeimg" type="text" style="width:250px" id="typeimg" class="alltxt" value="" />
<input type="button" name="set9" value="æµè§... "class="coolbg np" style="width:60px" onClick="SelectTemplets('form1.typeimg&activepath=%2Ftemplets%2Ftypeimg&img=yes');" />
(æ ç®æ¨¡æ¿éç¨{dede:field.typeimg /}è°ç¨)
</td>
</tr>
æå¼dede/templets/catalog_edit.htm æ¥æ¾
<tr>
<td height="26">å表å½åè§åï¼</td>
<td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" class="iptxt" />
<img src="img/help.gif" alt="帮å©" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/></td>
</tr>
å¨å
¶ä¸é¢æ°å¢ä»¥ä¸å
容ï¼
<tr>
<td height="65">æ ç®å¾çï¼</td>
<td>
<input name="typeimg" type="text" style="width:250px" id="typeimg" class="alltxt" value="<?php echo $myrow['typeimg']?>" />
<input type="button" name="set9" value="æµè§... "class="coolbg np" style="width:60px" onClick="SelectImages('form1.typeimg&activepath=%2Ftemplets%2Ftypeimg&img=yes');" />
(æ ç®æ¨¡æ¿éç¨{dede:field.typeimg /}è°ç¨)
</td>
</tr>
å®æï¼
æ·»å æä¿®æ¹å¾çæ¶å¨ æ ç®ç®¡çãé«çº§é项ä¸ä¼ å³å¯ã