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


PHP TextAreaInput函数代码示例

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


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

示例1: foreach

    if ($_REQUEST['id'] != 'new' && $RET['TYPE'] != 'select' && $RET['TYPE'] != 'autos' && $RET['TYPE'] != 'edits' && $RET['TYPE'] != 'text') {
        $_openSIS['allow_edit'] = $allow_edit;
        $_openSIS['AllowEdit'][$modname] = $AllowEdit;
    }
    foreach ($categories_RET as $type) {
        $categories_options[$type['ID']] = $type['TITLE'];
    }
    if ($_REQUEST['id'] == 'new') {
        $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', 'onkeydown="return numberOnly(event);"') . '</TD>';
    } else {
        $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', '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 .= '</TR>';
    $header .= '</TABLE>';
}
if ($header) {
    DrawHeaderHome($header);
    echo '</FORM>';
}
if (!$_REQUEST['modfunc']) {
    $count = 0;
    $count++;
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:school_custom_fields.php

示例2: array

         $type_options = array('select' => _('Pull-Down'), 'autos' => _('Auto Pull-Down'), 'edits' => _('Edit Pull-Down'), 'text' => _('Text'), 'radio' => _('Checkbox'), 'codeds' => _('Coded Pull-Down'), 'exports' => _('Export Pull-Down'), 'numeric' => _('Number'), 'multiple' => _('Select Multiple from Options'), 'date' => _('Date'), 'textarea' => _('Long Text'));
     }
     $header .= '<TD>' . SelectInput($RET['TYPE'], 'tables[' . $_REQUEST['id'] . '][TYPE]', _('Data Type'), $type_options, false) . '</TD>';
     if ($_REQUEST['id'] != 'new' && $RET['TYPE'] != 'select' && $RET['TYPE'] != 'autos' && $RET['TYPE'] != 'edits' && $RET['TYPE'] != 'text' && $RET['TYPE'] != 'exports') {
         $_ROSARIO['allow_edit'] = $allow_edit;
         $_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">';
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:StudentFields.php

示例3: _makeCommentsn

function _makeCommentsn($value, $column)
{
    global $THIS_RET, $table;
    if (!$THIS_RET['ID']) {
        $THIS_RET['ID'] = 'new';
    }
    return TextAreaInput($value, 'values[' . $table . '][' . $THIS_RET['ID'] . '][' . $column . ']', '', 'rows=8 cols=50');
}
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:8,代码来源:FunctionsInc.php

示例4: _makeTextareaInput

function _makeTextareaInput($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 TextAreaInput($value[$column], $request . '[' . $column . ']', $name, '', $div);
}
开发者ID:jicheng17,项目名称:fh,代码行数:11,代码来源:FunctionsInc.php

示例5: DBGet

     }
     echo "<FORM name=popform id=popform action=for_window.php?modname={$_REQUEST['modname']}&dd={$_REQUEST['school_date']}&modfunc=detail&event_id={$_REQUEST['event_id']}&month={$_REQUEST['month']}&year={$_REQUEST['year']} METHOD=POST>";
 } else {
     $RET = DBGet(DBQuery("SELECT TITLE,STAFF_ID,DATE_FORMAT(DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,DESCRIPTION FROM GRADEBOOK_ASSIGNMENTS WHERE ASSIGNMENT_ID='{$_REQUEST['assignment_id']}'"));
     $title = $RET[1]['TITLE'];
     $RET[1]['STAFF_ID'] = GetTeacher($RET[1]['STAFF_ID']);
 }
 echo '<BR>';
 PopTableforWindow('header', $title);
 echo '<TABLE>';
 echo '<TR><TD>Date</TD><TD>' . DateInput($RET[1]['SCHOOL_DATE'], 'values[SCHOOL_DATE]', '', true) . '</TD></TR>';
 echo '<TR><TD>Title</TD><TD>' . TextInput($RET[1]['TITLE'], 'values[TITLE]') . '</TD></TR>';
 if ($RET[1]['STAFF_ID']) {
     echo '<TR><TD>Teacher</TD><TD>' . TextAreaInput($RET[1]['STAFF_ID'], 'values[STAFF_ID]') . '</TD></TR>';
 }
 echo '<TR><TD>Notes</TD><TD>' . TextAreaInput($RET[1]['DESCRIPTION'], 'values[DESCRIPTION]') . '</TD></TR>';
 if (AllowEdit()) {
     echo '<TR><TD colspan=2 align=center><INPUT type=submit class=btn_medium name=button value=Save onclick="formload_ajax(\\"popform\\");">';
     echo '&nbsp;';
     if ($_REQUEST['event_id'] != 'new') {
         echo '<INPUT type=submit name=button class=btn_medium value=Delete onclick="formload_ajax(\\"popform\\");">';
     }
     echo '</TD></TR>';
 }
 echo '</TABLE>';
 PopTableWindow('footer');
 echo '</FORM>';
 unset($_REQUEST['values']);
 unset($_SESSION['_REQUEST_vars']['values']);
 unset($_REQUEST['button']);
 unset($_SESSION['_REQUEST_vars']['button']);
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:Calendar.php

示例6: _makeTextareaInput

function _makeTextareaInput($column, $numeric = false)
{
    return TextAreaInput('', 'values[' . $column . ']');
}
开发者ID:linil,项目名称:centreSIS,代码行数:4,代码来源:AssignOtherInfo.php

示例7: _

 echo '<TR><TD align=' . ALIGN_RIGHT . ' valign=top width=30><font color=gray>' . _('Incident Date') . '</font></TD><TD style="border:1; border-style:none none solid none;">';
 echo DateInput($RET['ENTRY_DATE'], 'values[ENTRY_DATE]');
 echo '</TD></TR>';
 foreach ($categories_RET as $category) {
     echo '<TR><TD align=' . ALIGN_RIGHT . ' valign=top width=30><font color=gray>' . $category['TITLE'] . '</font></TD><TD style="border:1; border-style:none none solid none;">';
     switch ($category['DATA_TYPE']) {
         case 'text':
             echo TextInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']');
             //echo '<INPUT type=TEXT name=values[CATEGORY_'.$category['ID'].'] value="'.$RET['CATEGORY_'.$category['ID']].'" maxlength=255>';
             break;
         case 'numeric':
             echo TextInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']', '', 'size=4 maxlength=10');
             //echo '<INPUT type=TEXT name=values[CATEGORY_'.$category['ID'].'] value="'.$RET['CATEGORY_'.$category['ID']].'" size=4 maxlength=10>';
             break;
         case 'textarea':
             echo TextAreaInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']', '', !$_REQUEST['_FOCUS_PDF'] ? 'rows=4 cols=30' : 'rows=4 cols=100');
             //echo '<TEXTAREA name=values[CATEGORY_'.$category['ID'].'] rows=4 cols=30>'.$RET['CATEGORY_'.$category['ID']].'</TEXTAREA>';
             break;
         case 'checkbox':
             echo CheckboxInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']');
             //echo '<INPUT type=CHECKBOX name=values[CATEGORY_'.$category['ID'].'] value=Y'.($RET['CATEGORY_'.$category['ID']]=='Y'?' CHECKED':'').'>';
             break;
         case 'date':
             echo DateInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']');
             //echo PrepareDate($RET['CATEGORY_'.$category['ID']],'_values[CATEGORY_'.$category['ID'].']');
             break;
         case 'multiple_checkbox':
             if (AllowEdit() && !$_REQUEST['_FOCUS_PDF']) {
                 echo "<DIV id='divvalues[CATEGORY_" . $category['ID'] . ']' . "'><div onclick='javascript:addHTML(\"";
                 $category['SELECT_OPTIONS'] = str_replace("\n", "\r", str_replace("\r\n", "\r", $category['SELECT_OPTIONS']));
                 $options = explode("\r", $category['SELECT_OPTIONS']);
开发者ID:SoftScape,项目名称:opensis,代码行数:31,代码来源:Referrals.php

示例8: _makeTextAreaInput

function _makeTextAreaInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['USAGE_ID']) {
        $id = $THIS_RET['USAGE_ID'];
    } elseif ($THIS_RET['ID']) {
        $id = 'usage';
    } else {
        $id = 'new';
    }
    if ($id == 'usage') {
        return $value;
    } elseif ($id == 'new' || $THIS_RET['DATA_TYPE'] == 'multiple_checkbox' || $THIS_RET['DATA_TYPE'] == 'multiple_radio' || $THIS_RET['DATA_TYPE'] == 'select') {
        return TextAreaInput(str_replace('"', '\\"', $value), 'values[' . $id . '][' . $name . ']');
    } else {
        return _('N/A');
    }
}
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:18,代码来源:DisciplineForm.php

示例9: DBGet

$LANGUAGE_RET = DBGet(DBQuery("SELECT LANGUAGE_ID,LANGUAGE_NAME FROM language ORDER BY SORT_ORDER"));
foreach ($LANGUAGE_RET as $language_array) {
    $language[$language_array['LANGUAGE_ID']] = $language_array['LANGUAGE_NAME'];
}
echo '<tr><td><span class=red></span>Primary Language</td><td>:</td><td>' . SelectInput($staff['PRIMARY_LANGUAGE_ID'], 'staff[PRIMARY_LANGUAGE_ID]', '', $language, 'N/A', '') . '</td></tr>';
echo '<tr><td>Second Language</td><td>:</td><td>' . SelectInput($staff['SECOND_LANGUAGE_ID'], 'staff[SECOND_LANGUAGE_ID]', '', $language, 'N/A', '') . '</td></tr>';
echo '<tr><td>Third Language</td><td>:</td><td>' . SelectInput($staff['THIRD_LANGUAGE_ID'], 'staff[THIRD_LANGUAGE_ID]', '', $language, 'N/A', '') . '</td></tr>';
if ($_REQUEST['staff_id'] == 'new') {
    $id_sent = 0;
} else {
    $id_sent = $_REQUEST['staff_id'];
}
echo '<tr><td><span class=red></span>Email</td><td>:</td><td>' . TextInput($staff['EMAIL'], 'staff[EMAIL]', '', 'size=12 maxlength=100 class=cell_floating id=email_id onkeyup="check_email(this,' . $id_sent . ',2);" onblur="check_email(this,' . $id_sent . ',2);"') . '<div id=email_error></div></td></tr>';
echo '<tr><td>Physical Disability</td><td>:</td><td>' . SelectInput($staff['PHYSICAL_DISABILITY'], 'staff[PHYSICAL_DISABILITY]', '', array('N' => 'No', 'Y' => 'Yes'), false, 'onchange=show_span("span_disability_desc",this.value)') . '</td></tr>';
echo '</table>';
if ($staff['PHYSICAL_DISABILITY'] == 'Y') {
    echo '<table id="span_disability_desc"><tr><td>Disability Description</td><td>:</td><td>' . TextAreaInput($staff['DISABILITY_DESC'], 'staff[DISABILITY_DESC]', '', '', 'true') . '</td></tr></table>';
} else {
    echo '<table id="span_disability_desc" style="display:none"><tr><td>Disability Description</td><td>:</td><td>' . TextAreaInput('', 'staff[DISABILITY_DESC]', '', '', 'true') . '</td></tr></table>';
}
//echo '</table>';
echo '</td><td valign="top" align="right"><div class=clear></div>';
echo '</td></TR>';
echo '</td></TR>';
echo '</td></TR>';
echo '</td></tr></table>';
echo '</TD></TR><tr><td colspan="2">';
$_REQUEST['category_id'] = 1;
$_REQUEST['custom'] = 'staff';
include 'modules/Users/includes/Other_Info.inc.php';
echo '</TD></TR>';
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:Demographic_Info.inc.php

