<?php /* Smarty version 2.3.0, created on 2015-10-22 15:23:59
         compiled from bugdisplay.html */ ?>
<?php $this->_load_plugins(array(
array('modifier', 'addslashes', 'bugdisplay.html', 11, false),
array('modifier', 'date', 'bugdisplay.html', 133, false),
array('modifier', 'htmltruespace', 'bugdisplay.html', 138, false),
array('modifier', 'nl2br', 'bugdisplay.html', 138, false),
array('modifier', 'format_comments', 'bugdisplay.html', 138, false),
array('modifier', 'dirname', 'bugdisplay.html', 199, false),
array('modifier', 'url_with_header_encode', 'bugdisplay.html', 207, false),
array('modifier', 'stripslashes', 'bugdisplay.html', 344, false),
array('modifier', 'intval', 'bugdisplay.html', 400, false),
array('modifier', 'number_format', 'bugdisplay.html', 438, false),
array('modifier', 'maskemail', 'bugdisplay.html', 492, false),
array('function', 'build_dynamic_input', 'bugdisplay.html', 124, false),
array('function', 'assign', 'bugdisplay.html', 160, false),
array('function', 'math', 'bugdisplay.html', 437, false),)); ?><?php $this->_assign_smarty_interface(); ?>
<script type="text/JavaScript">
<!--
	<?php echo '
	// check that a date is written correctly
	checkDate_regexp = '; ?>
