本文整理汇总了PHP中projects::getPrimarySpec方法的典型用法代码示例。如果您正苦于以下问题:PHP projects::getPrimarySpec方法的具体用法?PHP projects::getPrimarySpec怎么用?PHP projects::getPrimarySpec使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类projects
的用法示例。
在下文中一共展示了projects::getPrimarySpec方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: seo_start
<?php
seo_start($is_ajax);
?>
<?php
if ($row['cost']) {
$priceby_str = getPricebyProject($row['priceby']);
if ($row['cost'] == '' || $row['cost'] == 0) {
$priceby_str = "";
}
}
?>
<?php
$spec = projects::getPrimarySpec($row['id']);
$row['category'] = $spec['category_id'];
if (is_new_prj($row['post_date'])) {
$blink = getFriendlyURL("blog", $row['thread_id']);
} else {
$blink = getFriendlyURL("project", $row['id']);
}
$plink = "/users/" . $row['login'] . "/project/?prjid=" . $row['id'];
if ($row['payed'] && $row["kind"] != 2 && $row["kind"] != 7) {
?>
<tr style="vertical-align:top"><td style="padding-left: 10px; padding-right: 10px; padding-bottom: 5px;">
<div class="fl2_date">
<div class="fl2_date_day">
<?php
echo str_ago_pub(strtotimeEx($row['create_date']));
?>
</div>
示例2: setlocale
<?php
$i = 0;
if ($prjs) {
// print "<pre>";
// print_r($prjs);
// print "</pre>";
setlocale(LC_ALL, 'ru_RU.CP1251');
$usr = new users();
$name = $usr->GetName($_SESSION["uid"], $err);
$dir = $name["login"];
?>
<div style="height:1px; background:#d7d7d7; width:920px; margin:5px 0;"></div><?php
$pj = 0;
$pn = sizeof($prjs);
foreach ($prjs as $ikey => $prj) {
$spec = projects::getPrimarySpec($prj['id']);
$prj['category'] = $spec['category_id'];
if (is_new_prj($prj['post_date'])) {
$blink = !$is_emp && $prj['pro_only'] == 't' && !$is_pro && $uid != $prj['user_id'] && !hasPermissions('projects') ? "/proonly.php" : "/blogs/view.php?tr=" . $prj['thread_id'];
} else {
$blink = !$is_emp && $prj['pro_only'] == 't' && !$is_pro && $uid != $prj['user_id'] && !hasPermissions('projects') ? "/proonly.php" : "/projects/?pid=" . $prj['id'] . '&f=1';
}
$plink = "/users/" . $prj['login'] . "/project/?prjid=" . $prj['id'];
if ($prj['payed'] && $prj["kind"] != 2) {
?>
<table cellpadding="4" cellspacing="0" border="0"><tr valign="top"><td style="padding-left: 10px; padding-bottom: 5px;" width="510px">
<div class="fl2_date">
<div class="fl2_date_day">
<?php
echo str_ago_pub(strtotimeEx($prj['post_date']));
?>