Skip to main content
 Web开发网 » 站长学院 » 织梦教程

织梦软件模型手动指定地址增加选取本地

2020年09月12日6080百度已收录

最终效果

织梦软件模型手动指定地址增加选取本地  第1张

 

实现教程

1、打开 /dede/templets/soft_add.htm 找到

 

<input type='text' name='servermsg"+startNum+"' style='width:150px' />

 

在它后面加入

 

 <input name=\&;sel1\&; id=\&;sel1\&; value=\&;选取\&; onclick=\&;SelectSoft('form1.softurl"+startNum+"')\&; type=\&;button\&;>

 

如图

 

织梦软件模型手动指定地址增加选取本地  第2张


 

2、打开 /dede/templets/soft_edit.htm 找到

 

<input type='text' name='servermsg"+startNum+"' style='width:150px' />

 

在它后面加入

 

 <input name=\&;sel1\&; id=\&;sel1\&; value=\&;选取\&; onclick=\&;SelectSoft('form1.softurl"+startNum+"')\&; type=\&;button\&;>

 

如图


织梦软件模型手动指定地址增加选取本地  第3张

 

3、打开 /dede/soft_edit.php 找到

 

else $needmsg = '<input name="sel1" type="button" id="sel1" value="选取" onClick="SelectSoft(\&;form1.softurl'.$newRowStart.'\&;)" />';

 

删除这一行或者注释这一行

 

继续找到

 

<input type='hidden' name='islocal{$newRowStart}' value='{$islocal}' />

 

在它后面加入

 

 <input name=\&;sel1\&; id=\&;sel1\&; value=\&;选取\&; onclick=\&;SelectSoft('form1.softurl{$newRowStart}')\&; type=\&;button\&;>

 

如图


 

织梦软件模型手动指定地址增加选取本地  第4张

 

完成,刷新后台看效果。


 

评论列表暂无评论
发表评论
微信