File: WIAdmin/WIInc/site/Site/database.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WIInc/site/Site/database.php  >  Download  
File: WIAdmin/WIInc/site/Site/database.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 2,878 bytes
 

 

Contents

Class file image Download
<form class="form-horizontal database-form" id="database">
                      <fieldset>
                        <div id="legend">
                          <legend class="">Database Settings</legend>
                        </div>

                        <div class="control-group form-group">
                            <label class="control-label col-lg-4" for='host'>Host:<span class="required">*</span></label>
                            <div class="controls col-lg-8">
                                <input type="text" id="host" class="input-xlarge form-control" maxlength="88" placeholder="127.0.0.1" name="host" value="<?php echo $site->Website_Info('db_host');?>">
                            </div>
                        </div>

                        <div class="control-group form-group">
                            <label class="control-label col-lg-4" for="db_username">Db Username:<span class="required">*</span></label>
                            <div class="controls col-lg-8">
                                <input type="text" id="db_username" class="input-xlarge form-control" maxlength="16" placeholder="Username" name="db_username" value="<?php echo $site->Website_Info('db_username')?>">
                               
                            </div>
                        </div>

                        <div class="control-group form-group">
                            <label class="control-label col-lg-4" for="db_pass">Db Password: <span class="required">*</span></label>
                            <div class="controls col-lg-8">
                                <input type="password" id="db_pass" class="input-xlarge form-control" maxlength="16" placeholder="Password" name="db_pass" value="<?php echo $site->Website_Info('db_pass')?>">
                            </div>
                        </div>

                        <div class="control-group form-group">
                            <label class="control-label col-lg-4" for="db">Database <span class="required">*</span></label>
                            <div class="controls col-lg-8">
                                <input type="text" id="db" class="input-xlarge form-control" maxlength="16" placeholder="Database" name="db" value="<?php echo $site->Website_Info('db_name')?>">
                            </div>
                        </div>
                              <div class="control-group form-group">
                        <!-- Button -->
                        <div class="controls col-lg-offset-4 col-lg-8">
                           <button id="database_btn" class="btn btn-success" >Save</button>
                        </div>
                      </div>
                      <div class="results" id="results"></div>
                    </fieldset>
                        <br /><br />
                  </form>
                 


For more information send a message to info at phpclasses dot org.