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


PHP Lookup::Category方法代码示例

本文整理汇总了PHP中Lookup::Category方法的典型用法代码示例。如果您正苦于以下问题:PHP Lookup::Category方法的具体用法?PHP Lookup::Category怎么用?PHP Lookup::Category使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lookup的用法示例。


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

示例1: date

					
					<div class="uk-width-5-10">
					
						<!-- START PRODUCT INFO -->
						<div style="display:block;min-height:23em;" id="item_info">
							<h1><?php 
echo $name;
?>
</h1>
							<div class="uk-width-1-1 item_description">
								<?php 
echo $desc;
?>
								<div class="uk-align-right">
									<div class="uk-badge"><?php 
echo Lookup::Category($category);
?>
</div>
								</div>
							</div>
							<hr/>
							<div id="specs">
								<ul>
									<?php 
if ($dodue) {
    ?>
										<li><b>Due:</b> <?php 
    echo date("Y-m-d", $dd) == date("Y-m-d") ? "Today" : $relative_dd . " from now";
    ?>
</li>
									<?php 
开发者ID:Nickersoft,项目名称:eDart,代码行数:30,代码来源:view.php

示例2: ucwords

        } else {
            $count++;
        }
    }
    if (trim($item_array[$count]["image"]) != "") {
        $feat_item = $item_array[$count];
        ?>
			<div class="uk-width-1-1 uk-hidden-small">
				<div style="background:url('/imageviewer/?id=<?php 
        echo $feat_item["id"];
        ?>
&filter=blur');" id="home_cover" class="uk-cover-background  uk-position-relative">
				    <div class="uk-position-cover uk-width-1-1 uk-flex uk-flex-left uk-flex-middle">
			    		<div class="gradient">
							<h6><span>featured</span> in <?php 
        echo Lookup::Category($feat_item["category"]);
        ?>
</h6>
			    		    <h1><?php 
        echo ucwords(trim($feat_item["name"]));
        ?>
</h1>
			    		    <ul>
			    		    	<?php 
        if (trim($feat_item["emv"]) != "") {
            ?>
			    		    		<li><strong>Worth roughly</strong>: $<?php 
            echo $feat_item["emv"];
            ?>
</li>
			    		    	<?php 
开发者ID:Nickersoft,项目名称:eDart,代码行数:31,代码来源:feed.php

示例3: foreach

	       				</div>

	       				<div id="ai_right">
	       					<input onchange="set_info();" name="name" maxlength="30" id="wz_name" class="inpt small_text" placeholder="Item Name" autocomplete="off" type="text" />
	      					<textarea name="itemdesc" rows="3" class="inpt iteminfo" id="wz_desc" maxlength="100" placeholder="Enter a brief description"></textarea>
	       				</div>
	       			</div><div class="add_slide" id="classifications">

       					<h1>Classifications</h1>
       					<p>Here you can tell users what condition your item is in, whether it be brand new or whether you've been using it for the past ten years. You can also select which category you wish to place your item in, so users can find it easier. </p>

	       				<div id="ai_left">
							<h2>Category</h2>
	       					<select id="wz_category" class="small_text selectbox">
								<?php 
foreach (Lookup::Category() as $category) {
    ?>
							<option><?php 
    echo $category["text"];
    ?>
</option>
						<?php 
}
?>
       					</select>
       				</div>

       				<div id="ai_right">
						    <h2>Condition</h2>
       						<select id="wz_condition" class="small_text selectbox">
								<?php 
开发者ID:Nickersoft,项目名称:eDart,代码行数:31,代码来源:add_wizard.php


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