getUserEvidence() 공개 메소드

public getUserEvidence ( $evidence_id )
 public function getCredWeight()
 {
     $this_credibility = new Credibility();
     $this_credibility->getUserEvidence($this->id);
     $this->cred_weight = $this_credibility->weight;
     if ($this->cred_weight == "") {
         $this->cred_weight = 0;
     }
 }
            }
        }
        ?>
</td>
	
<?php 
    }
    ?>

<?php 
    if ($kind == "edit") {
        $this_credibility = new Credibility();
        if ($kind == "user") {
            $this_credibility->getUserEvidenceUser($evidence[$i]->id, $ratings_user);
        } else {
            $this_credibility->getUserEvidence($evidence[$i]->id);
        }
        ?>
	
	<td class="dcCred" id="td_cred_edit_<?php 
        echo $evidence[$i]->id;
        ?>
"><select onChange="saveCredRating('cred_edit_<?php 
        echo $evidence[$i]->id;
        ?>
');" name="cred_edit_<?php 
        echo $evidence[$i]->id;
        ?>
" id="cred_edit_<?php 
        echo $evidence[$i]->id;
        ?>
?>
 >MASINT</option>
</select></p>

<h4>Serial Number</h4>

<p><input type="text" name="serial_number" value="<?php 
echo $active_evidence->serial_number;
?>
" size="20" /></p>

<h4>Credibility</h4>

<?php 
$this_credibility = new Credibility();
$this_credibility->getUserEvidence($active_evidence->id);
?>

<p>Remember, changing this will change the credibility of all of your pieces of evidence with the same serial number.</p>

<p><select name="credibility">
  <option value="none">---</option>
  <option <?php 
if ($this_credibility->value == "y") {
    echo "selected";
}
?>
 value="credible">Credible</option>
  <option <?php 
if ($this_credibility->value == "n") {
    echo "selected";
**    GNU General Public License for more details.
**
**    You should have received a copy of the GNU General Public License
**    along with Open Source ACH. If not, see <http://www.gnu.org/licenses/>.
//////////////////////////////////////////////////////////////////////////////// */
include "code/includes.php";
$active_evidence = new Evidence();
$active_evidence->populateFromId($_REQUEST['evidence_id']);
foreach ($_REQUEST as $field => $value) {
    $active_evidence->{$field} = addslashes($value);
}
$active_evidence->id = $_REQUEST['evidence_id'];
$active_evidence->update();
$cred = $_REQUEST['credibility'];
$this_credibility = new Credibility();
$this_credibility->getUserEvidence($_REQUEST['evidence_id']);
if ($cred == "credible") {
    $this_credibility->switchCred("y");
} else {
    if ($cred == "suspect") {
        $this_credibility->switchCred("n");
    }
}
setStatusMessage("Updated!");
?>

<html>
<head>
	<title>Updating...</title>
	<meta http-equiv=Refresh content="0; url=project/<?php 
echo $active_evidence->project_id;