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


PHP CheckboxInput函数代码示例

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


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

示例1: _makeCheckboxInput

function _makeCheckboxInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['PERIOD_ID']) {
        $id = $THIS_RET['PERIOD_ID'];
    } else {
        $id = 'new';
    }
    return CheckboxInput($value, 'values[' . $id . '][' . $name . ']', '', '', $id == 'new', '<IMG SRC=assets/check.gif height=15>', '<IMG SRC=assets/x.gif height=15>');
}
开发者ID:linil,项目名称:centreSIS,代码行数:10,代码来源:Periods.php

示例2: DrawHeader

         echo '&category_id=' . $_REQUEST['category_id'];
     }
     echo '" method="POST">';
     DrawHeader($title, $delete_button . SubmitButton(_('Save')));
     $header .= '<TABLE class="width-100p cellpadding-3">';
     $header .= '<TR>';
     //modif Francois: title required
     $header .= '<TD>' . MLTextInput($RET['TITLE'], 'tables[' . $_REQUEST['category_id'] . '][TITLE]', (!$RET['TITLE'] ? '<span style="color:red">' : '') . _('Title') . (!$RET['TITLE'] ? '</span>' : ''), 'required') . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['category_id'] . '][SORT_ORDER]', _('Sort Order'), 'size=5') . '</TD>';
     if ($_REQUEST['category_id'] == 'new') {
         $new = true;
     }
     $header .= '<TD><TABLE><TR>';
     $header .= '<TD>' . CheckboxInput($RET['RESIDENCE'], 'tables[' . $_REQUEST['category_id'] . '][RESIDENCE]', _('Residence'), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['MAILING'], 'tables[' . $_REQUEST['category_id'] . '][MAILING]', _('Mailing'), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['BUS'], 'tables[' . $_REQUEST['category_id'] . '][BUS]', _('Bus'), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '</TR><TR>';
     $header .= '<TD colspan="3"><span class="legend-gray">' . _('Note: All unchecked means applies to all addresses') . '</span></TD>';
     $header .= '</TR></TABLE></TD>';
     $header .= '</TR>';
     $header .= '</TABLE>';
 } else {
     $header = false;
 }
 if ($header) {
     DrawHeader($header);
     echo '</FORM>';
 }
 // DISPLAY THE MENU
 $LO_options = array('save' => false, 'search' => false);
 //,'add'=>true);
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:AddressFields.php

