lang=$language; $getType=explode('_',$form_action); $type=$getType[0]; if($type=='manage') { $url=$_SERVER['PHP_SELF']; if(isset($_POST['search']) or isset($_GET['outofstock']) or isset($_GET['reorder'])) { echo "
[{$this->lang->clearSearch}]
"; } echo "
\n"; } else { echo "
*{$this->lang->itemsInBoldRequired}\n
"; } switch($theme) { //add more themes case $theme=='serious': $this->row_color='#DDDDDD'; $this->text_color='black'; break; case $theme=='big blue': $this->row_color='#15759B'; $this->text_color='white'; break; } } function formBreak ($table_width,$theme) { { echo "
"; } switch($theme) { //add more themes case $theme=='serious': $this->row_color='#DDDDDD'; $this->text_color='black'; break; case $theme=='big blue': $this->row_color='#15759B'; $this->text_color='white'; break; } } function createInputField($field_title,$input_type,$input_name,$input_value,$input_size,$td_width,$disabled=NULL) { //pre: all parameters are strings. //post: creates in inputField based on parameters. echo" row_color> \n"; } function createCheckboxField($field_title,$check_name,$td_width,$disabled=NULL,$checked=NULL,$postlabel=NULL) { //pre: all parameters are strings option selected value is at pos 0. //post: creates in CheckboxField based on parameters. echo " row_color> row_color> '."\n"; } function createSelectField($field_title,$select_name,$option_values,$option_titles,$td_width,$disabled=NULL,$selected=NULL) { //pre: all parameters are strings option selected value is at pos 0. //post: creates in selectField based on parameters. echo " row_color> '."\n"; } function createDateSelectField() { ?> row_color ?> >row_color ?> >row_color>
$field_title
$field_title "; echo"$postlabel
"; } function createRadioField($field_title,$radio_name,$option_values,$option_titles,$td_width,$disabled=NULL,$selected=NULL) { //pre: all parameters are strings option selected value is at pos 0. //post: creates in selectField based on parameters. echo "
$field_title "; if($option_values[0]!='') { echo"$option_titles[0]
"; } for($k=1;$k< count($option_values); $k++) { if($option_values[$k]!=$option_values[0] ) { if($selected==$option_values[$k]){ echo "$option_titles[$k]
"; } else { echo"$option_titles[$k]
";; } } } echo '
$field_title
text_color ?>>lang->fromMonth}"; ?>: text_color ?>>lang->day}"; ?>: text_color ?>>lang->year}"; ?>: text_color ?>>lang->toMonth}"; ?>: text_color ?>>lang->day}"; ?>: text_color ?>>lang->year}"; ?>:
$field_title "; } function endForm() { //adds submit button and ends remainings tags. echo "
$altbutton
"; } function endLibraryForm() { //adds submit button and ends remainings tags. echo " "; } } ?>