示例10: TextInput

             }
         }
         # ------------------------------ Delete ---------------------------------------- #
         $header .= '<TR>';
         $header .= '<TD>Goal Title</TD><TD>' . TextInput($RET['GOAL_TITLE'], 'tables[GOAL][' . $_REQUEST['goal_id'] . '][GOAL_TITLE]', '', 'size=75 maxlength=50') . '</TD>';
         $header .= '</TR>';
         $header .= '<TR>';
         $header .= '<TD>Begin Date</TD><TD>' . DateInput($RET['START_DATE'], 'tables[' . $_REQUEST['goal_id'] . '][START_DATE]', '') . '</TD>';
         // DateInput is copied from School_Setup/MarkingPeriods.php line 295
         $header .= '</TR>';
         $header .= '<TR>';
         $header .= '<TD>End Date</TD><TD>' . DateInput($RET['END_DATE'], 'tables[' . $_REQUEST['goal_id'] . '][END_DATE]', '') . '</TD>';
         // DateInput is copied from School_Setup/MarkingPeriods.php line 296
         $header .= '</TR>';
         $header .= '<TR>';
         $header .= '<TD valign=top>Goal Description</TD><TD>' . TextAreaInput($RET['GOAL_DESCRIPTION'], 'tables[GOAL][' . $_REQUEST['goal_id'] . '][GOAL_DESCRIPTION]', '', 'rows=10 cols=70', 'true', '200px') . '<input type="hidden" name="tabl" id="tabl" value="goal"></TD>';
         $header .= '</TR>';
         $header .= '</TABLE>';
         DrawHeader($header);
     }
 }
 // DISPLAY THE MENU
 $LO_options = array('save' => false, 'search' => false);
 if (!$_REQUEST['goal_id'] || $_REQUEST['modfunc'] == 'choose_course') {
     DrawHeaderHome('Goals', "<A HREF=for_window.php?modname=Students/Student.php&include=Goal&modfunc={$_REQUEST['modfunc']}&course_modfunc=search>Search</A>");
 }
 echo '<TABLE><TR>';
 if (count($subjects_RET)) {
     if ($_REQUEST['goal_id']) {
         foreach ($subjects_RET as $key => $value) {
             if ($value['GOAL_ID'] == $_REQUEST['goal_id']) {
开发者ID:26746647,项目名称:Belize-openSIS,代码行数:31,代码来源:Goal.inc.php

示例11: PopTableforWindow

 echo '<BR>';
 PopTableforWindow('header', $title);
 echo '<center><div id=err_message ></div></center><br/>';
 echo '<TABLE>';
 echo '<TR><TD>Date</TD><TD>' . DateInput($RET[1]['SCHOOL_DATE'], 'values[SCHOOL_DATE]', '', true) . '</TD></TR>';
 echo '<TR><TD>Title</TD><TD>' . TextInput($RET[1]['TITLE'], 'values[TITLE]', '', 'style=width:380px;') . '</TD></TR>';
 if ($RET[1]['STAFF_ID']) {
     echo '<TR><TD>Teacher</TD><TD>' . TextAreaInput($RET[1]['STAFF_ID'], 'values[STAFF_ID]') . '</TD></TR>';
 }
 if ($RET[1]['ASSIGNED_DATE']) {
     echo '<TR><TD>Assigned Date</TD><TD>' . TextAreaInput($RET[1]['ASSIGNED_DATE'], 'values[ASSIGNED_DATE]') . '</TD></TR>';
 }
 if ($RET[1]['DUE_DATE']) {
     echo '<TR><TD>Due Date </TD><TD>' . TextAreaInput($RET[1]['DUE_DATE'], 'values[DUE_DATE]') . '</TD></TR>';
 }
 echo '<TR><TD>Notes</TD><TD>' . TextAreaInput($RET[1]['DESCRIPTION'], 'values[DESCRIPTION]', '', 'style=width:380px;height:200px;') . '';
 if (AllowEdit()) {
     echo '<TR><TD>Show Events System Wide</TD><TD align=center>' . _makeCheckBoxInput($RET[1]['CALENDAR_ID'], $_REQUEST['event_id']) . '</TD></TR>';
     echo '<TR><TD colspan=2 align=center><INPUT type=submit class=btn_medium name=button value=Save onclick="formload_ajax(\'popform\');">';
     echo '&nbsp;';
     if ($_REQUEST['event_id'] != 'new') {
         echo '<INPUT type=submit name=button class=btn_medium value=Delete onclick="formload_ajax(\'popform\');">';
     }
     echo '</TD></TR>';
 }
 echo '</TABLE>';
 PopTableWindow('footer');
 echo '</FORM>';
 unset($_REQUEST['values']);
 unset($_SESSION['_REQUEST_vars']['values']);
 unset($_REQUEST['button']);
开发者ID:26746647,项目名称:openSIS,代码行数:31,代码来源:Calendar.php

示例12: date

 echo '<TR><TD>Date</TD><TD>' . date("Y/M/d", strtotime($RET[1]['SCHOOL_DATE'])) . '</TD></TR>';
 if ($RET[1]['TITLE'] == '') {
     echo '<TR><TD>Title</TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextInput($RET[1]['TITLE'], 'values[TITLE]', '', 'id=title style=width:380px;') . '</TD>' : '<TD style=width:380px;>' . $RET[1]['TITLE'] . '</TD>') . '</TR>';
 } else {
     echo '<TR><TD>Title</TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextInputCusId($RET[1]['TITLE'], 'values[TITLE]', '', 'style=width:380px;', true, 'title') . '</TD>' : '<TD style=width:380px;>' . $RET[1]['TITLE'] . '</TD>') . '</TR>';
 }
 if ($RET[1]['STAFF_ID']) {
     echo '<TR><TD>Teacher</TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextAreaInput($RET[1]['STAFF_ID'], 'values[STAFF_ID]') . '</TD>' : '<TD style=width:380px;>' . $RET[1]['STAFF_ID'] . '</TD>') . '</TR>';
 }
 if ($RET[1]['ASSIGNED_DATE']) {
     echo '<TR><TD>Assigned Date</TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextAreaInput($RET[1]['ASSIGNED_DATE'], 'values[ASSIGNED_DATE]') . '</TD>' : '<TD style=width:380px;>' . $RET[1]['ASSIGNED_DATE'] . '</TD>') . '</TR>';
 }
 if ($RET[1]['DUE_DATE']) {
     echo '<TR><TD>Due Date </TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextAreaInput($RET[1]['DUE_DATE'], 'values[DUE_DATE]') . '</TD>' : '<TD style=width:380px;>' . $RET[1]['DUE_DATE'] . '</TD>') . '</TR>';
 }
 echo '<TR><TD>Notes </TD>' . (User('PROFILE') == 'admin' ? '<TD>' . TextAreaInput(html_entity_decode($RET[1]['DESCRIPTION']), 'values[DESCRIPTION]', '', 'style=width:380px;height:200px;') . '</TD>' : '<TD style=width:380px; align=left>' . html_entity_decode($RET[1]['DESCRIPTION']) . '</TD>') . '</TR>';
 if (AllowEdit()) {
     if (User('PROFILE') == 'admin') {
         echo '<TR><TD>Show Events System Wide</TD><TD>' . _makeCheckBoxInput($RET[1]['CALENDAR_ID'], $_REQUEST['event_id']) . '</TD></TR>';
     } else {
         echo '<TR><TD>Show Events System Wide</TD><TD>' . ($RET[1]['CALENDAR_ID'] == '' ? '<IMG SRC=assets/check.gif>' : '<IMG SRC=assets/x.gif>') . '</TD></TR>';
     }
     if (User('PROFILE') == 'admin') {
         echo '<TR><TD colspan=2 align=center><INPUT type=submit class=btn_medium name=button value=Save onclick="return formcheck_calendar_event();">';
     }
     echo '&nbsp;';
     if ($_REQUEST['event_id'] != 'new' && User('PROFILE') == 'admin') {
         echo '<INPUT type=submit name=button class=btn_medium value=Delete onclick="formload_ajax(\'popform\');">';
     }
     echo '</TD></TR>';
 } else {
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:Calendar.php

示例13: _makeTextareaInput

function _makeTextareaInput($column, $name, $request)
{
    global $value, $field;
    if ($_REQUEST['student_id'] == 'new' && $field['DEFAULT_SELECTION']) {
        $value[$column] = $field['DEFAULT_SELECTION'];
        $div = false;
    } else {
        $div = true;
    }
    //modif Francois: text area is required
    //modif Francois: textarea field maxlength=5000
    return TextAreaInput($value[$column], $request . '[' . $column . ']', $name, 'maxlength=5000' . ($field['REQUIRED'] == 'Y' ? ' required' : ''), $div);
}
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:13,代码来源:StudentsUsersInfo.fnc.php

示例14: _

 echo '<TR><TD style="text-align:right; width:30px; vertical-align: top;"><span style="color:gray">' . _('Incident Date') . '</span></TD><TD>';
 echo DateInput($RET['ENTRY_DATE'], 'values[ENTRY_DATE]');
 echo '</TD></TR>';
 foreach ($categories_RET as $category) {
     echo '<TR><TD style="text-align:right; width:30px; vertical-align: top;"><span style="color:gray">' . $category['TITLE'] . '</span></TD><TD>';
     switch ($category['DATA_TYPE']) {
         case 'text':
             echo TextInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']');
             //echo '<INPUT type=TEXT name=values[CATEGORY_'.$category['ID'].'] value="'.$RET['CATEGORY_'.$category['ID']].'" maxlength=255>';
             break;
         case 'numeric':
             echo TextInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']', '', 'size=4 maxlength=10');
             //echo '<INPUT type=TEXT name=values[CATEGORY_'.$category['ID'].'] value="'.$RET['CATEGORY_'.$category['ID']].'" size=4 maxlength=10>';
             break;
         case 'textarea':
             echo TextAreaInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']', '', 'rows=4 cols=30');
             //echo '<TEXTAREA name=values[CATEGORY_'.$category['ID'].'] rows=4 cols=30>'.$RET['CATEGORY_'.$category['ID']].'</TEXTAREA>';
             break;
         case 'checkbox':
             echo CheckboxInput($RET['CATEGORY_' . $category['ID']], 'values[CATEGORY_' . $category['ID'] . ']');
             //echo '<INPUT type=CHECKBOX name=values[CATEGORY_'.$category['ID'].'] value=Y'.($RET['CATEGORY_'.$category['ID']]=='Y'?' checked':'').'>';
             break;
         case 'date':
             echo DateInput($RET['CATEGORY_' . $category['ID']], '_values[CATEGORY_' . $category['ID'] . ']');
             //echo PrepareDate($RET['CATEGORY_'.$category['ID']],'_values[CATEGORY_'.$category['ID'].']');
             break;
         case 'multiple_checkbox':
             if (AllowEdit() && !isset($_REQUEST['_ROSARIO_PDF'])) {
                 $return = '<DIV id="divvalues[CATEGORY_' . $category['ID'] . ']"><div onclick=\'javascript:addHTML(htmlCATEGORY_' . $category['ID'];
                 $category['SELECT_OPTIONS'] = str_replace("\n", "\r", str_replace("\r\n", "\r", $category['SELECT_OPTIONS']));
                 $options = explode("\r", $category['SELECT_OPTIONS']);
开发者ID:fabioassuncao,项目名称:rosariosis,代码行数:31,代码来源:Referrals.php


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