
import os
import sys

inws = '/opt/torlite/yunsuan/templates/jshtml'

for wroot ,wdirs, wfiles in os.walk(inws):
    for wfile in wfiles:
        if wfile.endswith('.html'):
            pass
        else:
            continue
        sum_num = 0
        filepath = os.path.join(wroot, wfile)
        for cnt in open(filepath).readlines():
            if '<form' in cnt.lower():
                sum_num += 1
        if sum_num > 1:
            print(filepath)


