Bài giảng Phát triển phần mềm mã nguồn mở: MVC cung cấp cho người học các kiến thức: MVC là gì, tổng quan về MVC, quan niệm, observer pattern. Mời các bạn cùng tham khảo nội dung chi tiết.
2">n?i dung 2 n?i dung 3 $( "#mytabs" ).tabs() ; Tạo theme Info file ; $Id name = day05 description = Học sử dụng Drupal Theme package = Drupal Learning version = VERSION core = 7.x files[] = day05.module engine = phptemplate scripts[] = js/jquery-1.5.1.min.js scripts[] = js/jquery-ui-1.8.12.custom.min.js stylesheets[all][] = css/ui-lightness/jquery-ui1.8.12.custom.css Tạo theme Đăng ký theme cách implement hook_theme function day05_theme($existing, $type, $theme, $path){ return array( 'jquery_tabs' => array( 'variables' => array( 'id' => null, 'titles' => array(), 'contents' => array(), ), ), ); } Tạo theme Implement theme function function theme_jquery_tabs($variables){ $id = $variables['id']; $titles = $variables['titles']; $contents = $variables['contents']; // // tab titles // $output = ''; $output = ""; $output = "- "; ………………………………… return $output; } Tạo theme Hoặc tạo template file Bài tập • Trong JQuery-UI có phương thức dialog dùng để dialog Các sử dụng sau: • Tạo theme jquery_dialog cho: theme(‘jquery_dialog’, array(‘title’ => ‘Tiêu đề’, ‘content’ => ‘Nội dung’)); ...6 Tạo theme Info file ; $Id name = day05 description = Học sử dụng Drupal Theme package = Drupal Learning version = VERSION core = 7.x files[] = day05.module engine = phptemplate... id=''$id''>"; $output = "
- "; ………………………………… return $output; } Tạo theme Hoặc tạo template file Bài tập • Trong JQuery-UI có phương thức dialog dùng để dialog Các sử dụng sau: • Tạo theme jquery_dialog