// Attributes has type as the t // // MySQL table: OMCR_Meta_Table and table specified by $tablename // // modifyBssParam.php ___ bsstree.php (contents) // \__ objects.php (main1) // \create_objects.php // ?> BSS OMC -> <?=$objectid;?> saved=$saved"; echo "$alarm"; echo "
"; $status=""; if (!isset($bssid) || !isset($objectid) || !isset($tablename)) { echo "The required information for this page is invalid.
\n"; echo "\n"; exit(); } include("meta_table_type.inc"); include("login_parm.inc"); // // Translate the value to string // e.g. AdminState=2 --> AdminState=Unlocked // function translate($input,$data) { $found=-1; if ($data) { $items=split("[;=]",$data); $no_of_items=count($items); for ($i=0;$i<$no_of_items;$i+=2) { if ( $input == $items[$i+1] ) { $found=$i; break; } } if ($found != -1) return($items[$found]); } return($input); } $db = mysql_connect($hostname, $username, $password); mysql_select_db($dbname,$db); // LOOK UP OMCR_META_TABLE for display parameters and buttons // // Display different xxxDisplay_Name base on the language selected // // $sqlstring = "select Object_Name,Attribute_Name,Attribute_Id,Attribute_Type,Display_Type,Default_Value," . "${language}Display_Name,${language}Lookup,${language}Help_Text" . " from OMCR_Meta_Table " . "where Display_Type<> 0 AND Object_Name='" . substr($tablename,5) . "'"; //echo $sqlstring . "
"; $objExistFlagSet=CheckObjExist($objectid,substr($tablename,5),$bssid); ksort($objExistFlagSet); $haveElementFlag=0; if(0) { echo "
";
	print_r($objExistFlagSet);
	echo "
"; } $result = mysql_query($sqlstring,$db) or die("Invalid query: $sqlstring\n" . mysqli_error($pubConn)); while ( $row = mysqli_fetch_row($result) ) { if (($row[4] == PUSH_BUTTON) || ($row[4] == CONFIRM_PUSH_BUTTON)) //For action item in NMI list($act_object_name[], $act_attribute_name[], $act_attribute_id[], $act_attribute_type[], $act_display_type[], $act_default_value[],$act_display_name[], $act_lookup[], $act_help_text[]) = $row; else list($object_name[],$attribute_name[],$attribute_id[],$attribute_type[],$display_type[],$default_value[], $display_name[],$lookup[],$help_text[]) = $row; } $no_of_parms = count($attribute_name); echo "=) " . strtoupper($objectid) . "
\n"; echo "
"; if ($no_of_parms == 0) { echo "
"; } else { echo "\n"; echo "\n"; for ($i=0; $i<$no_of_parms; $i++) { //printf("%s%s %s\n",$display_type[$i],$attribute_name[$i],$lookup[$i]); switch($display_type[$i]) { case DO_NOT_DISPLAY: //do not display $widget=""; continue; case PULLDOWN_MENU: //pulldown menu $widget=""; ?> "; break; case LABEL: //label if (!strcasecmp($attribute_name[$i], "adminstate")) $adminstate = $default_value[$i]; $widget=translate($default_value[$i],$lookup[$i]); $widget.="\n"; break; case RADIO_BUTTON: //radio button $widget="" . $default_value[$i] . "\n"; break; case CHECKBOX: //check box $widget=""; break; case TEXTAREA: //text area $widget=""; break; } if (strstr($saved,$attribute_name[$i]) != false) $color="#00F0FF"; else $color="#FFFFFF"; $widget_type = ""; printf(" \n", $color, $help_text[$i], $display_name[$i], $widget_type, $widget); } echo "
%s%s%s
\n"; } // // Display the action buttons & confirmed action buttons // // $no_of_actions = count($act_attribute_name); for ($i=0;$i<$no_of_actions;$i++) { if (!strncasecmp($act_lookup[$i],"javascript:",11)) // Direct to another webpage { echo "\n"; } else if ($act_lookup[$i] != '') // NMI Actions { if ($act_display_type[$i] == CONFIRM_PUSH_BUTTON) $need_confirm = "true"; else $need_confirm = "false"; echo "\n"; } else if ($act_attribute_name[$i] == "Revert") // Reset Webpage input the original value { echo "\n"; } else // Simply Save the altered values { echo "\n"; } } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; ?>