示例#1
0
<div class="login">
    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/css/bootstrap.min.css", array("scoped" => null));
?>
    <form id="form_<?php 
echo $randId;
?>
" onsubmit="return false;" method="post" action="#">
        <fieldset class="form-group">
            <legend>
                <trans>Authentication</trans>
            </legend>
        
            <div class="message-container message-container_<?php 
echo $randId;
?>
"></div>

            <label>
                <trans>Username</trans>
            </label>
            <input type="text" class="form-control" placeholder="<trans>Username</trans>" value="" name="login">
            <br />
             
            <label><trans>Password</trans></label>
            <input type="password" class="form-control" placeholder="<trans>Password</trans>" value="" name="password">
            <br />
             
            <label>
                <input type="checkbox" name="autologin" value="1">
                <trans>Remember Me</trans>
示例#2
0
<?php

$randId = \Core\CString::rand();
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>
<div class="login">
    <trans>You are logged as</trans> <?php 
echo \Core\Security::UserName();
?>
    &nbsp;|&nbsp;
    <a href="#" id="logout_<?php 
echo $randId;
?>
"><trans>logout</trans></a>
</div>
<script type="text/javascript">
    $(function() {
        // Edit link
        $("#logout_<?php 
echo $randId;
?>
").click(function() {
            $.ajax({
                url: "<?php 
echo APP_URI . "index.php/" . \Core\Request::getClassUri($self) . "/logout";
?>
/",
                method : "POST",
                data : {
                    "moduleId" : "<?php 
echo $self->id();
示例#3
0
                            color: #fff;
                            display: inline-block;
                            padding: 0;
                            text-decoration: none;                    
                        ">
                            PostgreSQL
                        </a>
                    </div>
                </div>            
            </footer>
            <?php 
// Script
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
echo \Core\View::includeResources("resources/core/jquery/jquery.addons.js");
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/js/bootstrap.min.js");
echo \Core\View::includeResources("resources/core/bootstrap/treeview/bootstrap-treeview.js");
?>

            <script>
                $(function() {
                    $(".printpdf").click(function() {
                        $.redirectPost("<?php 
echo APP_URI;
?>
", {
                            outputformat : "pdf",
                            outputpdfcontent : encodeURIComponent("<!DOCTYPE HTML><html>" + document.documentElement.innerHTML + "</html>"),
                            outputpdfparams : encodeURIComponent(JSON.stringify({
                                "0":"no-outline",
                                "1":"disable-smart-shrinking",
                                //"2" : "grayscale",
示例#4
0
            echo \Core\View::includeResources($tinymce);
            $tinymceJq = "resources/core/editor/tinymce_jquery/js/tinymce/jquery.tinymce.min.js";
            echo \Core\View::includeResources($tinymceJq);
            break;
        default:
            break;
    }
}
// bootstrap theme
/*
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/bootstrap.css", array(
    "scoped" => null,
));
*/
// FA
echo \Core\View::includeResources("resources/core/font-awesome-4.4.0/css/font-awesome.min.css");
// Custom js for extends ?
echo \Core\View::includeModuleResources($self, "resources/js/tableManager.js");
// Module css
echo \Core\View::includeModuleResources($self, "resources/css/tableManager.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/index.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/edit.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/listContent.css", array("scoped" => null));
?>
    <script type="text/javascript">
        $(document).ready(function(){
            //$('.modules_core_admin_tablemanager_tablemanager .date').mask('00/00/0000');
            //$('.modules_core_admin_tablemanager_tablemanager .time').mask('00:00:00');
            //$('.modules_core_admin_tablemanager_tablemanager .datetime').mask('00/00/0000 00:00:00');
            //$('.modules_core_admin_tablemanager_tablemanager .number').mask('0#');
            
示例#5
0
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>
    <?php 
echo \Core\View::includeResources("resources/core/jquery/jquery.addons.js");
?>

    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/css/bootstrap.min.css");
?>

    <?php 
echo \Core\View::includeResources("resources/core/jquery/jquery-sortable.js");
?>

    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap.vertical-tabs.css", array("scoped" => null));
?>

    <style scoped="scoped">
        body.dragging, body.dragging * {
            cursor: move !important;
        }
        .dragged {
            position: absolute;
            opacity: 0.5;
            z-index: 2000;
        }
        ol.example li.placeholder {
            position: relative;
            /** More li styles **/
        }
示例#6
0
<?php

$randId = \Core\CString::rand();
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>

<?php 
echo \Core\View::includeResources("resources/core/jquery/modalPopLite1.3.0/modalPopLite1.3.0.min.js");
echo \Core\View::includeResources("resources/core/jquery/modalPopLite1.3.0/modalPopLite1.3.0.css");
?>

<?php 
echo \Core\View::renderModule($self, "templates/form", array("randId" => $randId));
?>
<script type="text/javascript">
    $(function() {
        
        // $('#popup-wrapper').modalPopLite({ openButton: '#clicker', closeButton: '#close-btn' });
        
        // Edit link
        $("#submit_<?php 
echo $randId;
?>
").click(function() {
            var frm = $("#form_<?php 
echo $randId;
?>
");
            $.ajax({
                url: "<?php 
echo APP_URI . "index.php/" . \Core\Request::getClassUri($self) . "/Login";