本文整理汇总了PHP中project::getProjectSkills方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getProjectSkills方法的具体用法?PHP project::getProjectSkills怎么用?PHP project::getProjectSkills使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getProjectSkills方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong>Oh snap!</strong> Something went wrong!
</div></div>';
}
} else {
//echo '<br/><br/><br/><br/><br/>Page is refreshed. No need to post.';
$outputMessage = null;
}
if (isset($_REQUEST['project_id'])) {
// Project id is set that means this is for update, not add
// Get project id
$project_id = $_REQUEST['project_id'];
//Get project
$dbRow_Project = $objProject->getProject($userid, $project_id);
if (isset($dbRow_Project)) {
$dbRows_Skill = $objProject->getProjectSkills($project_id);
}
}
// When page is refreshed, this will avoid multiple post
$_SESSION['key'] = mt_rand(1, 1000);
?>
<!-- Typehead -->
<script src="includes/typeahead.bundle.js"></script>
<!-- End of Typehead ref. -->
<!-- Select 2 -->
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
<link rel="stylesheet" href="includes/select2-bootstrap.min.css">
<link rel="stylesheet" href="includes/select2-bootstrap.css">
示例2: printSkills
<h4 class="list-group-item-heading">Project Description:</h4>
<p class="list-group-item-text">
<span class="more">
<?php
echo $dbRow['project_desc'];
?>
</span></p>
</div>
<!-- Skills used -->
<div class="col-md-4" style="background-color: #ffffff">
<h4 class="list-group-item-heading">Skills Used:</h4>
<?php
// Get project's skills
$dbRow_ProjectSkills = $objProject->getProjectSkills($dbRow['project_id']);
// Print skills
printSkills($dbRow_ProjectSkills, 10, $userid, $displayname, $endorsement_left);
?>
<!--
<ul class="nav nav-pills" role="tablist">
<li role="presentation"><a href="#">Java <span class="badge">9</span></a></li>
<li role="presentation"><a href="#">C#<span class="badge">5</span></a></li>
<li role="presentation"><a href="#">AngularJS<span class="badge">2</span></a></li>
<li role="presentation"><a href="#">CSS<span class="badge">1</span></a></li>
</ul>
-->
</div>