您想要添加一个输入框,以便用户可以输入单个id来获取图片。您可以在代码中添加以下内容:

{#if $action == 'down'#}
    <h3 class="title"><em>{#$pagetitle#}</em><span><a href="{#$fileurl#}">返回列表&raquo;</a></span></h3>
    <div class="formbox">
        <form name="mform" method="post" action="{#$fileurl#}">
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
                <th>注意事项:</th>
                <td>下载远程图片,将占用一定的服务器资源,请避免在白天流量高峰期时段使用</td>
            <tr>
                <th>输入id:</th>
                <td><input type="text" name="id"></td> <!-- 添加一个输入框 -->
            </tr>
            <tr class="btnbox">
                <th>&nbsp;</th>
                <td colspan="2">
                <input type="button" class="btn" value="下载所有站点图片" onClick="window.location.href='webpic.php?act=down&type=all';">&nbsp;
                <input type="button" class="btn" value="下载失败图片" onClick="window.location.href='webpic.php?act=down&type=part';">&nbsp;
                <input type="button" class="btn" value="失效图片检测" onClick="window.location.href='webpic.php?act=check';">
                </td>
            </tr>
        </table>
        </form>
    </div>
{#/if#}

以上代码在表格中添加了一个新的行,其中包含一个输入框,用户可以在此输入框中输入id


原文地址: http://www.cveoy.top/t/topic/iT39 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录