loadmain.php

来自「开源的 库存管理系统 www.minierp.cn php+ mysql」· PHP 代码 · 共 59 行

PHP
59
字号
<?phpfunction load_app_main_menu(){   $mfile="themes/aqua/main_menu.xml";      $sfile="themes/aqua/main_menu.xsl";   $teobj=transdoc($mfile,$sfile);   return $teobj;}function load_app_toplink(){   $mfile="themes/aqua/toplink.xml";   $sfile="themes/aqua/toplink.xsl";   $teobj=transdoc($mfile,$sfile);   return $teobj;}function load_app_logo(){  echo '<div align="top"><a href="http://www.mzsoft.cn"><img src="themes/images/mini.gif" alt="minierp" border="0"></a> <img src="themes/images/jxc.gif" alt="minierp" border="0"></div>';}function load_app_sub_menu(){   $mfile="themes/aqua/sub_menu.xml";   $sfile="themes/aqua/sub_menu.xsl";   $teobj=transdoc($mfile,$sfile);   return $teobj;}function load_app_main_foot(){   $mfile="themes/aqua/sub_menu.xml";   $sfile="themes/aqua/sub_menu.xsl";   $teobj=transdoc($mfile,$sfile);   return $teobj;}function transdoc($mfile,$sfile){   $xmlfile=$mfile;   $xslfile=$sfile;    $xmldoc =new DomDocument();   $xsldoc =new DomDocument();   $xmldoc->async = false;   $xsldoc->async = false;   $xmldoc->load($xmlfile);   $tmpnodes=$xmldoc->documentElement;   //alert(tmpnodes);   if (tmpnodes==null)   {	 return null;   };   $xsldoc->load($xslfile);     $proc = new XSLTProcessor;   $proc->importStyleSheet($xsldoc);   return $proc->transformToXML($xmldoc);}?>

⌨️ 快捷键说明

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