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


PHP Theme::URL方法代码示例

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


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

示例1: isReadonly

 public function isReadonly()
 {
     if (Application::isReadonly()) {
         $this->message->error = I18n::t('I_A');
         $this->request->redirect(Theme::URL('Index/Index'));
     }
 }
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:7,代码来源:Controller.php

示例2: defined

<?php

defined('PMDDA') or die('Restricted access');
?>
  
    <ul  class="nav nav-list collapse in">
        <?php 
foreach ($this->data['databases'] as $db) {
    ?>
        <li ><a href="<?php 
    echo Theme::URL('Collection/Index', array('db' => $db['name']));
    ?>
"><?php 
    echo $db['name'];
    ?>
</a></li>
        <?php 
}
?>


    </ul>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:22,代码来源:list.php

示例3: gotoDatabse

 /**
  * @author Nanhe Kumar <nanhe.kumar@gmail.com>
  * @access protected
  */
 protected function gotoDatabse()
 {
     $this->request->redirect(Theme::URL('Database/Index'));
 }
开发者ID:DaveGTD,项目名称:phpmongodb,代码行数:8,代码来源:Collection.php

示例4: foreach

?>
</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'];
    ?>
</a></p></td>

                            <td><?php 
    echo $collection['count'];
    ?>
</td>
                             <?php 
    if (!Application::isReadonly()) {
        ?>
                            <td>
                                <a  href="#myModal" data-edit-collection="<?php 
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:index.php

示例5: array

<?php

require_once '_menu.php';
if ($this->data['record']) {
    ?>
<div class="row-fluid">
    <div id="block_export_method" class="block ">
        <a href="<?php 
    echo Theme::URL('Collection/Export', array('db' => $this->db, 'collection' => $this->collection));
    ?>
" class="block-heading" ><?php 
    I18n::p('BACK');
    ?>
</a>
        <textarea  rows="10" style="width:1040px;"><?php 
    echo $this->data['record'];
    ?>
</textarea>
    </div>    
</div>     
<?php 
} else {
    ?>
<form method="post" action="index.php">
    <div class="row-fluid">
        <div class="block " id="block_export_method">
            <a href="javascript:void(0)" class="block-heading" data-toggle="collapse"><?php 
    I18n::p('E_M');
    ?>
</a>
            <div class="block-body">
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:export.php

示例6: Logout

 public function Logout()
 {
     Application::getInstance('Session')->destroy();
     $this->request->redirect(Theme::URL('Login/Index'));
 }
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:5,代码来源:Login.php

示例7: foreach

    ?>
        <div id="record-<?php 
    echo $format;
    ?>
" style="display: <?php 
    echo $format === 'json' ? 'block' : 'none';
    ?>
">
            <?php 
    $i = -1;
    foreach ($this->data['record'][$format] as $cursor) {
        ++$i;
        if (isset($this->data['record']['document'][0]['_id']) && !Application::isReadonly()) {
            echo '&nbsp<input type="checkbox" name="ids[]" value="' . $this->data['record']['document'][$i]['_id'] . '" class="checkbox-remove" />';
            echo '&nbsp<a href="javascript:void(0)"  onclick="callAjax(\'' . Theme::URL('Collection/EditRecord', array('db' => $this->db, 'collection' => $this->collection, 'id' => $this->data['record']['document'][$i]['_id'], 'format' => $format, 'id_type' => gettype($this->data['record']['document'][$i]['_id']))) . '\')" class="icon-edit" title="Edit">' . I18n::t('') . '</a>';
            echo '&nbsp<a href="' . Theme::URL('Collection/DeleteRecord', array('db' => $this->db, 'collection' => $this->collection, 'id' => $this->data['record']['document'][$i]['_id'], 'id_type' => gettype($this->data['record']['document'][$i]['_id']))) . '" class="icon-remove" title="Delete">' . I18n::t('') . '</a>';
        }
        echo "<pre>";
        print_r($cursor);
        echo "</pre>";
    }
    ?>

            
        </div>
        <?php 
}
?>
    
</div>
   
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:30,代码来源:_list.php

示例8: 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

示例9: foreach

    echo $format;
    ?>
" style="display: <?php 
    echo $format === 'json' ? 'block' : 'none';
    ?>
">
            <?php 
    $i = -1;
    foreach ($this->data['record'][$format] as $cursor) {
        ++$i;
        if (isset($this->data['record']['document'][0]['_id']) && !Application::isReadonly()) {
            echo '&nbsp<input type="checkbox" name="ids[]" value="' . $this->data['record']['document'][$i]['_id'] . '" class="checkbox-remove" />';
            echo '&nbsp<a href="javascript:void(0)"  onclick="callAjax(\'' . Theme::URL('Collection/EditRecord', array('db' => $this->db, 'collection' => $this->collection, 'id' => $this->data['record']['document'][$i]['_id'], 'format' => $format, 'id_type' => gettype($this->data['record']['document'][$i]['_id']))) . '\')" class="icon-edit" title="Edit">' . I18n::t('') . '</a>';
            echo '&nbsp<a href="' . Theme::URL('Collection/DeleteRecord', array('db' => $this->db, 'collection' => $this->collection, 'id' => $this->data['record']['document'][$i]['_id'], 'id_type' => gettype($this->data['record']['document'][$i]['_id']))) . '" class="icon-remove" title="Delete">' . I18n::t('') . '</a>';
        }
        echo '<pre style="cursor:pointer;" onclick="if(window.getSelection().toString() == \'\') { callAjax(\'' . Theme::URL('Collection/EditRecord', array('db' => $this->db, 'collection' => $this->collection, 'id' => $this->data['record']['document'][$i]['_id'], 'format' => $format, 'id_type' => gettype($this->data['record']['document'][$i]['_id']))) . '\') }">';
        print_r($cursor);
        echo "</pre>";
    }
    ?>

            
        </div>
        <?php 
}
?>
    
