Last Update:2014-12-23
Source: Internet
Author: User
Keywords
Backstage
DEDECMS
Authorization mode
In the use of DEDECMS software model process, according to their own needs may change the software type, interface language, licensing methods and so on information, here need to change two template files to meet our requirements:
1, template file location:
\dede\templets\soft_add.htm \dede\templets\soft_edit.htm
2, modify the above two template file code:
<tr>&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; <td height=" 24 " colspan= "4" class= "Bline" ><table width= " border=" 0 " cellspacing=" 0 " cellpadding= "0" > <tr> <td width= >&nbsp; Software Type:</td> <td width= "130" > <select name= "Softtype" id= "Softtype" style= "width:100" > <?php if ($addRow ["Softtype"]!= "] echo " <option value=\ "". $addRow ["Softtype"]. " \ > $addRow ["Softtype"]. " </option>\r\n "; ?> <option value= "domestic software" > domestic software </option> <option value= "foreign software" > Foreign software </ Option> <option value= "Chinese patch" > Chinese patch </option> </select></td> <td width= ": </td> " > Interface language <td width= "130" ><select name= "language" id= "language" style= "width:100" > <?php &nbsP; if ($addRow ["Language"]!= ") echo " <option value=\ "". $addRow ["Language"]. " \ > $addRow ["Language"]. " </option>\r\n "; ?> <option value= "115.html" > Simplified Chinese > Simplified Chinese </ Option> <option value= "English software" > English software </option> <option value= "Traditional Chinese" > Traditional Chinese </option> <option value= "Other Types" > Other types </option> </select></td> <td width= > Authorized way: </TD>&NBSP;&NBSP;&NBSP;&NBSP;&Nbsp; <td> <select name= "accredit" id= "accredit" style= "width:100" > <?php if ($addRow ["Accredit"]!= "") echo "<option value=\ "". $addRow ["Accredit"]. " \ > $addRow ["Accredit"]. " </option>\r\n "; ?> <option value= shared software > Shareware </ Option> <option value= free software > free software </option> <option value="Open source Software" > Open source software </option> <option value= "commercial software" > Business software </option> <option value= "Cracking software" > cracking software </option> <option value= " Game Plug > Games Plug </option> < /select> </td> </tr> </table></td></tr>
You can make changes according to your own needs, and so on. This is the result of the change of wind Letter network, screenshot as follows: