Skip to content

Instantly share code, notes, and snippets.

@rainbow23
Last active June 16, 2019 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainbow23/29213f22cac5b71efad63d93dc7a5976 to your computer and use it in GitHub Desktop.
Save rainbow23/29213f22cac5b71efad63d93dc7a5976 to your computer and use it in GitHub Desktop.
ページング実装 課題
まだ調査していない
・リリース手順書 確認
* 調査済
・Fuel phpページングでボタンデザインを有効表示できるか?
pagination.phpでデフォルトしか読み込めないようなのでcontrollerで指定したら出来た
https://github.com/rainbow23/fuelphp/blob/1.8/master/fuel/app/classes/controller/welcome.php#L49-L83
資料sample
http://wiki.nonip.net/index.php/Php/fuelphp/pagination
環境構築
https://qiita.com/chubura/items/68e177741ee4b2ecb760
確認用
http://localhost:8080/public/welcome
* 調査済
・ループで0-4になる対応 カウント変数は一番下で行う
https://gist.github.com/rainbow23/c32f1a6e31256ff67f3c0a438edc0bf4
* 調査済
・2つ目のチェックボックスがついたら1つ目のonをoffにする
https://www.w3schools.com/code/tryit.asp?filename=G549NCILXNOM
解決案
一つのformにまとめれば良い、name属性は同じ文字列にする必要がある
* 調査済 解決案2でできるはず、上の解決案と同じ方法
・2つ目以降のサービスでページングボタンを押したらページングができるようにする。
解決案1
Jquery クリックした a refからチェックボックスがついたフォームを取得する
解決案2
formをループで作らず、1つにする。
formタグだけ移動せずにチェックボックスとinput type hiddenも移動する
* 調査済 siblingでformの兄弟を取得、別formのradioボタンcheckedを取得、のサンプル
https://www.w3schools.com/code/tryit.asp?filename=G54C1JSALAI1
・月変更してもチェックボックスonを維持する
* 調査済
・Vim spaceをタブに変換
:set noexpandtab " Use tabs, not spaces
:%retab! " Retabulate the whole file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment