本文整理汇总了PHP中Feature::viewfeature方法的典型用法代码示例。如果您正苦于以下问题:PHP Feature::viewfeature方法的具体用法?PHP Feature::viewfeature怎么用?PHP Feature::viewfeature使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feature
的用法示例。
在下文中一共展示了Feature::viewfeature方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<?php
include 'classes/connection.class.php';
include 'classes/feature.class.php';
$feature_id = isset($_GET['feature_id']) ? (int) $_GET['feature_id'] : '';
$objfeature = new Feature();
$objfeature->setfeatureID($feature_id);
$views = $objfeature->viewfeature();
/*echo '<pre>';
print_r($views);
echo '</pre>';*/
foreach ($views as $value) {
?>
<form name="form1" method="post" action="process/process_update_feature.php">
<table class="table" width="669" border="1">
<tbody>
<tr>
<th colspan="2" scope="row">Please Edit feature</th>
</tr>
<tr>
<th scope="row">Title</th>
<td>
<input name="title" value="
<?php
echo $value['feature_title'];
?>
"/>
</tr>
<tr>
示例2: Feature
<?php
require_once '../admin/classes/connection.class.php';
require_once '../admin/classes/feature.class.php';
?>
<div class="wrapper" style="margin-top:25px;">
<div class="container">
<?php
$featureObj = new Feature();
$view = $featureObj->viewfeature();
// echo '<pre>';
// print_r($view);
// echo '<pre>';
?>
<?php
foreach ($view as $value) {
?>
<div id="feature1" class="col-sm-4" style="background:#e7e2d6;
padding:10px;" >
<div class="req-block" style="background:#352924;
padding:20px;
padding-left:50px;
border-radius:0.3em;
margin-right:5px;
font-size:12px;
color:#f6c849;
height:300px;">
<h2 ><span class="glyphicon glyphicon-ok"></span> <?php
echo $value['feature_title'];
示例3: Feature
<?php
require_once 'classes/connection.class.php';
require_once 'classes/feature.class.php';
$viewobj = new Feature();
$views = $viewobj->viewfeature();
/*echo '<pre>';
print_r($views);
echo '</pre>';*/
?>
<table class="table" width="698" border="1">
<tbody>
<tr>
<th width="71" scope="row"><strong>featureID</strong></th>
<td width="47"><strong>feature Title</strong></td>
<td width="69"><strong>feature Desc</strong></td>
<td colspan="2"><strong>Action</strong></td>
</tr>
<?php
if (sizeof($views > 0)) {
foreach ($views as $value) {
?>
<tr>
<th scope="row"> <?php