2008-12-24 04:32:42 +03:00
< ? php
/*
* This file is part of Web Instant Messenger project .
*
2009-01-14 01:00:34 +03:00
* Copyright ( c ) 2005 - 2009 Web Messenger Community
2008-12-24 04:32:42 +03:00
* All rights reserved . This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1 . 0
* which accompanies this distribution , and is available at
* http :// www . eclipse . org / legal / epl - v10 . html
*
* Contributors :
* Evgeny Gryaznov - initial API and implementation
*/
2009-03-12 04:07:35 +03:00
require_once ( " inc_menu.php " );
$page [ 'title' ] = getlocal ( " settings.title " );
$page [ 'menuid' ] = " settings " ;
2008-12-24 04:32:42 +03:00
2009-03-12 04:07:35 +03:00
function tpl_content () { global $page , $webimroot ;
?>
2008-12-24 04:32:42 +03:00
2009-03-12 04:07:35 +03:00
< ? php echo getlocal ( " page_settings.intro " ) ?>
2008-12-24 04:32:42 +03:00
< br />
< br />
2009-03-12 04:07:35 +03:00
< ? php
require_once ( 'inc_errors.php' );
?>
2008-12-24 04:32:42 +03:00
< ? php if ( $page [ 'stored' ] ) { ?>
< div id = " formmessage " >< ? php echo getlocal ( " features.saved " ) ?> </div>
< ? php } ?>
< form name = " features " method = " post " action = " <?php echo $webimroot ?>/operator/features.php " >
< input type = " hidden " name = " sent " value = " true " />
2009-03-12 04:07:35 +03:00
< div >
2008-12-24 04:32:42 +03:00
< ? php if ( $page [ 'tabs' ]) { ?>
2009-03-12 04:07:35 +03:00
< ul class = " tabs " >
2008-12-24 04:32:42 +03:00
2009-03-12 04:07:35 +03:00
< ? php foreach ( $page [ 'tabs' ] as $k => $v ) { if ( $v ) { ?>
< li >< a href = " <?php echo $v ?> " >< ? php echo $k ?> </a></li>
< ? php } else { ?>
< li class = " active " >< a href = " # " >< ? php echo $k ?> </a></li><?php }} ?>
</ ul >
< ? php } ?>
< div class = " mform " >< div class = " formtop " >< div class = " formtopi " ></ div ></ div >< div class = " forminner " >
< div class = " fieldForm " >
< div class = " field " >
< div class = " flabel " >< ? php echo getlocal ( 'settings.usercanchangename' ) ?> </div>
< div class = " fvalue " >
< input type = " checkbox " name = " usercanchangename " value = " on " < ? php echo form_value_cb ( 'usercanchangename' ) ? " checked= \" checked \" " : " " ?> />
</ div >
< div class = " fdescr " > & mdash ; < ? php echo getlocal ( 'settings.usercanchangename.description' ) ?> </div>
< br clear = " left " />
</ div >
< div class = " field " >
< div class = " flabel " >< ? php echo getlocal ( 'settings.enableban' ) ?> </div>
< div class = " fvalue " >
< input type = " checkbox " name = " enableban " value = " on " < ? php echo form_value_cb ( 'enableban' ) ? " checked= \" checked \" " : " " ?> />
</ div >
< div class = " fdescr " > & mdash ; < ? php echo getlocal ( 'settings.enableban.description' ) ?> </div>
< br clear = " left " />
</ div >
< div class = " field " >
< div class = " flabel " >< ? php echo getlocal ( 'settings.enablessl' ) ?> </div>
< div class = " fvalue " >
< input type = " checkbox " name = " enablessl " value = " on " < ? php echo form_value_cb ( 'enablessl' ) ? " checked= \" checked \" " : " " ?> />
</ div >
< div class = " fdescr " > & mdash ; < ? php echo getlocal ( 'settings.enablessl.description' ) ?> </div>
< br clear = " left " />
</ div >
2009-03-17 00:49:45 +03:00
< div class = " field " >
2009-03-17 03:03:17 +03:00
< div class = " flabel " >< ? php echo getlocal ( 'settings.enabledepartments' ) ?> <span style="color:red;font-weight: bold;">- !!</span> incomplete in 1.6.0 alpha, use on your own risk</div>
2009-03-17 00:49:45 +03:00
< div class = " fvalue " >
< input type = " checkbox " name = " enabledepartments " value = " on " < ? php echo form_value_cb ( 'enabledepartments' ) ? " checked= \" checked \" " : " " ?> />
</ div >
< div class = " fdescr " > & mdash ; < ? php echo getlocal ( 'settings.enabledepartments.description' ) ?> </div>
< br clear = " left " />
</ div >
2009-03-12 04:07:35 +03:00
< div class = " fbutton " >
< input type = " image " name = " save " value = " " src = '<?php echo $webimroot.getlocal("image.button.save") ?>' alt = '<?php echo getlocal("button.save") ?>' />
</ div >
</ div >
</ div >< div class = " formbottom " >< div class = " formbottomi " ></ div ></ div ></ div >
</ div >
2008-12-24 04:32:42 +03:00
</ form >
2009-03-12 04:07:35 +03:00
< ? php
} /* content */
2008-12-24 04:32:42 +03:00
2009-03-12 04:07:35 +03:00
require_once ( 'inc_main.php' );
?>