示例#1
0
 private function returnArray($array, $type)
 {
     $output = '';
     foreach ($array as $a) {
         if ($type === 'css') {
             $output .= '<link rel="stylesheet" type="text/css" href="' . load_asset($a) . '">';
         } elseif ($type === 'js') {
             $output .= '<script src="' . load_asset($a) . '" type="text/javascript"></script>';
         } else {
             $output .= '<meta ';
             foreach ($a as $type => $value) {
                 $output .= $type . '="' . $value . '"';
             }
             $output .= '/>';
         }
     }
     return $output;
 }
示例#2
0
文件: index.tpl.php 项目: ntentan/wyf
            <tr><?php 
foreach (unescape($list_fields) as $field) {
    echo "<th>{$field['label']}</th>";
}
?>
<th></th></tr>
        </thead>
        <tbody>
            {{#list}}
            <tr><?php 
// Columns
foreach ($list_fields as $field) {
    echo sprintf("<td>{{%s}}</td>", str_replace(".", "_", $field['name']));
}
?>
<td class="wyf_list_table_operations"><?php 
//Operations
foreach ($operations as $operation) {
    echo "<a href='{$base_url}{$operation['action']}/{{{$primary_key_field}}}'>{$operation['label']}</a> ";
}
?>
</td></tr>
            {{/list}}
        </tbody>
    </table>
</script>
<?php 
load_asset('images/add.png');
load_asset('images/addbg.gif');
load_asset('images/import.png');
<script src="<?php 
echo load_asset("js/jquery.form.min.js");
?>
"></script>
<h1>Assessment Type</h1>

<div id="assessmentTypeDiv" class="row" style="display:none">
    <div class="col-md-12">
        <div class="panel panel-primary" >
            <div class="panel-heading" >
                <h3 class="panel-title">
                    Assessment Type
                </h3>
            </div>
            <div class="panel-body">
                <form id="assessmentTypeForm" method="POST">
                    <input type="hidden" name="type" value="1">
                    <input id="assessmentTypeID" type="hidden" name="ID" value="0">
                    <div class="row">
                        <div class="col-md-12" >
                            <div class='alert alert-warning' id='assessmentTypeMessage' style='text-align:center;display:none'></div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                            <div class="form-group ">
                                <label for="school_year">Description</label>
                                <div class="">
                                    <input class="form-control"  id="assessmentTypeDescription" type="text" placeholder="Description" name="description">
                                </div>
                            </div>
示例#4
0
<?php

echo load_asset('some.css') . "\n" . load_asset('another.css', 'tests/files/other_assets/someother.css') . "\n" . load_asset('existing.css');
<script src="<?php 
echo load_asset("js/jquery.form.min.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/datepicker.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/print.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/tableAPIPagination.js");
?>
"></script>
<h1>Payment Report</h1>

<!--###### Student Listing--->
<div class="row" >
    <div class="col-md-12">
        <legend>Assessment Item Report</legend>
    </div>
    <div id="assessmentItemReportListMessage" class="col-md-11 col-md-offset-1">
        
    </div>
</div>
<div class="row" >
    <div class="panel panel-default" >
        
        <div class="panel-body">
示例#6
0
 * @category Components
 * @author James Ainooson <*****@*****.**>
 * @copyright 2010-2012 James Ainooson
 * @license MIT
 */
?>
<!DOCTYPE HTML>
<html lang='en'>
<head>
    <title><?php 
echo $title;
?>
</title>
    <?php 
echo $this->helpers->stylesheet->add(load_asset('css/auth.css', n("lib/controllers/components/auth/assets/css/auth.css")))->add(load_asset("css/fx.css"))->add(load_asset('css/forms.css', n("lib/views/helpers/forms/css/forms.css")))->context('auth');
echo $this->helpers->javascript->add(load_asset('js/jquery.js'))->context('auth');
?>
</head>
<body>
    <div id="header">
        <h1><?php 
echo $app_name;
?>
</h1>
    </div>
    <div id="body">
        <?php 
echo $contents->unescape();
?>
    </div>
</body>
示例#7
0
文件: main.tpl.php 项目: ntentan/wyf
    <head>
        <title><?php 
echo $wyf_title;
?>
</title>
        <?php 
echo $helpers->javascripts->add(get_asset('js/jquery.js'))->add(get_asset('js/wyf.js'))->add(get_asset('js/api.js'))->add(get_asset('js/mustache.js')) . $helpers->stylesheets->add(get_asset('css/wyf.css'))->add(get_asset('css/forms.css'))->add(get_asset('css/grid.css'));
?>
        
        <?php 
load_asset('images/home.png', get_asset('images/dashboard.png'));
load_asset('images/system.png', get_asset('images/system.png'));
load_asset('images/headerbg.gif', get_asset('images/headerbg.gif'));
load_asset('images/sidemenubg.gif', get_asset('images/sidemenubg.gif'));
load_asset('images/mainbg.gif', get_asset('images/mainbg.gif'));
load_asset('images/selectedbg.gif', get_asset('images/selectedbg.gif'));
?>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div class="row">
                    <div class="column grid_10_5"><h1><?php 
echo $wyf_app_name;
?>
</h1></div>
                    <div class="column grid_10_5">
                        <div id="profile_box">
                        <?php 
if ($_SESSION['user']['username'] != '') {
    ?>
示例#8
0
                            </a>
                            <a href="#">
                                <img src="<?php 
echo load_asset();
?>
img/system_img/icon-gm.png">
                            </a>
                            <a href="#">
                                <img src="<?php 
echo load_asset();
?>
img/system_img/icon-in.png">
                            </a>
                            <a href="#">
                                <img src="<?php 
echo load_asset();
?>
img/system_img/icon-yt.png">
                            </a>
                        </div>
                    </div>
                </div>

                <div style="clearboth"></div>
                <div class="site-info">
                    <div class="pull-left">© Copyright 2014. Evolve.IT Solutions</div>
                    <div class="pull-right"><a href="#">Privacy</a> &nbsp;|&nbsp; <a href="#">Terms &amp; Conditions</a>
                    </div>
                </div>
            </div>
        </div>
示例#9
0
<script src="<?php 
echo load_asset("js/jquery.form.min.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/datepicker.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/print.js");
?>
"></script>
<h1>Payment Report</h1>

<!--###### Student Listing--->
<div class="row" >
    <div class="col-md-12">
        <legend>Payment List</legend>
    </div>
    <div id="paymentReportListMessage" class="col-md-11 col-md-offset-1">
        
    </div>
</div>
<div class="row" >
    <div class="col-md-3 col-xs-4 ">
        <label>Start Date</label>
        <input id="paymentReportListFilterStartDatetime" class="form-control" type="date" placeholder="mm/dd/yy">
    </div>
    <div class="col-md-3 col-xs-4">
        <label>End Date</label>
        <input id="paymentReportListFilterEndDatetime" class="form-control" type="date" placeholder="mm/dd/yy">
示例#10
0
/**
 * Assets loader
 */
function load_asset($asset, $append = false)
{
    if (is_array($asset)) {
        foreach ($asset as $file) {
            $loaded[] = load_asset($file, $append);
        }
    } else {
        # Set new path
        $dir = $append ? assets_dir() . '/' . $append : assets_dir();
        # Async false by default
        $loaded['async'] = false;
        # Check for local file
        if (substr($asset, 0, 1) == '|') {
            $loaded['src'] = $dir . '/' . ltrim($asset, '|');
        } else {
            $loaded['src'] = $asset;
        }
        # Check for Async
        foreach ($loaded as $asset) {
            $asset = explode(':', $asset);
            if (count($asset) > 1) {
                $loaded['src'] = $asset[0];
                $loaded['async'] = true;
            }
        }
    }
    return $loaded;
}
示例#11
0
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Required meta tags always come first -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="<?php 
echo load_asset('css/bootstrap.min.css');
?>
">
</head>
<body>

<!-- Load sidebar, header, footer and other stuffs  -->

<!-- jQuery first, then Bootstrap JS. -->
<script src="<?php 
echo load_asset('js/jquery.js');
?>
"></script>
<script src="<?php 
echo load_asset('js/bootstrap.min.js');
?>
"></script>
</body>
</html>
示例#12
0
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
?>
<!DOCTYPE HTML>
<html lang='en'>
<head>
    <title><?php 
echo $title;
?>
</title>
    <?php 
echo $helpers->stylesheet->add(load_asset('css/admin.css', $stylesheet))->add(load_asset("css/fx.css"))->add(load_asset('css/forms.css', n("lib/views/helpers/forms/css/forms.css")))->add(load_asset("css/grid.css"))->add(load_asset('css/list.css', n('lib/views/helpers/lists/css/default.css')))->context('admin');
echo $helpers->stylesheet($extra_stylesheet);
echo $helpers->javascript->add(load_asset('js/jquery.js'))->context('admin');
echo $helpers->javascript($extra_javascript);
?>
</head>
<body>
<div class="row" id="header">
    <div class="column grid_10_6">
        <h1><?php 
echo $app_name;
?>
</h1>
        <h2>Administrator Console</h2>
    </div>
    <div class="column grid_10_4">
        <div id='profile'>Logged in as <?php 
echo $username;
示例#13
0
?>
">Register for a new account</a>
</div>

<div id="third-party-accounts">
    <p>You can also use your third party accounts from any of these services
    <br/>
    <a href="<?php 
echo u($social_signin_base_url . '/signin/google');
?>
" alt="Signin with Google"><img src="<?php 
echo u(load_asset('images/google.png', __DIR__ . '/../../assets/images/google.png'));
?>
" /></a>
    <a href="<?php 
echo u($social_signin_base_url . '/signin/yahoo');
?>
" alt="Signin with Yahoo!"><img src="<?php 
echo u(load_asset('images/yahoo.png', __DIR__ . '/../../assets/images/yahoo.png'));
?>
" /></a>
    <a href="<?php 
echo u($social_signin_base_url . '/signin/facebook');
?>
" alt="Signin with facebook"><img src="<?php 
echo u(load_asset('images/facebook.png', __DIR__ . '/../../assets/images/facebook.png'));
?>
" /></a>
    </p>
</div>
<script src="<?php 
echo load_asset("js/jquery.form.min.js");
?>
"></script>
<link rel='stylesheet' href="<?php 
echo load_asset("css/fullcalendar.min.css");
?>
"/>
<script src="<?php 
echo load_asset("js/moment.min.js");
?>
"></script>
<script src="<?php 
echo load_asset("js/fullcalendar.min.js");
?>
"></script>
<h1>Schedule Management</h1>
<!--##### Schedule Information ####--->
<div class="row addsection"  id="scheduleManagementDiv" style="display:none">
    <div class="col-md-10 col-md-offset-1" >
        <div class='alert hide' id='scheduleManagementMessage' style='text-align:center'></div>
    </div>
    <div class="col-md-10 col-md-offset-1">
        <legend>Schedule Information</legend>
    </div>
    <div class="col-md-6 col-md-offset-1">
        <form id="scheduleManagementForm" action="<?php 
echo api_url();
?>
c_schedule/createSchedule" method="POST">
            <div class="span4 offset1">
示例#15
0
<?php

use Theme\Variables;
/**
 * Variables Object
 */
$variables = new Variables();
# Debug helpers
$variables->add('dev', array('localhost' => is_localhost()));
# Theme
$variables->add('theme', array('supports' => array_key_exists('supports', $theme) ? $theme['supports'] : array()));
# Global Site Variables
$variables->add('site', array('name' => SITE_NAME, 'email' => SITE_EMAIL, 'domain' => SITE_DOMAIN, 'styles' => load_asset($theme_config['styles'], 'css'), 'scripts' => load_asset($theme_config['scripts'], 'js'), 'assets' => assets_dir(), 'ie' => array('min' => 9, 'strict' => false)));
# Page variables
$variables->add('page', array('is_home' => is_home(), 'path' => $path, 'slug' => get_page()), true);
# User variables
$variables->add('user', array('logged_in' => is_loggedin()));
# Various useful variables
$variables->add('this_year', this_year());
/** ----------------------------------- **
 * Default page meta is set here but     *
 * should be overridden in your          *
 * model files. Access the array using   *
 * $_['page']['meta'] from your model.   *
 ** ----------------------------------- **/
# Page meta data
$meta = array($variables->get('page|slug') => array('title' => SITE_NAME, 'description' => 'Description', 'keywords' => 'Keywords', 'canonical' => 'Canonical'));
$variables->extend('page', 'meta', $meta[$variables->get('page|slug')]);
示例#16
0
<?php

echo load_asset('some/asset/bi/css');