2009-03-17 00:49:45 +03:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-03-17 00:49:45 +03:00
|
|
|
*
|
2009-06-04 02:44:32 +04:00
|
|
|
* Copyright (c) 2005-2009 Mibew Messenger Community
|
2009-03-17 00:49:45 +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
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once("inc_menu.php");
|
2009-03-23 00:22:51 +03:00
|
|
|
$page['title'] = getlocal("page.group.title");
|
|
|
|
$page['menuid'] = "groups";
|
2009-03-17 00:49:45 +03:00
|
|
|
|
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
|
|
|
?>
|
|
|
|
|
2009-03-23 00:34:08 +03:00
|
|
|
<?php if( $page['grid'] ) { ?>
|
2009-03-23 00:22:51 +03:00
|
|
|
<?php echo getlocal("page.group.intro") ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
<?php } ?>
|
2009-03-23 00:34:08 +03:00
|
|
|
<?php if( !$page['grid'] ) { ?>
|
2009-03-23 00:22:51 +03:00
|
|
|
<?php echo getlocal("page.group.create_new") ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
<?php } ?>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<?php
|
|
|
|
require_once('inc_errors.php');
|
|
|
|
?>
|
2009-03-25 02:34:57 +03:00
|
|
|
<?php if( $page['stored'] ) { ?>
|
|
|
|
<div id="formmessage"><?php echo getlocal("data.saved") ?></div>
|
|
|
|
<?php } ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
|
2009-03-23 00:22:51 +03:00
|
|
|
<form name="groupForm" method="post" action="<?php echo $webimroot ?>/operator/group.php">
|
2009-03-23 00:34:08 +03:00
|
|
|
<input type="hidden" name="gid" value="<?php echo $page['grid'] ?>"/>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div>
|
2009-03-25 02:34:57 +03:00
|
|
|
<?php if($page['tabs']) { ?>
|
|
|
|
<ul class="tabs">
|
|
|
|
|
|
|
|
<?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 } ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
|
|
|
|
|
|
|
<div class="fieldForm">
|
|
|
|
<div class="field">
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="flabel"><?php echo getlocal('form.field.groupname') ?><span class="required">*</span></div>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="name" size="40" value="<?php echo form_value('name') ?>" class="formauth"/>
|
|
|
|
</div>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.groupname.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-17 00:49:45 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="flabel"><?php echo getlocal('form.field.groupdesc') ?></div>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="description" size="40" value="<?php echo form_value('description') ?>" class="formauth"/>
|
|
|
|
</div>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.groupdesc.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-17 00:49:45 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="flabel"><?php echo getlocal('form.field.groupcommonname') ?></div>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="commonname" size="40" value="<?php echo form_value('commonname') ?>" class="formauth"/>
|
|
|
|
</div>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.groupcommonname.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-17 00:49:45 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="flabel"><?php echo getlocal('form.field.groupcommondesc') ?></div>
|
2009-03-17 00:49:45 +03:00
|
|
|
<div class="fvalue">
|
|
|
|
<input type="text" name="commondescription" size="40" value="<?php echo form_value('commondescription') ?>" class="formauth"/>
|
|
|
|
</div>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="fdescr"> — <?php echo getlocal('form.field.groupcommondesc.description') ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-17 00:49:45 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} /* content */
|
|
|
|
|
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|