SiMan CMS
Домівка
Завантажити
Встановити
Оновити
Новини
CMF Demo
Генератор коду
Допомогти
UA
EN
Головна
Demos
UI Buttons
UI Buttons
Regular Button
Confirmarion (default)
Confirmarion (custom)
Bold
Custom Class
Custom Style
Dropdown
Dropdown URL
Dropdown URL target=_blank
Dropdown OnClick
Dropdown Confirmation
Highlights
Success
Error
Warning
Primary
Information
Attention
Code Example
sm_on_action('buttons', function () { sm_title('UI Buttons'); add_path_home(); add_path('Demos', 'index.php?m=demo'); add_path_current(); $ui = new UI(); $b=new Buttons(); $b->Button('Regular Button', 'index.php?m=demo&d=buttons'); $b->MessageBox('Confirmarion (default)', 'index.php?m=demo&d=buttons'); $b->MessageBox('Confirmarion (custom)', 'index.php?m=demo&d=buttons', 'Are you sure you want to visit this page?'); $b->Button('Bold', 'index.php?m=demo&d=buttons')->Bold(); $b->Button('Custom Class', 'index.php?m=demo&d=buttons')->AddClassname('btn-danger'); $b->AddButton('cst', 'Custom Style', 'index.php?m=demo&d=buttons'); $b->Style('cst', 'text-decoration:underline; color:#00aa00;'); $b->Button('Dropdown'); $b->DropDownItem('Dropdown URL', 'http://simancms.org/'); $b->DropDownItem('Dropdown URL target=_blank', 'http://simancms.org/', true); $b->DropDownSeparator(); $b->DropDownOnClick('Dropdown OnClick', "alert('OnClick');"); $b->DropDownMessageBox('Dropdown Confirmation', 'http://simancms.org/'); $ui->Add($b); unset($b); $ui->AddBlock('Highlights'); $btnh=new Buttons(); $btnh->Button('Success', 'index.php?m=demo&d=buttons') ->HighlightSuccess(); $btnh->Button('Error', 'index.php?m=demo&d=buttons') ->HighlightError(); $btnh->Button('Warning', 'index.php?m=demo&d=buttons') ->HighlightWarning(); $btnh->Button('Primary', 'index.php?m=demo&d=buttons') ->HighlightPrimary(); $btnh->Button('Information', 'index.php?m=demo&d=buttons') ->HighlightInfo(); $btnh->Button('Attention', 'index.php?m=demo&d=buttons') ->HighlightAttention(); $ui->Add($btnh); $ui->Output(true); });
Новини
Анонси
Релізи
Оновлення
Інші новини
Ads