當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Dict::query方法代碼示例

本文整理匯總了PHP中Dict::query方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dict::query方法的具體用法?PHP Dict::query怎麽用?PHP Dict::query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Dict的用法示例。


在下文中一共展示了Dict::query方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Image

header("Content-type:text/html;charset=utf-8");
require_once "../web.config.php";
require_once $realLibPath . "model/image.model.php";
require_once $realLibPath . "model/dict.model.php";
$img = new Image();
$id = $_POST['id'];
echo "我的id:" . $id;
//$dataArray=$article->query(array("id"=>6),array())[0];
//echo $dataArray;
$dataArray = current($img->query(array("ID" => $id), array()));
$imgCatArray = $img->getImgCat();
//var_dump($dataArray);
//@$currentPage = $_POST['currentPage'];
$imgArray = $img->query(array(), array());
$dict = new Dict();
$tplb = $dict->query(array("lxjp" => "tplb"), array("code", "name"));
//var_dump($tplb);
?>
<style>
     #tab2 li{
            float:left;
            margin:5px;
        }
      #tab2 li span{
            position:absolute;
            left:70px;
            top:70px;
        }
      #tab2 li img{
            width:90px;
            height:90px;
開發者ID:xiaohong1633,項目名稱:eshop,代碼行數:31,代碼來源:edit.php

示例2: array

                <div class="am-form-group" style="height:43px;">
                    <label class="am-u-sm-2">圖片</label>
                    <div class="am-u-sm-4 am-u-end am-form-group am-form-icon">
                      <div class="am-input-group">
          			          <input type="text" id="images_addImage_URL" />
                          <span class="am-input-group-btn"><button id="images_addImage_upload" class="am-btn am-btn-default"><i class="am-icon-cloud-upload"></i></button></span>
                      </div>
						           <input type="hidden" id="images_addImage_imgID"/>
                    </div>
                </div>
                <div class="am-form-group" style="height:43px;">
                    <label class="am-u-sm-2">類別</label>
                    <div class="am-u-sm-4 am-u-end">
					<select id="images_addImage_catID" >
					<?php 
foreach ($dict->query(array('status' => 'Y', 'lxjp' => 'tplb'), array('code', 'name')) as $item) {
    ?>
						<option value="<?php 
    echo $item['code'];
    ?>
"><?php 
    echo $item['name'];
    ?>
</option>
					<?php 
}
?>
					</select>
                    </div>
                </div>
                <div class="am-form-group" >
開發者ID:xiaohong1633,項目名稱:eshop,代碼行數:31,代碼來源:addImage.php

示例3: User

<?php

if (!isset($_SESSION['userName'])) {
    session_start();
}
require_once "../admin/web.config.php";
require_once $realLibPath . 'model/dict.model.php';
require_once $realLibPath . "model/user.model.php";
$user = new User();
if (@$_SESSION['userName']) {
    $userID = $user->getID($_SESSION['userName']);
} else {
    $userID = 'login';
}
$dict = new Dict();
$postModeArray = $dict->query(array('status' => 'Y', 'lxjp' => 'postMode'), array());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>訂單確認</title>
<link rel="stylesheet" media="all" type="text/css" href="../css/head.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/link.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/tail.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/style.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/user.css" />
<link rel="stylesheet" media="all" type="text/css" href="../css/menus.css" />
<script src="../js/jquery.min.js" type="text/javascript"></script>
<script src="../js/jquery-1.4.2.min.js"></script>
開發者ID:xiaohong1633,項目名稱:eshop,代碼行數:31,代碼來源:create.php


注:本文中的Dict::query方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。