</div>
   
<?php 
Theme::pagination($this->getModel()->totalRecord($this->db, $this->collection));
开发者ID:RrOoSsSsOo,项目名称:phpmongodb,代码行数:31,代码来源:_list.php

示例10: foreach

                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i><?php 
echo I18n::t('LAN');
?>
                            <i class="icon-caret-down"></i>
                        </a>

                        
                        <ul class="dropdown-menu">
                            <?php 
$languageList = Widget::get('languageList');
foreach ($languageList as $key => $val) {
    ?>
                            <li><a tabindex="-1" href="<?php 
    echo Theme::URL('Index/SetLanguage', array('language' => $key));
    ?>
"><?php 
    echo $val;
    ?>
</a></li>
                            <?php 
}
?>
                        </ul>
                    </li>

                </ul>
                <a class="brand" href="<?php 
echo Theme::getHome();
?>
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:header.php

示例11: isset

                            <td><?php 
    echo isset($index['unique']) ? $index['unique'] ? 'true' : 'false' : '';
    ?>
</td>
                            <td><?php 
    echo $index['ns'];
    ?>
</td>
                            <td><?php 
    echo isset($index['background']) ? is_double($index['background']) ? 'NumberLong(' . $index['background'] . ')' : $index['background'] : '';
    ?>
                            <?php 
    if (!Application::isReadonly()) {
        ?>
                            <td><?php 
        echo $index['name'] !== '_id_' ? '<a href="' . Theme::URL('Collection/DeleteIndexes', array('db' => $this->db, 'collection' => $this->collection, 'name' => $index['name'])) . '">Delete</a>' : '';
        ?>
</td>
                            <?php 
    }
    ?>
                        </tr>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>     
        <?php 
if (!Application::isReadonly()) {
    require_once '_create_index.php';
开发者ID:andrewyang96,项目名称:phpmongodb,代码行数:31,代码来源:indexes.php


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