2008-09-30 03:07:06 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-06-04 02:44:32 +04:00
|
|
|
* Copyright (c) 2005-2009 Mibew Messenger Community
|
2009-08-04 19:03:27 +04:00
|
|
|
* All rights reserved. The contents of this file are subject to 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
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-08-04 17:38:37 +04:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* the GNU General Public License Version 2 or later (the "GPL"), in which case
|
|
|
|
* the provisions of the GPL are applicable instead of those above. If you wish
|
|
|
|
* to allow use of your version of this file only under the terms of the GPL, and
|
|
|
|
* not to allow others to use your version of this file under the terms of the
|
|
|
|
* EPL, indicate your decision by deleting the provisions above and replace them
|
|
|
|
* with the notice and other provisions required by the GPL.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2008-09-30 03:07:06 +04:00
|
|
|
* 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-09-30 03:07:06 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
|
|
|
?>
|
2008-09-30 03:07:06 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<?php echo getlocal("page_settings.intro") ?>
|
2008-09-30 03:07:06 +04: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("settings.saved") ?></div>
|
|
|
|
<?php } ?>
|
2008-09-30 03:07:06 +04:00
|
|
|
|
|
|
|
<form name="settings" method="post" action="<?php echo $webimroot ?>/operator/settings.php">
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<div>
|
|
|
|
<?php if($page['tabs']) { ?>
|
|
|
|
<ul class="tabs">
|
2008-09-30 03:07:06 +04: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.email') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="email" size="40" value="<?php echo form_value('email') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.email.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.company.title') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="title" size="40" value="<?php echo form_value('title') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.company.title.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.chat.title') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="chattitle" size="40" value="<?php echo form_value('chattitle') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.chat.title.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.logo') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="logo" size="40" value="<?php echo form_value('logo') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.logo.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.host') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="hosturl" size="40" value="<?php echo form_value('hosturl') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.host.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.geolink') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="geolink" size="40" value="<?php echo form_value('geolink') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.geolink.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.geolinkparams') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="geolinkparams" size="40" value="<?php echo form_value('geolinkparams') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.geolinkparams.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.usernamepattern') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="usernamepattern" size="40" value="<?php echo form_value('usernamepattern') ?>" class="formauth"/>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.usernamepattern.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.chatstyle') ?></div>
|
|
|
|
<div class="fvalue">
|
|
|
|
<select name="chatstyle" ><?php foreach($page['availableStyles'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("chatstyle") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
|
|
|
|
</div>
|
|
|
|
<div class="fdescr"> — <?php echo getlocal('settings.chatstyle.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
|
|
|
|
2009-04-10 20:06:20 +04:00
|
|
|
<div class="field">
|
|
|
|
<div class="flabel"><?php echo getlocal('settings.sendmessagekey') ?></div>
|
|
|
|
<div class="fvaluenodesc">
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="sendmessagekey" value="enter" <?php echo form_value("sendmessagekey") == "enter" ? " checked=\"checked\"" : ""?>/>Enter</label>
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="sendmessagekey" value="center" <?php echo form_value("sendmessagekey") == "center" ? " checked=\"checked\"" : ""?>/>Ctrl-Enter</label>
|
|
|
|
</div>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<div class="asterisk">
|
|
|
|
<?php echo getlocal("common.asterisk_explanation") ?>
|
|
|
|
</div>
|
2008-09-30 03:07:06 +04:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
2008-09-30 03:07:06 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|