⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contview.ssc

📁 PowerBuilder8.0开发分散式应用所帶的例程
💻 SSC
字号:
<!--SCRIPT PSOBJMOD
    import( site.GetRootDocument().location + "/ObjMod80.ssc" );
    session.active = true;
    InitObjects(session);
-->
<!--SCRIPT // {{ SCRIPT()
/* Import some utilities */
var webRoot = site.GetRootDocument();
import ( webRoot.location + '/system/utils/prepstr.ssc' );
import ( webRoot.location + '/system/utils/selicon.ssc' );
import ( webRoot.location + '/system/utils/strtable.ssc' );

var contents;
var currDoc;
var parentDoc;
var i;
var isFolder;
var sysDoc;
var items = 0;
var scriptName;

scriptName = document.GetServerVariable( "SCRIPT_NAME" );
if( scriptName.indexOf( "DyIsA" ) != -1 ) {
    // request was originally filtered by ISAPI
    scriptName = "";
}

document.writeln( '<HTML>' );
document.writeln( '<TITLE>' + IntlStr.webSiteContents + '</TITLE>' );
document.writeln( '<BODY bgcolor="#ffffff">' );
document.writeln( '<H1>' + IntlStr.webSiteContents + '</H1>' );
document.writeln( '<H2>' + formatString( IntlStr.currentDir, document.location ) + '</H2>' );
document.writeln( '<HR>' );
document.writeln( '<TABLE>' );
document.writeln( '<TH align=left width=250>' + IntlStr.nameHeading + '</TH>' );
document.writeln( '<TH align=left width=200>' + IntlStr.connectHeading + '</TH>' );
document.writeln( '<TH align=left with=60>' + IntlStr.sizeHeading + '</TH>' );
document.writeln( '<TH align=left>' + IntlStr.commentHeading + '</TH>' );

/* Provide a way to move up the directory structure */

parentDoc = document.parent;
if( parentDoc != null ) {
  document.write( '<TR><TD><A HREF="' );
  document.write( scriptName );
  document.write( parentDoc.location );
  document.writeln( '"><IMG SRC=' + scriptName + webRoot.location + '/system/updir.gif BORDER=0></A></TD></TR>' );
}

/* Display the contents of the directory */

contents = document.GetDirectory();
for( i in contents ) {
  items++;
  currDoc = contents[i];
  document.write( '<TR>' );
  document.write( '<TD>' );
  isFolder = ( currDoc.type == 'directory' || currDoc.type == 'directorylink' );
  document.write( '<A HREF="' + scriptName + escape( currDoc.location ) + '"><IMG SRC="'
    + scriptName + webRoot.location + '/system/' );
  SelectIcon( currDoc.type );
  document.write( '" BORDER=0>' + currDoc.name + '</A>' );
  document.writeln( '</TD><TD>'
    + PreprocessString( currDoc.connectionName ) + '</TD><TD>' );
  if( !isFolder ) {
    document.writeln( currDoc.size );
  }
  document.writeln( '</TD><TD>' + currDoc.description + '</TD></TR>' );
}
document.writeln( '</TABLE><HR>' + items + ' ' + IntlStr.items );
document.writeln( '</BODY></HTML>' );
// }}
-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -