<?php /* Smarty version 2.6.3, created on 2010-02-19 17:53:44
         compiled from if/alert/wkstat.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'regex_replace', 'if/alert/wkstat.tpl', 7, false),array('modifier', 'replace', 'if/alert/wkstat.tpl', 7, false),array('modifier', 'escape', 'if/alert/wkstat.tpl', 37, false),array('modifier', 'long2ip', 'if/alert/wkstat.tpl', 37, false),)), $this); ?>
<script type="text/javascript">
<?php echo '
$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-wrapper\').ready(function($) {
	var wkstat = $(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat\').data(\'instance.wkstat\');
	wkstat._init(
		';  echo $this->_tpl_vars['monitor']->attributes['work_sts'];  echo ',
		[';  if (isset($this->_foreach['ss'])) unset($this->_foreach['ss']);
$this->_foreach['ss']['name'] = 'ss';
$this->_foreach['ss']['total'] = count($_from = (array)$this->_tpl_vars['subjs']);
$this->_foreach['ss']['show'] = $this->_foreach['ss']['total'] > 0;
if ($this->_foreach['ss']['show']):
$this->_foreach['ss']['iteration'] = 0;
    foreach ($_from as $this->_tpl_vars['wid'] => $this->_tpl_vars['s']):
        $this->_foreach['ss']['iteration']++;
        $this->_foreach['ss']['first'] = ($this->_foreach['ss']['iteration'] == 1);
        $this->_foreach['ss']['last']  = ($this->_foreach['ss']['iteration'] == $this->_foreach['ss']['total']);
 echo '{'; ?>
id:'<?php echo $this->_tpl_vars['wid']; ?>
',subj:'<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['s'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '(\r\n|\n)', '\\r\\n') : smarty_modifier_regex_replace($_tmp, '(\r\n|\n)', '\\r\\n')))) ? $this->_run_mod_handler('replace', true, $_tmp, "'", "\\'") : smarty_modifier_replace($_tmp, "'", "\\'")); ?>
'<?php echo '}';  if (! $this->_foreach['ss']['last']): ?>,<?php endif;  endforeach; unset($_from); endif;  echo '],
		[';  if (isset($this->_foreach['bs'])) unset($this->_foreach['bs']);
$this->_foreach['bs']['name'] = 'bs';
$this->_foreach['bs']['total'] = count($_from = (array)$this->_tpl_vars['bodies']);
$this->_foreach['bs']['show'] = $this->_foreach['bs']['total'] > 0;
if ($this->_foreach['bs']['show']):
$this->_foreach['bs']['iteration'] = 0;
    foreach ($_from as $this->_tpl_vars['wid'] => $this->_tpl_vars['b']):
        $this->_foreach['bs']['iteration']++;
        $this->_foreach['bs']['first'] = ($this->_foreach['bs']['iteration'] == 1);
        $this->_foreach['bs']['last']  = ($this->_foreach['bs']['iteration'] == $this->_foreach['bs']['total']);
 echo '{'; ?>
id:'<?php echo $this->_tpl_vars['wid']; ?>
',body:'<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['b'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '(\r\n|\n)', '\\r\\n') : smarty_modifier_regex_replace($_tmp, '(\r\n|\n)', '\\r\\n')))) ? $this->_run_mod_handler('replace', true, $_tmp, "'", "\\'") : smarty_modifier_replace($_tmp, "'", "\\'")); ?>
'<?php echo '}';  if (! $this->_foreach['bs']['last']): ?>,<?php endif;  endforeach; unset($_from); endif;  echo ']
	);
	$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-msubj\').val(wkstat.def_subj);
	$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-mbody\').val(wkstat.def_body);
});
function _';  echo $this->_tpl_vars['id_prefix'];  echo '_wkstat_change_wkstat() {
	var wkstat = $(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat\').data(\'instance.wkstat\');
	var subj = $(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-msubj\').val();
	if(subj == wkstat.def_subj) {
		wkstat.def_subj = wkstat._search_subj($(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-stat\').val());
		$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-msubj\').val(wkstat.def_subj);
	}
	var body = $(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-mbody\').val().replace(/\\r\\n|\\n/g, "\\r\\n");
	if(body == wkstat.def_body) {
		wkstat.def_body = wkstat._search_body($(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-stat\').val());
		$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-mbody\').val(wkstat.def_body);
	}
}
function _';  echo $this->_tpl_vars['id_prefix'];  echo '_wkstat_set_default() {
	var wkstat = $(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat\').data(\'instance.wkstat\');
	wkstat.def_subj = wkstat._search_subj($(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-stat\').val());
	$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-msubj\').val(wkstat.def_subj);
	wkstat.def_body = wkstat._search_body($(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-stat\').val());
	$(\'#';  echo $this->_tpl_vars['id_prefix'];  echo '-wkstat-mbody\').val(wkstat.def_body);
}
'; ?>

</script>
<div id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-wrapper">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="line"><img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/gray_sq.gif" width="10" height="10" hspace="2" align="absmiddle" vspace="5"><span title="<?php echo ((is_array($_tmp=$this->_tpl_vars['server']->attributes['dev_dspname'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['server']->attributes['dev_ip'])) ? $this->_run_mod_handler('long2ip', true, $_tmp) : long2ip($_tmp)); ?>
</span>&nbsp;－&nbsp;<span title="<?php echo ((is_array($_tmp=$this->_tpl_vars['monitor']->attributes['alt'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['monitor']->getName())) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</span></td></tr>
</table>
<img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/spacer.gif" width="1" height="4"><br>
<img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/arrow_s.gif" border="0"><img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/spacer.gif" width="2" height="1">作業状況:&nbsp;<select id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-stat" class="defont" onchange="_<?php echo $this->_tpl_vars['id_prefix']; ?>
_wkstat_change_wkstat();">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['wkstatc']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
<option value="<?php echo $this->_tpl_vars['wkstats'][$this->_sections['i']['index']]['id']; ?>
"<?php if ($this->_tpl_vars['monitor']->attributes['work_sts'] == $this->_tpl_vars['wkstats'][$this->_sections['i']['index']]['id']): ?> selected<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['wkstats'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</option>
<?php endfor; endif; ?>
</select><br>
<img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/spacer.gif" width="1" height="4"><br>
<input type="checkbox" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-msend" checked onclick="$('#<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mbox').toggle();">作業状況変更メールを送信する&nbsp;<span id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-error" class="error"></span><br>
<img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/spacer.gif" width="1" height="4"><br>
<div id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mbox" style="display:block">
<table width="98%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td class="defont_gb" valign="top" width="1%" nowrap>To：</td>
<td class="defont" valign="top" align="left" width="99%">
<input type="text" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mto" size="60" maxlength="255" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['mail']['to'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="defont">
<br><span class="instruction">※メール受信者アドレス。;(セミコロン)区切りで複数指定可能です。</span>
</td>
</tr>
<tr>
<td class="defont_gb" valign="top" width="1%" nowrap>From：</td>
<td class="defont" valign="top" align="left" width="99%">
<input type="text" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mfrom" size="60" maxlength="255" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['mail']['from'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="defont">
<br><span class="instruction">※メール送信者アドレス。</span>
</td>
</tr>
<tr>
<td class="defont_" valign="top" width="1%" nowrap></td>
<td class="defont" valign="top" align="left" width="99%">
<input type="text" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mefrom" size="60" maxlength="255" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['mail']['efrom'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="defont">
<br><span class="instruction">※メールEnvelope Sender。未入力の場合は↑メール送信者が使用されます。</span>
</td>
</tr>
<tr>
<td class="defont_gb" valign="top" width="1%" nowrap>件名：</td>
<td class="defont" valign="top" align="left" width="99%">
<input type="text" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-msubj" size="70" maxlength="255" value="" class="defont">
</td>
</tr>
<tr>
<td class="defont_gb" valign="top" width="1%" nowrap>本文：</td>
<td class="defont" valign="top" align="left" width="99%">
<textarea id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mbody" cols="56" rows="12" wrap="off" class="defont"></textarea>
<img src="<?php echo $this->_tpl_vars['_path']['resource']; ?>
img/title/spacer.gif" width=1 height=4><br>
<a href="#" class="intab1" onclick="_<?php echo $this->_tpl_vars['id_prefix']; ?>
_wkstat_set_default();">デフォルトの件名と本文を使用する&gt;&gt;</a>
</td>
</tr>
</table>
</div>
<hr align="center" width="98%" noshade size="1">
<input type="hidden" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-eid" value=""/>
<input type="hidden" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-mid" value=""/>
<input type="hidden" id="<?php echo $this->_tpl_vars['id_prefix']; ?>
-wkstat-sdt" value=""/>
</div>
<!--@0-->