Beispiel #1
0
    public function renderCell($value)
    {
        $imgURL = Util::res($value);
        if ($value != null && $value != "") {
            return <<<HTML
<a target="_blank" href="{$imgURL}">Open File</a>
HTML;
        } else {
            return "";
        }
    }
Beispiel #2
0
    public function renderCell($value)
    {
        $imgURL = Util::res($value);
        if ($value != null && $value != "") {
            return <<<HTML
<a target="_blank" href="{$imgURL}"><img src="{$imgURL}" alt="" style="max-width: 200px; max-height:70px;"></a>
HTML;
        } else {
            return "";
        }
    }
Beispiel #3
0
            </div>
        </form>

    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 2.1.4 -->
<script src="<?php 
echo Util::res("vendor/components/jquery/jquery.min.js");
?>
" type="text/javascript"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="<?php 
echo Util::res("vendor/almasaeed2010/adminlte/bootstrap/js/bootstrap.min.js");
?>
" type="text/javascript"></script>

<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>
Beispiel #4
0
"></script>
<script src="<?php 
echo Util::res("vendor/almasaeed2010/adminlte/");
?>
dist/js/app.min.js"></script>


<script>
    var crud = new LouisCRUD();

    var BASE_URL = "<?php 
echo "http://" . $_SERVER['SERVER_NAME'];
?>
";
    var RES_URL = "<?php 
echo Util::res("");
?>
";
</script>

<?php 
echo $crud->getBodyEndHTML();
?>

<?php 
echo @$crud->getData("bodyBeforeEnd");
?>

<?php 
echo $debugbarRenderer->render();
?>
Beispiel #5
0
 /**
  * @param string $tableName Table Name
  * @param string $viewDir User Template directory
  * @throws Exception
  * @throws TableNameException
  * @throws \RedBeanPHP\RedException
  */
 public function __construct($tableName = null, $viewDir = "view")
 {
     R::ext('xdispense', function ($type) {
         return R::getRedBean()->dispense($type);
     });
     if ($tableName != null) {
         $this->setTable($tableName);
     }
     try {
         $this->template = new Engine($viewDir);
     } catch (\LogicException $ex) {
         throw new Exception("The view folder is not existing.");
     }
     // Debug Bar
     $this->debugbar = new StandardDebugBar();
     $debugbarRenderer = $this->debugbar->getJavascriptRenderer(Util::res("vendor/maximebf/debugbar/src/DebugBar/Resources"));
     // Template Default Data
     $this->template->addData(["crud" => $this, "cacheVersion" => $this->cacheVersion, "debugbar" => $this->debugbar, "debugbarRenderer" => $debugbarRenderer]);
     $this->addTheme("adminlte", "vendor/{$this->packageName}/view/theme/AdminLTE");
     $this->setCurrentTheme("adminlte");
     // Enable helper?
     if (defined("ENABLE_CRUD_HELPER") && ENABLE_CRUD_HELPER) {
         //setGlobalCRUD($this);
     }
 }