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


PHP Util::checkKeyAndValueInArray方法代码示例

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


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

示例1:

                }
                if ($field['description']) {
                    echo '<div class="smallDescription">' . $field['description'] . '</div>';
                }
                break;
        }
        echo '</td>';
        echo '</tr>';
    }
}
if ($timeTrackingFlag) {
    if (in_array($timeTrackingFieldId, $fieldsPlacedOnScreen)) {
        // deal with the time tracking fields
        for ($i = 0; $i < count($fieldData); $i++) {
            if ($fieldData[$i]['field_code'] == Field::FIELD_ISSUE_TIME_TRACKING_CODE) {
                $arrayData = Util::checkKeyAndValueInArray('field_id', $fieldData[$i]['field_id'], $fieldData);
                $mandatoryStarHTML = '';
                if ($arrayData && $arrayData['visible_flag']) {
                    if ($arrayData['required_flag']) {
                        $mandatoryStarHTML = '<span class="mandatory">*</span>';
                    }
                    $requiredHTML = $arrayData['required_flag'] ? 'required="1"' : 'required="0"';
                    echo '<tr>';
                    echo '<td valign="top">Original Estimate ' . $mandatoryStarHTML . '</td>';
                    echo '<td>';
                    echo '<input class="inputText" style="width: 100px" ' . $requiredHTML . ' id="field_type_time_tracking_original_estimate" type="text" name="field_type_time_tracking_original_estimate" value="' . $issueData['original_estimate'] . '" /> ';
                    echo '<span>(eg. 3w 4d 12h)</span>';
                    echo '<div class="smallDescription">The original estimate of how much work is involved in resolving this issue.</div>';
                    echo '</td>';
                    echo '</tr>';
                    echo '<tr>';
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:ViewEditDialog.php

示例2:

                        $allUsers->data_seek(0);
                        break;
                }
                if ($field['description']) {
                    echo '<div class="smallDescription">' . $field['description'] . '</div>';
                }
                break;
        }
        echo '</td>';
        echo '</tr>';
    }
}
// deal with the time tracking fields
if ($timeTrackingFlag) {
    if (in_array($timeTrackingFieldId, $fieldsPlacedOnScreen)) {
        $arrayData = Util::checkKeyAndValueInArray('field_id', $timeTrackingFieldId, $fieldData);
        if ($arrayData && $arrayData['visible_flag']) {
            $requiredHTML = $arrayData['required_flag'] ? 'required="1"' : 'required="0"';
            echo '<tr>';
            echo '<td valign="top">Original Estimate</td>';
            echo '<td>';
            echo '<input class="inputText" style="width: 100px" ' . $requiredHTML . ' id="field_type_time_tracking_original_estimate" type="text" name="field_type_time_tracking_original_estimate" value="" /> ';
            echo '<span>(eg. 3w 4d 12h)</span>';
            echo '<div class="smallDescription">The original estimate of how much work is involved in resolving this issue.</div>';
            echo '</td>';
            echo '</tr>';
            echo '<tr>';
            echo '<td valign="top">Remaining Estimate</td>';
            echo '<td>';
            echo '<input class="inputText" style="width: 100px" ' . $requiredHTML . ' id="field_type_time_tracking_remaining_estimate" type="text" name="field_type_time_tracking_remaining_estimate" value="" /> ';
            echo '<span>(eg. 3w 4d 12h)</span>';
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:_dialogCreate.php

示例3:

                </tr>
                <tr>
                    <td width="20">
                        <input class="app_client" type="checkbox" value="1" name="documentador" <?php 
    if (Util::checkKeyAndValueInArray('sys_product_id', SystemProduct::SYS_PRODUCT_DOCUMENTADOR, $productsArray)) {
        echo 'checked="checked"';
    }
    ?>
 />
                    </td>
                    <td>Documentador</td>
                </tr>
                <tr>
                    <td width="20">
                        <input class="app_client" type="checkbox" value="1" name="events" <?php 
    if (Util::checkKeyAndValueInArray('sys_product_id', SystemProduct::SYS_PRODUCT_CALENDAR, $productsArray)) {
        echo 'checked="checked"';
    }
    ?>
 />
                    </td>
                    <td>Events</td>
                </tr>
            <?php 
}
?>
        </table>
    </div>
    <?php 
require_once __DIR__ . '/_footer.php';
?>
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:ManageApplications.php

示例4:

    ?>
            <?php 
    $session->get('selected_product_id') == SystemProduct::SYS_PRODUCT_CALENDAR ? $style = 'background-color: #6A8EB2;' : ($style = '');
    ?>
            <td style="<?php 
    echo $style;
    ?>
 border-right: 1px #9c9c9c solid;" width="110px" class="product-menu" align="center">
                <div><a href="/calendar/calendars">Events</a></div>
            </td>
        <?php 
}
?>

        <?php 
if (Util::checkKeyAndValueInArray('sys_product_id', SystemProduct::SYS_PRODUCT_QUICK_NOTES, $productsArray)) {
    ?>
            <?php 
    $session->get('selected_product_id') == SystemProduct::SYS_PRODUCT_QUICK_NOTES ? $style = 'background-color: #6A8EB2;' : ($style = '');
    ?>
            <td style="<?php 
    echo $style;
    ?>
 border-right: 1px #9c9c9c solid;" width="130px" class="product-menu" align="center">
                <div><a href="/quick-notes/note/snippets/all">Quick Notes</a></div>
            </td>
        <?php 
}
?>
    </tr>
</table>
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:productTopBar.php

示例5:

                            <span>Agile</span>
                            <span class="<?php 
    if ($menuSelectedCategory == 'agile') {
        echo 'arrowSelected';
    } else {
        echo 'arrow';
    }
    ?>
"></span>
                            &nbsp;
                        </td>
                    <?php 
}
?>
                    <?php 
if (Util::checkKeyAndValueInArray('sys_product_id', SystemProduct::SYS_PRODUCT_HELP_DESK, $clientProducts)) {
    ?>
                        <td width="8px"></td>
                        <td align="center" class="menuItemBasic <?php 
    if ($menuSelectedCategory == 'help_desk') {
        echo 'menuItemSelected';
    } else {
        echo 'menuItem';
    }
    ?>
" id="menuHelpDesk">
                            <span>Help Desk</span>
                            <span class="<?php 
    if ($menuSelectedCategory == 'help_desk') {
        echo 'arrowSelected';
    } else {
开发者ID:spiasecki,项目名称:ubirimi,代码行数:31,代码来源:_menu.php


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