public function __construct($init_date, $type = null) { $this->addRequire('css/CalendarMain.css'); $this->addRequire('js/component/CalendarMain.js'); parent::__construct('div'); try { $idat = new \DateTime(empty($_REQUEST['calendar_init_date']) ? date('Y-m-d') : $_REQUEST['calendar_init_date']); } catch (\Exception $e) { $idat = new \DateTime(date('Y-m-d')); } $this->__par = array('type' => 'mounthly', 'dimension' => array('width' => 640, 'height' => 480), 'days' => array(), 'type' => empty($_REQUEST['calendar_layout']) ? 'mounthly' : $_REQUEST['calendar_layout'], 'init-date' => $idat); $this->att('class', "osy-view-calendar"); switch ($this->get_par('type')) { case 'daily': $this->par('period', array($idat->format('Y-m-d'), $idat->format('Y-m-d'))); $this->par('build-method', 'build_daily'); break; case 'weekly': $dw = $idat->format('w'); $dw = empty($dw) ? 7 : $dw; //$ws = $idat->format('d') - ($dw - 1); //$we = $idat->format('d') + (7 - $dw); $dfws = clone $idat; $dfwe = clone $idat; $dfws->sub(new \DateInterval('P' . ($dw - 1) . 'D')); $dfwe->add(new \DateInterval('P' . (7 - $dw) . 'D')); $this->par('period', array($dfws->format('Y-m-d'), $dfwe->format('Y-m-d'))); $this->par('build-method', 'build_weekly'); break; default: $this->par('period', array($idat->format('Y-m-01'), $idat->format('Y-m-t'))); $this->par('build-method', 'build_monthly'); break; } }
public function __construct($id) { parent::__construct('div', $id); $this->att('class', 'osy-slider'); //env::$page->add_script(OSY_WEB_ROOT.'/js/component/Slider.js'); $this->addRequire('js/component/Slider.js'); }
public function __construct($name) { parent::__construct('div', $name); $this->att('class', 'osy-grid-property'); $this->addRequire('css/PropGrid.css'); $this->addRequire('js/component/PropGrid.js'); }
public function __construct($name) { parent::__construct('div', $name); $this->att('class', 'tabs'); $this->add(new HiddenBox($name))->att('class', 'req-reinit'); //osy_form::$page->add_script('../lib/jquery/jquery.scrollabletab.js'); }
public function __construct($name, $personalize = true) { parent::__construct('dummy', $name); $this->add(Tag::create('input'))->att('id', $name)->att('name', $name)->att('type', 'file')->att('class', 'osy-filebox hidden'); //env::$page->add_script(OSY_WEB_ROOT.'/js/component/FileBox.js'); $this->addRequire('js/component/FileBox.js'); }
public function __construct($name) { parent::__construct('div', $name); $this->att('class', 'osy-iframe-tab tabs'); //osy_form::$page->add_script('../lib/jquery/jquery.scrollabletab.js'); $this->addRequire('js/component/Iframe.js'); }
public function __construct($nam, $id = null) { parent::__construct('div', $nam, nvl($id, $nam)); $this->att('class', 'osy-datebox'); $this->dateField = $this->add(new TextBox($nam))->att('placeholder', '__/__/_____')->att('readonly')->att('size', 8)->att('maxlength', 12); $this->add('<span class="fa fa-calendar"></span>'); $this->addRequire('js/component/DateBox.js'); }
public function __construct($name) { parent::__construct('div', $name . '_main'); $this->att('class', 'osy-tinymce'); $this->add(new TextArea($name)); $this->addRequire('/vendor/tinymce-4.1.10/tinymce.min.js'); $this->addRequire('js/component/TinyMce.js'); }
public function __construct($id) { parent::__construct('div', $id); $this->addRequire('css/Chart.css'); $this->addRequire('js/chart/ChartNew.js'); $this->addRequire('js/component/Chart.js'); $this->att('class', 'osy-graph'); }
public function __construct($id) { parent::__construct('div', $id); $this->att('class', 'osy-imagebox'); $file = $this->add(tag::create('input')); $file->att('type', 'file')->att('class', 'hidden')->att('id', $id . '_file')->name = $id; $this->addRequire('js/component/ImageBox.js'); }
public function __construct($id, $tag = 'table') { parent::__construct($tag, $id); $this->par('label-position', 'outside'); if ($tag == 'div') { $this->__tag = array('div', 'div'); } }
public function __construct($name) { parent::__construct('input', $name); $this->att('type', 'text'); $this->att('name', $name); $this->att('class', 'autocomplete'); $this->addRequire('js/component/AutoComplete.js'); }
public function __construct($id) { parent::__construct('div', $id); $this->panel = $this->add(new panel($id . '_body')); $this->panel->att('class', 'osy-panel-1')->par('label-position', 'inside'); $this->att('class', 'osy-panel-mobile'); //env::$page->add_script(OSY_WEB_ROOT.'/js/component/PanelMobile.js'); $this->addRequire('js/component/PanelMobile.js'); }
public function __construct($name) { parent::__construct('div'); $this->class = 'osy-textsearch'; $this->id = $name; $this->add(new HiddenBox($name)); $this->textBox = $this->add(tag::create('input'))->att('type', 'text')->att('name', $name . '_lbl')->att('readonly', 'readonly'); $this->spanSrc = $this->add(tag::create('span'))->att('class', 'fa fa-search'); }
public function __construct($nam, $id = null) { parent::__construct('div', $nam); $this->att('class', 'osy-splitter'); $this->add('----'); env::$page->add_css(OSY_WEB_ROOT . '/css/Splitter.css'); env::$page->add_script(OSY_WEB_ROOT . '/js/component/Splitter.js'); $this->addRequire('css/Splitter.css'); $this->addRequire('js/component/Splitter.js'); }
public function __construct($name) { parent::__construct('div'); $this->class = 'osy-textsearch-inline'; $this->id = $name; $this->hdnBox = $this->add(new HiddenBox($name)); $this->textBox = $this->add(tag::create('input'))->att('type', 'text')->att('name', $name . '_lbl'); $this->spanSrc = $this->add(tag::create('span'))->att('class', 'fa fa-search'); $this->addRequire('css/TextSearchInLine.css'); $this->addRequire('js/component/TextSearchInLine.js'); }
public function __construct($name) { parent::__construct('dummy',$name); env::$page->add_css(OSY_WEB_ROOT.'/css/leaflet.css'); env::$page->add_script(OSY_WEB_ROOT.'/js/component/omapgrid_openlayers.js'); $this->map = $this->add(tag::create('div'))->att('class','osy-mapgrid-openlayers'); $this->add(new HiddenBox($this->id.'_ne_lat')); $this->add(new HiddenBox($this->id.'_ne_lng')); $this->add(new HiddenBox($this->id.'_sw_lat')); $this->add(new HiddenBox($this->id.'_sw_lng')); $this->add(new HiddenBox($this->id.'_center')); }
public function __construct($name) { parent::__construct('span', $name); $this->hidden = $this->add(new HiddenBox($name)); $this->check = $this->add(new InputBox('checkbox', 'chk_' . $name, 'chk_' . $name)); $this->check->att('class', 'osy-check')->att('value', '1'); /* env::addListener('before-save',$id,function() use ($id) { if (empty($_REQUEST[$id])) { $_REQUEST[$id] = '00'; } });*/ }
public function __construct($name) { parent::__construct('div', $name); $this->att('class', 'osy-social'); Osy::$page->add_css(OSY_WEB_ROOT . '/css/Social.css'); Osy::$page->add_script(OSY_WEB_ROOT . '/js/component/Social.js'); $this->addRequire('css/Social.css'); $this->addRequire('js/component/Social.js'); $pst = $this->add(tag::create('div'))->att('class', 'osy-social-post'); $pst->add(new TextArea($name . '_post'))->att('class', 'osy-social-post'); $pst->add(tag::create('div'))->att('class', 'osy-social-post-canvas'); $pst->add(new Button($name . 'send'))->att('class', 'osy-social-send-post')->att('label', 'Post'); $this->add(tag::create('div'))->att('class', 'osy-social-body')->add('<ul class="notify">' . $this->printPostList($_REQUEST['_uid']) . '</ul>'); }
public function __construct($name) { parent::__construct('form', $name); $this->att('name', $name); /* * Creo una div cornice che conterrà il panel principale in modo da avere * un componente a cui poter assegnare un altezza fissa e quindi far comparire * le barre di scorrimento */ $this->corner = $this->add(new Tag('div'))->att('id', $name . '-corner'); $this->corner->deep =& $this->deep; /* * Aggiungere il panel nella posizione 0 serve ad assegnare un panel di default * alla form su cui verranno aggiunti tutti i componenti che non hanno un panel-parent * settatto. */ $this->component[0] = $this->corner->add(new Panel($name . '-panel')); $this->component[0]->par('label-position', 'inside'); }
public function __construct($name) { parent::__construct('dummy', $name); $this->addRequire('css/MapGridLeaflet.css'); $this->addRequire('css/MapGridLeafletDraw.css'); $this->addRequire('js/map/leaflet.js'); $this->addRequire('js/map/leaflet.awesome-markers.min.js'); $this->addRequire('js/map/leaflet.draw.js'); $this->addRequire('js/component/MapGridLeaflet.js'); $this->map = $this->add(new Tag('div'))->att('class', 'osy-mapgrid-leaflet'); $this->add(new HiddenBox($this->id . '_ne_lat')); $this->add(new HiddenBox($this->id . '_ne_lng')); $this->add(new HiddenBox($this->id . '_sw_lat')); $this->add(new HiddenBox($this->id . '_sw_lng')); $this->add(new HiddenBox($this->id . '_center')); $this->add(new HiddenBox($this->id . '_cnt_lat')); $this->add(new HiddenBox($this->id . '_cnt_lng')); $this->add(new HiddenBox($this->id . '_zoom')); }
public function __construct($name) { parent::__construct('dummy', $name); //env::$page->add_css(OSY_WEB_ROOT.'/css/omapgrid.css'); //env::$page->add_script('http://maps.google.com/maps/api/js?sensor=false&language=en&libraries=drawing'); //env::$page->add_script('/lib/gmap3-6.0.0/gmap3.min.js'); //env::$page->add_script(OSY_WEB_ROOT.'/js/component/MapGridGmap.js'); $this->addRequire('css/omapgrid.css'); $this->addRequire('http://maps.google.com/maps/api/js?sensor=false&language=en&libraries=drawing'); $this->addRequire('/vendor/gmap3-6.0.0/gmap3.min.js'); $this->addRequire('js/component/MapGridGmap.js'); $this->map = $this->add(tag::create('div'))->att('class', 'osy-mapgrid'); $this->add(new HiddenBox($this->id . '_ne_lat')); $this->add(new HiddenBox($this->id . '_ne_lng')); $this->add(new HiddenBox($this->id . '_sw_lat')); $this->add(new HiddenBox($this->id . '_sw_lng')); $this->add(new HiddenBox($this->id . '_center')); $this->add(new HiddenBox($this->id . '_polygon')); $this->add(new HiddenBox($this->id . '_refresh_bounds_blocked')); }
public function __construct($id, $sql = '', $pag = 0) { parent::__construct('div', $id); $this->__par['pag_cur'] = empty($pag) ? 0 : $pag; $this->att('class', 'osy-addressbook')->att('pag', $this->__par['pag_cur']); $this->__par['record-add'] = false; $this->__par['record-add-label'] = " + Aggiungi"; $this->__par['record-update'] = false; $this->__par['record-update-label'] = "Modifica"; $this->__par['form'] = null; $this->__par['title'] = ''; $this->__par['row_shw'] = 16; $this->__par['ajax'] = false; $this->__par['filter'] = array(); $this->__par['scroll-master'] = 'self'; $this->__par['datasource-sql'] = $sql; env::$page->add_css(OSY_WEB_ROOT . '/css/AddressBook.css'); env::$page->add_script(OSY_WEB_ROOT . '/js/component/AddressBook.js'); $this->addRequire(OSY_WEB_ROOT . '/css/AddressBook.js', Component::CSS); $this->addRequire(OSY_WEB_ROOT . '/js/component/AddressBook.js', Component::JS); }
public function __construct($name) { parent::__construct('div', $name); //Add javascript manager; $this->addRequire('js/component/DataGrid.js'); $this->att('class', 'osy-datagrid-2'); $this->__par['type'] = 'datagrid'; $this->__par['row-num'] = 0; $this->__par['pkey'] = array(); $this->__par['max_wdt_per'] = 96; $this->__par['sql_filter'] = array(); $this->__par['column-object'] = array(); $this->__sta['col_len'] = array(); $this->__par['paging'] = true; $this->__par['error-in-sql'] = false; $this->__par['record-add'] = null; $this->__par['record-update'] = null; $this->__par['layout'] = null; $this->__par['div-stat'] = null; $this->__par['head-hide'] = 0; $this->checkAndBuildFilter(); }
public function __construct($nam) { parent::__construct('div', $nam); $this->att('class', 'toolbar'); }
public function __construct($name) { parent::__construct('div', $name); $this->table = $this->add(new Tag('table')); $this->att('class', 'osy-check-list'); }
public function __construct($nam, $id = null) { parent::__construct('div', $nam); $this->att('class', 'osy-dummy'); }
public function __construct($id = null) { parent::__construct('div', $id); $this->class = 'osy-taglist'; $this->addRequire('js/component/TagList.js'); }
public function __construct($name) { parent::__construct('textarea', $name); $this->name = $name; }
public function __construct($nam, $id = null) { parent::__construct('select', nvl($id, $nam)); $this->att('name', $nam); }