/
tools.php
74 lines (65 loc) · 1.88 KB
/
tools.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* Created by IntelliJ IDEA.
* User: Roledene
* Date: 2/7/2016
* Time: 9:44 PM
*/
use app\Boostrap;
use app\Database;
use app\Element;
include('app/Database.php');
include('app/Element.php');
include('app\Boostrap.php');
include("includes/header.php");
//$db = new Database();
////$db->insert();
////$db->insertElement("textBox",mysqli_real_escape_string(Database::$connection,Element::text()),0);
//
//$attribute = array(
// 'class' => 'row'
//);
//
//Boostrap::openDiv($attribute);
//
// //side bar
// $attribute = array(
// 'class' => 'col-xs-3 col-md-3',
// 'style' => 'background: red; height: 20px;'
// );
//// var_dump($attribute);
// Boostrap::openDiv($attribute); // column open
// echo "<h1>Forms</h1>";
// Boostrap::closeDiv(); // column end
//
// $attribute = array(
// 'class' => 'col-xs-9 col-md-9',
// 'style' => 'background: blue; height: 20px;'
// );
//
//
// //body
// Boostrap::openDiv($attribute); // column open
// // open form
// $attribute = array(
// 'class' => 'form-horizontal',
// 'action' => 'test.php'
// );
// Boostrap::openForm("Form Builder",$attribute);
//
// $result = $db->getAllElements();
// while($row = $result->fetch_assoc()) {
// echo $row["code"]. "<br>";
// }
//// echo Element::button("submit");
//// echo Element::buttonLink("submit","test.html");
// Boostrap::closeForm();
// Boostrap::closeDiv(); //column end
//
//Boostrap::closeDiv(); // row end
// just call it here and see weather it works
echo Element::redio_Button();//if parameters need pass
echo Element::text(array('label' => 'my custom text box',
'placeholder'=> 'custom holder',
'help' => 'your help goes here'));
include("includes/footer.php");