<?xml version="1.0" encoding="[$charset]"?>
<tree>
<loop $NodeInfo key=key var=var>
<if $var.haveSon == 1>
  <if $var.NodeType == 1>
    	<tree  text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  src="admin_tree.php?op=sId::[$sId];o::site_xml;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />

  <elseif $var.NodeType == 2>
  	<tree icon="../html/tree/images/xp/folder_2.png" openIcon="../html/tree/images/xp/openfolder_2.png" text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  src="admin_tree.php?op=sId::[$sId];o::site_xml;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />

  <elseif  $var.NodeType == 3>
  	<tree icon="../html/tree/images/xp/folder_3.png" openIcon="../html/tree/images/xp/openfolder_3.png" text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  src="admin_tree.php?op=sId::[$sId];o::site_xml;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />

  </if>
<else>

  <if $var.NodeType == 1>
	  <tree text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />
  <elseif $var.NodeType == 2>
	  <tree icon="../html/tree/images/xp/folder_2.png"   text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />
  <elseif $var.NodeType == 3>
  	<tree icon="../html/tree/images/xp/folder_3.png"  text="[@htmlspecialchars($var.Name)]" action="admin_site.php?op=sId::[$sId];o::edit;NodeID::[$var.NodeID]"  target="panelWork" cId="[$var.NodeID]" />
  </if>


</if>
</loop>
</tree>