Exemplo n.º 1
0
 if ($dopost == "GetSunListsMenu") {
     $userChannel = $cuserLogin->getUserChannel();
     require_once DEDEINC . "/typeunit.class.menu.php";
     AjaxHead();
     PutCookie('lastCidMenu', $cid, 3600 * 24, "/");
     $tu = new TypeUnit($userChannel);
     $tu->LogicListAllSunType($cid, " ");
 } else {
     if ($dopost == "GetSunLists") {
         require_once DEDEINC . "/typeunit.class.admin.php";
         AjaxHead();
         PutCookie('lastCid', $cid, 3600 * 24, "/");
         $tu = new TypeUnit();
         $tu->dsql = $dsql;
         echo "    <table width='100%' border='0' cellspacing='0' cellpadding='0'>\r\n";
         $tu->LogicListAllSunType($cid, " ");
         echo "    </table>\r\n";
         $tu->Close();
     } else {
         if ($dopost == 'unitCatalog') {
             CheckPurview('t_Move');
             require_once DEDEINC . '/oxwindow.class.php';
             require_once DEDEINC . '/typelink.class.php';
             require_once DEDEINC . '/channelunit.func.php';
             if (empty($nextjob)) {
                 $typeid = isset($typeid) ? intval($typeid) : 0;
                 $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctype` WHERE reid='{$typeid}' ");
                 $tl = new TypeLink($typeid);
                 $typename = $tl->TypeInfos['typename'];
                 $reid = $tl->TypeInfos['reid'];
                 $channelid = $tl->TypeInfos['channeltype'];