<?php echo $this->_tpl_vars['internal_date_format_js']; ?>
<?php echo '
	function checkDate(input) {
		result_array = checkDate_regexp.exec(input.value);
		if ((result_array != null) && (result_array[0] == input.value)) {
			return true;
		} else {
			alert(\''; ?>
<?php echo $this->_run_mod_handler('addslashes', true, $this->_tpl_vars['ERROR']['invalid_date']); ?>
<?php echo '\');
			return false;
		}
	} // end of checkDate(input)
	
	// open a popup at the center of the screen
	function centeredPopup(url, width, height, options) {
		var top=(screen.height - height) / 2;
		var left=(screen.width - width) / 2;
		window.open(url,"","top="+top+",left="+left+",width="+width+",height="+height+","+options);
	}

//config for server
var server = "PointToYourPHPScriptWhichUsesPearXML_RPC_andhas some methods defined "
var target_object;
function sendXMLRPC(url, method, value) {
     //branch for native object
     type = method;
     if (window.XMLHttpRequest) {
         req = new XMLHttpRequest();
         req.onreadystatechange = processReqChange;

         req.open("POST", url, true);
         req.setRequestHeader("Content-Type", "text/xml");
         req.send(\'<?xml version="1.0"?>\\n\'+
\'<methodCall>\\n\'+
\'<methodName>\'+ method + \'</methodName>\\n\'+
\'<params>\\n\'+
\'<param>\\n\'+
\'<value>\\n\'+
\'<string>\' + value + \'</string>\\n\'+
\'</value>\\n\'+
\'</param>\\n\'+
\'</params>\\n\'+
\'</methodCall>\\n\');
     }
}

function processReqChange() {
     // only if req shows "loaded"
     if (req.readyState == 4) {
         // only if "OK"
         if (req.status == 200) {
         //hand off to delegate function
	 	update(type);
          } else {
             alert("There was a problem retrieving the XML data:\\n" +
                 req.statusText);
          }
     }
}



	
	'; ?>

//-->
</script>
    <!-- File title : project title : next/previous links and back to list link -->
	<table border="0" width="100%">
		<tr>
			<td>
			<!--	<h3>  PAGE TITLE 
					<?php echo $this->_tpl_vars['TITLE']['file_edition']; ?>
 #<?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>

					&nbsp;&nbsp;&nbsp;<i><?php echo $this->_tpl_vars['file']['title']['value']; ?>
</i>
				</h3>  link to file list -->
			</td> 
		</tr>
		<tr>
			<td colspan="5">
				<div align="left" class="bugdisplaylinks">
				<?php if (isset ( $GLOBALS['HTTP_SESSION_VARS']['queryinfo'] ) && count ( $GLOBALS['HTTP_SESSION_VARS']['queryinfo'] )): ?>
					<b>
						<a href="query.php?op=redoquery">
							<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['returnto']; ?>
 <?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['buglist']; ?>

						</a>
					</b> 
					&nbsp;&nbsp;|&nbsp;&nbsp;
				<?php endif; ?>
					<b>
						<a href="<?php echo $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']; ?>
?op=history&file_id=<?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
">
							<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['viewbugactivity']; ?>

						</a>
					</b> 
					&nbsp;&nbsp;|&nbsp;&nbsp;
					<b>
						<a href="<?php echo $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']; ?>
?op=print&file_id=<?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
">
							<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['printableview']; ?>

						</a>
					</b>
					<b>
					&nbsp;&nbsp;|&nbsp;&nbsp;
						<a  href="Addons/saisie_temps.php?id=<?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
&domain=<?php echo $this->_tpl_vars['file']['project_id']['value']; ?>
" target=_blank>
							evaluation details
						</a>
					</b> 
				</div>
			</td>
			
		</tr>

	</table>
	<br>
<form action="bug.php" method="post" onSubmit="return checkForm(this)">
    <input type="hidden" name="op" value="update">
    <input type="hidden" name="file_id" value="<?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
">
    <input type="hidden" name="last_modified_date" value="<?php echo $this->_tpl_vars['file']['last_modified_date']['value']; ?>
">
    <input type="hidden" name="pos" value="<?php echo $this->_smarty_vars['request']['pos']; ?>
">
<?php if ($this->_tpl_vars['mpfile']->sp_cache['description']->hidden != true): ?>
<div class="mainFrame">
<div class="section">
	<?php echo $this->_tpl_vars['STRING']['description_of_file']; ?>
 <?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
:&nbsp;&nbsp;&nbsp;<i><?php echo $this->_tpl_vars['file']['title']['value']; ?>
</i> 				
</div>
	<div class="alt">	<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['postedby']; ?>
 : <?php $this->_plugins['function']['build_dynamic_input'][0](array('field_conf' => $this->_tpl_vars['file']['created_by']['field_conf'],'file_id' => $this->_tpl_vars['file']['bug_id']['value'],'name' => '_no_name','value' => $this->_tpl_vars['file']['created_by']['value'],'mpfile' => $this->_tpl_vars['mpfile'],'read_only' => "1",'no_html' => "1"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?> 
	<br>
	<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['date']; ?>
 : <?php echo $this->_run_mod_handler('date', true, $this->_tpl_vars['file']['created_date']['value'], TIME_FORMAT); ?>
 <?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['dateon']; ?>
 <?php echo $this->_run_mod_handler('date', true, $this->_tpl_vars['file']['created_date']['value'], DATE_FORMAT); ?>

	<br>
	</div>
	<div class="contentFrame">
		<br>
		<?php echo $this->_run_mod_handler('format_comments', true, $this->_run_mod_handler('nl2br', true, $this->_run_mod_handler('htmltruespace', true, $this->_tpl_vars['file']['description']['value']))); ?>

		<br>
		<br>
	</div>
</div>
<?php endif; ?>
<!--<table class="section" width="100%"> <tr align="center"><td align="center"> -->
<div class="mainFrame" align="center">
<div class="section">
	<?php echo $this->_tpl_vars['STRING']['field_edition']; ?>
  				
<?php if ($this->_tpl_vars['mpfile']->sp_cache['description']->hidden == true): ?>
	&nbsp;&nbsp;&nbsp; <?php echo $this->_tpl_vars['STRING']['file']; ?>
 <?php echo $this->_tpl_vars['file']['bug_id']['value']; ?>
 :&nbsp;&nbsp;<i><?php echo $this->_tpl_vars['file']['title']['value']; ?>
</i>
<?php endif; ?>
</div>
	<table border="0" cellspacing="0" cellpadding="0" width="91%">
		<?php if ($this->_tpl_vars['error']['status']): ?>
		<tr>
			<td class="error" colspan=4>
				<?php echo $this->_tpl_vars['error']['status']; ?>

			</td>
		</tr>
		<?php endif; ?>
		<?php $this->_plugins['function']['assign'][0](array('var' => "Shift",'value' => 'null'), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
		<?php if (isset($this->_foreach["std_fields"])) unset($this->_foreach["std_fields"]);
$this->_foreach["std_fields"]['name'] = "std_fields";
$this->_foreach["std_fields"]['total'] = count((array)$this->_tpl_vars['fc_filtered']);
$this->_foreach["std_fields"]['show'] = $this->_foreach["std_fields"]['total'] > 0;
if ($this->_foreach["std_fields"]['show']):
$this->_foreach["std_fields"]['iteration'] = 0;
    foreach ((array)$this->_tpl_vars['fc_filtered'] as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach["std_fields"]['iteration']++;
        $this->_foreach["std_fields"]['first'] = ($this->_foreach["std_fields"]['iteration'] == 1);
        $this->_foreach["std_fields"]['last']  = ($this->_foreach["std_fields"]['iteration'] == $this->_foreach["std_fields"]['total']);
?>
			
			<?php if ($this->_tpl_vars['error']['status'] && isset ( $this->_tpl_vars['primary_input_array'][$this->_tpl_vars['k']] )): ?>
				<?php $this->_plugins['function']['assign'][0](array('var' => "treated_value",'value' => $this->_tpl_vars['primary_input_array'][$this->_tpl_vars['k']]), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
			<?php else: ?> 
				<?php $this->_plugins['function']['assign'][0](array('var' => "treated_value",'value' => $this->_tpl_vars['file'][$this->_tpl_vars['k']]['value']), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
			<?php endif; ?>
			
			<?php if (($this->_foreach['std_fields']['iteration'] % 2) && $Shift=='null'  ): ?>
		<TR valign="top">
			<?php else: ?>
				<?php if (!($this->_foreach['std_fields']['iteration'] % 2) && $Shift=='offset'  ): ?>
		<TR valign="top">
				<?php else: ?>
					<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->label): ?>
		<TR valign="top">
					<?php endif; ?>
				<?php endif; ?>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->label): ?>
			<TD colspan="4"> 
				<DIV class="label">
					<?php echo $this->_tpl_vars['v']['title']; ?>

				</DIV>
				<DIV class="endlabel">
					&nbsp;
				</DIV>
			</TD>
			<?php else: ?>
<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->hidden_fields): ?>
			<TD align="left" style="visibility:hidden" >
<?php else: ?>
			<TD align="left">
<?php endif; ?>
				<DIV class="cell" >
					<!-- POPUP of field properties-->
					<font size="1">
						<a 
							onClick="javascript:centeredPopup('<?php echo $this->_run_mod_handler('dirname', true, $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']); ?>
/popup_field_properties.php?op=show&fid=<?php echo $this->_tpl_vars['v']['field_conf_id']; ?>
', <?php echo $this->_tpl_vars['popup_field_properties_width']; ?>
, <?php echo $this->_tpl_vars['popup_field_properties_height']; ?>
, 'resizable=yes')"
						>
							<img class="helper" src="<?php echo $this->_tpl_vars['template_path']; ?>
/images/smalltxt.gif" alt="?" >
						</a>
					</font>
					<B>
					<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->highlight_url): ?>
						<!-- convert the title into a link -->
					<A href="<?php echo $this->_run_mod_handler('url_with_header_encode', true, $this->_tpl_vars['file'][$this->_tpl_vars['k']]['value']); ?>
" target="new">
					<?php endif; ?>						
					<?php echo $this->_tpl_vars['v']['title']; ?>
 :
					<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->highlight_url): ?>
					</A>
					<?php endif; ?>
					</B>
	
					<?php if ($this->_tpl_vars['v']['field_type_title'] == $this->_tpl_vars['string'] && $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->maxlen == '0'): ?>
					<br>
					<?php else: ?>
					<?php endif; ?>
				 <!-- 'k' is also the field_name  -->
					<?php if ($this->_tpl_vars['k'] == 'assigned_to'): ?>
						<?php $this->_plugins['function']['build_dynamic_input'][0](array('field_conf' => $this->_tpl_vars['v'],'file_id' => $this->_tpl_vars['file']['bug_id']['value'],'name' => '_no_name','mpfile' => $this->_tpl_vars['mpfile'],'read_only' => "1"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<!-- the project id is handled like a normal field
					<?php echo '					
					{elseif ($k == \'project_id\')}
						{build_dynamic_input 
							field_conf=$v 
							file_id=$file.bug_id.value
							name=\'_no_name\'
							value=$project_id
							mpfile=$mpfile
							read_only=1
						}
					'; ?>

					-->
					<?php else: ?>
						<?php if ($GLOBALS['HTTP_SESSION_VARS']['uid']): ?> 
							<?php if (!empty ( $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->read_only )): ?>
								<?php $this->_plugins['function']['assign'][0](array('var' => "RO",'value' => $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->read_only), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
							<?php else: ?>
								<?php if (!empty ( $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->label )): ?>
									<?php $this->_plugins['function']['assign'][0](array('var' => "RO",'value' => $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->label), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
								<?php else: ?>
									<?php $this->_plugins['function']['assign'][0](array('var' => "RO",'value' => "0"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
								<?php endif; ?>
							<?php endif; ?>
						<?php else: ?>
							<?php $this->_plugins['function']['assign'][0](array('var' => "RO",'value' => "1"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
						<?php endif; ?>
						<?php $this->_plugins['function']['build_dynamic_input'][0](array('flg_wkfw' => $this->_tpl_vars['flg_wkfw'],'field_conf' => $this->_tpl_vars['v'],'file_id' => $this->_tpl_vars['file']['bug_id']['value'],'name' => $this->_tpl_vars['v']['field_name'],'value' => $this->_tpl_vars['treated_value'],'mpfile' => $this->_tpl_vars['mpfile'],'read_only' => $this->_tpl_vars['RO']), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<?php endif; ?>
					</DIV>
				</TD>
				<TD>
				&nbsp;&nbsp;&nbsp;
				</TD>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->dashAfter || $this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->label): ?>
				<?php if ($this->_tpl_vars['mpfile']->sp_cache[$this->_tpl_vars['k']]->dashAfter): ?>
					</TR>
  					<tr>
					<td class="underlined"><img src="<?php echo $this->_tpl_vars['template_path']; ?>
/images/spacer.gif"  width="32" height="1"></td>
					<td class="underlined"><img src="<?php echo $this->_tpl_vars['template_path']; ?>
/images/spacer.gif"  width="32" height="1"></td>
					<td class="underlined"><img src="<?php echo $this->_tpl_vars['template_path']; ?>
/images/spacer.gif"  width="32" height="1"></td>
					<td class="underlined"><img src="<?php echo $this->_tpl_vars['template_path']; ?>
/images/spacer.gif"  width="32" height="1"></td>
					</TR>
				<?php endif; ?>
				<?php if (($this->_foreach['std_fields']['iteration'] % 2)  ): ?>
					<?php if ($Shift=='null'): ?>
						<?php $this->_plugins['function']['assign'][0](array('var' => "Shift",'value' => 'offset'), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<?php else: ?>
						<?php $this->_plugins['function']['assign'][0](array('var' => "Shift",'value' => 'offset'), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<?php endif; ?>
				<?php else: ?>
					<?php if ($Shift=='offset'): ?>
						<?php $this->_plugins['function']['assign'][0](array('var' => "Shift",'value' => 'null'), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<?php else: ?>
						<?php $this->_plugins['function']['assign'][0](array('var' => "Shift",'value' => 'null'), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					<?php endif; ?>
				<?php endif; ?>
			<?php else: ?>
				<?php if (!($this->_foreach['std_fields']['iteration'] % 2) && $Shift=='null'  ): ?>
					</TR>		
				<?php endif; ?>
				<?php if (($this->_foreach['std_fields']['iteration'] % 2) && $Shift=='offset'  ): ?>
					</TR>		
				<?php endif; ?>
			<?php endif; ?>
		<?php endforeach; endif; ?>
		<TR>
			<TD colspan="4"> 
				<DIV class="label">
					<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['Rest']; ?>

				</DIV>
				<DIV class="endlabel">
					&nbsp;
				</DIV>
			</TD>
		</TR>
		<tr valign="center">
		<?php if ($GLOBALS['HTTP_SESSION_VARS']['uid']): ?>  
		<td valign="center" rowspan="5">
			<table>
				<tr>
					<td valign="center">
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['change_assignation']; ?>
 : 
				
				
				<?php if ($this->_tpl_vars['error']['status'] && isset ( $this->_tpl_vars['primary_input_array']['assigned_to'] )): ?>
					<?php $this->_plugins['function']['assign'][0](array('var' => "treated_value",'value' => $this->_tpl_vars['primary_input_array']['assigned_to']), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>					
				<?php else: ?> 
					<?php $this->_plugins['function']['assign'][0](array('var' => "treated_value",'value' => "null"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
				<?php endif; ?>
					</td>
					<td>
				<?php $this->_plugins['function']['build_dynamic_input'][0](array('field_conf' => $this->_tpl_vars['field_conf']['assigned_to'],'name' => "assigned_to",'file_id' => $this->_tpl_vars['file']['bug_id']['value'],'mpfile' => $this->_tpl_vars['mpfile'],'allow_void' => "1",'value' => $this->_tpl_vars['treated_value']), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
					</td>
				</tr>
			</table>
			</td>
			<TD rowspan="5">
				&nbsp;&nbsp;&nbsp;
			</TD>
		<?php endif; ?>
			<td>
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['addcc']; ?>
 :	
				<input type="text" name="add_cc" <?php if (isset ( $this->_tpl_vars['add_cc'] )): ?>value=<?php echo $this->_run_mod_handler('stripslashes', true, $this->_tpl_vars['add_cc']); ?>
<?php endif; ?>>
			</td>
		</tr>
		<tr >
		<?php if (count ( $this->_tpl_vars['contact_list'] )): ?>
			<td valign="top">
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['removeselectedcc']; ?>
 :
				<SELECT name="remove_cc[]" multiple>
				<?php if (isset($this->_foreach["cclist"])) unset($this->_foreach["cclist"]);
$this->_foreach["cclist"]['name'] = "cclist";
$this->_foreach["cclist"]['total'] = count((array)$this->_tpl_vars['contact_list']);
$this->_foreach["cclist"]['show'] = $this->_foreach["cclist"]['total'] > 0;
if ($this->_foreach["cclist"]['show']):
$this->_foreach["cclist"]['iteration'] = 0;
    foreach ((array)$this->_tpl_vars['contact_list'] as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach["cclist"]['iteration']++;
        $this->_foreach["cclist"]['first'] = ($this->_foreach["cclist"]['iteration'] == 1);
        $this->_foreach["cclist"]['last']  = ($this->_foreach["cclist"]['iteration'] == $this->_foreach["cclist"]['total']);
?>
					<option value="<?php echo $this->_tpl_vars['v']['user_id']; ?>
" 
					<?php if (is_array ( $this->_tpl_vars['remove_cc'] ) && in_array ( $this->_tpl_vars['v']['user_id'] , $this->_tpl_vars['remove_cc'] )): ?>
						SELECTED
					<?php endif; ?>>
						<?php echo $this->_tpl_vars['v']['first_name']; ?>
 <?php echo $this->_tpl_vars['v']['last_name']; ?>

					</option>
				<?php endforeach; endif; ?>
				</SELECT>
			</td>
		<?php endif; ?>
		</tr>
		<tr>
			<td valign="top">
			<?php if (!empty ( $this->_tpl_vars['error']['add_dep'] )): ?>
				<div class="error">
					<?php echo $this->_tpl_vars['error']['add_dep']; ?>

				</div>
			<?php endif; ?>
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['bugdependency']; ?>
 :
				<?php echo $this->_tpl_vars['bug_dependencies']; ?>
 
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['adddependency']; ?>
 : 
				<input type="text" name="add_dependency" size="5" <?php if (isset ( $this->_tpl_vars['add_dependency'] )): ?> value="<?php echo $this->_tpl_vars['add_dependency']; ?>
" <?php endif; ?>> 
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['removedependency']; ?>
 :
				<input type="text" name="del_dependency" size="5" <?php if (isset ( $this->_tpl_vars['del_dependency'] )): ?> value="<?php echo $this->_tpl_vars['del_dependency']; ?>
" <?php endif; ?>> 
			</td>			
		</tr>
<?php if ($no_attachments==1): ?>
<?php else: ?>
		<tr>
			<td colspan="4">
				<table border="0" cellpadding="0" width="100%">
					<tr>
						<!-----------------------------ATTACHMENTS-------------------------------->
						<td colspan="2">
							<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['attachments']; ?>
 :
						</td>
						<td colspan="3" align="right">
							<?php if ($GLOBALS['HTTP_SESSION_VARS']['uid']): ?>  
								<!-- TODO -->
								<a href="javascript:centeredPopup('<?php echo $this->_run_mod_handler('dirname', true, $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']); ?>
/attachment.php?use_js=1&file_id=<?php echo $this->_run_mod_handler('intval', true, $this->_tpl_vars['file']['bug_id']['value']); ?>
' , 380, 150, 'resizable=yes');"
								>
									<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['createattachment']; ?>

								</a>
							<?php endif; ?>
						</td>
					</tr>
					<tr>
					<td colspan="5" height="2" bgcolor="#ffffff">
						<spacer type="block" height="2" width="2">
					</td>
				</tr>
				<tr>
					<td bgcolor="#cccccc" align="center"><b><?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['name']; ?>
</b></td>
					<td width="60" bgcolor="#cccccc" align="center"><b><?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['size']; ?>
</b></a></td>
					<td width="150" bgcolor="#cccccc" align="center"><b><?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['type']; ?>
</b></a></td>
					<td width="80" bgcolor="#cccccc" align="center"><b><?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['created']; ?>
</b></a></td>
					<td width="80" bgcolor="#cccccc" align="center">&nbsp;</a></td>
				</tr>
				<tr>
					<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
					<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
					<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
					<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
					<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
				</tr>
					<?php if (isset($this->_sections["attachment"])) unset($this->_sections["attachment"]);
$this->_sections["attachment"]['name'] = "attachment";
$this->_sections["attachment"]['loop'] = is_array($this->_tpl_vars['attachments']) ? count($this->_tpl_vars['attachments']) : max(0, (int)$this->_tpl_vars['attachments']);
$this->_sections["attachment"]['show'] = true;
$this->_sections["attachment"]['max'] = $this->_sections["attachment"]['loop'];
$this->_sections["attachment"]['step'] = 1;
$this->_sections["attachment"]['start'] = $this->_sections["attachment"]['step'] > 0 ? 0 : $this->_sections["attachment"]['loop']-1;
if ($this->_sections["attachment"]['show']) {
    $this->_sections["attachment"]['total'] = $this->_sections["attachment"]['loop'];
    if ($this->_sections["attachment"]['total'] == 0)
        $this->_sections["attachment"]['show'] = false;
} else
    $this->_sections["attachment"]['total'] = 0;
if ($this->_sections["attachment"]['show']):

            for ($this->_sections["attachment"]['index'] = $this->_sections["attachment"]['start'], $this->_sections["attachment"]['iteration'] = 1;
                 $this->_sections["attachment"]['iteration'] <= $this->_sections["attachment"]['total'];
                 $this->_sections["attachment"]['index'] += $this->_sections["attachment"]['step'], $this->_sections["attachment"]['iteration']++):
$this->_sections["attachment"]['rownum'] = $this->_sections["attachment"]['iteration'];
$this->_sections["attachment"]['index_prev'] = $this->_sections["attachment"]['index'] - $this->_sections["attachment"]['step'];
$this->_sections["attachment"]['index_next'] = $this->_sections["attachment"]['index'] + $this->_sections["attachment"]['step'];
$this->_sections["attachment"]['first']      = ($this->_sections["attachment"]['iteration'] == 1);
$this->_sections["attachment"]['last']       = ($this->_sections["attachment"]['iteration'] == $this->_sections["attachment"]['total']);
?>
						<tr 
							title="<?php echo $this->_run_mod_handler('stripslashes', true, $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['description']); ?>
"
							<?php if (!($this->_sections['attachment']['iteration'] % 2)  ): ?> 
								class="alt" bgcolor="#dddddd"
							<?php endif; ?>>
							<td>
								<?php echo $this->_run_mod_handler('stripslashes', true, $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['file_name']); ?>

							</td>
						<td align="right">
							<?php if ($this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['file_size'] > 1024): ?>
								<?php $this->_plugins['function']['math'][0](array('equation' => "(round(x) / 1024 * 100) / 100",'x' => $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['file_size'],'assign' => "file_size"), $this); if($this->_extract) { extract($this->_tpl_vars); $this->_extract=false; } ?>
								<?php echo $this->_run_mod_handler('number_format', true, $this->_tpl_vars['file_size']); ?>
k
							<?php else: ?>
								<?php echo $this->_run_mod_handler('number_format', true, $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['file_size']); ?>
b
							<?php endif; ?>
						</td>
						<td align="center"><?php echo $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['mime_type']; ?>
</td>
						<td align="center"><?php echo $this->_run_mod_handler('date', true, $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['created_date'], DATE_FORMAT); ?>
</td>
						<td align="center">
							<a href='attachment.php?attachid=<?php echo $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['attachment_id']; ?>
'>
								View
							</a>
							<?php if (isset ( $this->_tpl_vars['perm'] ) && $this->_tpl_vars['perm']->have_perm ( 'Administrator' )): ?>
								| 
								<a 
									href='attachment.php?del=<?php echo $this->_tpl_vars['attachments'][$this->_sections['attachment']['index']]['attachment_id']; ?>
' 
									onClick="return confirm('<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['suredeleteattachment']; ?>
');">
									<?php echo $this->_tpl_vars['STRING']['delete']; ?>

								</a>
							<?php endif; ?>
						</td>
					</tr>
				<?php endfor; else: ?>
					<tr>
						<td colspan="5" align="center"><?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['noattachments']; ?>
</td>
					</tr>
				<?php endif; ?>
					<tr>
						<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
						<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
						<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
						<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
						<td bgcolor="#000000" height="1"><spacer type="block" height="1" width="1"></td>
					</tr>
					<tr>
						<td colspan="5" height="2" bgcolor="#ffffff">
							<spacer type="block" height="2" width="2">
						</td>
					</tr>
				</table>
			</td>
		</tr>
<?php endif; ?>	</table>
</div>	<!-- </td></tr></table> -->

<?php if ($no_comments==1): ?>
<?php else: ?>
<div class="mainFrame">
<div class="section">
<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['comments']; ?>
 :
</div>
<table border="0" cellpadding="2" cellspacing="0" width="91%" >
	<?php if (isset($this->_sections["comment"])) unset($this->_sections["comment"]);
$this->_sections["comment"]['name'] = "comment";
$this->_sections["comment"]['loop'] = is_array($this->_tpl_vars['comments']) ? count($this->_tpl_vars['comments']) : max(0, (int)$this->_tpl_vars['comments']);
$this->_sections["comment"]['show'] = true;
$this->_sections["comment"]['max'] = $this->_sections["comment"]['loop'];
$this->_sections["comment"]['step'] = 1;
$this->_sections["comment"]['start'] = $this->_sections["comment"]['step'] > 0 ? 0 : $this->_sections["comment"]['loop']-1;
if ($this->_sections["comment"]['show']) {
    $this->_sections["comment"]['total'] = $this->_sections["comment"]['loop'];
    if ($this->_sections["comment"]['total'] == 0)
        $this->_sections["comment"]['show'] = false;
} else
    $this->_sections["comment"]['total'] = 0;
if ($this->_sections["comment"]['show']):

            for ($this->_sections["comment"]['index'] = $this->_sections["comment"]['start'], $this->_sections["comment"]['iteration'] = 1;
                 $this->_sections["comment"]['iteration'] <= $this->_sections["comment"]['total'];
                 $this->_sections["comment"]['index'] += $this->_sections["comment"]['step'], $this->_sections["comment"]['iteration']++):
$this->_sections["comment"]['rownum'] = $this->_sections["comment"]['iteration'];
$this->_sections["comment"]['index_prev'] = $this->_sections["comment"]['index'] - $this->_sections["comment"]['step'];
$this->_sections["comment"]['index_next'] = $this->_sections["comment"]['index'] + $this->_sections["comment"]['step'];
$this->_sections["comment"]['first']      = ($this->_sections["comment"]['iteration'] == 1);
$this->_sections["comment"]['last']       = ($this->_sections["comment"]['iteration'] == $this->_sections["comment"]['total']);
?>
	<tr class="alt">
		<td>
			<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['postedby']; ?>
 : <?php echo $this->_run_mod_handler('maskemail', true, $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['login']); ?>
 <br>
			<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['date']; ?>
 : <?php echo $this->_run_mod_handler('date', true, $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['created_date'], TIME_FORMAT); ?>
 <?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['on']; ?>
 <?php echo $this->_run_mod_handler('date', true, $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['created_date'], DATE_FORMAT); ?>

		</td>
	</tr>
	<tr>
		<td> 
			<div >
			
			
			<?php echo $this->_run_mod_handler('format_comments', true, $this->_run_mod_handler('nl2br', true, $this->_run_mod_handler('htmltruespace', true, $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['comment_text']))); ?>

			<br><br>
			</div>
		</td>
	</tr>
<?php endfor; endif; ?>
</table>
<table border="0" cellpadding="2" cellspacing="0" >
	<tr>
		<td valign="top">
			<?php if ($GLOBALS['HTTP_SESSION_VARS']['uid']): ?>  
				<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['additionalcomments']; ?>
 :
				<br><br>
				<textarea name="comments" rows="16" cols="100" wrap="virtual"><?php if (isset ( $this->_tpl_vars['previous_comment'] )): ?><?php echo $this->_run_mod_handler('stripslashes', true, $this->_tpl_vars['previous_comment']); ?>
<?php endif; ?></textarea>
				<br><br>
			<?php else: ?>
				<b><?php echo $this->_tpl_vars['STRING']['logintomodify']; ?>
</b>
			<?php endif; ?>
		</td>
	</tr>
</table>
</div>
<?php endif; ?>
<div class="mainFrame">
<div class="section">
	<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['Submition']; ?>

</div>
<?php if ($GLOBALS['HTTP_SESSION_VARS']['uid']): ?>  
	<div class="submit">
	
		<input type="checkbox" name="suppress_email" value="1" <?php if (isset ( $this->_tpl_vars['suppress_email'] ) && !empty ( $this->_tpl_vars['suppress_email'] )): ?> checked <?php endif; ?>>
		<?php echo $this->_tpl_vars['STRING']['BUGDISPLAY']['suppressemail']; ?>

		<br>
		<br>
	<?php if ($flg_explode==1): ?>
		<?php if (isset($this->_foreach["state"])) unset($this->_foreach["state"]);
$this->_foreach["state"]['name'] = "state";
$this->_foreach["state"]['total'] = count((array)$this->_tpl_vars['next_states']);
$this->_foreach["state"]['show'] = $this->_foreach["state"]['total'] > 0;
if ($this->_foreach["state"]['show']):
$this->_foreach["state"]['iteration'] = 0;
    foreach ((array)$this->_tpl_vars['next_states'] as $this->_tpl_vars['_k'] => $this->_tpl_vars['_v']):
        $this->_foreach["state"]['iteration']++;
        $this->_foreach["state"]['first'] = ($this->_foreach["state"]['iteration'] == 1);
        $this->_foreach["state"]['last']  = ($this->_foreach["state"]['iteration'] == $this->_foreach["state"]['total']);
?>
			<input type="submit" name="<?php echo $this->_tpl_vars['_v']['id']; ?>
" value="<?php echo $this->_tpl_vars['_v']['name']; ?>
" onclick="form.elements['primary_input[status_id]'].value=<?php echo $this->_tpl_vars['_v']['id']; ?>
">
		<?php endforeach; endif; ?>
			<input type="hidden" name="primary_input[status_id]" value="">

	<?php else: ?>
		<input type="submit" value=<?php echo $this->_tpl_vars['STRING']['BUGFORM']['Submit']; ?>
>
	<?php endif; ?>					
	</div>
<?php else: ?>
	<b><?php echo $this->_tpl_vars['STRING']['logintomodify']; ?>
</b>
<?php endif; ?>
</div>
</form>