示例3: PopTable

     PopTable('header', $title);
     $header .= '<TABLE cellspacing=0 cellpadding=3 border=0>';
     $header .= '<TR><td class=lable >Title</td><TD>' . TextInput($RET['TITLE'], 'tables[' . $_REQUEST['marking_period_id'] . '][TITLE]', '', 'class=cell_floating') . '</TD></tr>';
     $header .= '<TR><td class=lable>Short Name</td><TD>' . TextInput($RET['SHORT_NAME'], 'tables[' . $_REQUEST['marking_period_id'] . '][SHORT_NAME]', '', 'class=cell_floating') . '</TD></tr>';
     if (clean_param($_REQUEST['marking_period_id'], PARAM_ALPHANUM) == 'new') {
         $header .= '<TR><td class=lable>Sort Order</td><TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['marking_period_id'] . '][SORT_ORDER]', '', 'class=cell_small onKeyDown="return numberOnly(event);"') . '</TD></tr>';
     } else {
         $header .= '<TR><td class=lable>Sort Order</td><TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['marking_period_id'] . '][SORT_ORDER]', '', 'class=cell_small onKeyDown=\\"return numberOnly(event);\\"') . '</TD></tr>';
     }
     $header .= '<TR><td class=lable>Graded</td><TD>' . CheckboxInput($RET['DOES_GRADES'], 'tables[' . $_REQUEST['marking_period_id'] . '][DOES_GRADES]', '', $checked, $_REQUEST['marking_period_id'] == 'new', '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD></tr>';
     $header .= '<TR><td class=lable>Exam</td><TD>' . CheckboxInput($RET['DOES_EXAM'], 'tables[' . $_REQUEST['marking_period_id'] . '][DOES_EXAM]', '', $checked, $_REQUEST['marking_period_id'] == 'new', '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD></tr>';
     $header .= '<TR><td class=lable>Comments</td><TD>' . CheckboxInput($RET['DOES_COMMENTS'], 'tables[' . $_REQUEST['marking_period_id'] . '][DOES_COMMENTS]', '', $checked, $_REQUEST['marking_period_id'] == 'new', '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD></tr>';
     $header .= '<TR><td class=lable>Begins</td><TD>' . DateInput($RET['START_DATE'], 'tables[' . $_REQUEST['marking_period_id'] . '][START_DATE]', '') . '</TD></tr>';
     $header .= '<TR><td class=lable>Ends</td><TD>' . DateInput($RET['END_DATE'], 'tables[' . $_REQUEST['marking_period_id'] . '][END_DATE]', '') . '</TD></tr>';
     $header .= '<TR><td class=lable>Grade Posting Begins</td><TD>' . DateInput($RET['POST_START_DATE'], 'tables[' . $_REQUEST['marking_period_id'] . '][POST_START_DATE]', '') . '</TD></tr>';
     $str_srch = '<TR><td class=lable>Comments</td><TD>' . CheckboxInput($RET['DOES_COMMENTS'], 'tables[' . $_REQUEST['marking_period_id'] . '][DOES_COMMENTS]', '', $checked, $_REQUEST['marking_period_id'] == 'new', '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD></tr>';
     $header .= '<TR><td class=lable>Grade Posting Ends</td><TD>' . DateInput($RET['POST_END_DATE'], 'tables[' . $_REQUEST['marking_period_id'] . '][POST_END_DATE]', '') . '</TD></tr>';
     $header .= '</TABLE>';
     DrawHeader($header);
     PopTable('footer');
     if (clean_param($_REQUEST['marking_period_id'], PARAM_ALPHANUM) == 'new') {
         DrawHeaderHome('', '', AllowEdit() ? '<INPUT type=submit value=Save class="btn_medium" onclick="formcheck_school_setup_marking();">' : '');
     } elseif ($_REQUEST['mp_term'] != 'FY') {
         DrawHeaderHome('', '', AllowEdit() ? $delete_button . '&nbsp;&nbsp;<INPUT type=submit name=btn_save id=btn_save value=Save class="btn_medium">' : '');
     } else {
         DrawHeaderHome('', '', '<INPUT type=submit name=btn_save id=btn_save value=Save class="btn_medium">');
     }
     echo '</FORM>';
     unset($_SESSION['_REQUEST_vars']['marking_period_id']);
     unset($_SESSION['_REQUEST_vars']['mp_term']);
 }
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:MarkingPeriods.php

示例4: foreach

         $_ROSARIO['AllowEdit'][$modname] = $AllowEdit;
     }
     foreach ($categories_RET as $type) {
         $categories_options[$type['ID']] = ParseMLField($type['TITLE']);
     }
     $header .= '<TD>' . MLSelectInput($RET['CATEGORY_ID'] ? $RET['CATEGORY_ID'] : $_REQUEST['category_id'], 'tables[' . $_REQUEST['id'] . '][CATEGORY_ID]', _('Student Field Category'), $categories_options, false) . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', _('Sort Order'), 'size=5') . '</TD>';
     $header .= '</TR><TR>';
     $colspan = 2;
     if ($RET['TYPE'] == 'autos' || $RET['TYPE'] == 'edits' || $RET['TYPE'] == 'select' || $RET['TYPE'] == 'codeds' || $RET['TYPE'] == 'multiple' || $RET['TYPE'] == 'exports' || $_REQUEST['id'] == 'new') {
         $header .= '<TD colspan="2">' . TextAreaInput($RET['SELECT_OPTIONS'], 'tables[' . $_REQUEST['id'] . '][SELECT_OPTIONS]', _('Pull-Down') . '/' . _('Auto Pull-Down') . '/' . _('Coded Pull-Down') . '/' . _('Select Multiple from Options') . '<BR />' . _('* one per line'), 'rows=7 cols=40') . '</TD>';
         $colspan = 1;
     }
     $header .= '<TD style="vertical-align:bottom;" colspan="' . $colspan . '">' . TextInput($RET['DEFAULT_SELECTION'], 'tables[' . $_REQUEST['id'] . '][DEFAULT_SELECTION]', _('Default')) . '<BR />' . _('* for dates: YYYY-MM-DD') . ',<BR />&nbsp;' . _('for checkboxes: Y') . '</TD>';
     $new = $_REQUEST['id'] == 'new';
     $header .= '<TD>' . CheckboxInput($RET['REQUIRED'], 'tables[' . $_REQUEST['id'] . '][REQUIRED]', _('Required'), '', $new) . '</TD>';
     $header .= '</TR>';
     $header .= '</TABLE>';
 } elseif ($_REQUEST['category_id']) {
     echo '<FORM action="Modules.php?modname=' . $_REQUEST['modname'] . '&table=STUDENT_FIELD_CATEGORIES';
     if ($_REQUEST['category_id'] != 'new') {
         echo '&category_id=' . $_REQUEST['category_id'];
     }
     echo '" method="POST">';
     DrawHeader($title, $delete_button . SubmitButton(_('Save')));
     $header .= '<TABLE class="width-100p cellpadding-3">';
     $header .= '<TR>';
     //modif Francois: title required
     $header .= '<TD>' . MLTextInput($RET['TITLE'], 'tables[' . $_REQUEST['category_id'] . '][TITLE]', (!$RET['TITLE'] ? '<span style="color:red">' : '') . _('Title') . (!$RET['TITLE'] ? '</span>' : ''), 'required') . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['category_id'] . '][SORT_ORDER]', _('Sort Order'), 'size=5') . '</TD>';
     $header .= '<TD>' . TextInput($RET['COLUMNS'], 'tables[' . $_REQUEST['category_id'] . '][COLUMNS]', _('Display Columns'), 'size=5') . '</TD>';
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:StudentFields.php

示例5: TextInput

echo '</table>';
echo '</td></TR>';
echo '<TR><td height="30px" colspan=2 class=hseparator><b>Access Information</b></td></tr><tr><td colspan="2">';
echo '<TABLE border=0>';
echo '<tr><td style=width:120px>Username</td><td>:</td><td>';
echo TextInput($student['USERNAME'], 'students[USERNAME]', '', 'class=cell_medium onkeyup="usercheck_init_student(this)"');
echo '<span id="ajax_output_st"></span>';
echo '</td></tr>';
echo '<tr><td>Password</td><td>:</td><td>';
echo TextInput(array($student['PASSWORD'], str_repeat('*', strlen($student['PASSWORD']))), 'students[PASSWORD]', '', 'class=cell_medium onkeyup=passwordStrength(this.value)', 'AUTOCOMPLETE = off');
echo '<div id="passwordStrength" style=display:none></div>';
echo '</td></tr>';
if ($_REQUEST['student_id'] != 'new') {
    echo '<tr><td>Last Login</td><td>:</td><td>';
    echo NoInput(ProperDate(substr($student['LAST_LOGIN'], 0, 10)) . substr($student['LAST_LOGIN'], 10), '');
    echo '</td></tr>';
}
echo '</table>';
//jc
if (User('PROFILE') == 'admin') {
    echo '<TABLE border=0>';
    echo '<TR><td height="30px" ><b>Manage Student</b></td></tr><tr><td colspan="2">';
    echo '<tr><td>Select to Delete Student</td><td>:</td><td>';
    echo CheckboxInput($student['IS_DISABLE'], 'students[IS_DISABLE]', '', 'CHECKED', $new, '<IMG SRC=assets/check.gif width=15>', '<IMG SRC=assets/x.gif width=15>');
    echo '</td></tr>';
    echo '<tr><td>';
    echo "please only delete inactive student";
    echo '</td></tr>';
    echo '</table>';
}
echo '</td></TR>';
开发者ID:jicheng17,项目名称:fenghua,代码行数:31,代码来源:GeneralInfoInc.php

示例6: _makeCheckboxInput

function _makeCheckboxInput($column, $name, $request = 'staff')
{
    global $value, $field;
    if ($_REQUEST['staff_id'] == 'new' && $field['DEFAULT_SELECTION']) {
        $value[$column] = $field['DEFAULT_SELECTION'];
        $div = false;
    } else {
        $div = true;
    }
    return CheckboxInput($value[$column], $request . '[' . $column . ']', $name, '', $_REQUEST['staff_id'] == 'new');
}
开发者ID:jicheng17,项目名称:fh,代码行数:11,代码来源:FunctionsInc.php

示例7: DrawHeaderHome

     if ($_REQUEST['category_id'] != 'new') {
         echo "&category_id={$_REQUEST['category_id']}";
     }
     echo " method=POST>";
     DrawHeaderHome($title, $delete_button . SubmitButton('Save', '', 'class=btn_medium onclick="formcheck_student_contactField_F2();"'));
     //'<INPUT type=submit value=Save>');
     $header .= '<TABLE cellpadding=3 width=100%>';
     $header .= '<TR>';
     $header .= '<TD>' . TextInput($RET['TITLE'], 'tables[' . $_REQUEST['category_id'] . '][TITLE]', 'Title') . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['category_id'] . '][SORT_ORDER]', 'Sort Order') . '</TD>';
     if ($_REQUEST['category_id'] == 'new') {
         $new = true;
     }
     $header .= '<TD><TABLE><TR>';
     $header .= '<TD>' . CheckboxInput($RET['CUSTODY'], 'tables[' . $_REQUEST['category_id'] . '][CUSTODY]', 'Custody', '', $new, '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['EMERGENCY'], 'tables[' . $_REQUEST['category_id'] . '][EMERGENCY]', 'Emergency', '', $new, '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD>';
     $header .= '</TR><TR>';
     $header .= '<TD colspan=3><small><FONT color=' . Preferences('TITLES') . '>Note: All unchecked means applies to all contacts</FONT></small></TD>';
     $header .= '</TR></TABLE></TD>';
     $header .= '</TR>';
     $header .= '</TABLE>';
 } else {
     $header = false;
 }
 if ($header) {
     DrawHeader($header);
     echo '</FORM>';
     echo '<div class=break_headers></div>';
 }
 // DISPLAY THE MENU
 $LO_options = array('save' => false, 'search' => false, 'add' => true);
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:PeopleFields.php

