Example #1
0
function _graph_item_field__hard_return($field_name, $field_value = "", $field_id = 0) {
	require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php");

	?>
	<tr bgcolor="#<?php echo field_get_row_color();?>">
		<td width="50%">
			<span class="textEditTitle"><?php echo _("Insert Hard Return");?></span><br>
			<?php echo _("Forces the legend to the next line after this item.");?>
		</td>
		<td>
			<?php form_checkbox($field_name, $field_value, _("Insert Hard Return"), "", $field_id);?>
		</td>
	</tr>
	<?php
	form_checkbox_marker($field_name);
}
Example #2
0
function _data_source_field__active($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 _("Active");?></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 _("Whether Cacti should gather data for this data source or not.");
			}
			?>
		</td>
		<td class="field-row" colspan="2">
			<?php form_checkbox($field_name, $field_value, _("Data Source Active"), "on", $field_id);?>
		</td>
	</tr>
	<?php
	form_checkbox_marker($field_name);
}