home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 August
/
PCWorld_2001-08_cd.bin
/
Komunikace
/
sambar
/
_setup.1
/
iecreate.stm
< prev
next >
Wrap
Text File
|
2000-10-17
|
8KB
|
271 lines
<HTML>
<HEAD><TITLE>Sambar Server Document Manager</TITLE>
<STYLE>
SELECT {
font:8pt verdana,arial,sans-serif;background:#EEEEFF
}
INPUT {
font:8pt verdana,arial,sans-serif;background:lightgrey
}
.toolbar {
margin-bottom:3pt;height:28;overflow:hidden;background:lightgrey;border:1px black solid
}
.mode LABEL {
font:bold 10pt verdana,geneva,arial,sans-serif
}
.mode .current {
color:darkgreen
}
.heading {
color:navy;background:lightgrey
}
</STYLE>
<script language="JavaScript">
function makeWindow(url)
{
agent = navigator.userAgent;
windowName = "Help";
params = "toolbar=0,location=0,directories=0,status=0,";
params += "menubar=0,scrollbars=1,resizable=1,width=675,";
params += "height=400";
win = window.open(url, windowName , params);
if (agent.indexOf("Mozilla/2") != -1 &&
agent.indexOf("Win") == -1)
{
win = window.open(url, windowName , params);
}
if (!win.opener)
win.opener = window;
}
function insertCode(what)
{
var sel = ieCreate.document.selection;
if (what == "Line")
{
what = "<HR>";
}
else if (what == "Return")
{
what = "<BR>";
}
else
{
opt = prompt("Enter the image source.", "");
what = "<IMG SRC=\"" + opt + "\">";
}
if (sel != null)
{
var rng = sel.createRange();
if (rng != null)
{
rng.pasteHTML(what);
document.forms[0].save.disabled=false;
}
}
}
function formatCode(cmd, opt)
{
if (opt == 'removeFormat')
{
cmd = opt;
opt = null;
}
if (opt=="CustomFont")
opt = prompt("Enter the font face:", "Geneva, Arial");
if ((opt=="") && (cmd=="forecolor"))
opt = prompt("Color to format text?", "Black");
if (opt == null)
ieCreate.document.execCommand(cmd);
else
ieCreate.document.execCommand(cmd,'',opt);
document.forms[0].save.disabled=false;
ieCreate.focus();
}
function createLink()
{
var str = prompt("Where do you wish to link to?",
"http:\/\/www.sambar.com");
if ((str != null) && (str != "http://"))
{
if (ieCreate.document.selection.type=="None")
{
var sel=ieCreate.document.selection.createRange();
sel.pasteHTML("<A HREF=\"" + str +
"\">" + str + "</A> ");
sel.select();
document.forms[0].save.disabled=false;
}
else
{
formatCode("CreateLink",str);
}
}
else
{
ieCreate.focus();
}
}
</script>
</HEAD>
<BODY ONLOAD="ieCreate.document.designMode='On';" STYLE="CURSOR: default; MARGIN:0pt; PADDING:2pt">
<center><FONT SIZE=6>Sambar Server Document Manager</FONT>
<P>
<TABLE border=0 cellspacing=8>
<TR><TD>
<br>
<B><FONT SIZE=+2 COLOR=#000088>IE New File</FONT></B><BR>
<BR>
<TABLE WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<TABLE border=0 cellpadding=0 cellspacing=4>
<TR><TD><B>Directory</B></TD><TD><FONT SIZE=+1><I><RC$path></I></FONT></TD></TR>
</TABLE>
</TD>
</TR>
<TR>
<TD NOWRAP>
<TABLE ID=tb1 class=toolbar CELLSPACING=2 CELLPADDING=0 STYLE="padding-top: 1pt;margin-bottom: 2pt">
<TR><TD VALIGN="MIDDLE" NOWRAP>
<SELECT ONCHANGE="insertCode(this[this.selectedIndex].text);this.selectedIndex=0">
<OPTION CLASS=heading>Insert
<OPTION>Line
<OPTION>Return
<OPTION>Image
</SELECT>
<SELECT ONCHANGE="formatCode('formatBlock',this[this.selectedIndex].value);this.selectedIndex=0">
<OPTION CLASS=heading SELECTED>Paragraph
<OPTION VALUE="<P>">Normal <P>
<OPTION VALUE="<H1>">Heading 1 <H1>
<OPTION VALUE="<H2>">Heading 2 <H2>
<OPTION VALUE="<H3>">Heading 3 <H3>
<OPTION VALUE="<H4>">Heading 4 <H4>
<OPTION VALUE="<H5>">Heading 5 <H5>
<OPTION VALUE="<H6>">Heading 6 <H6>
<OPTION VALUE="<PRE>">Pre <PRE>
<OPTION VALUE="removeFormat" STYLE="color: navy">Clear Formatting
</SELECT>
<SELECT ONCHANGE="formatCode('fontname',this[this.selectedIndex].value);this.selectedIndex=0">
<OPTION CLASS=heading SELECTED>Font
<OPTION VALUE="geneva,arial,sans-serif">Arial
<OPTION VALUE="verdana,geneva,arial,sans-serif">Verdana
<OPTION VALUE="times,serif">Times
<OPTION VALUE="courier, monospace">Courier
<OPTION STYLE="color: navy" VALUE="CustomFont">Custom...
</SELECT>
<SELECT ONCHANGE="formatCode('fontSize',this[this.selectedIndex].text);this.selectedIndex=0">
<OPTION CLASS=heading>Size
<OPTION>1
<OPTION>2
<OPTION>3
<OPTION>4
<OPTION>5
<OPTION>6
<OPTION>7
</SELECT>
<SELECT ONCHANGE="formatCode('forecolor',this[this.selectedIndex].style.color);this.selectedIndex=0">
<OPTION CLASS=heading SELECTED>Color
<OPTION STYLE="color: Aqua">Aqua
<OPTION STYLE="color: Black">Black
<OPTION STYLE="color: Blue">Blue
<OPTION STYLE="color: DarkRed">Dark Red
<OPTION STYLE="color: darkgreen">Dark Green
<OPTION STYLE="color: Fuchsia">Fuchsia
<OPTION STYLE="color: Gray">Gray
<OPTION STYLE="color: Green">Green
<OPTION STYLE="color: Lime">Lime
<OPTION STYLE="color: Maroon">Maroon
<OPTION STYLE="color: navy">Navy
<OPTION STYLE="color: Olive">Olive
<OPTION STYLE="color: Purple">Purple
<OPTION STYLE="color: Red">Red
<OPTION STYLE="color: Silver">Silver
<OPTION STYLE="color: Teal">Teal
<OPTION STYLE="color: White">White
<OPTION STYLE="color: Yellow">Yellow
<OPTION>Custom...
</SELECT>
</TD>
<TD VALIGN="MIDDLE" NOWRAP>
<DIV class=toolbar STYLE="width:270;border:0;top:0;height:26" ONSELECTSTART="return false" ONDRAGSTART="return false">
<SCRIPT FOR="EditCtrl" EVENT="ShowContextMenu(xPos, yPos)">//important</SCRIPT>
<script language="JavaScript">
var buttons=new Array(24,23,23,4,23,23,23,4,23,23,23,23,4,24);
var action=new Array("bold","italic","underline","","justifyleft","justifycenter","justifyright","","insertorderedlist","insertunorderedlist","outdent","indent","","createLink");
var tooltip=new Array("Bold Text","Italic Text","Underline Text","","Left Justify","Center Justify","Right Justify","","Ordered List","Unordered List","Remove Indent","Indent","","Create Hyperlink");
var left=0;
var s="";
for (var i=0;i<buttons.length;i++)
{
s+="<SPAN STYLE='position:relative;height:26;width: " + buttons[i] + "'><SPAN STYLE='position:absolute;margin:0px;padding:0;height:26;top:0;left:0;width:" + (buttons[i]) + ";clip:rect(0 "+buttons[i]+" 25 "+0+");overflow:hidden'><IMG BORDER=0 SRC='/sysimage/system/toolbar.gif' STYLE='position:absolute;top:0;left:-" + left + "' WIDTH=267 HEIGHT=50";
if (buttons[i]!=4)
{
s+=" onmouseover='this.style.top=-25' onmouseout='this.style.top=0' ONCLICK=\"";
if (action[i]!="createLink") {
s+="formatCode('" + action[i] + "');this.style.top=0\" ";
} else {
s+="createLink();this.style.top=0\" ";
}
s+="TITLE=\"" + tooltip[i] + "\"";
}
s+="></SPAN></SPAN>";
left+=buttons[i];
}
document.write(s + "</DIV>")
</script>
</TD>
</TR>
</TABLE>
</TD></TR>
<TR><TD NOWRAP>
<IFRAME ID="ieCreate" SRC="/sysuser/docmgr/template/<RC$template>" WIDTH=705 HEIGHT=380></IFRAME>
</TD></TR>
<TR><TD NOWRAP>
<BR>
<FORM NAME="formSave" ONSUBMIT="document.formSave.upfile.value=ieCreate.document.all[0].outerHTML; document.forms[0].save.disabled=true;" METHOD="post" ACTION="/session/dm-create">
<BR>
<B>File</B> <input type=text name="name" value="new.htm" size=40><BR>
<I>(Note: File name may not contain spaces!)</I><BR>
<INPUT TYPE="submit" NAME="save" VALUE="Create" ONCLICK="document.forms[0].save.value='Creating... Please Wait';">
<SCRIPT LANGUAGE="JavaScript"> document.forms[0].save.disabled=true; </SCRIPT>
<INPUT TYPE="hidden" name="home" value="<RCSbrowse>">
<INPUT TYPE="hidden" name="root" value="<RCPdir>">
<INPUT TYPE="hidden" NAME="path" VALUE="<RC@txt2html(RC$path)>">
<INPUT TYPE="hidden" NAME="upfile">
</FORM>
<BR>
Return to browsing:
<A HREF="<RCSbrowse>/browse.stm?path=<RC@urlescape(RC$path)>"><RC$path></A>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</BODY>
</HTML>