Example #1
0
function listitem($name, $version)
{
    DIV_BEGIN('', 'modulename');
    echo $name;
    DIV_END();
    DIV_BEGIN('', 'moduleversion');
    echo $version;
    DIV_END();
}
Example #2
0
<?php

DIV_BEGIN('', 'footer');
ANCHOR('https://github.com/vajayattila/easyphpframe/wiki', 'Home on GitHub', '_blank');
DIV_END();
Example #3
0
<?php

$this->includeeasyview('easydemo/begin');
$this->includeeasyview('easydemo/header');
$this->includeeasyview('easydemo/topmenu');
$this->includeeasyview('easydemo/functions');
DIV_BEGIN('', 'article');
H_BEGIN(1);
echo 'Versions of components';
H_END();
H_BEGIN(2);
echo 'Helpers';
H_END();
listitems($this->getdependences(), COMPONENT_HELPER);
H_BEGIN(2);
echo 'Libraries';
H_END();
listitems($this->getdependences(), COMPONENT_LIBRARY);
H_BEGIN(2);
echo 'Controllers';
H_END();
listitems($this->getdependences(), COMPONENT_CONTROLLER);
H_BEGIN(2);
echo 'Handlers';
H_END();
listitems($this->getdependences(), COMPONENT_HANDLER);
if (getmodulecountbytype(COMPONENT_MODEL) != 0) {
    H_BEGIN(2);
    echo 'Modules';
    H_END();
    listitems($this->getdependences(), COMPONENT_MODEL);
<?php

$this->includeeasyview('easydemo/begin');
$this->includeeasyview('easydemo/header');
DIV_BEGIN('', $this->type);
DIV_BEGIN('', $this->type . 'message');
echo $this->errormessage;
DIV_END();
if ($this->backurl) {
    ANCHOR($this->backurl, 'Home');
}
DIV_END();
$this->includeeasyview('easydemo/footer');
$this->includeeasyview('easydemo/end');
Example #5
0
echo 'Called method';
H_END();
listitem($this->geteasyurl()->getmethodname(), '&nbsp;');
H_BEGIN(2);
echo 'Called controller';
H_END();
listitem($this->geteasyurl()->getcontrollername(), '&nbsp;');
H_BEGIN(2);
echo 'Called function';
H_END();
listitem($this->geteasyurl()->getfunctionname(), '&nbsp;');
H_BEGIN(2);
echo 'Url segments';
H_END();
segmentlist($this->geteasyurl());
H_BEGIN(2);
echo 'Query parameters';
H_END();
paramlist($this->geteasyurl());
H_BEGIN(2);
echo 'Url demonstrations';
H_END();
DIV_BEGIN('', 'urldemo');
ANCHOR($this->getbaseurl() . 'index.php/valuesbyurl/aaa/bbb/ccc', 'Demo of segments');
ANCHOR($this->getbaseurl() . 'index.php/valuesbyurl?aaa=111&bbb=222', 'Demo of parameters');
ANCHOR($this->getbaseurl() . 'index.php/valuesbyurl/aaa/bbb/ccc?aaa=111&bbb=222', 'Demo of segments and parameters');
ANCHOR($this->getbaseurl() . 'index.php/valuesbyurl', 'Default url');
DIV_END();
DIV_END();
$this->includeeasyview('easydemo/footer');
$this->includeeasyview('easydemo/end');
Example #6
0
<?php

DIV_BEGIN('', 'topmenu');
DIV_BEGIN('', 'topmenubutton');
ANCHOR($this->getbaseurl() . 'index.php', 'Home');
DIV_END();
DIV_END();
Example #7
0
<?php

DIV_BEGIN('', 'header');
DIV_BEGIN('', 'logo');
SVG('logo', '', 'logosvg');
DIV_END();
DIV_BEGIN('', 'header_caption');
echo 'Demonstration page';
DIV_END();
DIV_END();
Example #8
0
<?php

HTML_BEGIN();
HEADER_BEGIN();
LINK_CSS($this->getbaseurl() . 'css/' . $this->getcssname() . '.css');
META('name="viewport" content="width=device-width, initial-scale=1"');
HEADER_END();
BODY_BEGIN('', 'light_bodyclass');
DIV_BEGIN('', 'page');
// page begin
H_END();
paramlist($this->geteasyurl());
H_BEGIN(2);
echo 'Url demonstrations';
H_END();
DIV_BEGIN('urldemo');
ANCHOR($this->getbaseurl() . 'index.php/default/aaa/bbb/ccc', 'Demo of segments');
BR();
ANCHOR($this->getbaseurl() . 'index.php/default?aaa=111&bbb=222', 'Demo of parameters');
BR();
ANCHOR($this->getbaseurl() . 'index.php/default/aaa/bbb/ccc?aaa=111&bbb=222', 'Demo of segments and parameters');
BR();
ANCHOR($this->getbaseurl() . 'index.php/default', 'Default url');
DIV_END();
DIV_END();
DIV_BEGIN('version');
H_BEGIN(1);
echo 'Error message demonstration';
H_END();
ANCHOR($this->getbaseurl() . 'index.php/demoerror', 'Error message');
BR();
ANCHOR($this->getbaseurl() . 'index.php/demowarning', 'Warning message');
BR();
ANCHOR($this->getbaseurl() . 'index.php/demoinfo', 'Info message');
BR();
DIV_END();
$arr = array("első" => 12345, "második" => 23456, 3 => 34567, "data" => "dsjkhsdlkfjhasdklfjhsadlkfjsad sdafkjasdf dsakjfasdf asdkfljasd fsadáűí", "data1" => "dsjkhsdlkfjhasdklfjhsadlkfjsad sdafkjasdf dsakjfasdf asdkfljasd fsadáűí", "data2" => "éáűőúöüóí!{}().");
$this->geteasysession()->set('data', $arr);
$this->geteasysession()->write();
$var = $_SESSION['easyuserdata'];
if ($this->geteasysession()->isencoded()) {