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

📄 asdvcontainer.tpl

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 TPL
字号:
<!--Author:HH.Sun-->
{include file="manage.js"}
<form method="post" action=""><span style="color:red">*{$alertw}</span><fieldset class="space">
            <legend><img src="{$logurl}logo.gif" alt="" title="" />{$adadvcontainer}</legend>
            
                <label>{$adadvcontainer}</label>
                <div class="margin-form">
                {$deteminlr}<input type="radio" name='rf' value="l" checked="checked">
                {$leftp}<input type='radio' name='rf' value='r'>{$rightp}</div>
                <div class="margin-form">{$inputadvname}<input type="text" name='adv_name' value='{$alerting}' />                
                </div>
                <fieldset class="space">
               <legend><img src="{$logurl}logo.gif" alt="" title="" />{$childadadvcontainer}</legend>
               <label>{$adadvcontainer}</label>
                <div class="margin-form" name='scrcontainer'><a href="#" onclick="addchildnu(this,1)" title="{$addchild}">[+]</a>
                &nbsp
                <a href="#" onclick="dropchildnu(this)" title="{$deletechild}">[-]</a>
                <input type="radio" name="ctype" value="1" onclick='radiofun(this,1)'>{$mage}
                <input type="radio" name="ctype" value="2" onclick='radiofun(this,1)'>{$lash}
                <input type="radio" name='ctype' value="3" onclick='radiofun(this,1)' checked="checked">{$tttext}<br>
                {$childheight}<input type="text" name="childheight"><br>
                {$childurl} <input type="text" name="childurl"><br>
                <div name='auth'>
                </div>
                <div name='tere' style="display:block">
                <textarea name="showText"></textarea>
                </div>
                </div>
               </fieldset>
            
        </fieldset>
        <input type="submit" value="{$subm}" name='advsubm'>
        </form>
        {literal}
        <script type="text/javascript" src="{/literal}{$editurl}{literal}"></script>
        <script type="text/javascript">
                tinyMCE.init({
                    language :{/literal}'{$iso}',{literal}
                    mode : "textareas",
                    theme : "advanced",
                    elements : "nourlconvert",
                    convert_urls : false,
                    theme_advanced_buttons1 : "bold, italic, underline, fontselect, fontsizeselect,image",
                    theme_advanced_buttons2 : "forecolor, backcolor, separator, justifyleft, justifycenter, justifyright, justifyfull, separator, bullist, numlist, separator, undo, redo, separator, link, unlink, separator, code",
                    theme_advanced_buttons3 : "",
                    theme_advanced_toolbar_location : "top",
                    theme_advanced_toolbar_align : "left",
                    plugins : "contextmenu, directionality, media, paste, preview, safari,advimage",
                    theme_advanced_buttons3_add : "ltr,rtl,pastetext,pasteword,selectall",
                    theme_advanced_buttons1_add : "media,preview",
                    paste_create_paragraphs : false,
                    paste_create_linebreaks : false,
                    paste_use_dialog : true,
                    paste_auto_cleanup_on_paste : true,
                    paste_convert_middot_lists : false,
                    paste_unindented_list_class : "unindentedList",
                    paste_convert_headers_to_strong : true,
                    paste_insert_word_content_callback : "convertWord",
                    plugin_preview_width : "500",
                    plugin_preview_height : "1600",
                    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
                    file_browser_callback : "fileBrowserCallBack" //fjs
                });
                //fjs++
                function fileBrowserCallBack(field_name, url, type, win) 
                {
                var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
                var enableAutoTypeSelection = true;
                
                var cType;
                tinyfck_field = field_name;
                tinyfck = win;
                
                switch (type) {
                    case "image":
                        cType = "Image";
                        break;
                    case "flash":
                        cType = "Flash";
                        break;
                    case "file":
                        cType = "File";
                        break;
                }
                
                if (enableAutoTypeSelection && cType) {
                    connector += "?Type=" + cType;
                }
                
                window.open(connector, "tinyfck", "modal,width=600,height=400");
                }  //fjs++
                function convertWord(type, content)
                {
                    switch (type)
                    {
                        case "before":
                            break;
                        case "after":
                            break;
                    }
                    return content;
                }
                </script>
        {/literal}
        {literal}  
        <script language="javascript">
