Ejemplo n.º 1
0
function _data_preset_color__hex($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Hex");?></span><br>
			<?php echo _("The hex value for this color; valid range: 000000-FFFFFF.");?>
		</td>
		<td class="field-row">
			<?php form_text_box($field_name, $field_value, "", 6, 20, "text", $field_id);?>
		</td>
		<td align="right" class="field-row">
			<span class="field-required">(required)</span>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 2
0
function _data_preset_cdef__cdef_string($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("CDEF String");?></span><br>
			<?php echo _("The string (in RPN) which defines this CDEF.");?>
		</td>
		<td class="field-row">
			<?php form_text_box($field_name, $field_value, "", 255, 40, "text", $field_id);?> (<a href="#" onClick="action_area_box_show('1', document.forms[0], 'editor', 600)">edit</a>)
		</td>
		<td align="right" class="field-row">
			<span class="field-required">(required)</span>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 3
0
function _data_preset_gprint__gprint_text($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Format String");?></span><br>
			<?php echo _("Enter the format for text using this GPRINT preset in printf() syntax.");?>
		</td>
		<td class="field-row">
			<?php form_text_box($field_name, $field_value, "", 255, 30, "text", $field_id);?>
		</td>
		<td align="right" class="field-row">
			<span class="field-required">(required)</span>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 4
0
function _data_preset_rra_item__hw_window_length($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>" id="row_field_hw_window_length_<?php echo $field_id;?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Window Length (Holt-Winters)");?></span><br>
			<?php echo _("The number of points contained within a window. Must be greater than or equal to the threshold and less than 28.");?>
		</td>
		<td class="field-row">
			<?php form_text_box($field_name, $field_value, "9", 6, 10, "text", $field_id);?>
		</td>
		<td align="right" class="field-row">
			<span class="field-required">(required)</span>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 5
0
function _package_import_field__text($field_name, $field_value = "") {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Import Package from File");?></span><br>
			<?php echo _("Browse to the package XML file to import it into Cacti");?>
		</td>
		<td class="field-row" colspan="2">
			<?php form_text_area($field_name, $field_value, "10", "50", "");?>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 6
0
function _script_field_field__allow_empty($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td class="field-row" width="50%">
			<span class="textEditTitle"><?php echo _("Allow Empty Input");?></span><br>
			<?php echo _("Whether empty input should be allowed for this field.");?>
		</td>
		<td class="field-row" colspan="2">
			<?php form_checkbox($field_name, $field_value, _("Allow Empty Input"), "", $field_id);?>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 7
0
function _graph_tree_item_field__device_grouping_type($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");
	require_once(CACTI_BASE_PATH . "/lib/graph_tree/graph_tree_info.php");

	?>
	<tr class="<?php echo field_get_row_style();?>" id="row_field_device_grouping_type_<?php echo $field_id;?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Graph Grouping Style");?></span><br>
			<?php echo _("Choose how graphs are grouped when drawn for this particular host on the tree.");?>
		</td>
		<td class="field-row" colspan="2">
			<?php form_dropdown($field_name, api_graph_tree_item_device_grouping_type_list(), "", "", $field_value, "", 1);?>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 8
0
function _data_query_field_field__op_num_rows($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td width="50%" class="field-row">
			<span class="textEditTitle"><?php echo _("Total Number of Rows Field");?></span><br>
			<?php echo _("Select if the value from this field ");?>
		</td>
		<td class="field-row" colspan="2">
			<?php form_checkbox($field_name, $field_value, "This is an index field", "", $field_id);?>
		</td>
	</tr>
	<?php
}
Ejemplo n.º 9
0
function _data_source_item_field__rrd_heartbeat($field_name, $template_flag = false, $field_value = "", $field_id = 0, $t_field_name = "", $t_field_value = "") {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr class="<?php echo field_get_row_style();?>">
		<td class="field-row" width="50%">
			<span class="textEditTitle"><?php echo _("Heartbeat");?></span><br>
			<?php
			if ($template_flag == true) {
				form_checkbox($t_field_name, $t_field_value, _("Do Not Template this Field"), "", $field_id, "template_checkbox_status(\"$field_name\",\"$t_field_name\")");
			}else{
				echo _("The maximum amount of time that can pass before data is entered as \"unknown\". (Usually 2x300=600)");
			}
			?>
		</td>
		<td class="field-row">
			<?php form_text_box($field_name, $field_value, 600, 20, 30, "text", $field_id);?>
		</td>
		<td class="field-row" align="right">
			<span class="field-required">(required)</span>
		</td>
	</tr>
	<?php
}