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