<script src="script/my_lightbox.js" language="javascript"></script>
<script language="javascript"> 
function change()
{
	var el= document.getElementsByTagName('input');     
	var len = el.length;     
	for(var i=0; i<len; i++)     
	{         
		if((el[i].type=="checkbox")&&(el[i].checked==false))        
		{ 
			el[i].checked=true; 
			el[i].value="2";
		}    
	} 
}
</script>
<div class="admin_right_top"><{$lang.shop_set}></div>
<form action="" method="post" enctype="multipart/form-data">
<table class="admin_table">
    <tr>
        <td class="td" width="20%"><{$lang.menu_t}></td>
        <td>
            <table>
            <tr> 
                <td width="20"></td>
                <td><{$lang.order_s}></td>
                <td><{$lang.titles}></td>
            </tr>
            <{foreach item=list key=num  from=$shopconfig.menu}>
            <tr> 
                <td><input name="menu_show[]" type="checkbox"  value="1" <{if $list.menu_show=='1'}>checked<{/if}>></td>
                <td>
                    <{if $have_set}>
                    <input name="menu_order[]" class="w50" type="text" value="<{$list.menu_order}>"  size="5" maxlength="3" >
                    <{else}>
                    <input name="menu_order[]" class="w50"  type="text" value="<{$num}>"  size="5" maxlength="3" >
                    <{/if}>
                </td>
                <td>
                    <input name="menu_name[]" type="text" value="<{$list.menu_name}>"  size="20" maxlength="100" >
                    <input name="menu_link[]" type="hidden" value="<{$list.menu_link}>">
                    <input name="module[]" type="hidden" value="<{$list.module}>">
                </td>
            </tr>
            <{/foreach}>
            </table>
        </td>
    </tr>
    <tr>
        <td><{$lang.styleimage}></td>
        <td>
            <input name="styleimg" type="text" id="styleimg" value="<{$shopconfig.styleimg}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','styleimg')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('styleimg');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('styleimg');"><{$lang.delete}></a>]
            </p>
        </td>
    </tr>
    <tr>
        <td><{$lang.head_img}></td>
        <td>
            <input name="headimage" type="text" id="headimage" value="<{$shopconfig.headimage}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','headimage')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('headimage');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('headimage');"><{$lang.delete}></a>]
            </p>
        </td>
    </tr>
    <tr>
        <td><{$lang.advscon}></td>
        <td>
            <input name="flash[]" type="text" id="flash1" value="<{$shopconfig.flash.0}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','flash1')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('flash1');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('flash1');"><{$lang.delete}></a>]
            </p>
            <input name="flash[]" type="text" id="flash2" value="<{$shopconfig.flash.1}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','flash2')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('flash2');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('flash2');"><{$lang.delete}></a>]<br />
            </p>
            <input name="flash[]" type="text" id="flash3" value="<{$shopconfig.flash.2}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','flash3')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('flash3');"><{$lang.preview}></a>]
            [<a onclick="javascript:delet_pic('flash3');" href="#"><{$lang.delete}></a>]<br />
            </p>
            <input name="flash[]" type="text" id="flash4" value="<{$shopconfig.flash.3}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','flash4')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('flash4');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('flash4');"><{$lang.delete}></a>]<br />
            </p>
            <input name="flash[]" type="text" id="flash5" value="<{$shopconfig.flash.4}>" size="60">
            <p>
            [<a href="javascript:uploadfile('Style images','flash5')"><{$lang.upload}></a>] 
            [<a href="javascript:preview('flash5');"><{$lang.preview}></a>]
            [<a href="javascript:delet_pic('flash5');"><{$lang.delete}></a>]
            </p>
        </td>
    </tr>
    <tr>
        <td><{$lang.com_title}> </td>
        <td>
        <input name="hometitle" type="text" id="hometitle" size="70" maxlength="100" value="<{$shopconfig.hometitle}>">
        <p><{$lang.no_title}></p></td>
    </tr>
    <tr>
        <td><{$lang.kw}></td>
        <td>
        <input name="homekeyword" type="text" id="homekeyword" size="70" maxlength="100" value="<{$shopconfig.homekeyword}>">
        <p><{$lang.no_title}></p></td>
        </tr>
    <tr>
        <td><{$lang.sitedes}></td>
        <td>
        <input name="homedes" type="text" id="homedes" size="70" maxlength="100" value="<{$shopconfig.homedes}>">
        <p><{$lang.no_title}></p></td>
    </tr>
    <tr> 
    	<td colspan="4"><input type="submit" name="sconfig" id="sconfig" value="<{$lang.submit}>" onclick="change();"></td>
    </tr>
</table>
</form>