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


PHP PMA_getTransformationDescription函数代码示例

本文整理汇总了PHP中PMA_getTransformationDescription函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getTransformationDescription函数的具体用法?PHP PMA_getTransformationDescription怎么用?PHP PMA_getTransformationDescription使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: _pgettext

    <tr>
        <th><?php 
    echo $th[$ttype];
    ?>
</th>
        <th><?php 
    echo _pgettext('for MIME transformation', 'Description');
    ?>
</th>
    </tr>
    </thead>
    <tbody>
    <?php 
    $odd_row = true;
    foreach ($types[$ttype] as $key => $transform) {
        $desc = PMA_getTransformationDescription($types[$ttype . '_file'][$key]);
        ?>
        <tr class="<?php 
        echo $odd_row ? 'odd' : 'even';
        ?>
">
            <td><?php 
        echo $transform;
        ?>
</td>
            <td><?php 
        echo $desc;
        ?>
</td>
        </tr>
        <?php 
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:31,代码来源:transformation_overview.php

示例2: PMA_getHtmlForTransformation

/**
 * Function to get html for transformations
 *
 * @param int    $columnNumber   column number
 * @param int    $ci             cell index
 * @param int    $ci_offset      cell index offset
 * @param array  $available_mime available mime
 * @param array  $columnMeta     column meta
 * @param array  $mime_map       mime map
 * @param string $type_prefix    prefix for type of transformation
 *                               '' or 'input'
 *
 * @return string
 */
function PMA_getHtmlForTransformation($columnNumber, $ci, $ci_offset, $available_mime, $columnMeta, $mime_map, $type_prefix)
{
    $type = $type_prefix . 'transformation';
    $html = '<select id="field_' . $columnNumber . '_' . ($ci - $ci_offset) . '" size="1" name="field_' . $type . '[' . $columnNumber . ']">';
    $html .= '    <option value="" title="' . __('None') . '"></option>';
    if (isset($available_mime[$type]) && is_array($available_mime[$type])) {
        foreach ($available_mime[$type] as $mimekey => $transform) {
            $checked = isset($columnMeta['Field']) && isset($mime_map[$columnMeta['Field']][$type]) && preg_match('@' . preg_quote($available_mime[$type . '_file'][$mimekey]) . '3?@i', $mime_map[$columnMeta['Field']][$type]) ? 'selected ' : '';
            $tooltip = PMA_getTransformationDescription($available_mime[$type . '_file'][$mimekey], false);
            $html .= '<option value="' . $available_mime[$type . '_file'][$mimekey] . '" ' . $checked . ' title="' . htmlspecialchars($tooltip) . '">' . htmlspecialchars($transform) . '</option>';
        }
    }
    $html .= '</select>';
    return $html;
}
开发者ID:FilipeRamosFernandes,项目名称:phpmyadmin,代码行数:29,代码来源:tbl_columns_definition_form.lib.php

示例3: foreach

        $content_cells[$i][$ci] = '<select id="field_' . $i . '_' . ($ci - $ci_offset) . '" size="1" name="field_mimetype[' . $i . ']">';
        $content_cells[$i][$ci] .= '    <option value="">&nbsp;</option>';
        if (is_array($available_mime['mimetype'])) {
            foreach ($available_mime['mimetype'] as $mimekey => $mimetype) {
                $checked = isset($row['Field']) && isset($mime_map[$row['Field']]['mimetype']) && $mime_map[$row['Field']]['mimetype'] == str_replace('/', '_', $mimetype) ? 'selected ' : '';
                $content_cells[$i][$ci] .= '    <option value="' . str_replace('/', '_', $mimetype) . '" ' . $checked . '>' . htmlspecialchars($mimetype) . '</option>';
            }
        }
        $content_cells[$i][$ci] .= '</select>';
        $ci++;
        $content_cells[$i][$ci] = '<select id="field_' . $i . '_' . ($ci - $ci_offset) . '" size="1" name="field_transformation[' . $i . ']">';
        $content_cells[$i][$ci] .= '    <option value="" title="' . __('None') . '"></option>';
        if (is_array($available_mime['transformation'])) {
            foreach ($available_mime['transformation'] as $mimekey => $transform) {
                $checked = isset($row['Field']) && isset($mime_map[$row['Field']]['transformation']) && preg_match('@' . preg_quote($available_mime['transformation_file'][$mimekey]) . '3?@i', $mime_map[$row['Field']]['transformation']) ? 'selected ' : '';
                $tooltip = PMA_getTransformationDescription($available_mime['transformation_file'][$mimekey], false);
                $content_cells[$i][$ci] .= '<option value="' . $available_mime['transformation_file'][$mimekey] . '" ' . $checked . ' title="' . htmlspecialchars($tooltip) . '">' . htmlspecialchars($transform) . '</option>';
            }
        }
        $content_cells[$i][$ci] .= '</select>';
        $ci++;
        $content_cells[$i][$ci] = '<input id="field_' . $i . '_' . ($ci - $ci_offset) . '"' . ' type="text" name="field_transformation_options[' . $i . ']"' . ' size="16" class="textfield"' . ' value="' . (isset($row['Field']) && isset($mime_map[$row['Field']]['transformation_options']) ? htmlspecialchars($mime_map[$row['Field']]['transformation_options']) : '') . '"' . ' />';
        //$ci++;
    }
}
// end for
?>
<script src="./js/keyhandler.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
var switch_movement = 0;
开发者ID:htom78,项目名称:project,代码行数:31,代码来源:tbl_properties.inc.php

示例4: __

<tr>
    <th><?php 
echo __('Browser transformation');
?>
</th>
    <th><?php 
echo _pgettext('for MIME transformation', 'Description');
?>
</th>
</tr>
</thead>
<tbody>
<?php 
$odd_row = true;
foreach ($types['transformation'] as $key => $transform) {
    $desc = PMA_getTransformationDescription($types['transformation_file'][$key]);
    ?>
    <tr class="<?php 
    echo $odd_row ? 'odd' : 'even';
    ?>
">
        <td><?php 
    echo $transform;
    ?>
</td>
        <td><?php 
    echo $desc;
    ?>
</td>
    </tr>
    <?php 
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:transformation_overview.php


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