| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | class BrowsePanel extends Sphp\tools\Component{ |
| 7: | private $label = "Browse"; |
| 8: | |
| 9: | public function fu_setLabel($label) { |
| 10: | $this->label = $label; |
| 11: | } |
| 12: | protected function onrender(){ |
| 13: | $this->tagName = 'div'; |
| 14: | $this->setPreTag('<div class="card card-primary"> |
| 15: | <div class="card-header"> |
| 16: | <h4 class="card-title"> |
| 17: | <span class="pull-left hidden-xs showopacity fa fa-globe"></span> |
| 18: | '. $this->label .' |
| 19: | <a href="<?php echo getEventURL(\'print\', \'\', \''. SphpBase::sphp_router()->getCurrentRequest() .'\'); ?>" target="__blank" title="Print"> |
| 20: | <span class="pull-right hidden-xs showopacity fa fa-print"></span></a> |
| 21: | </h4> |
| 22: | </div> |
| 23: | <div class="card-block scrollbar" style="overflow: auto; white-space: nowrap;"> |
| 24: | <div class="block"> |
| 25: | |
| 26: | |
| 27: | '); |
| 28: | $this->class = "content px-4 py-4"; |
| 29: | $this->setPostTag('</div></div></div>'); |
| 30: | |
| 31: | } |
| 32: | |
| 33: | } |
| 34: |