スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    datatables

    2016.07.31 Sunday 23:05
    0
      .font-default{
      font-family:Helvetica Neue,Helvetica,Arial,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,メイリオ,Meiryo,MS¥ Pゴシック,MS PGothic,sans-serif}


      <!DOCTYPE html>
      <html lang="ja">
      <head>
      <meta charset="UTF-8">
      <link rel="stylesheet" href="https://cdn.datatables.net/t/bs-3.3.6/jqc-1.12.0,dt-1.10.11/datatables.min.css"/>
      <script src="https://cdn.datatables.net/t/bs-3.3.6/jqc-1.12.0,dt-1.10.11/datatables.min.js"></script>

      <!-- checkbox用 -->
      <link type="text/css" href="//gyrocode.github.io/jquery-datatables-checkboxes/1.0.3/css/dataTables.checkboxes.css" rel="stylesheet" />
      <script type="text/javascript" src="//gyrocode.github.io/jquery-datatables-checkboxes/1.0.3/js/dataTables.checkboxes.min.js"></script>


      <script src="./js/dataTables.checkboxes.js"></script>


      <script>
      jQuery(function($){

      $("#foo-table").dataTable({
      // json read
      ajax: { url: "a3.json", dataSrc: '' },
      columns: [
      { data: "id" },
      { data: "name" }
      ],

      // checkbox
      // 'columnDefs': [
      // {
      // 'targets': 0,
      // 'checkboxes': {
      // 'selectRow': true
      // }
      // }
      // ],

      'columnDefs': [{
      'targets': 0,
      // 色が入るがgetにわたらない
      // 'checkboxes': {
      // 'selectRow': true
      // },
      'searchable': false,
      'orderable': false,
      'className': 'dt-body-center',
      'render': function (data, type, full, meta){
      return '<input type="checkbox" name="id[]" value="' + $('<div/>').text(data).html() + '">';
      }
      }],




      'select': {
      'style': 'multi'
      },
      'order': [[1, 'asc']]

      });

      // デフォルトの設定を変更
      $.extend( $.fn.dataTable.defaults, {
      language: {
      url: "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Japanese.json"
      }
      });




      // Handle form submission event
      $('#frm-example').on('submit', function(e){
      var form = this;

      var rows_selected = table.column(0).checkboxes.selected();

      // Iterate over all selected checkboxes
      $.each(rows_selected, function(index, rowId){
      // Create a hidden element
      $(form).append(
      $('<input>')
      .attr('type', 'hidden')
      .attr('name', 'id[]')
      .val(rowId)
      );
      });
      });





      });
      </script>



      <style type='text/css'>
      <!--
      /* listの色 */
      tbody .selected {
      background-color: #E3EAEE;
      }
      tbody tr:hover {
      background-color: #DDE0FF;
      }

      -->
      </style>





      <title>jquery datatables の check box</title>
      </head>
      <body>

      <pre>
      jquery datatables の check box
      check boxを表示してgetでサーバに飛ばせで
      hoverで色変えれるとこまで確認

      あとは ホスト、プロジェクトなど
      同じ値の場合時のみ ボタンを activeにする
      </pre>
      <br>


      <form name="frm-example" id="frm-example">
      <table id="foo-table" class="table table-bordered">
      <thead>
      <tr><th>No</th><th>都道府県</th></tr>
      </thead>
      </table>
      <p class="form-group">
      <button type="submit" class="btn btn-primary">Submit</button>
      </p>

      <p>
      <b>Selected rows data:</b><br>
      <pre id="example-console-rows"></pre>
      </p>

      <p>
      <b>Form data as submitted to the server:</b><br>
      <pre id="example-console-form"></pre>
      </p>


      </form>






      </body>
      </html>




      ./js/dataTables.checkboxes.js"


      http://www.gyrocode.com/projects/jquery-datatables-checkboxes/


      http://aucket.blog.jp/dataTables.checkboxes.js

      [
      {
      "id": 1,
      "name": "北海道"
      },
      { "id": 2, "name": "青森県8" },
      { "id": 3, "name": "岩手県" },
      { "id": 4, "name": "宮城県" },
      { "id": 5, "name": "秋田県" },
      { "id": 6, "name": "山形県" },
      { "id": 7, "name": "福島県" },
      { "id": 8, "name": "茨城県" },
      { "id": 9, "name": "栃木県" },
      { "id": 10, "name": "群馬県" },
      { "id": 47, "name": "沖縄県" }
      ]



      http://www.nxworld.net/tips/jquery-switch-disable-input-button.html
      category:- | by:ittoocomments(0)trackbacks(0) | -

      laravelでHtmlServiceProvider.phpを使おうとしたらエラーでた!FatalErrorException in HtmlServiceProvider.php Call to undefined method Illuminate bindShared

      2016.07.24 Sunday 23:15
      0
        laravelで以下のエラーが発生
        laravel FatalErrorException in HtmlServiceProvider.php Call to undefined method Illuminate bindShared

        どうやら
        Laravel5.2でIlluminate/HtmlServiceProviderはサポート外で
        Laravel 5.2にIlluminate/HtmlServiceProviderをインストールして使おうとするとエラーが出る。
        Call to undefined method Illuminate¥Foundation¥Application::bindShared()

        対応
        5.2対応のHtmlServiceProviderが配布されているのでこれを使うとのこと。これが参考になった!
        Laravel Collective
        https://laravelcollective.com/docs/5.2/html


        ★composer.json
        file to require laravelcollective/html.
        "require": {
        "laravelcollective/html": "5.2.*"
        }

        ★config/app.php:に以下を追加 providers箇所
        'providers' => [
        // ...
        Collective¥Html¥HtmlServiceProvider::class,
        // ...
        ],

        ★config/app.php:に以下を追加 aliases箇所
        'aliases' => [
        // ...
        'Form' => Collective¥Html¥FormFacade::class,
        'Html' => Collective¥Html¥HtmlFacade::class,
        // ...
        ],

        でOk!エラーなくなったよ
        category:Laravel | by:ittoocomments(0)trackbacks(0) | -

        laravelでphp artisan migrateすると[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) のエラーが発生

        2016.07.24 Sunday 04:17
        0
          laravelで
          php artisan migrate すると
          [PDOException] SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)
          のエラーが発生する

          原因は
          .env ファイルの修正が必要だったから

          config/database.php の設定だけではないのね

          #php artisan migrate
          で次は成功したよ!
          category:Laravel | by:ittoocomments(0)trackbacks(0) | -

          Laravelbebo

          2016.07.20 Wednesday 20:30
          0
            ディレクトリ構成が少しわかりにくいかも。
            Controller → app/Http/Controllers
            Model → app直下
            View → resources/views

            モデル
            モデルもartisanで作ります。
            $ php artisan make:model Bookmark
            テーブル名が複数形(bookmarks)でモデル名が単数形(Bookmark)で対応するあたりはCakePHPと同じ感じかな。
            モデルのファイルはapp/Bookmark.phpにできています

            Laravel Homestead
            Laravel Homestead(入植農地、「ホームステード」)はパッケージを事前に済ませた、
            Laravel公式の"box"で、PHPやHHVM、Webサーバー、その他のサーバーソフトウェアを
            ローカルマシンにインストールする必要なく、素晴らしい開発環境を準備できます
            含まれるソフトウェア
            Ubuntu 14.04
            Git
            PHP 7.0
            HHVM
            Nginx
            MySQL
            MariaDB
            Sqlite3
            Postgres
            Composer
            Node (PM2とBower、Grunt、Gulpを含む)
            Redis
            Memcached
            Beanstalkd

            最初の段階
            Homestead環境を起動する前に、VirtualBox 5.xとVagrantをインストールする必要があります。両ソフトウェア共に簡単に使用できるビジュアルインストーラーが、人気のあるオペレーティングシステム全部に用意されています。


            Laravelはディレクトリ構成に縛りがないので、自由に名前空間つけて管理してあげれば良いと思います。
            php artisan make:model Model/Hoge
            上記のように、モデル名の前にディレクトリ名をつけることで、app下にモデルディレクトリができて、その中にHogeモデルが作成されます。
            名前空間もApp/Modelになってるかと思います。
            あとは使い手がuesするだけですので、ディレクトリ構成はモデルに限らず、Laravelでは縛られない認識でいます。

            http://www.slideshare.net/search/slideshow?searchfrom=header&q=laravel
            http://qiita.com/ran/items/e286216b421339b370e6 ★
            http://qiita.com/10fuya/items/b8ac349ff81b4fa753a6
            http://qiita.com/deadcheat/items/1161efe5484a83ca3a2e
            http://qiita.com/ritukiii/items/a70d89fa988b2d9afbc4






            全体 これでいいかな
            http://usebootstrap.com/themes/admin-dashboard
            http://usebootstrap.com/preview/adminlte/
            http://usebootstrap.com/preview/sb-admin/tables.html

            http://usebootstrap.com/theme/devoops これよさそう
            http://www.cssauthor.com/bootstrap-admin-templates/
            http://themestruck.com/demo/harmony/index.html
            http://wrapbootstrap.com/preview/WB0R5L90S ★★ 金とるって
            https://wrapbootstrap.com/themes/admin 参考になるかな
            http://webthemez.com/demo/insight-free-bootstrap-html5-admin-template/index.html これおしい
            サイドバーこれにしようっと
            http://bootsnipp.com/snippets/featured/admin-side-menu これで色をかえよう
            http://medialoot.com/preview/lumino/tables.html#
            http://bootsnipp.com/snippets/featured/admin-side-menu
            http://bootsnipp.com/snippets/featured/responsive-navigation-menu
            これさくらとおんなじ
            http://bootsnipp.com/snippets/featured/user-profile-sidebar

            からぶのリサイズ
            http://dobtco.github.io/jquery-resizable-columns/
            テーブルソート
            http://js-grid.com/demos/ 編集あり sortあり★★
            http://wootapa-watable.appspot.com/
            http://phpjavascriptroom.com/?t=ajax&p=jquery_plugin_tablesort

            テーブル編集
            http://markcell.github.io/jquery-tabledit/#examples ますた編集はこれでいいかな
            http://www.moongift.jp/2016/04/jquery-tabledit-bootstrap%E3%81%AE%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%A7%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E7%B7%A8%E9%9B%86%E3%82%92%E5%8F%AF%E8%83%BD%E3%81%AB/






            ■しんぎぺーじ
            商品管理商品登録
            http://localhost/ecctest/html/ecctestadmin/product/product/new
            ecctest¥src¥eccube¥resource¥template¥admin¥product¥product.twig
            商品を登録
            商品画像
            620px以上推奨
            ■更新
            http://localhost/ecctest/html/ecctestadmin/product/product/1/edit

            delete/new/edit が同じ 詳細ページは デフォルトで edit

            カレンダー+時間
            http://www.jqueryscript.net/demo/Clean-jQuery-Date-Time-Picker-Plugin-datetimepicker/
            カレンダー
            http://jqueryui.com/datepicker/
            http://www.webdesign-fan-guide.com/jquery-ui-datepicker/
            http://www.jqueryscript.net/demo/Simple-jQuery-Calendar-Date-Picker-Plugin-DCalendar/
            http://www.jqueryscript.net/demo/Super-Tiny-jQuery-HTML5-Date-Picker-Plugin/
            http://www.jqueryscript.net/demo/Minimal-Date-Picker-Plugin-For-jQuery-minical/

            validate
            http://www.webdesign-fan.com/jquery-validation-engine


            参考
            http://blog.asial.co.jp/1360
            category:Laravel | by:ittoocomments(0)trackbacks(0) | -

            XAMPPつかっている状態で表示できない場合があったので、その対処法メモ

            2016.07.13 Wednesday 00:56
            0
              XAMPPつかっている状態で表示できない場合があったので、その対処法メモ

              久しぶりにローカル環境でテストページを表示しようとしたら
              うまく表示できなかったのでその対処法

              ■エラーログ
              [ssl:warn] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

              ■対処法
              xampp¥apache¥conf¥extra¥httpd-ssl.conf ファイル修正

              -----------------------------------
              ServerName www.example.com:443

              #ServerName www.example.com:443
              ServerName localhost:443
              -----------------------------------
              apache再起動

              category:Apache | by:ittoocomments(0)trackbacks(0) | -

              ad
              Calender
                   12
              3456789
              10111213141516
              17181920212223
              24252627282930
              31      
              << July 2016 >>
              Selected entry
              PR
              Category
              Archives
              Recommend
              Link
              Profile
              Search
              Others
              Mobile
              qrcode
              Powered
              無料ブログ作成サービス JUGEM