我想把下载地址改成下拉菜单的形式,但是又不想去改下载地址模板,那么就只能用自定义标签了,我写了下面自定义函数(userfun.php中),但是好像用不了,请高手指点一下。万分感激。
function user_mydownpath($ecms) {global $empire,$public_r,$class_r,$navinfor; $rr=explode("\r\n",$navinfor['downpath']); $count=count($rr); if(empty($count)) { return ""; } ?> <form name="form1" method="get" onsubmit="javascript:return list();" action="/e/DownSys/GetDown?classid=[!--classid--]&id=[!--id--]&pathid=[!--pathid--]"> <input type=hidden name=classid value="<?=$navinfor[classid]?>"> <input type=hidden name=id value="<?=$navinfor[id]?>"> <input type=hidden name=title value="<?=$navinfor[title]?>"> <? for($i=0;$i<$count;$i++) { $fr=explode(",",$rr[$i]); $pathname=$fr[0]; ?> <select name="select"> <option><?=$pathname?></option> </select> <input type="submit" name="Submit4" value="Order Now"> <? } ?> </form> <? }
|