当前位置: 首页>>代码示例>>PHP>>正文


PHP _makeCheckboxInput函数代码示例

本文整理汇总了PHP中_makeCheckboxInput函数的典型用法代码示例。如果您正苦于以下问题:PHP _makeCheckboxInput函数的具体用法?PHP _makeCheckboxInput怎么用?PHP _makeCheckboxInput使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_makeCheckboxInput函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _makeSelectInput

                echo '<TR>';
                echo '<td width="121px">' . $req . $field['TITLE'] . '</td><td>:</td><td>';
                echo _makeSelectInput('CUSTOM_' . $field['ID'], '');
                echo '</TD>';
                echo '</TR>';
                break;
            case 'multiple':
                echo '<TR>';
                echo '<td width="121px">' . $req . $field['TITLE'] . '</td><td>:</td><td>';
                echo _makeMultipleInput('CUSTOM_' . $field['ID'], '');
                echo '</TD>';
                echo '</TR>';
                break;
            case 'radio':
                echo '<TR>';
                echo '<td width="121px">' . $req . $field['TITLE'] . '</td><td>:</td><td>';
                echo _makeCheckboxInput('CUSTOM_' . $field['ID'], '');
                echo '</TD>';
                echo '</TR>';
                break;
            case 'textarea':
                echo '<TR>';
                echo '<td valign=top width="121px">' . $req . $field['TITLE'] . '</td><td valign=top>:</td><td>';
                echo _makeTextareaInput('CUSTOM_' . $field['ID'], '');
                echo '</TD>';
                echo '</TR>';
                break;
        }
    }
    echo '</TABLE>';
}
开发者ID:jicheng17,项目名称:fh,代码行数:31,代码来源:OtherInfoInc.php

示例2: _makeDateInput

            echo '</TD></TR>';
            break;
        case 'date':
            echo '<TR><TD>';
            echo _makeDateInput('CUSTOM_' . $field['ID'], $field['TITLE'], $request);
            echo '</TD></TR>';
            break;
        case 'codeds':
        case 'select':
            echo '<TR><TD>';
            echo _makeSelectInput('CUSTOM_' . $field['ID'], $field['TITLE'], $request);
            echo '</TD></TR>';
            break;
        case 'multiple':
            echo '<TR><TD>';
            echo _makeMultipleInput('CUSTOM_' . $field['ID'], $field['TITLE'], $request);
            echo '</TD></TR>';
            break;
        case 'radio':
            echo '<TR><TD>';
            echo _makeCheckboxInput('CUSTOM_' . $field['ID'], $field['TITLE'], $request);
            echo '</TD></TR>';
            break;
        case 'textarea':
            echo '<TR><TD>';
            echo _makeTextareaInput('CUSTOM_' . $field['ID'], $field['TITLE'], $request);
            echo '</TD></TR>';
            break;
    }
}
echo '</TABLE>';
开发者ID:26746647,项目名称:Belize-openSIS,代码行数:31,代码来源:Other_Fields.inc.php

