织梦栏目添加英文名称、栏目大图、栏目小图功(2)

<span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'catalog_add.php','save','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>

<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>

<input type='checkbox' class='np' name='ddisremote' value='1'>远程 

</td>

</tr>

</table>

</td>

<td width="160" align="center">

<div id='divpicview' class='divpre'><img height="50" src=https://www.91084.com/"images/pview.gif"></div>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td height="24" colspan="5" class="bline">

<table width="800" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="26" style="padding-left:10px;"> 栏目小图: </td>

<td width="482">

<table width="100%" border="0" cellspacing="1" cellpadding="1">

<tr>

<td height="30">

<input name="litimg" id="litimg" type="text" style="width:220px" value="" />

<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />

<iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>

<span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'divsmallpicview', 'upsmallpicfra', 165, 'catalog_add.php', 'save', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>

<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>

<input type='checkbox' class='np' name='ddisremote2' value='1'>远程 

</td>

</tr>

</table>

</td>

<td width="160" align="center">

<div id='divsmallpicview' class='divpre'><img height="50" src=https://www.91084.com/"images/pview.gif"></div>

</td>

</tr>

</table>

</td>

</tr>

8.2、/dede/templets/catalog_edit.htm 找到

onSubmit="return checkSubmit();"

改成

onSubmit="return checkSubmit();" enctype="multipart/form-data"

继续找到

name="typename"

在它下面的</tr>另起一行插入代码

<script language='javascript' src='js/catalog.js'></script>

<tr>

<td class='bline' height="26" style="padding-left:10px;"> 英文名称: </td>

<td class='bline'>

<input name="enname" id="enname" type="text" size="30" class="iptxt" value=https://www.91084.com/"<?php echo $myrow['enname']?>" />

</td>

</tr>

<tr>

<td height="24" colspan="5" class="bline">

<table width="800" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="26" style="padding-left:10px;"> 栏目大图: </td>

<td width="482">

<table width="100%" border="0" cellspacing="1" cellpadding="1">

<tr>

<td height="30">

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfdzw.html