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


PHP Position::getAllPositionsInProject方法代码示例

本文整理汇总了PHP中Position::getAllPositionsInProject方法的典型用法代码示例。如果您正苦于以下问题:PHP Position::getAllPositionsInProject方法的具体用法?PHP Position::getAllPositionsInProject怎么用?PHP Position::getAllPositionsInProject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Position的用法示例。


在下文中一共展示了Position::getAllPositionsInProject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Page

        <?php 
$objPage = new Page();
$objProject = new Project();
if (!isset($data['params'])) {
    $project = $data['project'];
    $id = $project['id'];
} else {
    $id = $data['params']['id'];
    $project = $objProject->getProjectById($id);
}
$objPosition = new Position();
$allPositions = $objPosition->getAllPositionsInProject($project['project_type_id']);
?>
        
        <div class="sectionParams" data-params="id=<?php 
echo $id;
?>
">
        </div>


        <form id="addApplicationForm">
             <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:15px;">
                <tr>                    
                    <td>Position</td>
                    <td>
                        <input type="hidden" name="project_id" id="project_id" value="<?php 
echo $project['id'];
?>
" />
                        <select class="selectPosition" style="width:140px;" name="position_id" data-url="/sugarkms/mod/getTeamsForPosition.php">
开发者ID:nguyengiangoc,项目名称:SugarKMS,代码行数:31,代码来源:project_add_application.php

示例2: Position

    <?php 
if (!isset($data['params'])) {
    $positionsEXCO = $data['positionsEXCO'];
    $positionsProject = $data['positionsProject'];
} else {
    $objPosition = new Position();
    $positionsEXCO = $objPosition->getAllPositionsInProject(5);
    $positionsProject = $objPosition->getAllPositionsInProject(6);
}
?>
        
        
        
        <h2>Display Order</h2>
        
        <table cellpadding="0" cellspacing="0" border="0" class="tbl_repeat" style="margin-bottom:0px;display:inline;" >
            
            <tr>
                <th class=" borderRight">Name</th>
                <th class="">EXCO Order</th>                
            </tr>
            <tbody id="orderEXCO" data-type="exco" >
        <?php 
foreach ($positionsEXCO as $positionEXCO) {
    ?>
                <tr id="exco-<?php 
    echo $positionEXCO['id'];
    ?>
"> 
                    <td class=" borderRight" style="font-weight:bold;"><?php 
    echo $positionEXCO['name'];
开发者ID:nguyengiangoc,项目名称:SugarKMS,代码行数:31,代码来源:position_order.php

示例3: Position

<?php

require_once '../inc/config.php';
if (isset($_POST['type'])) {
    $type = $_POST['type'];
    $objPosition = new Position();
    $positions = $objPosition->getAllPositionsInProject($type);
    if (empty($group)) {
        echo Helper::json(array('success' => true, 'positions' => $positions));
    } else {
        echo Helper::json(array('success' => false));
    }
} else {
    echo Helper::json(array('success' => false));
}
开发者ID:nguyengiangoc,项目名称:SugarKMS,代码行数:15,代码来源:getPositionsForType.php


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