示例3: UserSyear

        }
    }
}
if ($_REQUEST['modfunc'] != 'remove') {
    #$sql = "SELECT PERIOD_ID,TITLE,SHORT_NAME,SORT_ORDER,LENGTH,START_TIME,END_TIME,BLOCK,ATTENDANCE FROM school_periods WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' ORDER BY SORT_ORDER";
    $sql = 'SELECT PERIOD_ID,TITLE,SHORT_NAME,SORT_ORDER,LENGTH,START_TIME,END_TIME,ATTENDANCE,IGNORE_SCHEDULING FROM school_periods WHERE SYEAR=\'' . UserSyear() . '\' AND SCHOOL_ID=\'' . UserSchool() . '\' ORDER BY SORT_ORDER';
    $QI = DBQuery($sql);
    #$periods_RET = DBGet($QI,array('TITLE'=>'_makeTextInput','SHORT_NAME'=>'_makeTextInput','SORT_ORDER'=>'_makeTextInputMod','BLOCK'=>'_makeTextInput','LENGTH'=>'_makeTextInputMod','START_TIME'=>'_makeTimeInput','END_TIME'=>'_makeTimeInputEnd','ATTENDANCE'=>'_makeCheckboxInput'));
    #$periods_RET = DBGet($QI,array('TITLE'=>'_makeTextInput','SHORT_NAME'=>'_makeTextInput','SORT_ORDER'=>'_makeTextInputMod','BLOCK'=>'_makeTextInput','LENGTH'=>'LENGTH','START_TIME'=>'_makeTimeInput','END_TIME'=>'_makeTimeInputEnd','ATTENDANCE'=>'_makeCheckboxInput'));
    $periods_RET = DBGet($QI, array('TITLE' => '_makeTextInput', 'SHORT_NAME' => '_makeTextInput', 'SORT_ORDER' => '_makeTextInputMod', 'LENGTH' => 'LENGTH', 'START_TIME' => '_makeTimeInput', 'END_TIME' => '_makeTimeInputEnd', 'ATTENDANCE' => '_makeCheckboxInput', 'IGNORE_SCHEDULING' => '_makeCheckboxInput'));
    #$columns = array('TITLE'=>'Title','SHORT_NAME'=>'Short Name','SORT_ORDER'=>'Sort Order','START_TIME'=>'Start Time','END_TIME'=>'End Time','LENGTH'=>'Length (minutes)','IGNORE_SCHEDULING'=>'Block','ATTENDANCE'=>'Used for Attendance');
    $columns = array('TITLE' => '' . _('Title') . '', 'SHORT_NAME' => '' . _('Short Name') . '', 'SORT_ORDER' => '' . _('Sort Order') . '', 'START_TIME' => '' . _('Start Time') . '', 'END_TIME' => '' . _('End Time') . '', 'LENGTH' => '' . _('Length') . ' <div></div>(' . _('minutes') . ')', 'ATTENDANCE' => '' . _('Used for') . ' <div></div>' . _('Attendance') . '', 'IGNORE_SCHEDULING' => '' . _('Ignore for') . '<div></div>' . _('Scheduling') . '');
    //,'START_TIME'=>'Start Time','END_TIME'=>'End Time'
    #$link['add']['html'] = array('TITLE'=>_makeTextInput('','TITLE'),'SHORT_NAME'=>_makeTextInput('','SHORT_NAME'),'LENGTH'=>_makeTextInputMod2('','LENGTH'),'SORT_ORDER'=>_makeTextInputMod2('','SORT_ORDER'),'BLOCK'=>_makeTextInput('','BLOCK'),'START_TIME'=>_makeTimeInput('','START_TIME'),'END_TIME'=>_makeTimeInputEnd('','END_TIME'),'ATTENDANCE'=>_makeCheckboxInput('','ATTENDANCE'));
    #$link['add']['html'] = array('TITLE'=>_makeTextInput('','TITLE'),'SHORT_NAME'=>_makeTextInput('','SHORT_NAME'),'SORT_ORDER'=>_makeTextInputMod2('','SORT_ORDER'),'BLOCK'=>_makeTextInput('','BLOCK'),'START_TIME'=>_makeTimeInput('','START_TIME'),'END_TIME'=>_makeTimeInputEnd('','END_TIME'),'ATTENDANCE'=>_makeCheckboxInput('','ATTENDANCE'));
    $link['add']['html'] = array('TITLE' => _makeTextInput('', 'TITLE'), 'SHORT_NAME' => _makeTextInput('', 'SHORT_NAME'), 'SORT_ORDER' => _makeTextInputMod2('', 'SORT_ORDER'), 'START_TIME' => _makeTimeInput('', 'START_TIME'), 'END_TIME' => _makeTimeInputEnd('', 'END_TIME'), 'ATTENDANCE' => _makeCheckboxInput('', 'ATTENDANCE'), 'IGNORE_SCHEDULING' => _makeCheckboxInput('', 'IGNORE_SCHEDULING'));
    $link['remove']['link'] = "Modules.php?modname={$_REQUEST['modname']}&modfunc=remove";
    $link['remove']['variables'] = array('id' => 'PERIOD_ID');
    if ($err_msg) {
        echo "<b style='color:red'>" . $err_msg . "</b>";
        unset($err_msg);
    }
    echo "<FORM name=F1 id=F1 action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update method=POST>";
    #DrawHeader('',SubmitButton('Save'));
    ListOutput($periods_RET, $columns, _('Period'), _('Periods'), $link);
    echo '<br><CENTER>' . SubmitButton(_('Save'), '', 'class=btn_medium onclick="formcheck_school_setup_periods();"') . '</CENTER>';
    echo '</FORM>';
}
function _makeTextInput($value, $name)
{
    global $THIS_RET;
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:Periods.php

示例4: _makeSelectInput

            echo '<TD style="width:120px">';
            echo $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeSelectInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'multiple':
            echo '<TR>';
            echo '<TD style="width:120px">';
            echo $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeMultipleInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'radio':
            echo '<TR>';
            echo '<TD style="width:120px">';
            echo $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeCheckboxInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
    }
}
$i = 1;
foreach ($fields_RET as $field) {
    if ($field['TYPE'] == 'textarea') {
        echo '<TR>';
        echo '<TD style="width:120px">';
        echo $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeTextareaInput('CUSTOM_' . $field['ID'], '');
        echo '</TD>';
        echo '</TR>';
    }
}
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:OtherInfoInc.php

