本文整理汇总了PHP中category::select方法的典型用法代码示例。如果您正苦于以下问题:PHP category::select方法的具体用法?PHP category::select怎么用?PHP category::select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类category
的用法示例。
在下文中一共展示了category::select方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: category
No</td>
</tr>
<tr id="disp">
<th >* Sales Person Name :</th>
<td><input type="text" name="sales_name" id="sales_name"></td>
</table>
</div>
<div class="company_header">
<h4>Company Details</h4>
</div>
<div class="company_body">
<?php
include_once '../config/category.php';
include_once '../config/country.php';
$ob = new category();
$res = $ob->select();
$ob1 = new country();
$res1 = $ob1->select();
?>
<table width="647" border="0">
<tr>
<th width="342" height="37">* Company Name :</th>
<td width="240"><input type="text" name="company_name" id="company_name"></td>
</tr>
<tr>
<th height="79">* Industry:</th>
<td><select name="industry[]" size="7" multiple id="industry">
<?php
while ($r = mysqli_fetch_array($res)) {
?>
<option value="<?php
示例2:
<li>
<a href="{{asset('/Admin')}}">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
</a>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-laptop"></i>
<span>Manage Content</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<?php
$hasil = category::select()->get();
$i = 1;
?>
<ul class="treeview-menu">
@foreach ($hasil as $row)
<li><a href="{{asset('/Admin/Konten/'.$row->category_id)}}"><i class="fa fa-angle-double-right"></i> {{$row->title}}</a></li>
@endforeach
</ul>
</li>
示例3: fix_shardAction
public function fix_shardAction()
{
$category = new category();
$categories = $category->select($count, array('filter' => array('shard' => true)));
echo 'Total categories: ' . $count . '<br>';
if (is_array($categories) && count($categories)) {
foreach ($categories as $category) {
echo 'Fix shard: ' . $category->get('category') . '<br>';
$category->fix_shard($category->get('id'));
//sleeup(1);
}
}
die('ok');
}
示例4: _gift_prices
protected function _gift_prices($g_id = 0)
{
$prices = $this->_gift->get_prices(!empty($g_id) ? $g_id : 0, true, $this->_getRegionCountry());
$category_obj = new category();
$gift_win_auction = false;
$referer = isset($_GET['utm_referrer']) ? $_GET['utm_referrer'] : (!empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
if (!empty($referer) && is_array($prices) && count($prices)) {
$query = array();
$parse = parse_url($referer);
if ($parse['host'] == $_SERVER['SERVER_NAME']) {
// Если переход внутренний
$url = explode('/', trim(str_replace('categories/', '', $parse['path']), '/'));
if (isset($parse['query'])) {
parse_str($parse['query'], $query);
if (isset($query['debug'])) {
$_GET['debug'] = true;
}
}
$category_page = isset($url[1]) && (int) $url[1] != 0 ? (int) $url[1] : 1;
$category = @array_pop($category_obj->select($count, array('filter' => array('url' => $url[0]))));
if ($count > 0) {
// Нашли категорию из которой пользователь пришел на страницу подарка
if (isset($_GET['debug'])) {
echo $category->get('category') . ', id: ' . $category->get('id') . ', page: ' . $category_page . '<br>';
}
if (!$this->_check_bot() && (empty($_COOKIE['profile_role']) || isset($_GET['debug']))) {
// Сохраняем статистику перехода из категории на подарок
$this->_set_transition_gift($this->_gift->get('id'), $category->get('id'));
//Считаем статистику перехода со страницы категории на страницу подарка
$category->increment_field('total_transition_category_to_gift', $category->get('id'), 1, 'LOW_PRIORITY');
}
if (!empty($url[0])) {
$this->assign('back', array('name' => str_replace('Что подарить', 'Подарки', trim($category->get('category'), '?')), 'url' => '/' . $category->get('url') . '/'))->assign('category_id', $category->get('id'));
} else {
$this->assign('back', array('name' => 'Что подарить', 'url' => '/chto-podarit/'));
}
$filter = array('only_manual' => true, 'available' => true, 'status' => '1', 'region_country' => $this->_getRegionCountry(), 'min_price' => isset($query['min_price']) ? $query['min_price'] : 0, 'max_price' => isset($query['max_price']) ? $query['max_price'] : 0);
if (Zend_Registry::get('target')->config->category->use_new_order) {
$gifts = $category->get_gifts_by_max_rank(array('use_gifts_cache' => Zend_Registry::get('config')->category->use_gifts_cache, 'limit' => 2 * Zend_Registry::get('target')->config->category->gifts_count, 'start' => ($category_page - 1) * Zend_Registry::get('target')->config->category->gifts_count - 5, 'use_parent_or_original' => $category->get('classify_type') != 'manual', 'group_by' => 'virtual_group_id', 'filter' => $filter), $count);
} else {
$gifts = $category->get_gifts(array('use_gifts_cache' => Zend_Registry::get('config')->category->use_gifts_cache, 'limit' => 2 * Zend_Registry::get('target')->config->category->gifts_count, 'start' => ($category_page - 1) * Zend_Registry::get('target')->config->category->gifts_count - 5, 'use_parent_or_original' => $category->get('classify_type') != 'manual', 'group_by' => 'virtual_group_id', 'filter' => $filter), $count);
}
$cpc = $category->calculate_cpc($this->_gift->get('id'), $gifts, $partner_id);
foreach ($prices as $price) {
if ($price->partner_id == $partner_id) {
$price->auction_price = $cpc;
$prices = array($price);
$gift_win_auction = true;
break;
}
}
}
}
}
if (!$gift_win_auction && $this->_gift->is_in_auction()) {
$result_price = $this->_gift->get_auction_price();
if ($result_price) {
$prices[0] = $result_price;
}
}
if (empty($url)) {
$this->assign('back', array('name' => 'Что подарить', 'url' => '/chto-podarit/'));
}
$this->assign('prices', $prices);
return $prices;
}
示例5: category
</div>
</div>
<div class="features">
<div class="container">
<div class="work-title">
<h3> Search candidate<span></span></h3>
</div>
<div class="features-info">
<div class="features-text">
<h4> </h4>
<?php
$company_id = $_SESSION['userid'];
include_once "../config/category.php";
$ob1 = new category();
$res1 = $ob1->select();
?>
<form name="form1" method="post" action="">
<table width="857" border="0">
<tr>
<td width="176">Category</td>
<td width="181"><select name="vacancy" id="vacancy" onChange="msg(this.value)">
<option value="">--select--</option>
<?php
while ($r = mysqli_fetch_array($res1)) {
?>
<option value="<?php
echo $r['Id'];
?>
"><?php
echo $r['category'];