{include file="header.tpl.html"}


{if $set_analysis_result}
<script language="JavaScript">
<!--
opener.location.href = opener.location;
setTimeout('window.close()', 2000);
//-->
</script>
<br /><br />
<center>
<span class="default">
  {if $set_analysis_result == -1}
  <b>{t}An error occurred while trying to run your query{/t}</b>
  {elseif $set_analysis_result == 1}
  <b>{t}Thank you, the impact analysis was updated successfully.{/t}</b>
  {/if}
</span>
</center>
{else}
{literal}
<script language="JavaScript">
<!--
function validate(f)
{
    if (!isFloat(f.dev_time.value)) {
        alert('{/literal}{t escape=js}Please use only floating point numbers on the estimated development time field.{/t}{literal}');
        selectField(f, 'dev_time');
        return false;
    }
    if (isWhitespace(f.impact_analysis.value)) {
        alert('{/literal}{t escape=js}Please enter the impact analysis for this new requirement.{/t}{literal}');
        selectField(f, 'impact_analysis');
        return false;
    }
    return true;
}
//-->
</script>
{/literal}
<form name="set_analysis_form" onSubmit="javascript:return validate(this);" method="post" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="cat" value="set_analysis">
<input type="hidden" name="isr_id" value="{$smarty.get.isr_id}">
<table align="center" width="100%" cellpadding="3">
  <tr>
    <td>
      <table width="100%" cellspacing="1" cellpadding="2" border="0">
        <tr>
          <td colspan="2" class="default">
            <b>{t}Enter Impact Analysis{/t}</b>
          </td>
        </tr>
        <tr>
          <td width="120" bgcolor="{$cell_color}" class="default_white">
            <b>{t}Estimated Dev. Time{/t}: *</b>
          </td>
          <td bgcolor="{$light_color}">
            <input type="text" name="dev_time" size="6" class="default"> <span class="default">({t}in hours{/t})</span>
            {include file="error_icon.tpl.html" field="dev_time"}
          </td>
        </tr>
        <tr>
          <td width="120" bgcolor="{$cell_color}" class="default_white">
            <b>{t}Impact <br />Analysis{/t}: *</b>
          </td>
          <td bgcolor="{$dark_color}">
            <textarea name="impact_analysis" rows="10" style="width: 97%"></textarea>
            {include file="error_icon.tpl.html" field="impact_analysis"}
          </td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="{$cell_color}" align="center">
            <input class="button" type="submit" value="Update">
            <input class="button" type="button" value="Close" onClick="javascript:window.close();">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</form>
{/if}


{include file="app_info.tpl.html"}
{include file="footer.tpl.html"}
