예제 #1
0
 function _getGroupClass()
 {
     require_once R_P . 'apps/groups/lib/groupstyle.class.php';
     $temp = array();
     $groupStyle = new GroupStyle();
     $firstGradeStyleIds = $groupStyle->getFirstGradeStyles();
     $secondGradeStyles = $groupStyle->getGradeStylesByUpid(array_keys($firstGradeStyleIds));
     $temp = array();
     $temp[] = '全部调用';
     foreach ($firstGradeStyleIds as $first) {
         $temp[$first['id']] = '>> ' . strip_tags($first['cname']);
         $tempSecond = isset($secondGradeStyles[$first['id']]) ? $secondGradeStyles[$first['id']] : array();
         $this->_initSecondGradeStyles($temp, $tempSecond);
     }
     return $temp;
 }
예제 #2
0
파일: set.php 프로젝트: jechiy/PHPWind
            pwQuery::delete('pw_colonys', 'id=:id', array($rt[0]));
        }
        pwFtpClose($ftp);
        adminmsg('operate_success', "{$basename}&action=cache");
    }
} elseif ($action == 'level') {
    require_once A_P . 'action/admin_level.php';
} elseif ($action == 'style') {
    S::gp(array('job'));
    require_once R_P . 'apps/groups/lib/groupstyle.class.php';
    $groupStyle = new GroupStyle();
    $allStyles = $allStylesOfOpen = array();
    $allStyles = $groupStyle->getAllStyles();
    $openStyles = $groupStyle->getOpenStyles();
    $firstGradeStyleIds = $groupStyle->getFirstGradeStyleIds();
    $secondGradeStyles = $groupStyle->getGradeStylesByUpid($firstGradeStyleIds);
    if (empty($job)) {
        //列表管理
        if (empty($_POST['step'])) {
            require_once PrintApp('admin');
        } else {
            S::gp(array('selid', 'cname', 'delid', 'new_t_sub_db', 'new_t_sub_view_db', 'vieworder'));
            $newSubStyle = array();
            if ($cname) {
                foreach ($cname as $value) {
                    if (!$value) {
                        adminmsg('群组分类不能为空', "{$basename}&action=style");
                        exit;
                    }
                }
            }