示例5: foreach

             foreach ($calendars_RET as $calendar) {
                 $options[$calendar['CALENDAR_ID']] = $calendar['TITLE'];
             }
         }
         echo _makeSelectInput('CALENDAR_ID', $options);
         echo '</TD>';
         echo '</TR>';
     }
     echo '</TABLE>';
     echo '<BR>';
     $radio_count = count($fields_RET['radio']);
     if ($radio_count) {
         echo '<TABLE cellpadding=5>';
         echo '<TR>';
         for ($i = 1; $i <= $radio_count; $i++) {
             echo '<TD>' . _makeCheckboxInput('CUSTOM_' . $fields_RET['radio'][$i]['ID'], '<b>' . ParseMLField($fields_RET['radio'][$i]['TITLE']) . '</b>') . '</TD>';
             if ($i % 5 == 0 && $i != $radio_count) {
                 echo '</TR><TR>';
             }
         }
         echo '</TD></TR>';
         echo '</TABLE>';
     }
     echo '</TD></TR>';
     echo '</TABLE><BR>';
 } elseif ($note) {
     DrawHeader($note);
 }
 //Widgets('activity');
 //Widgets('course');
 //Widgets('absences');
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:AssignOtherInfo.php

示例6: _makeMultipleInput

            echo '<TD>';
            echo _makeMultipleInput('CUSTOM_' . $field['ID'], $field['TITLE'], 'staff');
            echo '</TD>';
            if ($i % $per_row == 0) {
                echo '</TR>';
            } else {
                echo '<TD style="width:50px;"></TD>';
            }
            $i++;
            break;
        case 'radio':
            if (($i - 1) % $per_row == 0) {
                echo '<TR>';
            }
            echo '<TD>';
            echo _makeCheckboxInput('CUSTOM_' . $field['ID'], $field['TITLE'], 'staff');
            echo '</TD>';
            if ($i % $per_row == 0) {
                echo '</TR>';
            } else {
                echo '<TD style="width:50px;"></TD>';
            }
            $i++;
            break;
    }
}
if (($i - 1) % $per_row != 0) {
    echo '</TR>';
}
echo '</TABLE><BR />';
echo '<TABLE class="cellpadding-5">';
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:Other_Info.inc.php

示例7: echo

            echo '<TD style="width:100px">';
            echo ($field['REQUIRED'] == 'Y' ? '<span class=red>*</span>' : '') . $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeSelectInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'multiple':
            echo '<TR>';
            echo '<TD style="width:100px">';
            echo ($field['REQUIRED'] == 'Y' ? '<span class=red>*</span>' : '') . $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeMultipleInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'radio':
            echo '<TR>';
            echo '<TD style="width:100px">';
            echo ($field['REQUIRED'] == 'Y' ? '<span class=red>*</span>' : '') . $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeCheckboxInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
    }
}
$i = 1;
foreach ($fields_RET as $field) {
    if ($field['TYPE'] == 'textarea') {
        echo '<TR>';
        echo '<TD style="width:100px">';
        echo ($field['REQUIRED'] == 'Y' ? '<span class=red>*</span>' : '') . $field['TITLE'] . '</TD><TD>:</TD><TD>' . _makeTextareaInput('CUSTOM_' . $field['ID'], '');
        echo '</TD>';
        echo '</TR>';
    }
}
开发者ID:jicheng17,项目名称:fh,代码行数:31,代码来源:OtherInfoUserInc.php

