Plugin Directory

Changeset 1537550


Ignore:
Timestamp:
11/21/2016 01:07:05 PM (9 years ago)
Author:
Teruo Morimoto
Message:

1.1.16

Location:
lesson-scheduler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lesson-scheduler/trunk/lesson_scheduler.php

    r1532966 r1537550  
    66Author: Teruo Morimoto
    77Author URI: http://stepxstep.net/
    8 Version: 1.1.15
     8Version: 1.1.16
    99*/
    1010
  • lesson-scheduler/trunk/lesson_scheduler_options.php

    r919378 r1537550  
    1414-----------------------------------------------------------*/
    1515    function lesson_scheduler_option_page() {
     16       
     17        //アイテム数定義
     18        $lesson_scheduler_option_max = 50;
    1619?>
    1720<div class="wrap">
     
    2427    <table class="form-table" >
    2528        <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++ ){ ?>
    2730            <tr><td><input type="text" name="lesson_scheduler_place_<?php echo $i; ?>" value="<?php echo get_option('lesson_scheduler_place_'.$i); ?>" /></td></tr>
    2831        <?php } ?>
     
    3336    <table class="form-table">
    3437        <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++ ){ ?>
    3639            <tr><td><input type="text" name="lesson_scheduler_time_<?php echo $i; ?>" value="<?php echo get_option('lesson_scheduler_time_'.$i); ?>" /></td></tr>
    3740        <?php } ?>
     
    6164    </table>
    6265    <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);?>"/>
    6467
    6568    <p class="submit">
     
    7174<?php }
    7275//オプション用変数をすべてつなげる
    73 function lesson_scheduler_get_alloption()
     76function lesson_scheduler_get_alloption($max)
    7477{
    75     for( $i=1; $i<=10; $i++ ){
     78    for( $i=1; $i<=$max; $i++ ){
    7679        $str = $str."lesson_scheduler_place_".$i.",";
    7780    }
    7881   
    79     for( $i=1; $i<=10; $i++ ){
     82    for( $i=1; $i<=$max; $i++ ){
    8083        $str = $str."lesson_scheduler_time_".$i.",";
    8184    }
  • lesson-scheduler/trunk/readme.txt

    r1532966 r1537550  
    44Requires at least: 3.0
    55Tested up to: 4.5.1
    6 Stable tag: 1.1.15
     6Stable tag: 1.1.16
    77License: GPLv2
    88
     
    3131== Changelog ==
    3232
     33= 1.1.16
     34Increase lesson place and lesson time items.
     35
    3336= 1.1.15
    34 Increase lesson place and lesson time items.
    3537Display everyones status by day on tooltip(for PC).
    3638
Note: See TracChangeset for help on using the changeset viewer.