2009-03-23 00:22:51 +03:00
|
|
|
<?php
|
|
|
|
/*
|
2013-03-07 01:22:53 +04:00
|
|
|
* Copyright 2005-2013 the original author or authors.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2009-03-23 00:22:51 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
require_once("inc_menu.php");
|
2011-02-26 17:31:37 +03:00
|
|
|
require_once("inc_tabbar.php");
|
|
|
|
|
2009-03-23 00:22:51 +03:00
|
|
|
$page['title'] = getlocal("operator.groups.title");
|
2009-04-10 18:12:57 +04:00
|
|
|
$page['menuid'] = $page['opid'] == $page['currentopid'] ? "profile" : "operators";
|
2009-03-23 00:22:51 +03:00
|
|
|
|
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php echo getlocal("operator.groups.intro") ?>
|
|
|
|
<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-23 00:22:51 +03:00
|
|
|
|
|
|
|
<form name="opgroupsForm" method="post" action="<?php echo $webimroot ?>/operator/opgroups.php">
|
2009-04-10 18:12:57 +04:00
|
|
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div>
|
2011-02-26 17:31:37 +03:00
|
|
|
<?php print_tabbar(); ?>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
|
|
|
|
|
|
|
<p>
|
2009-04-24 18:19:11 +04:00
|
|
|
<b><?php echo $page['currentop'] ?>‎</b>
|
2009-03-23 00:22:51 +03:00
|
|
|
</p>
|
|
|
|
<?php foreach( $page['groups'] as $pm ) { ?>
|
2012-02-24 17:52:39 +04:00
|
|
|
<div class="field level<?php echo $pm['level'] ?>">
|
2009-03-23 02:09:31 +03:00
|
|
|
<div class="flabel"><?php echo htmlspecialchars(topage($pm['vclocalname'])) ?></div>
|
2009-03-23 00:22:51 +03:00
|
|
|
<div class="fvalue">
|
2009-05-31 20:13:22 +04:00
|
|
|
<input type="checkbox" name="group<?php echo $pm['groupid'] ?>" value="on"<?php echo form_value_mb('group',$pm['groupid']) ? " checked=\"checked\"" : "" ?><?php echo $page['canmodify'] ? "" : " disabled=\"disabled\"" ?>/>
|
2009-03-23 00:22:51 +03:00
|
|
|
</div>
|
2009-03-23 02:09:31 +03:00
|
|
|
<div class="fdescr"> — <?php echo $pm['vclocaldescription'] ? htmlspecialchars(topage($pm['vclocaldescription'])) : getlocal("operator.group.no_description") ?></div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<br clear="all"/>
|
2009-03-23 00:22:51 +03:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-05-31 20:13:22 +04:00
|
|
|
<?php if($page['canmodify']) { ?>
|
2009-03-23 00:22:51 +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>
|
2009-05-31 20:13:22 +04:00
|
|
|
<?php } ?>
|
2009-03-23 00:22:51 +03:00
|
|
|
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} /* content */
|
|
|
|
|
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|