Exemplo n.º 1
0
 public function view()
 {
     // Group's inputs.
     $name_group_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('name', $this->requested_aircraft->name, ['class' => 'form-control', 'type' => 'text']), 'label' => 'A/C Name'], false)];
     $general_group_1_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('basic_empty_weight', $this->requested_aircraft->basic_empty_weight, ['class' => 'form-control', 'type' => 'number']) . "kg", 'label' => 'Basic Empty Weight'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('cg_position', $this->requested_aircraft->cg_position, ['class' => 'form-control', 'type' => 'number']) . "aft of datum", 'label' => 'C of G Position'], false)];
     $description_group_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-12', 'input_coltype' => 'col-xs-12', 'input' => Form::textarea('description', $this->requested_aircraft->description, ['class' => 'form-control']), 'label' => 'Description', 'label_left' => true], false)];
     $weight_limits_group_1_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('max_ramp_weight', $this->requested_aircraft->max_ramp_weight, ['class' => 'form-control', 'type' => 'text']), 'label' => 'Max Ramp Weight'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mctow', $this->requested_aircraft->mctow, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MCTOW'], false)];
     $weight_limits_group_2_inputs = [View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mlw', $this->requested_aircraft->mlw, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MLW'], false), View::forge('form/group/input', ['label_coltype' => 'col-xs-2', 'input_coltype' => 'col-xs-4', 'input' => Form::input('mzfw', $this->requested_aircraft->mzfw, ['class' => 'form-control', 'type' => 'text']), 'label' => 'MZFW'], false)];
     $arms_table_template = View::forge('widgets/tablewithactions/template', ['duplicate_action' => false, 'cells' => [View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_name', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_position', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_value', '', ['class' => 'form-control']) . Form::hidden('_type', 'arm')], false)]]);
     $arms_table = View::forge('widgets/tablewithactions', ['template_row' => $arms_table_template, 'name' => '_arms', 'coltype' => 'col-xs-12 col-md-6', 'headings' => ['<th>Label</th>', '<th>Arm (aft of datum)</th>', '<th>Max Weight</th>'], 'rows' => $this->arms_table_rows], false);
     $cglimits_table_template = View::forge('widgets/tablewithactions/template', ['duplicate_action' => false, 'cells' => [View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_position', '', ['class' => 'form-control'])], false), View::forge('widgets/tablewithactions/row/cell', ['cell_content' => Form::input('_value', '', ['class' => 'form-control']) . Form::hidden('_type', 'maxweight') . Form::hidden('_name', 'limit')], false)]]);
     $cglimits_table = View::forge('widgets/tablewithactions', ['template_row' => $cglimits_table_template, 'name' => '_arms', 'coltype' => 'col-xs-6', 'headings' => ['<th>Arm (aft of datum)</th>', '<th>Weight Limit</th>'], 'rows' => $this->cglimits_table_rows], false);
     $button_group_1_inputs = [Asset::js('tablewithactions.js', false), View::forge('form/button', ['coltype' => 'col-xs-offset-5 col-xs-2', 'link' => 'submit/aircraft/' . $this->id, 'response_target' => './aircraft_form', 'class' => 'form-control btn-success', 'label' => 'Save Changes'], false)];
     // Headings
     $general_heading = View::forge('form/heading', ['text' => 'General', 'size' => 4], false);
     $weight_limits_heading = View::forge('form/heading', ['text' => 'Weight Limits', 'size' => 4], false);
     $arms_heading = View::forge('form/heading', ['text' => 'Arms', 'size' => 4], false);
     $cg_limits_heading = View::forge('form/heading', ['text' => 'C of G Limits', 'size' => 4], false);
     // Groups
     $name_group = View::forge('form/group', ['inputs' => $name_group_inputs], false);
     $general_group_1 = View::forge('form/group', ['inputs' => $general_group_1_inputs], false);
     $description_group = View::forge('form/group', ['inputs' => $description_group_inputs], false);
     $weight_limits_group_1 = View::forge('form/group', ['inputs' => $weight_limits_group_1_inputs]);
     $weight_limits_group_2 = View::forge('form/group', ['inputs' => $weight_limits_group_2_inputs]);
     $buttons_group = View::forge('form/group', ['inputs' => $button_group_1_inputs], false);
     $cg_limits_group = View::forge('form/group', ['inputs' => ['<div class="col-xs-6">' . $cglimits_table . '</div>' . '<div class="col-xs-6">' . 'Graph here' . '</div>']], false);
     $weightandbalance_section_data = ['heading' => 'Weight and Balance Data', 'unique_id' => Str::random('uuid'), 'groups' => [$general_heading, $name_group, $general_group_1, $description_group, $weight_limits_heading, $weight_limits_group_1, $weight_limits_group_2, $arms_heading, $arms_table, $cg_limits_heading, $cg_limits_group, $buttons_group]];
     $weightandbalance_section = View::forge('form/section', $weightandbalance_section_data, false);
     $this->aircraft_form = $weightandbalance_section;
 }
Exemplo n.º 2
0
 /**
  * Initialize bootstrap
  */
 public static function init()
 {
     $autoload = \Config::get('bootstrap.assets.autoload', false);
     if (!$autoload) {
         return;
     }
     $path = \Config::get('bootstrap.assets.path', '');
     $use_min = \Config::get('bootstrap.assets.use_min', true);
     $css_file = $path . 'bootstrap';
     $js_file = $path . 'bootstrap';
     if ($use_min) {
         $css_file .= '.min';
         $js_file .= '.min';
     }
     $css_file .= '.css';
     $js_file .= '.js';
     // See if Casset package is used.
     if (\Package::loaded('casset')) {
         \Casset::css($css_file, !$use_min);
         \Casset::js($js_file, !$use_min);
     } else {
         \Asset::css($css_file);
         \Asset::js($js_file);
     }
 }
 /**
  * フリーマーケット詳細表示画面
  *
  * @access public
  * @param mixed $fleamarket_id フリーマーケットID
  * @return void
  * @author ida
  */
 public function get_detail($fleamarket_id)
 {
     Asset::css('jquery-ui.min.css', array(), 'add_css');
     Asset::js('jquery-ui.min.js', array(), 'add_js');
     if (!$fleamarket_id) {
         return $this->forward('errors/notfound', 404);
     }
     $fleamarket = \Model_Fleamarket::findDetail($fleamarket_id);
     if (!$fleamarket) {
         return $this->forward('errors/notfound', 404);
     }
     $this->setHtmlReplace(array('AREA' => $this->getArea($fleamarket['prefecture_id']), 'AREA_NAME' => $this->getAreaName($fleamarket['prefecture_id']), 'FLEAMARKET_NAME' => $fleamarket['name'], 'LOCATION_ID' => $fleamarket['location_id'], 'LOCATION_NAME' => $fleamarket['location_name']));
     $fleamarket_abouts = \Model_Fleamarket_About::findByFleamarketId($fleamarket_id);
     $fleamarket_images = \Model_Fleamarket_Image::findByFleamarketId($fleamarket_id);
     $entry_styles = \Model_Fleamarket_Entry_Style::findByFleamarketId($fleamarket_id);
     $entries = \Model_Entry::getTotalEntryByFleamarketId($fleamarket_id);
     $fleamarket['entries'] = $entries;
     $view_model = \ViewModel::forge('search/detail');
     $view_model->set('fleamarket', $fleamarket, false);
     $view_model->set('fleamarket_images', $fleamarket_images, false);
     $view_model->set('fleamarket_abouts', $fleamarket_abouts, false);
     $view_model->set('fleamarket_entry_styles', $entry_styles, false);
     $view_model->set('entries', $entries, false);
     $view_model->set('prefectures', \Config::get('master.prefectures'), false);
     $view_model->set('user', $this->login_user, false);
     $this->template->content = $view_model;
 }
 /**
  * 会場詳細
  *
  * @access public
  * @param mixed $location_id 会場ID
  * @param mixed $fleamarket_id フリマID
  * @return void
  * @author ida
  */
 public function action_detail($location_id = null, $fleamarket_id = null)
 {
     if (!$location_id) {
         return $this->forward('errors/notfound', 404);
     }
     \Asset::css('jquery-ui.min.css', array(), 'add_css');
     \Asset::js('jquery-ui.min.js', array(), 'add_js');
     // 会場に紐づくフリマを取得する
     $fleamarket_date_list = \Model_Fleamarket::find('all', array('select' => array('fleamarket_id', 'event_date'), 'where' => array(array('location_id' => $location_id)), 'order_by' => array('event_date' => 'asc')));
     if (!$location_id || !$fleamarket_date_list) {
         \Response::redirect('errors/notfound');
     }
     if (!$fleamarket_id) {
         $first_fleamarket = end($fleamarket_date_list);
         $fleamarket_id = $first_fleamarket['fleamarket_id'];
     }
     $fleamarket = \Model_Fleamarket::findDetail($fleamarket_id);
     if (!$fleamarket) {
         \Response::redirect('errors/notfound');
     }
     $this->setHtmlReplace(array('AREA' => $this->getArea($fleamarket['prefecture_id']), 'AREA_NAME' => $this->getAreaName($fleamarket['prefecture_id']), 'LOCATION_ID' => $fleamarket['location_id'], 'LOCATION_NAME' => $fleamarket['location_name'], 'FLEAMARKET_NAME' => $fleamarket['name']));
     $fleamarket_abouts = \Model_Fleamarket_About::findByFleamarketId($fleamarket_id);
     $fleamarket_images = \Model_Fleamarket_Image::findByFleamarketId($fleamarket_id);
     $entry_styles = \Model_Fleamarket_Entry_Style::findByFleamarketId($fleamarket_id);
     $view_model = \ViewModel::forge('location/detail');
     $view_model->set('fleamarket', $fleamarket, false);
     $view_model->set('fleamarket_date_list', $fleamarket_date_list, false);
     $view_model->set('fleamarket_images', $fleamarket_images, false);
     $view_model->set('fleamarket_abouts', $fleamarket_abouts, false);
     $view_model->set('fleamarket_entry_styles', $entry_styles, false);
     $view_model->set('prefectures', \Config::get('master.prefectures'), false);
     $view_model->set('user', $this->login_user, false);
     $this->template->content = $view_model;
 }
Exemplo n.º 5
0
 public function action_index()
 {
     $data['all'] = Model_Forms::find('all');
     $this->template->js .= Asset::js(array('mylibs/jquery.dataTables.js'));
     $this->template->css = Asset::css(array('sprite.tables.css'));
     $this->template->content = View::forge('forms/index', $data);
 }
 /**
  * 予約履歴一覧
  *
  * @access public
  * @param
  * @return void
  * @author kobayashi
  * @author ida
  */
 public function action_list()
 {
     Asset::css('jquery-ui.min.css', array(), 'add_css');
     Asset::js('jquery-ui.min.js', array(), 'add_js');
     $conditions = $this->getCondition();
     $condition_list = \Model_Entry::createAdminSearchCondition($conditions);
     $total_count = \Model_Entry::getCountByAdminSearch($condition_list);
     // ページネーション設定
     $pagination = \Pagination::forge('entry_pagination', $this->getPaginationConfig($total_count));
     $entry_list = \Model_Entry::findAdminBySearch($condition_list, $pagination->current_page, $this->result_per_page);
     $view_model = \ViewModel::forge('admin/entry/list');
     if (\Input::param('fleamarket_id')) {
         $fleamarket = \Model_Fleamarket::find(\Input::param('fleamarket_id'));
         $view_model->set('fleamarket', $fleamarket, false);
     }
     if (\Input::param('user_id')) {
         $user = \Model_User::find(Input::param('user_id'));
         $view_model->set('user', $user, false);
     }
     $view_model->set('entry_list', $entry_list, false);
     $view_model->set('pagination', $pagination, false);
     $view_model->set('conditions', $conditions, false);
     $view_model->set('total_count', $total_count);
     $this->template->content = $view_model;
 }
 /**
  * 初期画面
  *
  * @access public
  * @return void
  * @author shimma
  */
 public function action_index()
 {
     Asset::js('https://ajaxzip3.googlecode.com/svn/trunk/ajaxzip3/ajaxzip3-https.js', array(), 'add_js');
     $fieldset = self::createFieldset();
     $this->template->content = View::forge('signup/index');
     $this->template->content->set('prefectures', Config::get('master.prefectures'));
     $this->template->content->set('input', $fieldset->input());
     $this->template->content->set('errors', $fieldset->validation()->error_message());
 }
Exemplo n.º 8
0
 public function before()
 {
     $this->template = "template";
     parent::before();
     $this->css .= Asset::css("reset.css");
     $this->css .= Asset::css("bootstrap.min.css");
     $this->css .= Asset::css("style.css");
     $this->js .= Asset::js("vendor/jquery.min.js");
 }
Exemplo n.º 9
0
 public function before()
 {
     parent::before();
     if (!\Auth::check()) {
         \Output::redirect('myauth');
     }
     \Asset::remove_path('assets/');
     \Asset::add_path('assets/uploadify/');
     $this->template->css = \Asset::css(array('style.css'), array(), 'layout', false);
     $this->template->js = \Asset::js(array('jquery-1.3.2.min.js', 'swfobject.js', 'jquery.uploadify.v2.1.0.min.js', 'jquery.application.js'), array(), 'layout', false);
 }
Exemplo n.º 10
0
 public function view()
 {
     $initial_content = '';
     $meta_description = '';
     $organisation = '';
     $assets = [Asset::css(['ebs.css', 'bootstrap.css']), Asset::js(['jquery-2.1.4.js', 'ebs.js', 'bootstrap.js', 'confirm-bootstrap.js'])];
     $nav_header = Presenter::forge('layouts/index/header');
     $content = View::forge('layout/content', ['content' => $initial_content]);
     $nav_footer = Presenter::forge('layouts/index/footer');
     $ebs = View::forge('layout/ebs', ['meta_description' => $meta_description, 'organisation' => $organisation, 'assets' => $assets, 'nav_header' => $nav_header, 'content' => $content, 'alert_area' => View::forge('layout/alert_area'), 'nav_footer' => $nav_footer], false);
     $this->ebs = $ebs;
 }
Exemplo n.º 11
0
 /**
  * Auto render the ressource file
  * Read the extension and automatically load the right type
  * @param string|array $ressource Ressource filename
  * @param string ($pattern)
  * @return string Html output
  */
 public static function auto($ressource, $pattern = null)
 {
     $ext = pathinfo($ressource, PATHINFO_EXTENSION);
     if ($ext === 'js') {
         return Asset::js($name, $pattern);
     } else {
         if ($ext === 'css') {
             return Asset::css($name, $pattern);
         } else {
             return false;
         }
     }
 }
Exemplo n.º 12
0
 public function action_index()
 {
     if (!Sentry::user()->has_access('charts_monthly')) {
         Session::set_flash('error', 'You don\'t have access to the charts');
         Response::redirect('');
     }
     $data['id'] = '';
     $this->template->js = Asset::js(array('plugins.js', 'mylibs/jquery.ba-resize.js', 'mylibs/jquery.easing.1.3.js', 'mylibs/jquery.ui.touch-punch.js', 'libs/date.js', 'script.js', 'mylibs/highcharts.js', 'mylibs/HighCharts/exporting.js', 'charts.js'));
     $this->template->css = Asset::css(array('plugin.charts.css'));
     $this->template->title = 'Charts';
     $this->template->h2 = 'Monthly Subscription in all the forms';
     $this->template->content = View::forge('charts/view');
 }
 /**
  * トップページ
  *
  * @access public
  * @return void
  * @author ida
  * @author shimma
  */
 public function action_index()
 {
     $view_model = \ViewModel::forge('top/index');
     $view_model->set('news_headlines', \Model_News::getHeadlines());
     $view_model->set('upcomming', \ViewModel::forge('component/upcomming'), false);
     $view_model->set('calendar', \ViewModel::forge('component/calendar'), false);
     $view_model->set('search', \ViewModel::forge('component/search')->set('is_top', true), false);
     $view_model->set('popular_ranking', \ViewModel::forge('component/popular'), false);
     $view_model->set('latest', \ViewModel::forge('component/latest'), false);
     Asset::js('jquery.carouFredSel.js', array(), 'add_js');
     Asset::js('jquery.rwdImageMaps.min.js', array(), 'add_js');
     Asset::js('top.js', array(), 'add_js');
     Asset::css('top.css', array(), 'add_css');
     $this->template->content = $view_model;
 }
Exemplo n.º 14
0
 public function run($options)
 {
     //load library
     class_exists('Pmslider_m') or $this->load->model('pmaker/pmslider_m');
     class_exists('Pmslide_m') or $this->load->model('pmaker/pmslide_m');
     //get slider
     $slider = $this->pmslider_m->get_by('id', $options['slider']);
     //get slides
     $slides = $this->pmslide_m->get_slides($options['slider']);
     // add path to widget's assets
     // MODIFY THIS PATH IF YOU'D LIKE TO KEEP THE MODULE ELSEWHERE
     Asset::add_path('pmcamera', 'addons/shared_addons/modules/pmaker/widgets/pm_camera/assets/');
     Asset::css('pmcamera::camera.css', false, 'camera');
     Asset::js('pmcamera::camera.js', false, 'camera');
     Asset::js('pmcamera::jquery.mobile.customized.min.js', false, 'camera');
     return array('options' => $options, 'slider' => $slider, 'slides' => $slides);
 }
Exemplo n.º 15
0
 public function before()
 {
     parent::before();
     // controllerとaction毎にcssとjsを自動読み込み
     $controller = mb_strtolower(str_replace('Controller/', '', strtr(Request::main()->controller, '_', '/')));
     $action = Request::main()->action;
     if (File::exists(DOCROOT . 'assets/css/' . $controller . '.css')) {
         Asset::css(array($controller . '.css'), array(), 'controller_style_css', false);
     }
     if (File::exists(DOCROOT . 'assets/css/' . $controller . '/' . $action . '.css')) {
         Asset::css(array($controller . '/' . $action . '.css'), array(), 'action_style_css', false);
     }
     if (File::exists(DOCROOT . 'assets/js/' . $controller . '.js')) {
         Asset::js(array($controller . '.js'), array(), 'controller_script_js', false);
     }
     if (File::exists(DOCROOT . 'assets/js/' . $controller . '/' . $action . '.js')) {
         Asset::js(array($controller . '/' . $action . '.js'), array(), 'action_script_js', false);
     }
 }
Exemplo n.º 16
0
 public function before()
 {
     // check right accesses
     if (!Sentry::user()->has_access('customers_index')) {
         self::no_access();
     }
     // inherit parent
     parent::before();
     $this->languages = array();
     if (Sentry::user()->has_access('customers_en')) {
         array_push($this->languages, 'en');
     }
     if (Sentry::user()->has_access('customers_ru')) {
         array_push($this->languages, 'ru');
     }
     if (Sentry::user()->has_access('customers_cn')) {
         array_push($this->languages, 'cn');
     }
     if (Sentry::user()->has_access('customers_tw')) {
         array_push($this->languages, 'tw');
     }
     View::set_global('language', $this->languages);
     // assets
     $this->template->js = Asset::js(array('mylibs/jquery.chosen.js', 'mylibs/jquery.ba-resize.js', 'mylibs/jquery.easing.1.3.js', 'mylibs/jquery.ui.touch-punch.js', '/mylibs/jquery.jgrowl.js', 'mylibs/jquery-fallr-1.2.js', 'script.js', 'mylibs/jquery.dataTables.1.9.4.min.js', 'mylibs/dataTables/jquery.jeditable.js', 'mylibs/dataTables/jquery.dataTables.editable.js', 'mylibs/dataTables/ColVis.js', 'mylibs/dataTables/ZeroClipboard.js', 'mylibs/dataTables/TableTools.min.js', 'mylibs/dataTables/FixedHeader.min.js', 'libs/date.js', 'datatables.configuration.js'));
     $this->template->css = Asset::css(array('external/jquery-ui-1.8.16.custom.css', 'ColVis.css', 'TableTools.css', 'sprite.tables.css'));
     $this->template->less = Asset::less(array('customic.less'));
     // set the global to get the table url, name, clean name
     // View::set_global('current_table',$this->current_table(Request::active()->action));
     // $this->current_table = $this->current_table(Request::active()->action);
     if (!empty(Request::active()->method_params)) {
         View::set_global('current_table', $this->current_table(Request::active()->method_params[0]));
         $this->current_table = $this->current_table(Request::active()->method_params[0]);
     } else {
         View::set_global('current_table', $this->current_table(Request::active()->action));
         $this->current_table = $this->current_table(Request::active()->action);
     }
     $this->template->h2 = $this->current_table['cleanName'];
 }
Exemplo n.º 17
0
function site_htmltag_include_js_action()
{
    $returns = array();
    $module = Site_Util::get_module_name();
    $controller = Site_Util::get_controller_name();
    $action = Site_Util::get_action_name();
    $assets_uri = sprintf('site/%s%s_%s.js', $module ? sprintf('modules/%s/', $module) : '', $controller, $action);
    $public_uri = 'assets/js/' . $assets_uri;
    if (file_exists(DOCROOT . '/' . $public_uri)) {
        $returns[] = Asset::js($assets_uri);
    }
    if ($module) {
        $assets_uri = sprintf('modules/%s/%s_%s.js', $module, $controller, $action);
        $public_uri = 'assets/js/' . $assets_uri;
        if (file_exists(DOCROOT . '/' . $public_uri)) {
            $returns[] = Asset::js($assets_uri);
        }
    }
    if (!$returns) {
        return '';
    }
    return implode(PHP_EOL, $returns);
}
Exemplo n.º 18
0
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>APP Title</title>
	
	<?php 
echo Asset::css('bootstrap.min.css');
echo Asset::css('ui-lightness/jquery-ui-1.8.21.custom.css');
echo Asset::css('petro.css');
echo Asset::css('markdown.css');
echo Asset::js('jquery-1.7.2.min.js');
echo Asset::js('jquery-ui-1.8.21.custom.min.js');
echo Asset::js('bootstrap.min.js');
// echo Asset::js('bootstrap-typeahead.js');
?>
	<script>
		$(document).ready(function() {
			$('.dropdown-toggle').dropdown();
			$('.datepicker').datepicker();
			$('.clear_filters_btn').click(function(){
				window.location.search = "";
				return false;
			});
			$('a.del-item').click(function(){
				$('#petro-confirm a#petro-confirm-button').attr('href', this.href);
			});
			// a fix for Fieldset auto-generate form
			$('form table tbody td > label').css('display', 'inline');
		});
		
Exemplo n.º 19
0
<ol>
    <?php 
foreach ($deliverylist as $delivery) {
    ?>
        <li id=<?php 
    echo $delivery['orderid'];
    ?>
>
            注文番号:<?php 
    echo $delivery['orderid'];
    ?>
<br>
            <a href=<?php 
    echo 'client/detail/' . $delivery['orderid'];
    ?>
><?php 
    echo $delivery['address'];
    ?>
</a>
            <button type="button" class="commit">配達完了</button>
        </li>
    <?php 
}
?>
</ol>
<?php 
echo Asset::js('deliverysupport/client/list.js');
Exemplo n.º 20
0
<head>
    <meta charset="utf-8">
    <title><?php 
echo $title;
?>
</title>
    <?php 
echo Asset::css('bootstrap.css');
?>
    <style>
        body {
            margin: 50px;
        }
    </style>
    <?php 
echo Asset::js(array('http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js', 'bootstrap.js'));
?>
    <script>
        $(function () {
            $('.topbar').dropdown();
        });
    </script>
</head>
<body>

<?php 
if ($current_user) {
    ?>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
Exemplo n.º 21
0
				<div class="content_bottom_right_bottom">
					<div class="commit">
						<?php 
echo Form::Open('index.php/order/cfm');
?>
						<?php 
echo Form::Button('button', '確認');
?>
						<?php 
echo Form::Close();
?>
					</div>
				</div>
			</div>
		</div>
	<div id="msg"></div>
	<?php 
echo Asset::js('jquery-1.11.3.min.js');
?>
	<script type="text/javascript">
		var baseurl = <?php 
echo "\"http://{$_SERVER['SERVER_ADDR']}/Controlsystem/public/index.php/\"";
?>
;
	</script>
	<?php 
echo Asset::js('content/order.js');
?>
</body>
</html>
Exemplo n.º 22
0
echo Uri::create('assets/css/screen.css');
?>
">
		<link rel="stylesheet" href="<?php 
echo Uri::create('assets/css/master.css');
?>
">
		<link rel="stylesheet" href="<?php 
echo Uri::create('assets/css/print.css');
?>
" media="print">
		<?php 
echo Asset::js('http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js');
?>
		<?php 
echo Asset::js('master.js');
?>
	</head>
	<body>
		<div id="wrapper">
			<header id="header">
				<h1><?php 
echo Html::anchor('/', LitePress::setting('title'));
?>
</h1>
				<nav id="nav">
					<ul>
					<?php 
if ($current_user->group->is_admin or $current_user->group->is_author) {
    ?>
						<li><?php 
Exemplo n.º 23
0
        ?>
			<?php 
    } else {
        ?>
				<?php 
        echo Html::anchor('/students/lesson/add', '<i class="fa fa-plus-circle"></i> ');
        ?>
			<?php 
    }
    ?>
		</div>
	</section>
<?php 
}
echo $content;
echo Asset::js('base.js');
?>
<script type="text/javascript">
$(function(){
	$("header .toggle").click(function(){
		$("header nav ul").slideToggle();
		return false;
	});
	$(window).resize(function(){
		var win = $(window).width();
		var p = 640;
		if(win > p){
			$("header nav ul").show();
		} else {
			$("header nav ul").hide();
		}
Exemplo n.º 24
0
<?php

$data = array();
if (!empty($thumbnail_size)) {
    $data['thumbnail_size'] = $thumbnail_size;
}
if (!empty($insert_target)) {
    $data['insert_target'] = $insert_target;
}
echo render('filetmp/_parts/tmpl/image', $data);
echo Asset::js('jquery-file-upload/vendor/jquery.ui.widget.js');
echo Asset::js('jquery-file-upload/tmpl.min.js');
// The Templates plugin is included to render the upload/download listings
Asset::js(array('jquery-file-upload/load-image.all.min.js', 'jquery-file-upload/canvas-to-blob.min.js', 'blueimp-gallery/jquery.blueimp-gallery.min.js', 'jquery-file-upload/jquery.iframe-transport.js', 'jquery-file-upload/jquery.fileupload.js', 'jquery-file-upload/jquery.fileupload-process.js', 'jquery-file-upload/jquery.fileupload-image.js', 'jquery-file-upload/jquery.fileupload-validate.js', 'jquery-file-upload/jquery.fileupload-ui.js', 'site/common/file_tmp_upload.js'), null, 'js_upload', false, true);
echo Asset::render('js_upload', false, 'js');
?>

<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
<!--[if (gte IE 8)&(lt IE 10)]>
<?php 
echo Asset::js('jquery-file-upload/cors/jquery.xdr-transport.js');
?>
<![endif]-->

Exemplo n.º 25
0
		var BASE_URL = '<?php 
echo Config::get("base_url");
?>
';
		var USER_GROUP = '<?php 
echo json_encode(Auth::get("group"));
?>
';
		var IMAGES_PATH = '<?php 
echo Config::get("images_path");
?>
';
	</script>

	<?php 
echo Asset::js(array('jquery.min.js', 'bootstrap.min.js', 'bootstrap-datepicker.js', 'fm.selectator.jquery.js', 'fileinput.min.js', 'moment/min/moment.min.js', 'eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js'));
?>


	<script>
		$(function(){ 
			$('.topbar').dropdown(); 
			$('.datepicker').datepicker();
			$('.datetimepicker').datetimepicker({
				format: 'YYYY-MM-DD HH:mm',
			});
		});
	</script>
	
</head>
<body>
Exemplo n.º 26
0
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <?php 
echo Asset::css("controlsystem/earnings.css");
?>
        <?php 
echo Asset::js("jquery-1.11.3.min.js");
?>
    <title>売上情報</title>
    <script type="text/javascript">
      $(function(){
        $('.submit').click(function(){
          updateEarnings();
        });
      });
      function updateEarnings(){
          var categorys = [];
          $("#category:checked").map(function(){
                categorys.push($(this).parent('label').text());
          });
          var start = $("#s_year").val() + $("#s_month").val() + $("#s_day").val();
          var end = $("#e_year").val() + $("#e_month").val() + $("#e_day").val();
          var data = {
            s_period: start,
            e_period: end,
            category: categorys,
            item_name: $("#item_name").val(),
          }
          //console.debug(data);
Exemplo n.º 27
0
echo Asset::css('gritter_css/jquery.gritter.css');
?>
        <?php 
echo Asset::css('style.css');
?>

        <!-- Custom styles for this template -->
        <?php 
echo Asset::css('style.css');
?>
        <?php 
echo Asset::css('style-responsive.css');
?>

        <?php 
echo Asset::js('chart-master/Chart.js');
?>
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>

    <body>

        <section id="container">
            <!--**************************************-->
            <!--****TOP BAR CONTENT & NOTIFICATION****-->
            <!--**************************************-->
            <!--header start-->
 /**
  * js、cssを追加する
  *
  * @access private
  * @param
  * @return void
  * @author kobayashi
  */
 private function setAssets()
 {
     \Asset::css('jquery-ui.min.css', array(), 'add_css');
     \Asset::css('jquery-ui-timepicker.css', array(), 'add_css');
     \Asset::js('jquery-ui.min.js', array(), 'add_js');
     \Asset::js('jquery.ui.datepicker-ja.js', array(), 'add_js');
     \Asset::js('jquery-ui-timepicker.js', array(), 'add_js');
     \Asset::js('jquery-ui-timepicker-ja.js', array(), 'add_js');
 }
Exemplo n.º 29
0
Asset::js_inline('jQuery.noConflict();');
Asset::js('jquery/jquery-ui.min.js', 'jquery/jquery-ui.min.js');
Asset::js('jquery/jquery.colorbox.js');
Asset::js('jquery/jquery.cooki.js');
Asset::js('jquery/jquery.slugify.js');
Asset::js(array('codemirror/codemirror.js', 'codemirror/mode/css/css.js', 'codemirror/mode/htmlmixed/htmlmixed.js', 'codemirror/mode/javascript/javascript.js', 'codemirror/mode/markdown/markdown.js', 'plugins.js', 'scripts.js'));
?>

<?php 
if (isset($analytic_visits) or isset($analytic_views)) {
    ?>
	<?php 
    Asset::js('jquery/jquery.excanvas.min.js');
    ?>
	<?php 
    Asset::js('jquery/jquery.flot.js');
}
?>

<script type="text/javascript">
	pyro = { 'lang' : {} };
	var APPPATH_URI					= "<?php 
echo APPPATH_URI;
?>
";
	var SITE_URL					= "<?php 
echo rtrim(site_url(), '/') . '/';
?>
";
	var BASE_URL					= "<?php 
echo BASE_URL;
Exemplo n.º 30
0
						<label><input id="category" type="radio" name="category" value="drink">ドリンク</label>
					</p>
					<p><input type="file" id="new-img" name="item-img" accept="image/*"></p>
				</div>
				<div class="content_right">
					<p><label>単価<br>
						<input id="price" type="textbox" class="one" name="money" value="">円
					</label></p>
					<p>サイズ別単価</p>
						<p>S<input id="s_price" type="textbox" class="size" name="s_money" value="">円</p>
						<p>M<input id="m_price" type="textbox" class="size" name="m_money" value="">円</p>
						<p>L<input id="l_price" type="textbox" class="size" name="l_money" value="">円</p>
						<p>
						<label>商品説明<br>
							<textarea id="explanation" name="explanation" rows="6" cols="60"></textarea></label>
						</p>
						<input id="registration" type="submit" value="登録">
				</div>
		<?php 
echo Form::close();
?>
		</div>
		<?php 
echo Asset::js('jquery-1.11.3.min.js');
?>
		<?php 
echo Asset::js('controlsystem/content/item_registration.js');
?>
	</body>
</html>