function readArticleInfoStyleSource($id)
{
    $filePath = '';
    $filePath = getWebImages() . '\\文章信息展示样式\\' . $id;
    if (CheckFile($filePath) == false) {
        $filePath = $GLOBALS['webTemplate'] . '\\Resources\\' . $id;
    }
    $readArticleInfoStyleSource = readTemplateFileSource($filePath, $id);
    return @$readArticleInfoStyleSource;
}
Exemple #2
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;
}