本文整理汇总了PHP中Color::getEntitys方法的典型用法代码示例。如果您正苦于以下问题:PHP Color::getEntitys方法的具体用法?PHP Color::getEntitys怎么用?PHP Color::getEntitys使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Color
的用法示例。
在下文中一共展示了Color::getEntitys方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Color
if (isset($_GET['id'])) {
$id = (int) $_GET['id'];
$obj = new Color($id);
}
if (Tools::P('saveColor') == 'edit') {
if (Validate::isLoadedObject($obj)) {
$obj->copyFromPost();
$obj->update();
}
if (is_array($obj->_errors) and count($obj->_errors) > 0) {
$errors = $obj->_errors;
} else {
UIAdminAlerts::conf('更新对象成功');
}
}
$colors = Color::getEntitys();
if (isset($errors)) {
UIAdminAlerts::MError($errors);
}
$breadcrumb = new UIAdminBreadcrumb();
$breadcrumb->home();
$breadcrumb->add(array('title' => '颜色', 'href' => 'index.php?rule=color'));
$breadcrumb->add(array('title' => '编辑', 'active' => true));
$bread = $breadcrumb->draw();
$btn_group = array(array('type' => 'a', 'title' => '返回', 'href' => 'index.php?rule=color', 'class' => 'btn-primary', 'icon' => 'level-up'), array('type' => 'a', 'title' => '保存', 'id' => 'save-color', 'href' => '#', 'class' => 'btn-success', 'icon' => 'save'));
echo UIViewBlock::area(array('bread' => $bread, 'btn_groups' => $btn_group), 'breadcrumb');
?>
<link href="<?php
echo _TM_JS_URL;
?>
boootstrap-colorpicker/css/colorpicker.css" rel="stylesheet" type="text/css" media="all" />
示例2: UIAdminBreadcrumb
<?php
$result = Color::getEntitys();
if (isset($errors)) {
UIAdminAlerts::MError($errors);
}
$breadcrumb = new UIAdminBreadcrumb();
$breadcrumb->home();
$breadcrumb->add(array('title' => '颜色', 'href' => 'index.php?rule=color'));
$breadcrumb->add(array('title' => '关联', 'active' => true));
$bread = $breadcrumb->draw();
$btn_group = array(array('type' => 'a', 'title' => '返回', 'href' => 'index.php?rule=color', 'class' => 'btn-primary', 'icon' => 'level-up'));
echo UIViewBlock::area(array('bread' => $bread, 'btn_groups' => $btn_group), 'breadcrumb');
?>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
关联
</div>
<div class="panel-body">
<table class="table_grid" name="list_table" width="100%">
<tr>
<td>
<table class="table" width="100%" cellpadding="0" cellspacing="0" id="order">
<thead>
<tr>
<th width="10%">颜色</th>
<th>产品</th>
</tr>
</thead>