Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ADD.PHP
- <?php
- Loader::element('editor_init');
- Loader::element('editor_config');
- Loader::element('editor_controls');
- ?>
- <style>
- div label { padding: 2px 0;}
- </style>
- <div style="text-align: center" id="ccm-editor-pane">
- <div style="text-align: center"><textarea id="ccm-content-<?php echo $a->getAreaID()?>" class="advancedEditor ccm-advanced-editor" name="content"></textarea></div>
- </div>
- <fieldset style="border: 1px solid silver; padding: 5px 5px 10px 5px; margin-top: 10px;">
- <legend>Login</legend>
- <?php echo $form->text('user', array('style' => 'width: 47%','title'=>'Username'));?>
- <?php echo $form->text('pass', array('style' => 'width: 47%; float: right','title'=>'Password'));?>
- </fieldset>
- VIEW.PHP
- <?php
- echo $content;
- if (isset($_POST["user"]) && strlen($_POST["user"]) > 0) {
- echo "<p><b>Username:</b> $user<br />";
- }
- if (isset($_POST["pass"]) && strlen($_POST["pass"]) > 0) {
- echo "<p><b>Password:</b> $pass<br />";
- }
- ?>
- DB.XML
- <?xml version="1.0"?>
- <schema version="0.3">
- <table name="btBasicTest">
- <field name="bID" type="I">
- <key />
- <unsigned />
- </field>
- <field name="content" type="X2">
- </field>
- <field name="user" type="X2">
- </field>
- <field name="pass" type="X2">
- </field>
- </table>
- </schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement