示例#1
0
function handleArticleListStyleOrInfoStyle($folderName, $InputName, $ThisValue)
{
    $ResourceDir = '';
    $content = '';
    $c = '';
    $splStr = '';
    $fileName = '';
    $sel = '';
    //ResourceDir = GetWebSkins() & "\Index\"& FolderName &"\"
    $ResourceDir = getWebImages() . '\\' . $folderName . '\\';
    $content = getFileFolderList($ResourceDir, true, 'html', '名称', '', '', '');
    $ThisValue = lCase($ThisValue);
    //转成小写 好对比
    $c = $c . '  <select name="' . $InputName . '" id="' . $InputName . '">' . vbCrlf();
    $c = $c . '    <option value=""></option>' . vbCrlf();
    $splStr = aspSplit($content, vbCrlf());
    foreach ($splStr as $key => $fileName) {
        if ($fileName != '') {
            $sel = IIF(lCase($fileName) == $ThisValue, ' selected', '');
            $c = $c . '    <option value="' . $fileName . '"' . $sel . '>' . $fileName . '</option>' . vbCrlf();
        }
    }
    $c = $c . '  </select>' . vbCrlf();
    $handleArticleListStyleOrInfoStyle = $c;
    return @$handleArticleListStyleOrInfoStyle;
}
示例#2
0
function makeHtmlWebToZip($webDir)
{
    $content = '';
    $splStr = '';
    $filePath = '';
    $c = '';
    $fileArray = '';
    $fileName = '';
    $fileType = '';
    $isTrue = '';
    $webFolderName = '';
    $cleanFileList = '';
    $splStr = aspSplit($webDir, '/');
    $webFolderName = $splStr[2];
    //call eerr(webFolderName,webDir)
    $content = getFileFolderList($webDir, true, '全部', '', '全部文件夹', '', '');
    $splStr = aspSplit($content, vbCrlf());
    foreach ($splStr as $key => $filePath) {
        if (CheckFolder($filePath) == false) {
            $fileArray = handleFilePathArray($filePath);
            $fileName = lCase($fileArray[2]);
            $fileType = lCase($fileArray[4]);
            $fileName = remoteNumber($fileName);
            $isTrue = true;
            if (inStr('|' . $cleanFileList . '|', '|' . $fileName . '|') > 0 && $fileType == 'html') {
                $isTrue = false;
            }
            if ($isTrue == true) {
                //call echo(fileType,fileName)
                if ($c != '') {
                    $c = $c . '|';
                }
                $c = $c . replace($filePath, HandlePath('/'), '');
                $cleanFileList = $cleanFileList . $fileName . '|';
            }
        }
    }
    Rw($c);
    $c = $c . '|||||';
    createFileGBK('htmlweb/1.txt', $c);
    aspEcho('<hr>cccccccccccc', $c);
    //先判断这个文件存在20160309
    if (CheckFile('/myZIP.php') == true) {
        aspEcho('', XMLPost(getHost() . '/myZIP.php?webFolderName=' . $webFolderName, 'content=' . escape($c)));
    }
}
示例#3
0
function getDirAllFolderNameList($folderPath)
{
    return getFileFolderList($folderPath, '', '|处理文件夹|循环文件夹|文件夹名称|');
}