本文整理汇总了PHP中project::getdetails方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getdetails方法的具体用法?PHP project::getdetails怎么用?PHP project::getdetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getdetails方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: user
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
$objproject = new project();
$data = $objproject->getdetails($_GET['pid']);
?>
<form method="post" action="ajax/project/placebid.php" onsubmit="if(validateForm(this)) submitFormOnFloat(this); return false;">
<input type="hidden" name="projectid" value="<?php
echo $_GET['pid'];
?>
" >
<table width="100%">
<tr>
<td width="30%"></td>
<td width="70%"></td>
</tr>
<tr>
<td colspan="2"><big><b>Bid on Project: <?php
echo $data['project_title'];
?>
</b></big></td>
</tr>
<tr>
<td colspan="2"><strong>Your bid details for the total project:</strong><br>
<small>(Project budget is $ <?php
示例2: foreach
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<tr>
<td class="dt">Rating</td>
<td class="dt" width="150">Programmer</td>
<td class="dt">Project Name</td>
<td class="dt">Review Date</td>
<td class="dt">Project Status</td>
</tr>
<?php
if (is_array($reviews)) {
foreach ($reviews as $review) {
$objproject = new project();
$pdetails = $objproject->getdetails($review['projectid']);
$pstatus = $objproject->getstatus($review['projectid']);
if ($pstatus == "open") {
$pstatus = '<font style="color:green;">Open</font>';
}
if ($pstatus == "frozen") {
$pstatus = '<font style="color:blue;">Frozen</font>';
}
if ($pstatus == "cancelled") {
$pstatus = '<font style="color:red;">Cancelled</font>';
}
if ($pstatus == "closed") {
$pstatus = '<font style="color:red;">Closed</font>';
}
?>
<tr>
示例3: user
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
$objproject = new project();
$response = $objproject->getdetails($_POST['projectid']);
$description = $response['description'];
$description .= "<br> <b>More Description added on " . date("F j, Y, g:i a") . "</b><br>";
$description .= $_POST['description'];
$objproject->adddescription($description, $_POST['projectid']);
echo "script: messageBox('More Description Added to Project.',function() { window.location='account.php'; } );";
示例4: textCounter
<?php
session_start();
$_SESSION['filename'] = "";
include "header.php";
include "subheader.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/display.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/maincategory.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/flashupload.class.php";
$objproject = new project();
$projects = $objproject->getdetails($_GET['id']);
?>
<script language="javascript">
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
</script>
<h3 class="heading"> <?php
echo $projects['project_title'];
?>
</h3>
<div><strong>Project ID: </strong><?php
echo $_GET['id'];
?>
</div>
<br />
示例5: user
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
$objproject = new project();
$data = $objproject->getdetails($_POST['projectid']);
$pt = $data['project_title'];
if ($objproject->isReviewed($_POST['userid'], $_POST['projectid'])) {
echo "script: messageBox('Sorry! You are already reviewed.');";
exit;
} else {
$mes = "Your Review to " . $_POST['username'] . " for project : \"" . $pt . "\" submitted.";
$objproject->markReview($_POST['userid'], $_POST['projectid'], $_POST['points'], $_POST['details']);
echo "script: messageBox('" . $mes . "',function() { window.location='account.php'; });";
}