phpScheduleIt
May 21, 2013, 09:29:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Adding input field  (Read 2870 times)
php4u
Newbie
*

Karma: 0
Posts: 1


« on: April 07, 2006, 11:27:16 PM »

After reviewing the developer guide, I am trying to add an input field named "course."

Please see the coding below. When I test the work, noting appears below the "EMail" field.

Any suggestions greatly appreciated!
Ralph
--------------
/**
*print out course numbers
*/
function print_course ($course, $type) {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr class="tableBorder">
     <td>
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
       <tr>
          <td class="cellColor"><?=translate('Course')?>
          <td class="cellColor" style="text-align: left;">
                <?
                 if ($type == RES_TYPE_ADD || $type == RES_TYPE_MODIFY)
                   echo '<input type="text" name="course" class="textbox"
                    value="' . $course . '"/>';
                      else
                        echo (!empty($course) ? $course : '');
                         ?>
                    </td>
                  </tr>
                 </table>
                </td>
              </tr>
             </table>
<?
}

-------------------
Logged

quot;Forget world peace...
try using your turnsignal"
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: April 09, 2006, 04:27:53 PM »

Is the print_course() function ever being called?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!