Esempio n. 1
0
        <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'];
Esempio n. 2
0
?>
" />
                <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>
Esempio n. 3
0
                <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>
Esempio n. 4
0
</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>
Esempio n. 5
0
</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 
Esempio n. 6
0
            <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();
Esempio n. 7
0
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>
Esempio n. 8
0
</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 
}
Esempio n. 9
0
    ?>
        <?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 
Esempio n. 10
0
    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>
Esempio n. 11
0
                <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>
Esempio n. 12
0
        <div class="block-heading">
            <a href="#widget2container" data-toggle="collapse"><?php 
I18n::p('DB');
?>
</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('S_O_D');
?>
</th>
                        <th >&nbsp;</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
if (isset($this->data['dbList']['databases']) && is_array($this->data['dbList']['databases'])) {
    foreach ($this->data['dbList']['databases'] as $db) {
        ?>
                            <tr>
                                <td><a href="<?php 
        echo Theme::URL('Collection/Index', array('db' => $db['name']));
        ?>
"><?php 
Esempio n. 13
0
    <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>