本文整理汇总了PHP中Feature::loadData方法的典型用法代码示例。如果您正苦于以下问题:PHP Feature::loadData方法的具体用法?PHP Feature::loadData怎么用?PHP Feature::loadData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feature
的用法示例。
在下文中一共展示了Feature::loadData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} else {
UIAdminAlerts::conf('商品特征已删除');
}
} elseif (Tools::isSubmit('delSelected')) {
$select_cat = Tools::P('itemsBox');
$feature = new Feature();
if ($feature->deleteMulti($select_cat)) {
UIAdminAlerts::conf('商品特征已删除');
}
}
echo UIAdminDndTable::loadHead();
$table = new UIAdminDndTable('feature', 'Feature', 'id_feature');
$table->addAttribte('id', 'feature');
$table->header = array(array('sort' => false, 'isCheckAll' => 'itemsBox[]'), array('name' => 'id_feature', 'title' => 'ID', 'filter' => 'string', 'rule' => 'feature_value'), array('name' => 'name', 'title' => '名称', 'filter' => 'string', 'rule' => 'feature_value'), array('name' => 'position', 'title' => '排序'), array('sort' => false, 'title' => '操作', 'width' => '120px', 'class' => 'text-right', 'isAction' => array('edit', 'delete')));
$filter = $table->initFilter();
$orderBy = isset($_GET['orderby']) ? Tools::G('orderby') : 'position';
$orderWay = isset($_GET['orderway']) ? Tools::G('orderway') : 'asc';
$limit = $cookie->getPost('pagination') ? $cookie->getPost('pagination') : '50';
$p = Tools::G('p') ? Tools::G('p') == 0 ? 1 : Tools::G('p') : 1;
$result = Feature::loadData($p, $limit, $orderBy, $orderWay, $filter);
if (isset($errors)) {
UIAdminAlerts::MError($errors);
}
$breadcrumb = new UIAdminBreadcrumb();
$breadcrumb->home();
$breadcrumb->add(array('title' => '商品特征', 'active' => true));
$bread = $breadcrumb->draw();
$btn_group = array(array('type' => 'a', 'title' => '新商品特征', 'href' => 'index.php?rule=feature_edit', 'class' => 'btn-success', 'icon' => 'plus'));
echo UIViewBlock::area(array('bread' => $bread, 'btn_groups' => $btn_group), 'breadcrumb');
$btn_group = array(array('type' => 'button', 'title' => '删除选中', 'confirm' => '确定要删除选中项?', 'name' => 'delSelected', 'btn_type' => 'submit', 'class' => 'btn-danger'));
echo UIViewBlock::area(array('title' => '用户留言', 'table' => $table, 'result' => $result, 'limit' => $limit, 'btn_groups' => $btn_group), 'table');
示例2: foreach
$("#selected-attribute option").each(function(i){
options += $(this).val()+",";
});
$("#attribute-ids").val(options.substr(0, options.length - 1));
}
});
</script>
</div>
</div>
</div>
<div id="product-tab-content-feature" class="product-tab-content" style=" display:none">
<div class="row">
<div class="col-md-10 form-horizontal">
<?php
$features = Feature::loadData();
$featureValues = FeatureValue::loadData();
if (isset($obj)) {
$selectedFeature = $obj->getFeatures();
}
if ($features) {
foreach ($features['items'] as $feature) {
?>
<div class="form-group">
<label for="categoryBox" class="col-sm-2 control-label"><?php
echo $feature['name'];
?>
</label>
<div class="col-sm-10">
<select name="id_feature_value[]" class="form-control">