当前位置: 首页>>代码示例>>PHP>>正文


PHP project::getdetails方法代码示例

本文整理汇总了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 
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:placebid.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>
开发者ID:sknlim,项目名称:classified-2,代码行数:30,代码来源:feedback.php

示例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'; } );";
开发者ID:sknlim,项目名称:classified-2,代码行数:15,代码来源:updatedescription.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">&nbsp;<?php 
echo $projects['project_title'];
?>
</h3>
<div><strong>Project ID: </strong><?php 
echo $_GET['id'];
?>
</div>
<br />
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:projects.php

示例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'; });";
}
开发者ID:sknlim,项目名称:classified-2,代码行数:20,代码来源:review.php


注:本文中的project::getdetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。