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


PHP I18n::p方法代码示例

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


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

示例1: array

        <div class="block-heading">
            <a href="#widget2container" data-toggle="collapse"><?php 
I18n::p('COLLECTION');
?>
</a>
        </div>
        <div id="widget2container" class="block-body collapse in">
            <table class="table list">
                <thead>
                    <tr>
                        <th><?php 
I18n::p('NAME');
?>
</th>
                        <th><?php 
I18n::p('T_C');
?>
</th>
                        <th >&nbsp;</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
foreach ($this->data['collectionList'] as $collection) {
    ?>
                        <tr>
                            <td><p><i class="icon-user"></i> <a  href="<?php 
    echo Theme::URL('Collection/Record', array('db' => $this->db, 'collection' => $collection['name']));
    ?>
"><?php 
    echo $collection['name'];
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:index.php

示例2:

?>
" />
                <input type="hidden" name="collection" value="<?php 
echo $this->collection;
?>
" />
            </form>
        </div>
        <div class="tab-pane fade" id="JSON">
            <form id="tab3" method="post" action="index.php">
                <textarea name="data" rows="16" class="input-xlarge" style="width:950px;">{
  
}</textarea>
                <div>
                    <button class="btn btn-primary"><?php 
I18n::p('SAVE');
?>
</button>
                </div>
                <input type="hidden"  name="load" value="Collection/SaveRecord"/>
                <input type="hidden" name="type" value="JSON" />
                <input type="hidden" name="db" value="<?php 
echo $this->db;
?>
" />
                <input type="hidden" name="collection" value="<?php 
echo $this->collection;
?>
" />
            </form>
        </div>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:_insert.php

示例3:

                <input type="text" value="" id="collection_name" name="collection" class="input-xlarge" required="required"><br><br>
                <label style="width:70px;"><?php 
I18n::p('IS_CAPPED');
?>
</label>
                <input type="checkbox" value="1" id="collection_capped" name="capped"><br><br>
                <label style="width:70px;"><?php 
I18n::p('SIZE');
?>
</label>
                <input type="text" value="" id="collection_size" name="size" class="input-xlarge "><br><br>
                <label style="width:70px;"><?php 
I18n::p('Max');
?>
</label>
                <input type="text" value="" id="collection_max" name="max" class="input-xlarge"><br><br>
                <input type="hidden" id="load-create" name="load" value="Collection/CreateCollection" />
                <input type="hidden" name="db" value="<?php 
echo $this->db;
?>
" />
                <label style="width:70px;">&nbsp;</label>

                <button class="btn btn-primary" name="save"><?php 
I18n::p('CREATE');
?>
 </button>

            </form>
        </div>
    </div>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:_create.php

示例4:

</label>
                <input name="password" type="password" class="span12" value="" autocomplete="<?php 
echo $autocomplete;
?>
">
                <?php 
if (Config::$authentication['authentication']) {
    ?>
                    <label><?php 
    I18n::p('Database');
    ?>
</label>
                    <input name="db" type="text" class="span12" value="" autocomplete="<?php 
    echo $autocomplete;
    ?>
">
                <?php 
}
?>
                <button class="btn btn-primary pull-right"><?php 
I18n::p('LOGIN');
?>
</button>

                <div class="clearfix"></div>
                <input type="hidden"  name="load" value="Login/Index"/>
            </form>
        </div>
    </div>
</div>
开发者ID:nasvil,项目名称:phpmongodb,代码行数:30,代码来源:index.php

示例5: foreach

</td>
                        <td><?php 
    echo $this->data['mongoinfo']['version'];
    ?>
</td>
                    </tr>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div>
    <div class="block span6">
        <a href="#widget1container" class="block-heading" data-toggle="collapse"><?php 
I18n::p('B_I');
?>
</a>
        <div id="widget1container" class="block-body collapse in">
            <table class="table">
                <tbody>
                    <?php 
if (is_array($this->data['mongoinfo'])) {
    foreach ($this->data['mongoinfo'] as $k => $v) {
        ?>
                    <tr>
                        <td><?php 
        echo $k;
        ?>
</td>
                        <td><?php 
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:index.php

示例6:

            <p class="error-text" id="pop-up-error-text"><i class="icon-warning-sign modal-icon"></i><?php 
I18n::p('A_Y_W_T_D_D');
?>
</p>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true"><?php 
I18n::p('CANCEL');
?>
</button>
            <button class="btn " id="button-create-database"><i class="icon-save" ></i><?php 
I18n::p('SAVE');
?>
</button>
            <button id="button-delete-database" class="btn btn-danger" data-dismiss="modal"><?php 
I18n::p('DELETE');
?>
</button>
        </div>
    </div>
    <input type="hidden" id="pop-up-load" name="load" value="" />
    <input type="hidden" id="pop-up-old-database" name="old_db" value="" />
</form> 

<script type="text/javascript">
    $(document).ready(function() {
        $("a[data-delete-db]").click(function() {
            $("#pop-up-database").val($(this).attr("data-delete-db"));
            $("#pop-up-load").val("Database/Drop");
            $('#button-delete-database').show();
            $('#button-create-database').hide();
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:_form.php

示例7: foreach

echo $this->data['code'];
?>
</textarea>
    <div>
        Database : <select style="width:auto;" name="db">
            <?php 
foreach ($this->data['databases']['databases'] as $db) {
    echo '<option value="' . $db['name'] . '">' . $db['name'] . '</option>';
}
?>
    
        </select>
    </div>
    <div>
        <button class="btn btn-primary"><?php 
I18n::p('Execute');
?>
</button>
    </div>
</form>

    <p>
    <?php 
if (!empty($this->data['response'])) {
    echo "<pre>";
    print_r($this->data['response']);
    echo "</pre>";
}
?>
 
    </p>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:execute.php

示例8:

</a>
            <div class="block-body">
                <input type="radio" checked="checked" id="json_export" value="quick" name="json">&nbsp;<?php 
    I18n::p('JSON');
    ?>
<br>
               
            </div>
        </div>
        <input type="hidden" name="db" id="db-export" value="<?php 
    echo $this->db;
    ?>
" />
        <input type="hidden" name="collection" id="collection_export" value="<?php 
    echo $this->collection;
    ?>
" />
        <input type="hidden" name="load" value="Collection/Export" />
        <input class="btn btn-primary btn-large" type="submit" name="btnExport" Value="<?php 
    I18n::p('EXPORT');
    ?>
" />
    </div>
</form>    
<script>
    $(document).ready(function() {
       PMDE.init();
    });
 </script>    
<?php 
}
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:export.php

示例9:

    ?>
        <?php 
    if ($showTab) {
        ?>
    
            <ul class="nav nav-tabs">
                <li id="li-json"class="active"><a href="javascript:void(0)" data-list-record="json"><?php 
        I18n::p('JSON');
        ?>
</a></li>
                <li id="li-array"><a href="javascript:void(0)" data-list-record="array"><?php 
        I18n::p('Array');
        ?>
</a></li>
                <li id="li-document"><a href="javascript:void(0)" data-list-record="document"><?php 
        I18n::p('MongoCursor');
        ?>
</a></li>
            </ul>
            <?php 
        $showTab = false;
    }
    ?>
        <div id="record-<?php 
    echo $format;
    ?>
" style="display: <?php 
    echo $format === 'json' ? 'block' : 'none';
    ?>
">
            <?php 
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:_list.php

示例10: array

    echo Theme::URL('Collection/Import', array('db' => $this->db, 'collection' => $this->collection));
    ?>
')" href="javascript:void(0)"><?php 
    I18n::p('IMPORT');
    ?>
</a>
    <?php 
}
?>
    <a class="btn <?php 
echo $this->application->view === 'indexes' ? 'active' : '';
?>
" onclick="callAjax('<?php 
echo Theme::URL('Collection/Indexes', array('db' => $this->db, 'collection' => $this->collection));
?>
')" href="javascript:void(0)"><?php 
I18n::p('INDEXES');
?>
</a>
    <a class="btn <?php 
echo $this->application->view === 'search' ? 'active' : '';
?>
" onclick="callAjax('<?php 
echo Theme::URL('Collection/Search', array('db' => $this->db, 'collection' => $this->collection));
?>
')" href="javascript:void(0)"><?php 
I18n::p('SEARCH');
?>
</a>
</div>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:30,代码来源:_menu.php

示例11:

                <input type="hidden" name="collection" value="<?php 
echo $this->collection;
?>
" />
                <input type="hidden" name="search" value="1" />
                <input type="hidden" name="type" value="array" />
            </form>
        </div>
        <div class="tab-pane fade" id="searchJSON">
            <form id="tab3" method="get" action="index.php">
                <textarea name="query" rows="3" class="input-xlarge" style="width:1000px;">{
  
}</textarea>
                <div>
                    <button class="btn btn-primary"><?php 
I18n::p('GO');
?>
</button>
                </div>
                <input type="hidden"  name="load" value="Collection/Record"/>
                <input type="hidden" name="db" value="<?php 
echo $this->db;
?>
" />
                <input type="hidden" name="collection" value="<?php 
echo $this->collection;
?>
" />
                <input type="hidden" name="search" value="1" />
                <input type="hidden" name="type" value="json" />
            </form>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:search.php

示例12:

    <div class="row-fluid">
        <div class="block " id="block_export_method">
            <a href="javascript:void(0)" class="block-heading" data-toggle="collapse"><?php 
echo I18n::t('I_I_T_C', $this->collection);
?>
 </a>
            <div class="block-body">
                <?php 
I18n::p('JSON_FILE');
?>
 <input type="file" name="import_file" id="import_file"/>
            </div>
        </div>
        
        <input type="hidden" name="db" id="db-export" value="<?php 
echo $this->db;
?>
" />
        <input type="hidden" name="collection" id="collection_export" value="<?php 
echo $this->collection;
?>
" />
        <input type="hidden" name="load" value="Collection/Import" />
        <input class="btn btn-primary btn-large" type="submit" name="btnExport" Value="<?php 
I18n::p('IMPORT');
?>
" />
    </div>
</form>    
 
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:29,代码来源:import.php


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