Changeset 1537550
- Timestamp:
- 11/21/2016 01:07:05 PM (9 years ago)
- Location:
- lesson-scheduler/trunk
- Files:
-
- 3 edited
-
lesson_scheduler.php (modified) (1 diff)
-
lesson_scheduler_options.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lesson-scheduler/trunk/lesson_scheduler.php
r1532966 r1537550 6 6 Author: Teruo Morimoto 7 7 Author URI: http://stepxstep.net/ 8 Version: 1.1.1 58 Version: 1.1.16 9 9 */ 10 10 -
lesson-scheduler/trunk/lesson_scheduler_options.php
r919378 r1537550 14 14 -----------------------------------------------------------*/ 15 15 function lesson_scheduler_option_page() { 16 17 //アイテム数定義 18 $lesson_scheduler_option_max = 50; 16 19 ?> 17 20 <div class="wrap"> … … 24 27 <table class="form-table" > 25 28 <th scope="row"><?php _e('set lesson place','lesson-scheduler'); ?></th> 26 <?php for( $i=1; $i<= 10; $i++ ){ ?>29 <?php for( $i=1; $i<=$lesson_scheduler_option_max; $i++ ){ ?> 27 30 <tr><td><input type="text" name="lesson_scheduler_place_<?php echo $i; ?>" value="<?php echo get_option('lesson_scheduler_place_'.$i); ?>" /></td></tr> 28 31 <?php } ?> … … 33 36 <table class="form-table"> 34 37 <th scope="row"><?php _e('set lesson time','lesson-scheduler'); ?></th> 35 <?php for( $i=1; $i<= 10; $i++ ){ ?>38 <?php for( $i=1; $i<=$lesson_scheduler_option_max; $i++ ){ ?> 36 39 <tr><td><input type="text" name="lesson_scheduler_time_<?php echo $i; ?>" value="<?php echo get_option('lesson_scheduler_time_'.$i); ?>" /></td></tr> 37 40 <?php } ?> … … 61 64 </table> 62 65 <input type="hidden" name="action" value="update" /> 63 <input type="hidden" name="page_options" value="<?php lesson_scheduler_get_alloption( );?>"/>66 <input type="hidden" name="page_options" value="<?php lesson_scheduler_get_alloption($lesson_scheduler_option_max);?>"/> 64 67 65 68 <p class="submit"> … … 71 74 <?php } 72 75 //オプション用変数をすべてつなげる 73 function lesson_scheduler_get_alloption( )76 function lesson_scheduler_get_alloption($max) 74 77 { 75 for( $i=1; $i<= 10; $i++ ){78 for( $i=1; $i<=$max; $i++ ){ 76 79 $str = $str."lesson_scheduler_place_".$i.","; 77 80 } 78 81 79 for( $i=1; $i<= 10; $i++ ){82 for( $i=1; $i<=$max; $i++ ){ 80 83 $str = $str."lesson_scheduler_time_".$i.","; 81 84 } -
lesson-scheduler/trunk/readme.txt
r1532966 r1537550 4 4 Requires at least: 3.0 5 5 Tested up to: 4.5.1 6 Stable tag: 1.1.1 56 Stable tag: 1.1.16 7 7 License: GPLv2 8 8 … … 31 31 == Changelog == 32 32 33 = 1.1.16 34 Increase lesson place and lesson time items. 35 33 36 = 1.1.15 34 Increase lesson place and lesson time items.35 37 Display everyones status by day on tooltip(for PC). 36 38
Note: See TracChangeset
for help on using the changeset viewer.