当前位置: 首页>>代码示例>>PHP>>正文


PHP GetList函数代码示例

本文整理汇总了PHP中GetList函数的典型用法代码示例。如果您正苦于以下问题:PHP GetList函数的具体用法?PHP GetList怎么用?PHP GetList使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetList函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: popup

function popup()
{
    $button = button("{add_mailman}", "AddMailManList()");
    $list = GetList();
    $html = "\n\t<div style='width:100%;text-align:right;padding:5px'>{$button}</div>\n\t<div style='width:99%;height:120px;overflow:auto' id='mailman_lists_div'>\n\t{$list}\n\t</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:domains.mailman.lists.php

示例2: CheckUpdateUser

function CheckUpdateUser()
{
    $UserValues = ['Username', 'Password', 'Name', 'Email', 'Phone', 'Role'];
    if (CheckList($UserValues)) {
        $usr = GetList($UserValues);
        UpdateUser($usr[0], $usr[1], $usr[2], $usr[3], $usr[4], $usr[5]);
        header('Location: Admin.php');
    }
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:9,代码来源:AdminPanel.php

示例3: CheckLogin

function CheckLogin()
{
    $loginValues = ['Username', 'Password'];
    if (!CheckList($loginValues)) {
        return;
    }
    $login = GetList($loginValues);
    return VerifyLogin($login[0], $login[1]);
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:9,代码来源:DaveLib.php

示例4: CreateAccountValues

function CreateAccountValues()
{
    $AccountValues = ['Username', 'Password', 'Name', 'Phone', 'Email'];
    if (!CheckList($AccountValues)) {
        return false;
    }
    $account_values = GetList($AccountValues);
    CreateAccount($account_values[0], $account_values[1], $account_values[2], $account_values[3], $account_values[4], $account_values[5]);
    return true;
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:10,代码来源:Accounts.php

示例5: SearchHouses

function SearchHouses()
{
    global $conn;
    $searchvals = ['Search', 'Bedrooms', 'Toilets', 'Garages', 'MaxPrice'];
    if (CheckList($searchvals)) {
        $vals = GetList($searchvals);
        $query = $conn->prepare("Select * FROM Houses Where Address LIKE CONCAT('%',:address, '%') AND Beds >= :beds AND Toilets >= :toilets AND Garages >= :garages AND Price <= :price");
        $query->bindValue(':address', $vals[0]);
        $query->bindValue(':beds', $vals[1]);
        $query->bindValue(':toilets', $vals[2]);
        $query->bindValue(':garages', $vals[3]);
        $query->bindValue(':price', $vals[4]);
        $query->execute();
        $res = $query->fetchAll();
        $houses = array();
        foreach ($res as $house) {
            $houses[] = new House($house);
        }
        return $houses;
    }
    return NULL;
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:22,代码来源:Houses.php

示例6: foreach

         foreach ($parent_category_list as $catID) {
             if (in_array($catID, $HomeAwayGameCategoryIDList)) {
                 $home_only = 1;
                 #$home_only = 2;
                 $disp_home_away = 1;
             }
         }
     } else {
         $disp_home_away = 1;
     }
 }
 if ($eventID == 599 || $eventID == 592 || $eventID == 339 || $eventID == 755) {
     $smarty->assign("EventName", $productions[0]['eventname'] . ' Playoffs');
     $home_only = 0;
 }
 $productions = GetList($eventID, $eventName, $home_only, $categoryID, 70);
 $smarty->assign("Breadcrumbs", $breadcrumb_str);
 $smarty->assign("EventName", $eventName);
 $smarty->assign("EventIntroText", $eventIntroText);
 if (strlen($eventText) > 2) {
     $smarty->assign("EventText", $eventText);
 }
 if ($eventImagePathname != "") {
     $smarty->assign("EventImagePathname", $eventImagePathname);
 } else {
     $smarty->assign("EventImagePathname", "");
 }
 if (is_array($productions)) {
     if ($eventID == 1124) {
         $smarty->assign("EventName", $productions[0]['eventname'] . ' 42');
         $disp_home_away = 0;
开发者ID:jassenm,项目名称:mongotickets_php,代码行数:31,代码来源:productions.tnd.works.php

示例7: exit

if (empty($aid)) {
    exit('没指定评论文档的ID,不能进行操作!');
}
include_once DEDEINC . '/memberlogin.class.php';
$cfg_ml = new MemberLogin();
if (empty($dopost)) {
    $dopost = '';
}
$page = empty($page) ? 1 : intval($page);
$pagesize = 10;
/*----------------------
获得指定页的评论内容
function getlist(){ }
----------------------*/
if ($dopost == 'getlist') {
    $totalcount = GetList($page);
    GetPageList($pagesize, $totalcount);
    exit;
} else {
    if ($dopost == 'send') {
        require_once DEDEINC . '/charset.func.php';
        //检查验证码
        if ($cfg_feedback_ck == 'Y') {
            $svali = strtolower(trim(GetCkVdValue()));
            if (strtolower($validate) != $svali || $svali == '') {
                ResetVdValue();
                echo '<font color="red">验证码错误,请点击验证码图片更新验证码!</font>';
                exit;
            }
        }
        $arcRow = GetOneArchive($aid);
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:feedback_ajax.php

示例8: GetList

function GetList($dir)
{
    global $dirdata, $j, $nowpath;
    !$j && ($j = 1);
    if ($dh = opendir($dir)) {
        while ($file = readdir($dh)) {
            $f = str_replace('//', '/', $dir . '/' . $file);
            if ($file != '.' && $file != '..' && is_dir($f)) {
                if (is_writable($f)) {
                    $dirdata[$j]['filename'] = str_replace($nowpath, '', $f);
                    $dirdata[$j]['mtime'] = @date('Y-m-d H:i:s', filemtime($f));
                    $dirdata[$j]['dirchmod'] = getChmod($f);
                    $dirdata[$j]['dirperm'] = getPerms($f);
                    $dirdata[$j]['dirlink'] = ue($dir);
                    $dirdata[$j]['server_link'] = $f;
                    $dirdata[$j]['client_link'] = ue($f);
                    $j++;
                }
                GetList($f);
            }
        }
        closedir($dh);
        clearstatcache();
        return $dirdata;
    } else {
        return array();
    }
}
开发者ID:huntergregal,项目名称:tools,代码行数:28,代码来源:godshell.php

示例9: GetList

    if (CheckList($UserValues)) {
        $booking = GetList($UserValues);
        $enq = $booking[0];
        DeleteEnquiry($enq);
        header("Location: index.php");
    }
}
//Cancel Application (user)
if ($Action == "CancelApp") {
    $UserValues = ['AppID'];
    if (CheckList($UserValues)) {
        $booking = GetList($UserValues);
        $app = $booking[0];
        DeleteApplication($app);
        header("Location: Profile.php");
    }
}
//Become property manager (Staff)
if ($Action == "ManageProperty") {
    $UserValues = ['HouseID'];
    if (CheckList($UserValues)) {
        $booking = GetList($UserValues);
        $houseid = $booking[0];
        if (CheckManager(Username(), $houseid)) {
            UnmanageProperty(Username(), $houseid);
        } else {
            ManageProperty(Username(), $houseid);
        }
        header("Location: HouseDisplay.php?HouseID={$houseid}");
    }
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:31,代码来源:Actions.php

示例10: session_start

<?php

session_start();
include_once "Sql.php";
include_once "Accounts.php";
include_once "HousesSQL.php";
$bookingValues = ['DateString', 'HouseID'];
if (!CheckList($bookingValues)) {
    return;
}
if (!empty($_SESSION['Username'])) {
    echo "did something";
    $Values = GetList($bookingValues);
    BookOpenHouse($Values[0], $_SESSION['Username'], $Values[1]);
}
function ShowBookings($Username)
{
    $bookings = GetBookings($Username);
    echo "<div class='HouseList'>";
    foreach ($bookings as $booking) {
        $date = $booking["Time"];
        echo "<h1> {$date} </h1>";
        PrintHouseByID($booking["HouseID"]);
    }
    echo "</div>";
}
function GetBookings($Username)
{
    $select = "Select * from Bookings Where UserID = '{$Username}'";
    return GetResult($select);
}
开发者ID:JFeakes,项目名称:IFB299,代码行数:31,代码来源:Bookings.php

示例11: __get


//.........这里部分代码省略.........
                 $u->Rules['{%category%}'] = $this->Category->Alias;
             } else {
                 $u->Rules['{%category%}'] = rawurlencode($this->Category->Name);
             }
             if ($this->Author->Alias) {
                 $u->Rules['{%author%}'] = $this->Author->Alias;
             } else {
                 $u->Rules['{%author%}'] = rawurlencode($this->Author->Name);
             }
             return $u->Make();
             break;
         case 'Tags':
             return $zbp->LoadTagsByIDString($this->Tag);
             break;
         case 'TagsCount':
             return substr_count($this->Tag, '{');
             break;
         case 'TagsName':
             return $this->TagsToNameString();
         case 'Template':
             $value = $this->data[$name];
             if ($value == '') {
                 $value = GetValueInArray($this->Category->GetData(), 'LogTemplate');
                 if ($value == '') {
                     $value = $zbp->GetPostType_Template($this->Type);
                 }
             }
             return $value;
         case 'CommentPostUrl':
             foreach ($GLOBALS['hooks']['Filter_Plugin_Post_CommentPostUrl'] as $fpname => &$fpsignal) {
                 $fpreturn = $fpname($this);
                 if ($fpsignal == PLUGIN_EXITSIGNAL_RETURN) {
                     $fpsignal = PLUGIN_EXITSIGNAL_NONE;
                     return $fpreturn;
                 }
             }
             $key = '&amp;key=' . $zbp->GetCmtKey($this->ID);
             return $zbp->host . 'zb_system/cmd.php?act=cmt&amp;postid=' . $this->ID . $key;
             break;
         case 'ValidCodeUrl':
             return $zbp->validcodeurl . '?id=cmt';
             break;
         case 'Prev':
             if ($this->_prev !== '') {
                 return $this->_prev;
             }
             foreach ($GLOBALS['hooks']['Filter_Plugin_Post_Prev'] as $fpname => &$fpsignal) {
                 $this->_prev = $fpname($this);
                 if ($this->_prev !== '') {
                     return $this->_prev;
                 }
             }
             $articles = $zbp->GetPostList(array('*'), array(array('=', 'log_Type', 0), array('=', 'log_Status', 0), array('<', 'log_PostTime', $this->PostTime)), array('log_PostTime' => 'DESC'), array(1), null);
             if (count($articles) == 1) {
                 $this->_prev = $articles[0];
             } else {
                 $this->_prev = null;
             }
             return $this->_prev;
             break;
         case 'Next':
             if ($this->_next !== '') {
                 return $this->_next;
             }
             foreach ($GLOBALS['hooks']['Filter_Plugin_Post_Next'] as $fpname => &$fpsignal) {
                 $this->_prev = $fpname($this);
                 if ($this->_prev !== '') {
                     return $this->_prev;
                 }
             }
             $articles = $zbp->GetPostList(array('*'), array(array('=', 'log_Type', 0), array('=', 'log_Status', 0), array('>', 'log_PostTime', $this->PostTime)), array('log_PostTime' => 'ASC'), array(1), null);
             if (count($articles) == 1) {
                 $this->_next = $articles[0];
             } else {
                 $this->_next = null;
             }
             return $this->_next;
             break;
         case 'RelatedList':
             foreach ($GLOBALS['hooks']['Filter_Plugin_Post_RelatedList'] as $fpname => &$fpsignal) {
                 $fpreturn = $fpname($this);
                 if ($fpsignal == PLUGIN_EXITSIGNAL_RETURN) {
                     $fpsignal = PLUGIN_EXITSIGNAL_NONE;
                     return $fpreturn;
                 }
             }
             return GetList($zbp->option['ZC_RELATEDLIST_COUNT'], null, null, null, null, null, array('is_related' => $this->ID));
         case 'TopType':
             $toptype = $this->Metas->toptype;
             if ($this->IsTop == true && $toptype == null) {
                 $toptype = 'index';
             }
             return $toptype;
         case 'TypeName':
             return $zbp->GetPostType_Name($this->Type);
         default:
             return parent::__get($name);
             break;
     }
 }
开发者ID:zblogcn,项目名称:zblogphp,代码行数:101,代码来源:post.php

示例12: switch

$quest_detail_id = $_REQUEST['quest_detail_id'];
$add_id = $_REQUEST['add_id'];
$name = $_REQUEST['name'];
$note = $_REQUEST['note'];
$answer = $_REQUEST['answer'];
$quest_type_id = $_REQUEST['quest_type_id'];
$quest_id1 = $_REQUEST['quest_id1'];
$cat = $_REQUEST['cat'];
$le_cat = $_REQUEST['le_cat'];
switch ($action) {
    case 'get_add_page':
        $page = GetPage(GetList($add_id));
        $data = array('page' => $page);
        break;
    case 'get_edit_page':
        $page = GetPage(GetList($quest_id, $quest_detail_id));
        $data = array('page' => $page);
        break;
    case 'get_list':
        $count = $_REQUEST['count'];
        $hidden = $_REQUEST['hidden'];
        $rResult = mysql_query("SELECT \t`scenario`.`id`,\r\n                        \t\t\t\t`scenario`.`name`,\r\n                        \t\t\t\t`cat`.`name`,\r\n                        \t\t\t\t`le_cat`.`name`\r\n                                FROM \t`scenario`\r\n                                JOIN    `scenario_category` AS `cat` ON `scenario`.`scenario_cat_id` = `cat`.`id`\r\n                                JOIN    `scenario_category` AS `le_cat` ON `scenario`.`scenario_le_cat_id` = `le_cat`.`id`\r\n                                WHERE \t`scenario`.`actived` = 1");
        $data = array("aaData" => array());
        while ($aRow = mysql_fetch_array($rResult)) {
            $row = array();
            for ($i = 0; $i < $count; $i++) {
                /* General output */
                $row[] = $aRow[$i];
                if ($i == $count - 1) {
                    $row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
                }
开发者ID:GeoPvN,项目名称:mspy,代码行数:31,代码来源:scenario.action.php

示例13: intval

}
//删除留言
if ($dopost == 'del') {
    if (!empty($aid)) {
        $aid = intval($aid);
        $dsql->ExecuteNoneQuery("Delete FROM `#@__member_guestbook` WHERE aid='{$aid}' And mid='" . $cfg_ml->M_ID . "'; ");
    } else {
        if (!empty($ids)) {
            $ids = preg_replace("#[^0-9,]#", '', $ids);
            if ($ids != '') {
                $dsql->ExecuteNoneQuery("Delete FROM `#@__member_guestbook` WHERE aid in({$ids}) And mid='" . $cfg_ml->M_ID . "'; ");
            }
        }
    }
    AjaxHead();
    GetList($dsql, $pageno, $pagesize);
    exit;
}
//第一次进入这个页面
if ($dopost == '') {
    $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__member_guestbook` WHERE mid='" . $cfg_ml->M_ID . "'; ");
    $totalRow = $row['dd'];
    include dirname(__FILE__) . "/templets/guestbook_admin.htm";
}
/**
 *  获得特定的关键字列表
 *
 * @access    public
 * @param     object  $dsql  数据库操作类
 * @param     int  $pageno  页面数
 * @param     int  $pagesize  页面尺寸
开发者ID:Miliup,项目名称:miliofficeweb,代码行数:31,代码来源:guestbook_admin.php

示例14: GetList

function GetList($aid, $page = 1, $re = false)
{
    global $gDB, $pagesize, $n, $x, $G;
    $pagesize = 10;
    $totalcount = $gDB->getCount(' select count(*) as count from cmt where aid = ' . $aid . ' and status = 1 ');
    $lou = empty($row['dd']) ? 0 : $totalcount;
    $startNum = $pagesize * ($page - 1);
    if ($startNum > $totalcount) {
        //echo "参数错误!";
        //return $totalcount;
        if ($page == 1) {
            return '';
        }
        return;
    }
    $aList = $gDB->select(' select * from cmt where aid = ' . $aid . ' and status = 1 order by ctime desc limit ' . $startNum . ', ' . $pagesize);
    $sStr = '';
    foreach ($aList as $n => $a) {
        $a['cont'] = preg_replace('/\\[em(\\d{2})\\]/i', '<img src="/i/e/e1$1.gif" />', $a['cont']);
        $a['cont'] = preg_replace('/\\[em(\\d+)\\]/i', '<img src="/i/e/e$1.gif" />', $a['cont']);
        $n = $lou--;
        $curpage = empty($page) ? 1 : intval($page);
        $x = $n - ($curpage - 1) * $pagesize;
        $sStr .= '<p class="ps"><i' . ($a['good'] > 0 ? ' class="g"' : '') . '>' . date('m-d H:i', $a['ctime']) . '</i>' . (abs($x) + 1) . ' 楼 <em>' . (preg_match('/360/', $a['name']) || empty($a['name']) ? '游客' : $a['name']) . '</em><s>' . $a['cont'] . '</s></p>';
    }
    $sStr .= GetPageList($page, $pagesize, $totalcount);
    return $sStr;
    if (!file_exists(DROOT . $G['xyx_cmt'])) {
        mkdir(DROOT . $G['xyx_cmt'], '0777');
    }
    file_put_contents(DROOT . $G['xyx_cmt'] . $aid . '_' . $page . '.htm', $sStr);
    if (!file_exists(DROOT . $G['xyx_cmt'] . $aid . '_' . $page . '.htm')) {
        echo DROOT . $G['xyx_cmt'] . $aid . '_' . $page . '.htm' . ' - nofile<br />';
    }
    if ($page == 1 && $re) {
        return $sStr;
    }
    $allpage = ceil($totalcount / $pagesize);
    if ($page < $allpage) {
        $page++;
        GetList($aid, $page);
    }
}
开发者ID:beyondye,项目名称:ENPHP,代码行数:43,代码来源:func.php

示例15: session_start

<?php

session_start();
include_once "Accounts.php";
include "SiteBanner.php";
echo "<div class='LoginBox'>";
if (CheckLogin()) {
    echo "Successfully Logged In";
    $loginValues = ['Username', 'Password'];
    $login = GetList($loginValues);
    $User = GetUser($login[0]);
    $_SESSION['Username'] = $login[0];
    $_SESSION['Role'] = $User['Role'];
    header('Location: Loading.php?Action=Login');
} else {
    if (!empty($_GET['Username'])) {
        echo '<h1>Invalid Login</h1>';
    }
}
?>
		
			<h1>Welcome, Please Login</h1>
			<form action="Login.php" method="get">
				<div class="InputLine"><label>Username</label>  <input name="Username" type="text"></input></div>
				<div class="InputLine"><label>Password</label>  <input name="Password" type="password"></input></div>
				<button type="submit">Login</button>
			</form>
		</div>
	</Body>
</HTML>
开发者ID:JFeakes,项目名称:IFB299,代码行数:30,代码来源:Login.php


注:本文中的GetList函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。