Location: PHPKode > projects > The Open ISES Project > tickets/tables/u_unit_types_BU.php
<SCRIPT>
	do_icons(document.u,<?php print $row['icon'];?>);
</SCRIPT>
		<FORM NAME="u" METHOD="post" ACTION="<?php print $_SERVER['PHP_SELF']; ?>" />
		<INPUT TYPE="hidden" NAME="func" 		VALUE="pu" />
		<INPUT TYPE="hidden" NAME="tablename" 	VALUE="<?php print $tablename;?>" />
		<INPUT TYPE="hidden" NAME="indexname" 	VALUE="id" />
		<INPUT TYPE="hidden" NAME="sortby" 		VALUE="id" />
		<INPUT TYPE="hidden" NAME="sortdir"		VALUE=0 />
		<INPUT TYPE="hidden" NAME="frm__by" 	VALUE="<?php print $my_session['user_id']; ?>" />
		<INPUT TYPE="hidden" NAME="frm__from" 	VALUE="<?php print $_SERVER['REMOTE_ADDR']; ?>" />
		<INPUT TYPE="hidden" NAME="frm__on" 	VALUE="<?php print mysql_format_date(time() - (get_variable('delta_mins')*60));?>" />
		<INPUT TYPE="hidden" NAME="frm_icon" 	VALUE="<?php print $row['icon'];?>" />
		<INPUT TYPE="hidden" NAME="id" 			VALUE="<?php print $row['id'];?>" />
	
		<TABLE BORDER="0" ALIGN="center">
		<TR CLASS="even" VALIGN="top"><TD COLSPAN="2" ALIGN="CENTER"><FONT SIZE="+1">Table 'unit_types' - Update Entry</FONT></TD></TR>
		<TR><TD>&nbsp;</TD></TR>
	<TR VALIGN="baseline" CLASS="odd"><TD CLASS="td_label" ALIGN="right">Type:</TD>
		<TD><INPUT  ID="ID1" CLASS="dirty" MAXLENGTH="16" SIZE="16" type="text" NAME="frm_name" VALUE="<?php print $row['name'];?>" onFocus="JSfnChangeClass(this.id, 'dirty');" onChange = "this.value=JSfnTrim(this.value)"> <SPAN class='warn' >text</SPAN></TD></TR>
	<TR VALIGN="baseline" CLASS="even"><TD CLASS="td_label" ALIGN="right">Description:</TD>
		<TD><INPUT  ID="ID2" CLASS="dirty" MAXLENGTH="48" SIZE="48" type="text" NAME="frm_description" VALUE="<?php print $row['description'];?>" onFocus="JSfnChangeClass(this.id, 'dirty');" onChange = "this.value=JSfnTrim(this.value)"> <SPAN class='warn' >text</SPAN></TD></TR>
	<TR VALIGN="baseline" CLASS="odd"><TD CLASS="td_label" ALIGN="right">Icon:</TD>
		<TD><IMG ID='ID3' SRC="<?php print './icons/sm_' . $row['icon'];?>" STYLE="visibility:visible;"></TD></TR>
		<TR CLASS="even"><TD></TD><TD ALIGN='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[0]+ "' onClick = 'do_icons(document.u,\"sm_white.png\")' TITLE='WHITE' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[1]+ "' onClick = 'do_icons(document.u,\"sm_yellow.png\")' TITLE='YELLOW' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[2]+ "' onClick = 'do_icons(document.u,\"sm_red.png\")' TITLE='RED' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[3]+ "' onClick = 'do_icons(document.u,\"sm_blue.png\")' TITLE='BLUE' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[4]+ "' onClick = 'do_icons(document.u,\"sm_green.png\")' TITLE='GREEN' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[5]+ "' onClick = 'do_icons(document.u,\"sm_gray.png\")' TITLE='GRAY' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[6]+ "' onClick = 'do_icons(document.u,\"sm_lt_blue.png\")' TITLE='LIGHT BLUE' />");</SCRIPT>&nbsp;&nbsp;
			 <SCRIPT>document.write ("<IMG SRC='" +icons[7]+ "' onClick = 'do_icons(document.u,\"sm_orange.png\")' TITLE='ORANGE' />");</SCRIPT>
			&laquo; <SPAN class='warn'>click to change icon </SPAN> &nbsp;
		</TD></TR>
		<TR><TD COLSPAN="99" ALIGN="center">
		<BR />
		<INPUT TYPE="button"	VALUE="Cancel" onClick = "Javascript: document.retform.func.value='r';document.retform.submit();"/>&nbsp;&nbsp;&nbsp;&nbsp;
		<INPUT TYPE="button"	VALUE="Reset" onClick = "Javascript: document.u.reset();do_icons(document.u,<?php print $row['icon'];?>); "/>&nbsp;&nbsp;&nbsp;&nbsp;
		<INPUT TYPE="button" NAME="sub_but" VALUE="               Submit                " onclick="Javascript: this.disabled=true; validate_u_t(document.u);"/> 
		
		</TD></TR>
		</FORM>
		</td></tr></table>

<?php
Return current item: The Open ISES Project