} $xfile = CMSXML; $sx = simplexml_load_file($xfile); $item = $sx->xpath("//page[@id={$cmsid}]"); $action = WEBROOT . "/cms/admin/content/action.php"; if (!$cms) { $cms = new cmstree('cmsid', CMSXML); } $pid = $cms->get_pid($cmsid); if ($pid != '') { $p = $sx->xpath("//page[@id={$pid}]"); $parent = $p[0]['name']; } else { $parent = "最上層"; } $cms->get_fck(); ?> <!--ajax送出post表單--> <script> $('form').submit(function(){ var v = $('form').serialize(); $.ajax({ type: "POST", url: "<?php echo $action; ?> ", data: v, success: function(msg){ $("#msgbox").html(msg);