var global_child = 1;
var global_child_con = 1;
var global_src = new Array();
function addchildnu(obj,val)
{
    global_child += 1;
    global_child_con += 1;
    var re = "addchildnu\\(this,\\d*\\)";
    var re1 = "radiofun\\(this,\\d*\\)";
    var regtext = 'name=\\"showText\\d*';
    var regpty = 'name=\\"ctype\\d*';
    var regph = 'name=\\"childheight';
    var regpu = 'name=\\"childurl';
    prnd = obj.parentNode.parentNode;
    pprnd = prnd.parentNode;
    new_prnd = document.createElement('fieldset');
    remNode = document.createElement('input');
    remNode.setAttribute('id','stype');
    remNode.setAttribute('value',global_child);
    remNode.setAttribute('name','stype');
    remNode.setAttribute('type','hidden');
    inhtm = prnd.innerHTML.replace(new RegExp(re,"gm"),'addchildnu(this,'+global_child+')');
    inhtm = inhtm.replace(new RegExp(re1,"gm"),'radiofun(this,'+global_child+')');
    inhtm = inhtm.replace(new RegExp(regtext,"gm"),'name=\"showText'+global_child);
    inhtm = inhtm.replace(new RegExp(regpty,"gm"),'name=\"ctype'+global_child);
    inhtm = inhtm.replace(new RegExp(regph,"gm"),'name=\"childheight'+global_child);
    inhtm = inhtm.replace(new RegExp(regpu,"gm"),'name=\"childurl'+global_child);
    new_prnd.innerHTML = inhtm;
    new_prnd.appendChild(remNode);
    pprnd.appendChild(new_prnd);
} 
function dropchildnu(obj)
{
    if(global_child_con==1){
    alert('this is the last one!');
    }
    else{
    global_child_con -= 1;
    prnd = obj.parentNode.parentNode;
    pprnd = prnd.parentNode;
    pprnd.removeChild(prnd);
    }
}
function radiofun(obj,val)
{
    var parents = obj.parentNode
    if(obj.checked)
    typevalue = obj.value;
    for(i=0; i<parents.childNodes.length;i++)
    {
        if(typeof parents.childNodes[i].tagName == 'string')
        {
           if(parents.childNodes[i].tagName.toUpperCase()=='DIV'&&parents.childNodes[i].getAttribute('name')=='auth')
            {
                amDiv = parents.childNodes[i];
            };
            if(parents.childNodes[i].tagName.toUpperCase()=='DIV'&&parents.childNodes[i].getAttribute('name')=='tere')
            {
                amText = parents.childNodes[i];
            }
        }
    }
    switch(typevalue)
    {
        case '1': amText.style.display='none';
                   screateHtml = '<div><a href="#" onclick="addsrc(this,'+val+')">[+]</a>'+
                                      '<a href="#" onclick="dropsrc(this,'+val+')">[-]</a>'+
                                      'Image Infomations:<textarea name="imgi'+val+'[]"></textarea><br/>'+
                                      'Image URI: <input type="file" name="image'+val+'[]"><br /></div>';
        break;
        
        case '2': amText.style.display='none'; 
                  screateHtml ='Flash Height:<input type="text" name="flashh'+val+'"><br/>'+ 
                                    'Flash:<input type="file" name="flash'+val+'"><br/>';
        break;
        
        case '3':
        default :  screateHtml ='';
                     amText.style.display='block';
                     
    }
    amDiv.innerHTML = screateHtml;
}
function addsrc(obj,val)
{
    var nwsrc = document.createElement('div');
    nwsrc.innerHTML =  obj.parentNode.innerHTML;
    obj.parentNode.parentNode.appendChild(nwsrc);
}
function dropsrc(obj,val)
{
    obj.parentNode.parentNode.removeChild(obj.parentNode);
}
</script>
  {/literal}

⌨️ 快捷键说明

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