mirror of
				https://github.com/Mibew/java.git
				synced 2025-11-04 12:25:12 +03:00 
			
		
		
		
	Conflicts: src/messenger/webim/install/dbperform.php src/messenger/webim/js/164/common.js src/messenger/webim/libs/common.php src/messenger/webim/locales/en/properties src/messenger/webim/locales/ru/properties src/messenger/webim/operator/canned.php src/messenger/webim/operator/operator.php src/messenger/webim/operator/operators.php src/messenger/webim/operator/performance.php src/messenger/webim/operator/settings.php src/messenger/webim/operator/translate.php src/messenger/webim/operator/update.php src/messenger/webim/operator/users.php src/messenger/webim/view/agents.php src/messenger/webim/view/performance.php
		
			
				
	
	
		
			98 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			98 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * 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.
 | 
						|
 */
 | 
						|
 | 
						|
$page['title'] = getlocal("page_ban.title");
 | 
						|
 | 
						|
function tpl_content() { global $page, $webimroot, $errors;
 | 
						|
?>
 | 
						|
 | 
						|
<?php if( $page['saved'] ) { ?>
 | 
						|
	<?php echo getlocal2("page_ban.sent",array($page['address'])) ?>
 | 
						|
 | 
						|
	<script type="text/javascript"><!--
 | 
						|
		setTimeout( (function() { window.close(); }), 1500 );
 | 
						|
	//--></script>
 | 
						|
<?php } else { ?>
 | 
						|
 | 
						|
<?php echo getlocal("page_ban.intro") ?>
 | 
						|
<br/>
 | 
						|
<br/>
 | 
						|
<?php 
 | 
						|
require_once('inc_errors.php');
 | 
						|
?>
 | 
						|
 | 
						|
 | 
						|
<?php if( $page['thread'] ) { ?>
 | 
						|
	<?php echo getlocal2("page_ban.thread",array(htmlspecialchars($page['thread']))) ?><br/>
 | 
						|
	<br/>
 | 
						|
<?php } ?>
 | 
						|
 | 
						|
<form name="banForm" method="post" action="<?php echo $webimroot ?>/operator/ban.php">
 | 
						|
<input type="hidden" name="banId" value="<?php echo $page['banId'] ?>"/>
 | 
						|
<?php if( $page['threadid'] ) { ?>
 | 
						|
<input type="hidden" name="threadid" value="<?php echo $page['threadid'] ?>"/>
 | 
						|
<?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('form.field.address') ?><span class="required">*</span></div>
 | 
						|
			<div class="fvalue">
 | 
						|
				<input type="text" name="address" size="40" value="<?php echo form_value('address') ?>" class="formauth"/>
 | 
						|
			</div>
 | 
						|
			<div class="fdescr"> — <?php echo getlocal('form.field.address.description') ?></div>
 | 
						|
			<br clear="all"/>
 | 
						|
		</div>
 | 
						|
 | 
						|
		<div class="field">
 | 
						|
			<div class="flabel"><?php echo getlocal('form.field.ban_days') ?><span class="required">*</span></div>
 | 
						|
			<div class="fvalue">
 | 
						|
				<input type="text" name="days" size="4" value="<?php echo form_value('days') ?>" class="formauth"/>
 | 
						|
			</div>
 | 
						|
			<div class="fdescr"> — <?php echo getlocal('form.field.ban_days.description') ?></div>
 | 
						|
			<br clear="all"/>
 | 
						|
		</div>
 | 
						|
 | 
						|
		<div class="field">
 | 
						|
			<div class="flabel"><?php echo getlocal('form.field.ban_comment') ?><span class="required">*</span></div>
 | 
						|
			<div class="fvalue">
 | 
						|
				<input type="text" name="comment" size="40" value="<?php echo form_value('comment') ?>" class="formauth"/>
 | 
						|
			</div>
 | 
						|
			<div class="fdescr"> — <?php echo getlocal('form.field.ban_comment.description') ?></div>
 | 
						|
			<br clear="all"/>
 | 
						|
		</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 class="asterisk">
 | 
						|
		<?php echo getlocal("common.asterisk_explanation") ?>
 | 
						|
	</div>
 | 
						|
	
 | 
						|
</form>
 | 
						|
<?php } ?>
 | 
						|
 | 
						|
 | 
						|
<?php 
 | 
						|
} /* content */
 | 
						|
 | 
						|
require_once('inc_main.php');
 | 
						|
?>
 |