示例8: DrawHeader

        }
    }
}
DrawHeader(ProgramTitle());
if ($_REQUEST['modfunc'] == 'remove' && AllowEdit()) {
    if (DeletePrompt('period')) {
        DBQuery("DELETE FROM SCHOOL_PERIODS WHERE PERIOD_ID='{$_REQUEST['id']}'");
        unset($_REQUEST['modfunc']);
    }
}
if ($_REQUEST['modfunc'] != 'remove') {
    $sql = "SELECT PERIOD_ID,TITLE,SHORT_NAME,SORT_ORDER,LENGTH,START_TIME,END_TIME,BLOCK,ATTENDANCE FROM SCHOOL_PERIODS WHERE SYEAR='" . UserSyear() . "' AND SCHOOL_ID='" . UserSchool() . "' ORDER BY SORT_ORDER";
    $QI = DBQuery($sql);
    $periods_RET = DBGet($QI, array('TITLE' => '_makeTextInput', 'SHORT_NAME' => '_makeTextInput', 'SORT_ORDER' => '_makeTextInput', 'BLOCK' => '_makeTextInput', 'LENGTH' => '_makeTextInput', 'START_TIME' => '_makeTimeInput', 'END_TIME' => '_makeTimeInput', 'ATTENDANCE' => '_makeCheckboxInput'));
    $columns = array('TITLE' => _('Title'), 'SHORT_NAME' => _('Short Name'), 'SORT_ORDER' => _('Sort Order'), 'LENGTH' => _('Length (minutes)'), 'BLOCK' => _('Block'), 'ATTENDANCE' => _('Used for Attendance'), 'START_TIME' => _('Start Time'), 'END_TIME' => _('End Time'));
    $link['add']['html'] = array('TITLE' => _makeTextInput('', 'TITLE'), 'SHORT_NAME' => _makeTextInput('', 'SHORT_NAME'), 'LENGTH' => _makeTextInput('', 'LENGTH'), 'SORT_ORDER' => _makeTextInput('', 'SORT_ORDER'), 'BLOCK' => _makeTextInput('', 'BLOCK'), 'START_TIME' => _makeTimeInput('', 'START_TIME'), 'END_TIME' => _makeTimeInput('', 'END_TIME'), 'ATTENDANCE' => _makeCheckboxInput('', 'ATTENDANCE'));
    $link['remove']['link'] = "Modules.php?modname={$_REQUEST['modname']}&modfunc=remove";
    $link['remove']['variables'] = array('id' => 'PERIOD_ID');
    echo "<FORM action=Modules.php?modname={$_REQUEST['modname']}&modfunc=update method=POST>";
    DrawHeader('', SubmitButton(_('Save')));
    ListOutput($periods_RET, $columns, _('Period'), _('Periods'), $link);
    echo '<CENTER>' . SubmitButton(_('Save')) . '</CENTER>';
    echo '</FORM>';
}
function _makeTextInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['PERIOD_ID']) {
        $id = $THIS_RET['PERIOD_ID'];
    } else {
        $id = 'new';
开发者ID:linil,项目名称:centreSIS,代码行数:31,代码来源:Periods.php

示例9: _makeSelectInput

            echo '<td>' . $field['TITLE'] . '</td><td>:</td><td>';
            echo _makeSelectInput('CUSTOM_' . $field['ID'], '');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'multiple':
            echo '<TR>';
            echo '<td>' . $field['TITLE'] . '</td><td>:</td><td>';
            echo _makeMultipleInput('CUSTOM_' . $field['ID'], '', 'class=cell_medium');
            echo '</TD>';
            echo '</TR>';
            break;
        case 'radio':
            echo '<TR>';
            echo '<td>' . $field['TITLE'] . '</td><td>:</td><td>';
            echo _makeCheckboxInput('CUSTOM_' . $field['ID'], '', 'class=cell_medium');
            echo '</TD>';
            echo '</TR>';
            break;
    }
}
foreach ($fields_RET as $field) {
    if ($field['TYPE'] == 'textarea') {
        echo '<TR>';
        echo '<td valign=top>' . $field['TITLE'] . '</td><td valign=top>:</td><td>';
        echo _makeTextareaInput('CUSTOM_' . $field['ID'], '', 'class=cell_medium');
        echo '</TD>';
        echo '</TR>';
    }
}
echo '</TABLE>';
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:Other_Info.inc.php


注:本文中的_makeCheckboxInput函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。