示例8: _

         echo '<tr><TD>' . _('Home Phone') . '</td><td>:</td><td> ' . TextInput($this_contact['ADDN_HOME_PHONE'], 'values[students_join_people][ADDN_HOME_PHONE]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<tr><TD>' . _('Work Phone') . '</td><td>:</td><td>' . TextInput($this_contact['ADDN_WORK_PHONE'], 'values[students_join_people][ADDN_WORK_PHONE]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<tr><TD>' . _('Mobile Phone') . '</td><td>:</td><td> ' . TextInput($this_contact['ADDN_MOBILE_PHONE'], 'values[students_join_people][ADDN_MOBILE_PHONE]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<tr><TD>' . _('Email') . ' </td><td>:</td><td>' . TextInput($this_contact['ADDN_EMAIL'], 'values[students_join_people][ADDN_EMAIL]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<TR><TD>' . _('Custody of Student') . '</td><td>:</td><TD>' . CheckboxInput($this_contact['CUSTODY'], 'values[students_join_people][CUSTODY]', '', 'CHECKED', $new, '<IMG SRC=assets/check.gif width=15>', '<IMG SRC=assets/x.gif width=15>') . '<small><FONT color=' . Preferences('TITLES') . '></FONT></small></TD></TR>';
         echo '<TR><TD colspan=3><table><TR><TD style=white-space:nowrap><span class=red>' . _('*') . '</span><input type="radio" id="r7" name="r7" value="Y" onClick="addn_hidediv();" checked>&nbsp;' . _('Same as Student\'s Home Address') . ' &nbsp;&nbsp; <input type="radio" id="r7" name="r7" value="N" onClick="addn_showdiv();">&nbsp;' . _('Add New Address') . '</TD></TR></TABLE></TD></TR>';
         echo '<TR><TD colspan=3><div id="addn_hideShow" style="display:none">';
         echo '<div class=break></div>';
         echo '<table><TR><td style=width:120px>' . _('Address Line 1') . '</td><td>:</td><TD>' . TextInput($this_address['ADDN_ADDRESS'], 'values[students_join_people][ADDN_ADDRESS]', '', 'class=cell_medium') . '</TD></td>';
         #echo '<table><TR><td style=width:120px>Address Line 1</td><td>:</td><TD><table cellspacing=0 cellpadding=0><tr><td>'.TextInput($this_address['SEC_ADDRESS'],'values[address][SEC_ADDRESS]','','class=cell_medium').'</TD><td>';
         echo '<TR><td>' . _('Address Line 2') . '</td><td>:</td><TD>' . TextInput($this_contact['ADDN_STREET'], 'values[students_join_people][ADDN_STREET]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<TR><td>' . _('City') . '</td><td>:</td><TD>' . TextInput($this_contact['ADDN_CITY'], 'values[students_join_people][ADDN_CITY]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<TR><td>' . _('State') . '</td><td>:</td><TD>' . TextInput($this_contact['ADDN_STATE'], 'values[students_join_people][ADDN_STATE]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<TR><td>' . _('Zip/Postal Code') . '</td><td>:</td><TD>' . TextInput($this_contact['ADDN_ZIPCODE'], 'values[students_join_people][ADDN_ZIPCODE]', '', 'class=cell_medium') . '</TD></tr>';
         echo '<TR><TD>' . _('School Bus Pick-up') . '</TD><td>:</td><TD>' . CheckboxInput($this_contact['ADDN_BUS_PICKUP'], 'values[students_join_people][ADDN_BUS_PICKUP]', '', 'CHECKED', $new, '<IMG SRC=assets/check.gif width=15>', '<IMG SRC=assets/x.gif width=15>') . '</TD></tr>';
         echo '<TR><TD>' . _('School Bus Drop-off') . '</TD><td>:</td><TD>' . CheckboxInput($this_contact['ADDN_BUS_DROPOFF'], 'values[students_join_people][ADDN_BUS_DROPOFF]', '', 'CHECKED', $new, '<IMG SRC=assets/check.gif width=15>', '<IMG SRC=assets/x.gif width=15>') . '</TD></tr>';
         echo '<TR><td>' . _('Bus No') . '</TD><td>:</td><td>' . TextInput($this_contact['ADDN_BUSNO'], 'values[students_join_people][ADDN_BUSNO]', '', 'class=cell_small') . '</TD></tr>';
         echo '</table></div></td></tr></table>';
         echo '</FIELDSET>';
         echo '</TD></TR>';
         echo '</TABLE>';
     }
 } elseif ($_REQUEST['person_id'] == 'old') {
     $people_RET = DBGet(DBQuery('SELECT PERSON_ID,FIRST_NAME,LAST_NAME FROM people WHERE PERSON_ID NOT IN (SELECT PERSON_ID FROM students_join_people WHERE STUDENT_ID=\'' . UserStudentID() . '\') ORDER BY LAST_NAME,FIRST_NAME'));
     foreach ($people_RET as $people) {
         $people_select[$people['PERSON_ID']] = $people['LAST_NAME'] . ', ' . $people['FIRST_NAME'];
     }
     echo SelectInput('', 'values[EXISTING][person_id]', $title = 'Select Person', $people_select);
 }
 if ($_REQUEST['person_id'] == 'new') {
     echo '</TD></TR>';
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:Address.inc.php

示例9: DBGet

     $RET = DBGet($QI, array('FINAL_GRADE_PERCENT' => '_makePercent'));
     $RET = $RET[1];
     $title = '' . _('New') . _(' ') . _('Assignment') . _(' ') . _('Type') . '';
 }
 if ($_REQUEST['assignment_id']) {
     echo "<FORM name=F3 action=Modules.php?modname={$_REQUEST['modname']}&assignment_type_id={$_REQUEST['assignment_type_id']}";
     if ($_REQUEST['assignment_id'] != 'new') {
         echo "&assignment_id={$_REQUEST['assignment_id']}";
     }
     echo "&table=gradebook_assignments method=POST>";
     DrawHeader($title, $delete_button . '<INPUT type=submit value=' . _('Save') . ' onclick="formcheck_assignments();">');
     $header .= '<TABLE cellpadding=3 bgcolor=#F0F0F1 width=100%>';
     $header .= '<TR>';
     $header .= '<TD>' . TextInput($RET['TITLE'], 'tables[' . $_REQUEST['assignment_id'] . '][TITLE]', ($RET['TITLE'] ? '' : '<FONT color=red>') . '' . _('Title') . '' . ($RET['TITLE'] ? '' : '</FONT>'), 'size=36') . '</TD>';
     $header .= '<TD>' . TextInput($RET['POINTS'], 'tables[' . $_REQUEST['assignment_id'] . '][POINTS]', ($RET['POINTS'] != '' ? '' : '<FONT color=red>') . '' . _('Points') . '' . ($RET['POINTS'] ? '' : '</FONT>'), ' size=4 maxlength=4') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['COURSE_ID'], 'tables[' . $_REQUEST['assignment_id'] . '][COURSE_ID]', '' . _('Apply to all Periods for this Course') . '') . '</TD>';
     foreach ($types_RET as $type) {
         $assignment_type_options[$type['ASSIGNMENT_TYPE_ID']] = $type['TITLE'];
     }
     $header .= '<TD>' . SelectInput($RET['ASSIGNMENT_TYPE_ID'] ? $RET['ASSIGNMENT_TYPE_ID'] : $_REQUEST['assignment_type_id'], 'tables[' . $_REQUEST['assignment_id'] . '][ASSIGNMENT_TYPE_ID]', '' . _('Assignment Type') . '', $assignment_type_options, false) . '</TD>';
     $header .= '</TR><TR>';
     $header .= '<TD valign=top>' . DateInput($new && Preferences('DEFAULT_ASSIGNED', 'Gradebook') == 'Y' ? DBDate() : $RET['ASSIGNED_DATE'], 'tables[' . $_REQUEST['assignment_id'] . '][ASSIGNED_DATE]', '' . _('Assigned') . '', !$new) . '</TD>';
     $header .= '<TD valign=top>' . DateInput($new && Preferences('DEFAULT_DUE', 'Gradebook') == 'Y' ? DBDate() : $RET['DUE_DATE'], 'tables[' . $_REQUEST['assignment_id'] . '][DUE_DATE]', '' . _('Due') . '', !$new) . '</TD>';
     $header .= '<TD rowspan=2 colspan=2>' . TextareaInput($RET['DESCRIPTION'], 'tables[' . $_REQUEST['assignment_id'] . '][DESCRIPTION]', '' . _('Description') . '') . '</TD>';
     $header .= '</TR>';
     //		$header .= '<TR><TD valign=top colspan=2>'.($RET['DATE_ERROR']=='Y'?'<Font color=red>Due date earlier than assigned date!</FONT>':'').'</TD></TR>';
     $header .= '</TABLE>';
 } elseif ($_REQUEST['assignment_type_id']) {
     echo "<FORM name=F3 action=Modules.php?modname={$_REQUEST['modname']}&table=gradebook_assignment_types";
     if ($_REQUEST['assignment_type_id'] != 'new') {
         echo "&assignment_type_id={$_REQUEST['assignment_type_id']}";
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:Assignments.php

示例10: makeCheckboxInput

function makeCheckboxInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['MENU_ITEM_ID']) {
        $id = $THIS_RET['MENU_ITEM_ID'];
    } else {
        $id = 'new';
    }
    return CheckboxInput($value, "values[{$id}][{$name}]", '', $value, $id == 'new', '<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>', '<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>');
}
开发者ID:linil,项目名称:centreSIS,代码行数:10,代码来源:MenuItems.php

示例11: _makeSearchInput

/**
 * Make Search Input
 *
 * @param  string $field text|numeric|select|date|radio|grade|school|timespan|test_no|other.
 *
 * @return string Search Input HTML
 */
function _makeSearchInput($field)
{
    $div = false;
    $value = $_REQUEST['bottom_back'] == 'true' && isset($_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']]) ? $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']] : '';
    switch ($field['TYPE']) {
        case 'text':
            /*return "<INPUT type=text name=cust[{$field[COLUMN_NAME]}] size=30".(($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']])?' value="'.$_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']].'"':'').">";*/
            return TextInput($value, 'cust[' . $field['COLUMN_NAME'] . ']', 'size="20"', $div);
            break;
        case 'numeric':
            /*return "<small>Between</small> <INPUT type=text name=cust_begin[{$field[COLUMN_NAME]}] size=3 maxlength=11".(($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']])?' value="'.$_SESSION['_REQUEST_vars']['cust_begin'][$field['COLUMN_NAME']].'"':'')."> <small>&amp;</small> <INPUT type=text name=cust_end[{$field[COLUMN_NAME]}] size=3 maxlength=11".(($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']])?' value="'.$_SESSION['_REQUEST_vars']['cust_end'][$field['COLUMN_NAME']].'"':'').">";*/
            return '<small>' . _('Between') . '</small> ' . TextInput($_REQUEST['bottom_back'] == 'true' && isset($_SESSION['_REQUEST_vars']['cust_begin'][$field['COLUMN_NAME']]) ? $_SESSION['_REQUEST_vars']['cust_begin'][$field['COLUMN_NAME']] : '', 'cust_begin[' . $field['COLUMN_NAME'] . ']', '', 'size="3" maxlength="11"', $div) . '<small>&amp;</small>' . TextInput($_REQUEST['bottom_back'] == 'true' && isset($_SESSION['_REQUEST_vars']['cust_end'][$field['COLUMN_NAME']]) ? $_SESSION['_REQUEST_vars']['cust_end'][$field['COLUMN_NAME']] : '', 'cust_end[' . $field['COLUMN_NAME'] . ']', '', 'size="3" maxlength="11"', $div);
            break;
        case 'select':
            $options = explode("\r", str_replace(array("\r\n", "\n"), "\r", $field['SELECT_OPTIONS']));
            /*if($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']])
            				$bb_option = $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']];
            			else
            				$bb_option = '';
            			$return = "<SELECT name=cust[{$field[COLUMN_NAME]}] style='max-width:250;'><OPTION value=''>N/A</OPTION><OPTION value='!'".($bb_option=='!'?' SELECTED':'').">No Value</OPTION>";
            
            			foreach ( (array) $options as $option )
            			{
            				//$return .= "<OPTION value=\"$option\"".(($field['COLUMN_NAME']=='CUSTOM_44' && $field['TITLE']=='District' && $option==$_SESSION['district'])?' SELECTED':'').($bb_option==$option?' SELECTED':'').">$option</OPTION>";
            				$return .= '<option value="' . $option . '"' . ( $bb_option == $option ? ' selected' : '' ) . '>' .
            					$option . '</option>';
            			}
            
            			$return .= '</SELECT>';*/
            foreach ((array) $options as $option) {
                $options_with_keys[$option] = $option;
            }
            return SelectInput($value, 'cust[' . $field['COLUMN_NAME'] . ']', '', array('!' => _('No Value')) + $options_with_keys, 'N/A', 'style="max-width:250px;"', $div);
            break;
        case 'date':
            return '<small>' . _('Between') . '</small> ' . PrepareDate($value, '_cust_begin[' . $field['COLUMN_NAME'] . ']', true, array('short' => true, 'C' => false)) . ' <small>&amp;</small> ' . PrepareDate('', '_cust_end[' . $field['COLUMN_NAME'] . ']', true, array('short' => true, 'C' => false));
            break;
        case 'radio':
            /*return "<table clsss=cellpadding=0 cellspacing=0><tr><td width=30 align=center>
            		<input name='cust[{$field[COLUMN_NAME]}]' type='radio' value='Y'".(($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']]=='Y')?' CHECKED':'')." /> Yes
            		</td><td width=25 align=center>
            		<input name='cust[{$field[COLUMN_NAME]}]' type='radio' value='N'".(($_REQUEST['bottom_back']=='true' && $_SESSION['_REQUEST_vars']['cust'][$field['COLUMN_NAME']])?' CHECKED':'')." /> No
            		</td></tr></table>";*/
            return RadioInput($value, 'cust[' . $field['COLUMN_NAME'] . ']', $title = '', array('Y' => _('Yes'), 'N' => _('No')), false, '', $div);
            break;
        case 'grade':
            $grades_RET = DBGet(DBQuery("SELECT DISTINCT TITLE,ID,SORT_ORDER\n\t\t\t\tFROM SCHOOL_GRADELEVELS\n\t\t\t\tWHERE SCHOOL_ID='" . UserSchool() . "'\n\t\t\t\tORDER BY SORT_ORDER"));
            /*$return = '<SELECT name="grade"><OPTION value=""></OPTION>';
            		foreach ($grades_RET as $grade)
            			$return .= "<OPTION value=" . $grade['ID'] . ">".$grade['TITLE'].'</OPTION>';
            		$return .= '</SELECT>';*/
            $grade_options = array();
            foreach ((array) $grades_RET as $grade) {
                $grade_options[$grade['ID']] = $grade['TITLE'];
            }
            return SelectInput('', 'grade', '', $grade_options, 'N/A', '', $div);
            break;
        case 'schools':
            return CheckboxInput('', '_search_all_schools', _('Search All Schools'), '', true);
            break;
        case 'timespan':
            $start_date = '01-' . mb_strtoupper(date('M-y'));
            $end_date = DBDate();
            return '<small>' . _('Between') . '</small> ' . PrepareDate($start_date, '_start', true, array('short' => true, 'C' => false)) . ' <small>&amp;</small> ' . PrepareDate($end_date, '_end', true, array('short' => true, 'C' => false));
            break;
            /*case 'test_no':
            
            			$select = SelectInput(
            				'',
            				'test_no[]',
            				'',
            				array(
            					'1' => 1,
            					'2' => 2,
            					'3' => 3,
            					'4' => 4,
            					'5' => 5,
            					'6' => 6,
            					'7' => 7,
            					'8' => 8,
            					'9' => 9,
            					'10' => 10,
            					'0' => _( 'Final' ),
            				),
            				'N/A',
            				'',
            				$div
            			);
            
            			$select = "<select name='test_no[]'>";
            			$vals = array('1'=>1,'2'=>2,'3'=>3,'4'=>4,'5'=>5,'6'=>6,'7'=>7,'8'=>8,'9'=>9,'10'=>10,'0'=>'Final');
            			$select .= '<OPTION value="">N/A</OPTION>';
            			foreach ($vals as $i=>$val)
//.........这里部分代码省略.........
开发者ID:francoisjacquet,项目名称:Reports,代码行数:101,代码来源:ReportsCalculations.fnc.php

示例12: makeCheckboxInput

function makeCheckboxInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['ID']) {
        $id = $THIS_RET['ID'];
    } else {
        $id = 'new';
    }
    if ($THIS_RET['WEIGHTED_GP'] != NULL) {
        $yes = 'Yes';
    } elseif ($THIS_RET['GPA_CAL'] != NULL) {
        $yes = 'Yes';
    } else {
        $no = 'No';
    }
    if ($name == 'GPA_CAL') {
        return CheckboxInput($value, 'values[' . $id . '][' . $name . ']', '', '', $id == 'new' ? true : false, $yes, $no, false);
    } else {
        return '<input type=hidden name=values[' . $id . '][' . $name . '] value="' . $value . '" />' . CheckboxInput($value, 'values[' . $id . '][' . $name . ']', '', '', $id == 'new' ? true : false, $yes, $no, false);
    }
}
开发者ID:jicheng17,项目名称:fh,代码行数:21,代码来源:HistoricalReportCardGrades.php

示例13: _makeCheckBoxInput

function _makeCheckBoxInput($value, $eve_stat)
{
    if ($value) {
        $val = '';
    } else {
        if ($eve_stat == 'new') {
            $val = '';
        } else {
            $val = 1;
        }
    }
    return CheckboxInput($val, "show_all", '', '', false, '<IMG SRC=assets/check.gif>', '<IMG SRC=assets/x.gif>');
}
开发者ID:26746647,项目名称:openSIS,代码行数:13,代码来源:Calendar.php

示例14: SelectInput

     $header .= '<TD>' . SelectInput($RET['CATEGORY_ID'] ? $RET['CATEGORY_ID'] : $_REQUEST['category_id'], 'tables[' . $_REQUEST['id'] . '][CATEGORY_ID]', 'Student Field Category', $categories_options, false) . '</TD>';
     if ($_REQUEST['id'] == 'new' || $RET['SORT_ORDER'] == '') {
         $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', 'maxlength=5 onkeydown="return numberOnly(event);"') . '</TD>';
     } else {
         $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', 'maxlength=5 onkeydown=\\"return numberOnly(event);\\"') . '</TD>';
     }
     $header .= '</TR><TR>';
     $colspan = 2;
     if ($RET['TYPE'] == 'autos' || $RET['TYPE'] == 'edits' || $RET['TYPE'] == 'select' || $RET['TYPE'] == 'codeds' || $RET['TYPE'] == 'multiple' || $_REQUEST['id'] == 'new') {
         $header .= '<TD colspan=2>' . TextAreaInput($RET['SELECT_OPTIONS'], 'tables[' . $_REQUEST['id'] . '][SELECT_OPTIONS]', 'Pull-Down/Auto Pull-Down/Coded Pull-Down/Select Multiple Choices<BR>* one per line', 'rows=7 cols=40') . '</TD>';
         $colspan = 1;
     }
     $header .= '<TD valign=bottom colspan=' . $colspan . '>' . TextInput_mod_a($RET['DEFAULT_SELECTION'], 'tables[' . $_REQUEST['id'] . '][DEFAULT_SELECTION]', 'Default') . '<small><BR>* for dates: YYYY-MM-DD,<BR> for checkboxes: Y <BR> for long text it will be ignored</small></TD>';
     $new = $_REQUEST['id'] == 'new';
     $header .= '<TD>' . CheckboxInput($RET['REQUIRED'], 'tables[' . $_REQUEST['id'] . '][REQUIRED]', 'Required', '', $new) . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['HIDE'], 'tables[' . $_REQUEST['id'] . '][HIDE]', 'Hide', '', $new) . '</TD>';
     $header .= '</TR>';
     $header .= '</TABLE>';
 } elseif ($_REQUEST['category_id']) {
     if ($_REQUEST['err'] == true) {
         echo "<script>document.getElementById('divErr').innerHTML='<font color=red><b>Title already exists.</b></font>';</script>";
     }
     echo "<FORM name=F2 id=F2 action=Modules.php?modname={$_REQUEST['modname']}&table=student_field_categories";
     if ($_REQUEST['category_id'] != 'new') {
         echo "&category_id={$_REQUEST['category_id']}";
     }
     echo " method=POST>";
     if ($_REQUEST[category_id] > 7 || $_REQUEST['category_id'] == 'new') {
         DrawHeaderHome($title, $delete_button . SubmitButton('Save', '', 'class=btn_medium onclick="formcheck_student_studentField_F2();"'));
     }
     $header .= '<TABLE cellpadding=3 width=100%>';
开发者ID:godfreym,项目名称:opensis,代码行数:31,代码来源:StudentFields.php

示例15: DrawHeader

         echo '&category_id=' . $_REQUEST['category_id'];
     }
     echo '" method="POST">';
     DrawHeader($title, $delete_button . SubmitButton(_('Save')));
     $header .= '<TABLE class="width-100p cellpadding-3">';
     $header .= '<TR>';
     //modif Francois: title required
     $header .= '<TD>' . MLTextInput($RET['TITLE'], 'tables[' . $_REQUEST['category_id'] . '][TITLE]', (!$RET['TITLE'] ? '<span style="color:red">' : '') . _('Title') . (!$RET['TITLE'] ? '</span>' : ''), 'required') . '</TD>';
     $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['category_id'] . '][SORT_ORDER]', _('Sort Order'), 'size=5') . '</TD>';
     $header .= '<TD>' . TextInput($RET['COLUMNS'], 'tables[' . $_REQUEST['category_id'] . '][COLUMNS]', _('Display Columns'), 'size=5') . '</TD>';
     $new = $_REQUEST['category_id'] == 'new';
     $header .= '<TD><TABLE><TR>';
     $header .= '<TD>' . CheckboxInput($RET['ADMIN'], 'tables[' . $_REQUEST['category_id'] . '][ADMIN]', ($_REQUEST['category_id'] == '1' && !$RET['ADMIN'] ? '<span style="color:red">' : '') . _('Administrator') . ($_REQUEST['category_id'] == '1' && !$RET['ADMIN'] ? '</span>' : ''), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['TEACHER'], 'tables[' . $_REQUEST['category_id'] . '][TEACHER]', ($_REQUEST['category_id'] == '1' && !$RET['TEACHER'] ? '<span style="color:red">' : '') . _('Teacher') . ($_REQUEST['category_id'] == '1' && !$RET['TEACHER'] ? '</span>' : ''), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['PARENT'], 'tables[' . $_REQUEST['category_id'] . '][PARENT]', ($_REQUEST['category_id'] == '1' && !$RET['PARENT'] ? '<span style="color:red">' : '') . _('Parent') . ($_REQUEST['category_id'] == '1' && !$RET['TEACHER'] ? '</span>' : ''), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '<TD>' . CheckboxInput($RET['NONE'], 'tables[' . $_REQUEST['category_id'] . '][NONE]', ($_REQUEST['category_id'] == '1' && !$RET['NONE'] ? '<span style="color:red">' : '') . _('No Access') . ($_REQUEST['category_id'] == '1' && !$RET['TEACHER'] ? '</span>' : ''), '', $new, '<IMG SRC="assets/check.png" height="15">', '<IMG SRC="assets/x.png" height="15">') . '</TD>';
     $header .= '</TR>';
     $header .= '<TR><TD colspan="4"><span class="legend-gray">' . _('Profiles') . '</span></TD></TR>';
     $header .= '</TABLE></TD>';
     if ($_REQUEST['category_id'] > 2 || $new) {
         $header .= '</TR><TR>';
         $header .= '<TD colspan="2"></TD>';
         $header .= '<TD>' . TextInput($RET['INCLUDE'], 'tables[' . $_REQUEST['category_id'] . '][INCLUDE]', _('Include (should be left blank for most categories)')) . '</TD>';
     }
     $header .= '</TR>';
     $header .= '</TABLE>';
 } else {
     $header = false;
 }
 if ($header) {
     DrawHeader($header);
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:UserFields.php


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