使用单个ID获取图片 - 优化您的图片下载功能
您想要添加一个输入框,以便用户可以输入单个id来获取图片。您可以在代码中添加以下内容:\n\n\n{#if $action == 'down'#}\n <h3 class="title"><em>{#$pagetitle#}</em><span><a href="{#$fileurl#}">返回列表»</a></span></h3>\n <div class="formbox">\n <form name="mform" method="post" action="{#$fileurl#}">\n <table width="100%" border="0" cellspacing="1" cellpadding="0">\n <tr>\n <th>注意事项:</th>\n <td>下载远程图片,将占用一定的服务器资源,请避免在白天流量高峰期时段使用</td>\n <tr>\n <th>输入id:</th>\n <td><input type="text" name="id"></td> <!-- 添加一个输入框 -->\n </tr>\n <tr class="btnbox">\n <th> </th>\n <td colspan="2">\n <input type="button" class="btn" value="下载所有站点图片" onClick="window.location.href='webpic.php?act=down&type=all';"> \n <input type="button" class="btn" value="下载失败图片" onClick="window.location.href='webpic.php?act=down&type=part';"> \n <input type="button" class="btn" value="失效图片检测" onClick="window.location.href='webpic.php?act=check';">\n </td>\n </tr>\n </table>\n </form>\n </div>\n{#/if#}\n\n\n以上代码在表格中添加了一个新的行,其中包含一个输入框,用户可以在此输入框中输入id。
原文地址: https://www.cveoy.top/t/topic/qz3v 著作权归作者所有。请勿转载和采集!