PHP Classes

File: examples/views/TestExtension/helloextensions3_bs.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/views/TestExtension/helloextensions3_bs.blade.php   Download  
File: examples/views/TestExtension/helloextensions3_bs.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change:
Date: 4 years ago
Size: 4,225 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">


    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
   
</head>
<body>



<h1>Example of BladeOne Extensions2</h1>

@label(for="id1" text="hello world:") @input(id="id1" value="hello world$somevar" type="text" )
<hr>
@image(src="https://via.placeholder.com/350x150")
<hr>
@input(id="id1" value="hello world$somevar" type="radio" extra="placeholder='hello123' 555" outer="hi there")
<hr>select:<br>
@select(id="aaa" value=$selection values=$countries alias=$country)
    @item(value='aaa' text='hello world1')
    @item(value='aaa' text='hello world2')
    @item(value='aaa' text='hello world3')
    @items( value=$country->id text=$country->name)
@endselect
<hr>selectgroup:<br>
@select(id="aaa" value=$selection values=$countries alias=$country)
    @optgroup(label="group1")
        @item(value='aaa' text='hello world')
        @item(value='aaa' text='hello world')
        @item(value='aaa' text='hello world')
    @endoptgroup
    @items( value=$country->id text=$country->name optgroup=$country->continent)
@endselect

<br><br>
@select(id="aaa" value=$selection alias=$country multiple="multiple")
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @items(values=$countries value='id' text='name')
@endselect
<hr>

@checkbox(id="idsimple" value="1" checked="1" text="it is a selection")<br>
@checkbox(id="idsimple2" value="1" checked="" text="it is a selection")<br>

@radio(id="idsimple" value="1" checked="1" text="it is a selection")<br>
@radio(id="idsimple" value="1" checked="" text="it is a selection")<br>

@textarea(id="aaa" value="3333 3333
aaa3333


")
<br>

@button(value="click me" class="test" onclick='alert("ok")')

<br>
@link(href="https://www.google.cl" text="context")
<br>

@checkboxes(id="mycheckbox1" value=$selection alias=$country)
    @item(id='aa1' text='hello world_1' post="<br>")
    @item(id='aa2' text='hello world_2' post="<br>")
    @items(values=$countries value='id' text='name' post="<br>")
@endcheckboxes

@radios(id="radioid" name="radioid" value=$selection alias=$country)
    @item(value='aaa' text='hello world' post="<br>")
    @item(value='aaa' text='hello world2' post="<br>")
    @items(values=$countries text='name' post="<br>")
@endradios
<br>
@file(name="file" value="123.jpg" post="hello world")
<hr>
@table(class="table" values=$countries alias=$country border="1")
    @tablehead
        @cell(text="id")
        @cell(text="cod")
        @cell(text="name")
    @endtablehead
    @tablebody(id='hello world' )
        @tablerow(style="background-color:azure")
            @cell(text=$country->id style="background-color:orange")
            @cell(text=$country->cod )
            @cell(text=$country->name)
        @endtablerow
    @endtablebody
    @tablefooter
        @cell(text="id" colspan="3")
    @endtablefooter
@endtable
<h2>ul</h2>
@ul(id="aaa" value=$selection values=$countries alias=$country)
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @items(value=$country->id text=$country->name)
@endul
<h2>ol</h2>
@ol(id="aaa" value=$selection values=$countries alias=$country)
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @item(value='aaa' text='hello world')
    @items(value=$country->id text=$country->name)
@endol
<br>
<br>
<br>
<br>
</body>
</html>