<?php

#
# XiVO Web-Interface
# Copyright (C) 2006-2014  Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

$form    = &$this->get_module('form');
$dhtml   = &$this->get_module('dhtml');

$info = $this->get_var('info');
$element = $this->get_var('element');

?>

<div class="b-infos b-form">
<breadcrumb
        page="<?=$this->bbf('title_content_name');?>">
</breadcrumb>

<div class="sb-content">
<form action="#" method="post" accept-charset="utf-8" class="form-horizontal">

<div id="sb-part-first">
<?php
	echo $form->hidden(array('name'	=> DWHO_SESS_NAME,
				    'value'	=> DWHO_SESS_ID)),

		$form->hidden(array('name'	=> 'fm_send',
				    'value'	=> 1));
?>
	<div class="fm-paragraph fm-description">
		<p>
			<label id="lb-description" for="it-description"><?=$this->bbf('fm_emails');?></label>
		</p>
		<?=$form->textarea(array('paragraph'	=> false,
					 'label'	=> false,
					 'name'		=> 'alert_emails',
					 'id'		=> 'it-alert_emails',
					 'cols'		=> 60,
					 'rows'		=> 5,
     				'default'	=> $element['monitoring']['alert_emails']['default'],
			        'help'      => $this->bbf('fm_help-alert_emails')),
				   $info['alert_emails']);?>
    </div>
    <br/>
<?php
	echo $form->text(array('desc'	=> $this->bbf('fm_dahdi_monitor_ports'),
				  'name'	=> 'dahdi_monitor_ports',
				  'labelid'	=> 'dahdi_monitor_ports',
				  'size'	=> 29,
				  'default'	=> $element['monitoring']['dahdi_monitor_ports']['default'],
			      'help'    => $this->bbf('fm_help-dahdi_monitor_ports'),
				  'value'	=> $this->get_var('info','dahdi_monitor_ports'),
				  'error'   => $this->bbf_args('dahdi_monitor_ports',
				      $this->get_var('error', 'dahdi_monitor_ports'))
			    ));
?>
</div>
<?php

echo	$form->submit(array('name'	=> 'submit',
			    'id'	=> 'it-submit',
			    'value'	=> $this->bbf('fm_bt-save')));

?>
</form>
	</div>
	<div class="sb-foot xspan"></div>
