code quality
@ -1,17 +1,17 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.min.css">
|
||||
<title>Card example</title>
|
||||
<title>BreadCrumb example</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include "../phpxpress/breadcrumb.php";
|
||||
include "../phpxpress/Breadcrumb.php";
|
||||
|
||||
$links["Github"] = "https://www.github.com";
|
||||
$links["xfarrow"] = "https://www.github.com/xfarrow";
|
||||
$links["PhpXpress"] = "https://www.github.com/xfarrow/phoxpress";
|
||||
|
||||
$breadcrumb = new BreadCrumb;
|
||||
$breadcrumb = new PhpXpress\BreadCrumb;
|
||||
|
||||
$breadcrumb->setDataSource($links);
|
||||
$breadcrumb->draw();
|
@ -5,13 +5,13 @@
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include "../phpxpress/card.php";
|
||||
include "../phpxpress/Card.php";
|
||||
|
||||
Card::beginCardGroupLayout(36);
|
||||
PhpXpress\Card::beginCardGroupLayout(36);
|
||||
|
||||
// Rome
|
||||
|
||||
$card1 = new Card;
|
||||
$card1 = new PhpXpress\Card;
|
||||
$card1->setImageSource("./images/colosseum.jpg");
|
||||
$card1->setTitle("Rome");
|
||||
$card1->setSubTitle("Capital of Italy");
|
||||
@ -39,7 +39,7 @@
|
||||
$paris->Inhabitants = "2.229.095";
|
||||
$paris->Zip = "750XX";
|
||||
|
||||
$card2 = new Card;
|
||||
$card2 = new PhpXpress\Card;
|
||||
$card2->setImageSource("./images/paris.jpg");
|
||||
$card2->setTitle("Paris");
|
||||
$card2->setSubTitle("Capital of France");
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
$card2->draw();
|
||||
|
||||
Card::endCardGroupLayout();
|
||||
PhpXpress\Card::endCardGroupLayout();
|
||||
|
||||
function onFieldDisplaying(&$field , &$value){
|
||||
if($field == "Inhabitants"){
|
@ -1,13 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.min.css">
|
||||
<script type="text/javascript" src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.js"></script>
|
||||
<title>Dropdown example</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include "../phpxpress/dropdown.php";
|
||||
|
||||
$dropdown = new Dropdown;
|
||||
include "../phpxpress/Dropdown.php";
|
||||
|
||||
$dropdown = new PhpXpress\Dropdown;
|
||||
|
||||
$dropdown->setTitle("Bank Account");
|
||||
$dropdown->setDataSource(array("Unicredit" => "#" , "United Bank" => "#" , "National Bank" => "#"));
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 213 KiB |
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
@ -5,7 +5,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include "../phpxpress/table.php";
|
||||
include "../phpxpress/Table.php";
|
||||
|
||||
class Employee{
|
||||
public $name;
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
$employees = array($employee1,$employee2,$employee3);
|
||||
|
||||
$table = new Table;
|
||||
$table = new PhpXpress\Table;
|
||||
$table->addColumn("Extra");
|
||||
$table->setDataSource($employees);
|
||||
$table->setCustomCaptions(array("Extra" , "Name", "Surname", "Date of Birth", "Social Security Number"));
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PhpXpress v1.0
|
||||
* PhpXpress v1.0.1
|
||||
*
|
||||
* @see https://github.com/xfarrow/phpxpress The PhpXpress GitHub project
|
||||
*
|
||||
@ -11,7 +11,7 @@
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
include "include.php";
|
||||
namespace PhpXpress;
|
||||
|
||||
class BreadCrumb{
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PhpXpress v1.0
|
||||
* PhpXpress v1.0.1
|
||||
*
|
||||
* @see https://github.com/xfarrow/phpxpress The PhpXpress GitHub project
|
||||
*
|
||||
@ -11,7 +11,9 @@
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
include "include.php";
|
||||
namespace PhpXpress;
|
||||
|
||||
include "Code.php";
|
||||
|
||||
class Card{
|
||||
|
||||
@ -226,6 +228,5 @@
|
||||
static function endCardGroupLayout(){
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
@ -1,8 +1,7 @@
|
||||
<script type="text/javascript" src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.js"></script>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PhpXpress v1.0
|
||||
* PhpXpress v1.0.1
|
||||
*
|
||||
* @see https://github.com/xfarrow/phpxpress The PhpXpress GitHub project
|
||||
*
|
||||
@ -12,7 +11,9 @@
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
include "include.php";
|
||||
namespace PhpXpress;
|
||||
|
||||
include "Code.php";
|
||||
|
||||
class Dropdown{
|
||||
|
@ -10,8 +10,8 @@
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
namespace PhpXpress;
|
||||
|
||||
include "include.php";
|
||||
class Table{
|
||||
|
||||
/* === Structure === */
|
@ -1,3 +0,0 @@
|
||||
<?php
|
||||
include_once 'code.php';
|
||||
?>
|