<?php /* Smarty version 2.6.24, created on 2009-07-30 16:36:15
         compiled from default/chat-box.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'default/chat-box.htm', 29, false),)), $this); ?>

<?php echo smarty_function_config_load(array('file' => $this->_tpl_vars['umLanguageFile'],'section' => 'Chat'), $this);?>

<?php echo $this->_tpl_vars['umsyslib']; ?>

<?php echo $this->_tpl_vars['umDocType']; ?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['umCharSet']; ?>
">
	<link rel="stylesheet" type="text/css" href="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/css/chat.css">
	<script type="text/javascript" src="inc/js/functions.js"></script>

	<script language="javascript" type="text/javascript">
	<!--
		js_nickName = "<?php echo $this->_tpl_vars['umNickName']; ?>
";
		js_lid = "<?php echo $this->_tpl_vars['umLid']; ?>
";
		js_tid = "<?php echo $this->_tpl_vars['umTid']; ?>
";
		<?php echo $this->_tpl_vars['umSmileyVars']; ?>

	//-->
	</script>
	<title>Uebimiau Chat</title>
</head>


<?php if ($this->_tpl_vars['umChat'] == '0'): ?>
	<!-- Chat login page -->
	<body class="bodypage">
		<br>
		<form name="sender" action="loginchat.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
" method="post">
		<?php echo $this->_tpl_vars['umForms']; ?>

		
		<input type="hidden" name="nick" value="<?php echo $this->_tpl_vars['umNickName']; ?>
">
		<center>
			<div class="chat_warning">
				<table class="tablecollapsed">
				<tr>
					<td><b><?php echo $this->_config[0]['vars']['chat_welcome']; ?>
 <?php echo $this->_tpl_vars['umNickName']; ?>
</b><br><br><?php echo $this->_config[0]['vars']['chat_warning']; ?>
</td>
					<td><img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/chat/chat.gif" align=right alt=""></td>
				</tr>
				</table>
				<br>
				<center><input class="text" type="submit" name="submitBtn" value="<?php echo $this->_config[0]['vars']['chat_login']; ?>
"></center>
			</div>
		</center>
		
		</form>

<?php else: ?>

	<!-- Chat room page -->
	<body class="bodypage" onload="javascript:UpdateTimer(); chatroom_resize(); window.document.getElementById('msg').focus();">

		<object type="application/x-shockwave-flash" id="chat_sound" data="" width="0" height="0">
		<param name="movie" value="none">
		</object>
		<bgsound id="chat_audio" src="" autostart="1">

		<!-- Toolbar -->
		<div id="HeaderBG">
			<div id="Header">
				<p align="right"><nobr>&nbsp;
				<a href="#" onclick="javascript:document.getElementById('upfiles').style.display='block';" title="<?php echo $this->_config[0]['vars']['chat_tupload']; ?>
">
					<img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/chat/send_file.png" alt="">&nbsp;<?php echo $this->_config[0]['vars']['chat_upload']; ?>
</a> &nbsp;|&nbsp;
				<a href="./startchat.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
" title="<?php echo $this->_config[0]['vars']['chat_tupdate']; ?>
">
					<img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/chat/update.gif" alt="">&nbsp;<?php echo $this->_config[0]['vars']['chat_update']; ?>
</a> &nbsp;|&nbsp;
				<a href="javascript: if (window.confirm('<?php echo $this->_config[0]['vars']['chat_clear_validate']; ?>
')) window.location.href='./clearchat.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
&nick=<?php echo $this->_tpl_vars['umNickName']; ?>
';" title="<?php echo $this->_config[0]['vars']['chat_tclear']; ?>
">
					<img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/chat/clear.gif" alt="">&nbsp;<?php echo $this->_config[0]['vars']['chat_clear']; ?>
</a> &nbsp;|&nbsp;
				<a href="./logoutchat.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
" title="<?php echo $this->_config[0]['vars']['chat_tlogout']; ?>
">
					<img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/chat/quit.png" alt="">&nbsp;<?php echo $this->_config[0]['vars']['chat_logout']; ?>
</a> &nbsp;</nobr></p>
			</div>
		</div>

		<!-- Tabs -->
		<div style="font: bold 10pt Arial; border: solid 1px #cccccc; padding: 0; margin: 0; background-color: #EEEEEE;">
			<table cellspacing="0" cellpadding="0">
			<tr>
				<td id="tab_info" class="tab_info_visible">
					<table class="tablecollapsed"  cellpadding="0">
					<tr>
						<td><img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/tab_left.gif" alt=""></td>
						<td style="background-image: url('themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/tab_middle.gif');">
							<a><nobr>&nbsp;<?php echo $this->_config[0]['vars']['chat_room_tab']; ?>
&nbsp;</nobr></a></td>
						<td><img src="themes/<?php echo $this->_tpl_vars['umTPath']; ?>
/images/tab_right.gif" alt=""></td>
					</tr>
					</table>
				</td>
				<td width='100%'>&nbsp;</td>
			</tr>
			</table>
		</div>

		<div id="main" class="upper_line">

			<!-- Display messages -->
			<div id="result">
				<?php echo $this->_tpl_vars['umChatResult']; ?>
&nbsp;
			</div>

			<!-- Display online users -->
			<div id="users">
				<fieldset >
				<legend><?php echo $this->_config[0]['vars']['chat_users']; ?>
 <?php if ($this->_tpl_vars['umChatLines'] != 0): ?>[<?php echo $this->_tpl_vars['umChatLines']; ?>
]<?php endif; ?></legend>
					<?php echo $this->_tpl_vars['umChatUsers']; ?>

				</fieldset>
			</div>

			<!-- Display sent files -->
			<div id="files">
				<fieldset >
				<legend><?php echo $this->_config[0]['vars']['chat_files']; ?>
 <?php if ($this->_tpl_vars['umFilesNum'] != 0): ?>[<?php echo $this->_tpl_vars['umFilesNum']; ?>
]<?php endif; ?></legend>
					<?php echo $this->_tpl_vars['umChatfiles']; ?>

				</fieldset>
			</div>

			<!-- Send message -->
			<div id="sender" onkeyup="keypressed(event);" >
				<nobr>&nbsp; <img src="<?php echo $this->_tpl_vars['umSmileys']; ?>
/0.gif" alt="" onclick="javascript:show_smileys();" style="cursor: pointer;">&nbsp; <?php echo $this->_config[0]['vars']['chat_text']; ?>
 <input type="text" name="msg" id="msg" size="50">&nbsp;
				<input class="button" type="button" onclick="doWork();" value="<?php echo $this->_config[0]['vars']['chat_send']; ?>
">&nbsp;&nbsp;&nbsp;

			<!--"change user status" -->
					<SELECT name="status" id="status" onChange="javascript:window.location.href='startchat.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
&status=' + document.getElementById('status').value;">
						<option value="1"><?php echo $this->_config[0]['vars']['chat_online']; ?>

						<option value="2"><?php echo $this->_config[0]['vars']['chat_busy']; ?>

						<option value="3"><?php echo $this->_config[0]['vars']['chat_beback']; ?>

						<option value="4"><?php echo $this->_config[0]['vars']['chat_away']; ?>

					</SELECT></nobr>
			</div>

			<!-- Upload files -->
			<div id="upfiles">
				<form method="POST" action="message.php?lid=<?php echo $this->_tpl_vars['umLid']; ?>
&tid=<?php echo $this->_tpl_vars['umTid']; ?>
&nick=<?php echo $this->_tpl_vars['umNickName']; ?>
" enctype="multipart/form-data">
					<b><?php echo $this->_config[0]['vars']['chat_upload_text']; ?>
</b><br>
					<input class="button uploadfile" type="file" name="chatfile" size="33"><br><br>
					<p align="right"><input class="button" type="submit" name="sendfile" value="<?php echo $this->_config[0]['vars']['chat_btupload']; ?>
">&nbsp;
					<input class="button" type="button" onclick="javascript:document.getElementById('upfiles').style.display='none';" value="<?php echo $this->_config[0]['vars']['chat_btclose']; ?>
"></p>
					<br><i><?php echo $this->_config[0]['vars']['chat_file_size']; ?>
 <?php echo $this->_tpl_vars['umChatFileMaxSize']; ?>
 M<?php echo $this->_config[0]['vars']['bytes']; ?>
</i>
				</form>
			</div>

			<!-- Smileys -->
			<div id="smileys">
				<script language="javascript" type="text/javascript">
					document.write('<table class="tablecollapsed smileys">\n<tr>');
					for (var i=0; i < 11; i++) document.write('<td>'+smiley_code[i]+'</td>');
					document.write('</tr>\n<tr>');
					for (var i=0; i < 11; i++) 
						document.write('<td><img src="<?php echo $this->_tpl_vars['umSmileys']; ?>
/'+i+'.gif" onclick="javascript:add_smiley('+i+');" alt=""></td>');
					document.write('</tr>\n<tr>');
					for (var i=11; i < 22; i++) document.write('<td>'+smiley_code[i]+'</td>');
					document.write('</tr>\n<tr>');
					for (var i=11; i < 22; i++) 
						document.write('<td><img src="<?php echo $this->_tpl_vars['umSmileys']; ?>
/'+i+'.gif" onclick="javascript:add_smiley('+i+');" alt=""></td>');
					document.write('</tr>\n</table>');
				</script>
			</div>

		</div><!-- end main -->
	<?php endif; ?>

</body>
</html>