5.2 Employee
detail_cr.htmpl
<PDM_IF 0>
////////////////////////////////////////////////////////////////////////////
//         Copyright (C) 2005 Computer Associates International, Inc
// as an unpublished work. This notice does not imply unrestricted or public
// access to these materials which are a trade secret of Computer Associates
// International or its subsidiaries or affiliates (together referred to as
// CA), and which may not be reproduced, used, sold or
// transferred to any third party without CA's prior written consent.
//
//                         All Rights Reserved.
//
//                       RESTRICTED RIGHTS LEGEND
// Use, duplication, or disclosure by the Government is subject to
// restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
// Technical Data and Computer Software clause at DFARS 252.227-7013.
////////////////////////////////////////////////////////////////////////////
// Module:  detail_cr.htmpl
// Created: 12/15/05
////////////////////////////////////////////////////////////////////////////
// Description:
//
//
//
////////////////////////////////////////////////////////////////////////////
//"@(#)$Id: detail_cr.htmpl,v 1.10 2006/04/13 00:07:07 tooda01 Exp $";
</PDM_IF>
<html lang="en">
<HEAD>
<PDM_PRAGMA RELEASE=110>
<PDM_INCLUDE FILE=styles.htmpl>
<SCRIPT LANGUAGE="JavaScript">
var hdrTitle = <PDM_FMT PAD=NO ESC_STYLE=C>"$args.ref_num Request Detail"</PDM_FMT>;
var hdrTitleUpd = <PDM_FMT PAD=NO ESC_STYLE=C>"$args.ref_num Update Request"</PDM_FMT>;
var hdrTitleNew = <PDM_FMT PAD=NO ESC_STYLE=C>"Create New Request $args.ref_num"</PDM_FMT>;
</SCRIPT>
<PDM_INCLUDE FILE=std_head.htmpl>
<script language="JavaScript" src="$CAisd/scripts/val_type.js"></script>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/arrow_button.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/check_submit.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/detail_form.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/img_link.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/sitemods.js"></SCRIPT>
<script language="JavaScript" src="$CAisd/scripts/cst_cat.js"></script>
<script language="JavaScript" src="$CAisd/scripts/msgtext.js"></script>
<script language="JavaScript" src="$CAisd/scripts/attmnt_upload.js"></script>
<script language="JavaScript" src="$CAisd/scripts/upload.js"></script>
<script language="JavaScript" src="$CAisd/scripts/cst_catitem.js"></script>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/change_cat.js"></script>
<script language="JavaScript" src="$CAisd/scripts/resultset.js"></script>
<script language="JavaScript" src="$CAisd/scripts/convert_date.js"></script>
<script language="JavaScript" src="$CAisd/scripts/check_submit.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<PDM_IF "$prop.form_name_3" == "ro">
          var lnkid = -1;
          var attdata = new Array();
          var cfgAllowPopupResize = true;
          var useClose = 1;
                var require_rootcause = "$env.NX_REQUIRE_ROOTCAUSE".toUpperCase();
<PDM_IF "$args.rootcause" == "">
if (require_rootcause == "BOTH" || require_rootcause == "CLOSE")
            useClose = 0;
</PDM_IF>
</PDM_IF>
argPersistentID = "$args.persistent_id";
var argCstID = "$cst.id";
if ( ! _browser.supportsLayers )
   document.writeln('<scr' + 'ipt language="JavaScript" src="$CAisd/scripts/spellcheck.js"></scr' + 'ipt>');
function loadActions()
{
<PDM_IF "$prop.form_name_3" == "edit">
     init_properties('cr', document.main_form);
     if ('$args.KEEP.use_kd_values_fromahdtop' == '1' && "0" == "$args.id")
     {
          //This code used when creating a request from a link that was created by the HTML Editor. SDT 32942
          ahdframe.detailExtUpdate (ahdtop.KDValuesToUse);
          ahdtop.KDValuesToUse = null;
     }  
</PDM_IF>      
}    
</SCRIPT>
<PDM_INCLUDE FILE="dyn_properties.htmpl">
<script language="JavaScript" src="$CAisd/scripts/sitemods.js"></script>
</HEAD>
<BODY class=detailro onload="loadActions();">
<PDM_INCLUDE FILE="std_body.htmpl">
<script language="JavaScript">
<!--
     var maxSize=new Array("SET.description","Request Description", $args.LENGTH_description);
//-->
if (typeof ahdtop.checked_knowledge == "boolean"  && ahdtop.checked_knowledge == true)
ahdtop.checked_knowledge = false;
function change_category_func(factory)
{
    sink.show_error("");
    sink.handleEvent();
}
function check_and_save() {
  if ( window.document.forms["main_form"].elements["SET.SET.OPHONE"].value.length > 0 ||
       window.document.forms["main_form"].elements["SET.SET.OEMAIL"].value.length > 0 )
    detailSave();
  else {
    var e = document.getElementById(ophoneID);
    if ( e != null )
      e.focus();
    window.setTimeout("alertmsg(13)",1); // You must provide either a phone number or an email address
  }
}
</script>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<PDM_MACRO NAME=dtlForm factory=cr button=false>
<PDM_IF "$prop.form_name_3" == "edit">
ImgBtnRow();
<PDM_IF  "$prop.guest_user" == 1 && "$args.id" == "0">
ImgBtnCreate("btn001", msgtext(208), "check_and_save()", "defer", 120);
<PDM_ELSE>
ImgBtnCreate("btn001", msgtext(208), "detailSave()", "defer", 120);
</PDM_IF>
ImgBtnCreate("btn002", msgtext(209), "cancel_update('$prop.form_name_2','$args.id','', 'home.htmpl')", "defer", 120);
ImgBtnCreate("btn003", msgtext(400), "check_reset()", "defer", 120);
var query_str = cfgCgi + "?SID=$prop.SID+FID=$prop.FID" +
          "+OP=CREATE_NEW+FACTORY=attmnt+KEEP.attmnt_for_edit=1+attmnt_parent=cr";
ImgBtnCreate("btn004", msgtext(448), "popupWithURL('" + query_str + "', 1)", "defer", 0);
ImgBtnEndRow();     
<PDM_ELSE>
ImgBtnRow();
<PDM_IF "$ACCESS.call_mgr" \> 1>
    <PDM_IF "$args.active" == "1" && "$args.status" != "CLREQ" &&  "$args.status" != "CL">
        <PDM_IF "$prop.guest_user" != 1>
                         <!-- ImgBtnCreate("btn001", msgtext(504), "pdm_submit('main_form','UPDATE')", "defer", 0); -->
        </PDM_IF>
                         ImgBtnCreate("btn002", msgtext(505), "add_activity_log('$args.persistent_id', true)", "defer", 0);
                         var query_str = cfgCgi + "?SID=$prop.SID+FID=$prop.FID" +
                                   "+OP=CREATE_NEW+FACTORY=attmnt+NEXT_PERSID=$args.persistent_id" +
                                   "+attmnt_parent=cr";
                         ImgBtnCreate("btn004", msgtext(448), "browseWithURL('" + query_str + "')", "defer", 0);
        <PDM_IF "$prop.guest_user" != 1>
                         function close_request()
                         {
                              var query_str = cfgCgi +
                                                  "?SID=" + cfgSID +
                                                  "+FID=" + fid_generator() +
                                                 "+FACTORY=cr" +
                                                  "+PERSID=$args.persistent_id" +
                                                  "+OP=UPDATE" +
                                                  "+AUTO_OVERRIDE_LOCK=true" +
                                                  "+EDIT_HTMPL=request_status_change.htmpl" +
                                                  "+ACTIVITY_LOG_TYPE=ST" +
                                                  "+KEEP.useClose=" + useClose;
<PDM_IF "1" == "${args.KEEP.IsPopUp:0}">
                              query_str += "+KEEP.IsPopUp=1";
</PDM_IF>
                              document.location.href=query_str;
                         }
                         ImgBtnCreate("btn003", msgtext(496), "close_request()", "defer", 0);
        </PDM_IF>
    <PDM_ELSE>
        <PDM_IF "$prop.guest_user" != 1>
              function reopen_request()
              {
                   var query_str = cfgCgi +
                                       "?SID=" + cfgSID +
                                       "+FID=" + fid_generator() +
                                   "+FACTORY=cr" +
                                       "+PERSID=$args.persistent_id" +
                                       "+OP=UPDATE" +
                                       "+AUTO_OVERRIDE_LOCK=true" +
                                       "+EDIT_HTMPL=request_status_change.htmpl" +
                                       "+ACTIVITY_LOG_TYPE=ST";
<PDM_IF "1" == "${args.KEEP.IsPopUp:0}">
                              query_str += "+KEEP.IsPopUp=1";
</PDM_IF>
                   document.location.href=query_str;
              }
              <!-- ImgBtnCreate("btn003",msgtext(498), "reopen_request()", "defer", 0); -->
        </PDM_IF>
    </PDM_IF>
</PDM_IF>
//var url = cfgCgi + "?SID=" + cfgSID + "+FID=" + cfgFID +
//          "+OP=SHOW_DETAIL+PERSID=" + escape("$args.persistent_id");
// ImgBtnCreate("btn005", msgtext(124), "window.location.replace('"+url+"')", "defer", 0);
            ImgBtnEndRow();   
           
</PDM_IF> 
<PDM_MACRO NAME=dtlStart>
</SCRIPT>
<PDM_IF "$prop.form_name_3" == "ro">
<input type=hidden name=AUTO_OVERRIDE_LOCK VALUE=true>
<PDM_ELSE>
     <input type=hidden name=change_category value=0>   
     <INPUT TYPE=hidden NAME=SET.category VALUE="pcat:1152781">
     <INPUT TYPE=hidden NAME=SET.customer VALUE="$cst.id">
     <INPUT TYPE=hidden NAME="NEW_ATTMNTS" ID="NEW_ATTMNTS">    
     <input type="hidden" name="INPUT_FIELDS_TO_PARSE">             
     <PDM_IF $args.id>
     <PDM_ELSE>
     <input type=hidden name=AppendCustInfo value="Yes">
     </PDM_IF>
     <PDM_IF 0>
     <!-- The following PDM_IF block forces the web interface
               to send the customer back to the home page rather than
               the request read-only form.
               If you want to revert back to pre-6.0 behaviour:
           1. Copy this file to $NX_ROOT/site/mods/www/htmpl/web/customer,
           2. Remove the PDM_IF block. -->
     </PDM_IF>
     <PDM_IF "$args.id" == "">
                    <input type="hidden" name="HTMPL" value="home.htmpl">
     </PDM_IF>
</PDM_IF>
<SCRIPT LANGUAGE="JavaScript">
<PDM_IF "$prop.form_name_3" == "ro">
     <PDM_MACRO NAME=dtlStartRow>
     <PDM_MACRO NAME=dtlDate hdr="Open Date/Time" attr="open_date">
     <PDM_MACRO NAME=dtlReadonly hdr=Status attr="status">
     <PDM_MACRO NAME=dtlReadonly hdr=Priority attr="priority">
     <PDM_MACRO NAME=dtlReadonly hdr="Request Area" attr="category">
<PDM_ELSE>
     <PDM_MACRO NAME=dtlStartRow>
     detailRowHdr("Reported by");
     <PDM_IF "$prop.guest_user" == 1>
     detailSetRowData("Guest");
     <PDM_ELSE>
     detailSetRowData("$cst.combo_name");
     detailWriteRow();
     </PDM_IF>
     <PDM_IF "$prop.form_name_3" == "edit" && "$args.id" == "0">
          <PDM_MACRO NAME=dtlStartRow>
          <PDM_IF "$args.SET.OPHONE" == "">
               <PDM_SET args.SET.OPHONE="$cst.phone_number">
          </PDM_IF>
          <PDM_MACRO NAME=dtlTextbox hdr="Phone Number" attr="SET.OPHONE" size=30>  
             var ophoneID = _dtl.currID;
          
          <PDM_IF "$args.SET.OEMAIL" == "">
               <PDM_SET args.SET.OEMAIL="$cst.email_address">          
          </PDM_IF>
          <PDM_MACRO NAME=dtlTextbox hdr="Email Address" attr="SET.OEMAIL" size=30>
     </PDM_IF>
     <PDM_MACRO NAME=dtlStartRow>
     <PDM_IF "$prop.guest_user" == 1>
     get_enum_for_prio("$prop.AnonymousPrio","$args.priority");
     <PDM_ELSE>
     get_enum_for_prio("$prop.EmpPrio","$args.priority")
     </PDM_IF>
     detailDropdown("Priority", "priority","pri", 1, 20,
              true, "", "$args.priority",
                "no", "", "$args.priority",
               "", "", "no", "","None",""              
               <PDM_LIST PREFIX=list WHERE=" " FACTORY=pri>
               
     <PDM_IF "$prop.EmpPrio" : "[$list.sym]" >
     ,<PDM_FMT PAD=NO ESC_STYLE=C>"$list.sym","$list.enum"</PDM_FMT>
     </PDM_IF>
     </PDM_LIST>);
     <PDM_IF "$prop.form_name_3" == "not">
          <PDM_MACRO NAME=dtlHier hdr="Request Area" attr="category" size=30 autofill=no>
          // evt="onChange=\\\"change_category_func()\\\""
          
     </PDM_IF>
</PDM_IF>
<PDM_MACRO NAME=dtlStartRow>
<PDM_MACRO NAME=dtlTextbox hdr="Request Description" attr="description" size=100 colspan=4 rows=6 keeplinks=yes spellchk=yes make_required=yes>
          
<PDM_MACRO NAME=dtlEndTable>
</SCRIPT>
<PDM_IF "$prop.form_name_3" == "ro">
<PDM_IF 0><!-- SDT 21249: Show properties in r/o form --></PDM_IF>
               <p>
                    <table width="90%">
                         <tr><TH ALIGN=left VALIGN=baseline COLSPAN=3 CLASS=detailro>Properties</TH></tr>
                </table>
                    <table width="90%" summary="$args.ref_num Request Detail row 3 - Properties">
                         <tr>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Name</TH>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Value</TH>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Example</TH>
                         </tr>
<PDM_LIST SOURCE=args.properties>
                         <tr>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>$args.properties.label</TD>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>$args.properties.value</TD>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>$args.properties.sample</TD>
                         </tr>
</PDM_LIST>
                    </table>
               </p>
               <p>
                    <table width=90%>
                         <tr>
                              <TH ALIGN=left VALIGN=baseline COLSPAN=4 CLASS=detailro>History</TD>
                         </tr>
                </table>
                    <table width=90% summary="$args.ref_num Request Detail row 4 - History">
                         <tr>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Contact</TH>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Date</TH>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Type</TH>
                              <TH ALIGN=left VALIGN=baseline CLASS=detailro scope=col>Summary</TH>
                         </tr>
<!-- SDT 8275 Different list source depending if login user can see internal logs -->
<PDM_IF $prop.view_internal == 0>
<PDM_LIST SOURCE=args.act_log>
                         <tr>
                              <td CLASS=detailro ALIGN=left VALIGN=top>
<PDM_IF "$args.act_log.type" == "INIT" || "$args.act_log.type" == "LOG" || "$args.act_log.type" == "CL"  || "$args.act_log.type" == "RE">
<PDM_FMT WIDTH=20>$args.act_log.analyst.combo_name</PDM_FMT>
                              </TD>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>
                                   <script>
                                        date_to_string('$args.act_log.time_stamp_INT_DATE', 1);
                                   </script>
                              </TD>
<SCRIPT>
if (("$args.act_log.type.code" == "KTSOLN" || "$args.act_log.type.code" == "KTREJECT") &&
    "$args.act_log.session" != "")
{
    var alghtml = "<TD NOWRAP VALIGN=TOP class=detailro>";
    alghtml += "<A TITLE='Click to display Knowledge document ${$args.act_log.session:}' HREF=\"javascript:popup_window('','SHOW_DETAIL', 0, 0, 'directories=no,location=no,menubar=no,status=no,topsplash=no,menubar=no','PERSID=KD:$args.act_log.session', 'HTMPL=kt_document_view.htmpl', 'opener=simple', 'open_mode=2', 'reload=1', 'SOLUTION_OF=" + escape('$args.persistent_id') + "', 'disable_solution_survey=true', 'TICKET_FACTORY=cr', 'SOLUTION_OF_ID=$args.id')\">\n";
    alghtml += "$args.act_log.type.sym</A></TD>\n";
    document.writeln(alghtml);
}
else
{
    document.writeln("<TD CLASS=detailro ALIGN=left VALIGN=top>$args.act_log.type.sym</TD>");
}
document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
document.write(unescape('<PDM_FMT JUSTIFY=LINE ESC_STYLE=JS2>$args.act_log.description</PDM_FMT>'));
document.writeln("</td>");
</SCRIPT>
                         </tr>
</PDM_IF>
</PDM_LIST>
<PDM_ELSE> <!-- See all logs -->
<PDM_LIST SOURCE=args.act_log_all>
                         <tr>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>
<PDM_FMT WIDTH=20>$args.act_log_all.analyst.combo_name</PDM_FMT>
                              </TD>
                              <TD CLASS=detailro ALIGN=left VALIGN=top>
                                   <script>
                                        date_to_string('$args.act_log_all.time_stamp_INT_DATE', 1);
                                   </script>
                              </TD>
<SCRIPT>
if (("$args.act_log_all.type.code" == "KTSOLN" || "$args.act_log_all.type.code" == "KTREJECT") &&
    "$args.act_log_all.session" != "")
{
    var alghtml = "<TD NOWRAP VALIGN=TOP class=detailro>";
    alghtml += "<A TITLE='Click to display Knowledge document ${$args.act_log_all.session:}' HREF=\"javascript:popup_window('','SHOW_DETAIL', 0, 0, 'directories=no,location=no,menubar=no,status=no,topsplash=no,menubar=no','PERSID=KD:$args.act_log_all.session', 'HTMPL=kt_document_view.htmpl', 'opener=search_tools', 'open_mode=2', 'reload=1', 'SOLUTION_OF=" + escape('$args.persistent_id') + "', 'disable_solution_survey=true', 'TICKET_FACTORY=cr', 'SOLUTION_OF_ID=$args.id')\">\n";
    alghtml += "$args.act_log_all.type.sym</A></TD>\n";
    document.writeln(alghtml);
}
else
{
    document.writeln("<TD CLASS=detailro ALIGN=left VALIGN=top>$args.act_log_all.type.sym</TD>");
}
document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
document.write(unescape('<PDM_FMT JUSTIFY=LINE ESC_STYLE=JS2>$args.act_log_all.description</PDM_FMT>'));
document.writeln("</td>");
</SCRIPT>
                         </tr>
</PDM_LIST>
</PDM_IF>
                    </table>
               </p>
<!-- <PDM_IF $args.attachments.length != 0 >
               <P>
               <TABLE WIDTH=90%>
               <TR>
                   <TH ALIGN=LEFT COLSPAN=4 class=detailro>Attachments</TD>
               </TR>
            </table>
               <TABLE WIDTH=90% summary="$args.ref_num Request Detail row 5 - Attachments">
               <TR>
                   <TH ALIGN=LEFT class=detailro scope=col>Document</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Description</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Attached On</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Status</TD>
               </TR>
               <SCRIPT>
               <PDM_LIST SOURCE=args.attachments>
                   attdata[++lnkid] = new Object();
                   attdata[lnkid].id = "$args.attachments.id";
                   attdata[lnkid].attmnt_name = unescape('<PDM_FMT ESC_STYLE=JS2>$args.attachments.attmnt_name</PDM_FMT>');
                   attdata[lnkid].orig_file_name = unescape('<PDM_FMT ESC_STYLE=JS2>$args.attachments.orig_file_name</PDM_FMT>');
                   attdata[lnkid].status = "$args.attachments.status";
               <PDM_IF "$args.attachments.link_only" != "1">
                   attdata[lnkid].cgi_path ="$args.attachments.repository.servlet_path";
                   attdata[lnkid].protocol = "servlet";
                   attdata[lnkid].server = "$args.attachments.repository.server";
                   attdata[lnkid].retrieve_path = "$args.attachments.repository.retrieve_path";
                   attdata[lnkid].file_name = "$args.attachments.file_name";
               </PDM_IF>
               document.writeln("<TR>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
                   var link = "<A HREF=\"javascript:download_exec(attdata[" + lnkid + "])\">";
                   document.write(link + '<PDM_FMT esc_style=c><PDM_FMT JUSTIFY=TRUNCATE WIDTH=40>$args.attachments.attmnt_name</PDM_FMT></PDM_FMT></A>');
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               document.write(unescape('<PDM_FMT JUSTIFY=TRUNCATE WIDTH=40 ESC_STYLE=JS2>$args.attachments.description</PDM_FMT>'));
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               document.write(date_to_string('$args.attachments.created_dt_INT_DATE', 0));
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               if ( "$args.attachments.status" == "INSTALLED" )
                   document.write("Installed");
               else if ( "$args.attachments.status" == "LINK_ONLY" )
                   document.write("Link Only");
               else if ( "$args.attachments.status" == "NOTINSTALLED" )
                   document.write("Not Installed");
               document.writeln("</TD>");
               document.writeln("</TR>");
               </PDM_LIST>
               </SCRIPT>
               </TABLE>
               </P>
</PDM_IF>          -->
<PDM_ELSE>
<!-- The properties for the EDIt form begins here  -->
<PDM_IF "" != "$args.prop0.id">
                    <table id="tblProperties">
<PDM_ELSE>
                    <table id="tblProperties" style="display: none;">
</PDM_IF>
                         <tr>
                              <th id="CatLabel">
                              </th>
                         </tr>
                    </table>
<script type="text/javascript">
if ( _browser.supportsLayers ) {
     document.writeln("<layer " +
                         "id='prop_layer' " +
                         "left='" + String(document.anchors["prop_anchor"].x) + "' " +
                         "top='" + String(document.anchors["prop_anchor"].y) + "' " +
                         "height='1400'>");
          document.writeln('<form name="prop_form">');
               document.writeln('<table border=0>');
/* Has to cover 22 properties. */
<PDM_IF "" != "$args.prop0.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop0.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop0.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop0.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop0.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop0.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop0.value' id='SET.prop0.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop0.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop1.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop1.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop1.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop1.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop1.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop1.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop1.value' id='SET.prop1.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop1.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop2.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop2.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop2.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop2.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop2.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop2.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                    document.writeln("<input name='SET.prop2.value' id='SET.prop2.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop2.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop3.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop3.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop3.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop3.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop3.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop3.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop3.value' id='SET.prop3.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop3.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop4.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop4.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop4.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop4.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop4.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop4.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop4.value' id='SET.prop4.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop4.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop5.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop5.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop5.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop5.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop5.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop5.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop5.value' id='SET.prop5.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop5.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop6.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop6.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop6.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop6.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop6.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop6.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop6.value' id='SET.prop6.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop6.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop7.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop7.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop7.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop7.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop7.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop7.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop7.value' id='SET.prop7.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop7.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop8.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop8.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop8.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop8.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop8.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop8.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop8.value' id='SET.prop8.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop8.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop9.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
     <PDM_IF 0 != $args.prop9.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop9.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop9.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop9.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop9.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop9.value' id='SET.prop9.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop9.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop10.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop10.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop10.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop10.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop10.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop10.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop10.value' id='SET.prop10.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop10.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
<PDM_IF "" != "$args.prop11.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop11.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop11.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop11.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop11.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop11.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop11.value' id='SET.prop11.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop11.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop12.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop12.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop12.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop12.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop12.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop12.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop12.value' id='SET.prop12.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop12.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
<PDM_IF "" != "$args.prop13.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop13.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop13.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop13.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop13.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop13.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop13.value' id='SET.prop13.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop13.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop14.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop14.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop14.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop14.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop14.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop14.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop14.value' id='SET.prop14.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop14.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop15.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop15.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop15.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop15.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop15.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop15.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop15.value' id='SET.prop15.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop15.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
<PDM_IF "" != "$args.prop16.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop16.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop16.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop16.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop16.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop16.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop16.value' id='SET.prop16.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop16.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop17.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop17.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop17.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop17.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop17.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop17.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop17.value' id='SET.prop17.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop17.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop18.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop18.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop18.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop18.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop18.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop18.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop18.value' id='SET.prop18.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop18.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
<PDM_IF "" != "$args.prop19.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop19.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop19.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop19.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop19.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop19.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop19.value' id='SET.prop19.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop19.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop20.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop20.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop20.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop20.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop20.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop20.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop20.value' id='SET.prop20.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop20.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF "" != "$args.prop21.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop21.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop21.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop21.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop21.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop21.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop21.value' id='SET.prop21.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop21.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
<PDM_IF "" != "$args.prop22.id">
                    document.writeln('<tr>');
                         document.writeln('<td valign=top>');
    <PDM_IF 0 != $args.prop22.required>
                              document.writeln('<span class=requiredlabeltext><label for="SET.prop22.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop22.label"</PDM_FMT> + cfgIndRequired + '</label></span>');
     <PDM_ELSE>
                              document.writeln('<span class=labeltext><label for="SET.prop22.value">' + <PDM_FMT ESC_STYLE=C>"$args.prop22.label"</PDM_FMT> + '</label></span>');
     </PDM_IF>   
                         document.writeln('</td>');
                         document.writeln('<td valign=top>');
                         document.writeln("<input name='SET.prop22.value' id='SET.prop22.value' tabindex=" + _dtl.tabIndex + " value='" + <PDM_FMT ESC_STYLE=C>'$args.prop22.value'</PDM_FMT> + "'>");
                         document.writeln('</td>');
                    document.writeln('</tr>');
<PDM_IF 0><!-- Prop22 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop21 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop20 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop19 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop18 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop17 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop16 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop15 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop14 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop13 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop12 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop11 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop10 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop9 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop8 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop7 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop6 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop5 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop4 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop3 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop2 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop1 --></PDM_IF></PDM_IF>
<PDM_IF 0><!-- Prop0 --></PDM_IF></PDM_IF>
               document.writeln('</table>');
          document.writeln('</form>');
     document.writeln('</layer>');
<PDM_IF 0><!-- Properties for NS4 --></PDM_IF>
}
</script>                 
</PDM_IF>
<PDM_MACRO NAME=dtlEnd>
</CENTER>
<PDM_INCLUDE FILE=std_footer.htmpl>
</BODY>
</HTML>
<PDM_WSP>
home.htmpl
<PDM_IF 0>
////////////////////////////////////////////////////////////////////////////
//         Copyright (C) 2002 Computer Associates International, Inc
// as an unpublished work. This notice does not imply unrestricted or public
// access to these materials which are a trade secret of Computer Associates
// International or its subsidiaries or affiliates (together referred to as
// CA), and which may not be reproduced, used, sold or
// transferred to any third party without CA's prior written consent.
//
//                         All Rights Reserved.
//
//                       RESTRICTED RIGHTS LEGEND
// Use, duplication, or disclosure by the Government is subject to
// restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
// Technical Data and Computer Software clause at DFARS 252.227-7013.
////////////////////////////////////////////////////////////////////////////
// Module:  employee/home.htmpl
// Created: 08/09/02
////////////////////////////////////////////////////////////////////////////
// Description:
//
//   This is the default page that get loaded into the employee interface.
//   It should contain a means of navigating to the various features
//   that are accessible by internal employees.
////////////////////////////////////////////////////////////////////////////
// $Id: home.htmpl,v 1.122 2006/04/18 00:25:38 tooda01 Exp $
//

</PDM_IF>
<PDM_PRAGMA RELEASE=110>
<pdm_wsp preview="OP=menu">
<html lang="en">     <HEAD>
<script>var form_title = "$ProductName";</script>
<PDM_INCLUDE FILE="std_head.htmpl">
          <script language="JavaScript" src="$CAisd/scripts/cst_fldrtree.js"></script>          
          <script>
          function has_knowledge_been_checked()
          {
          if(ahdtop.checked_knowledge == false)
          prompt_for_knowledge();
          else
          prompt_for_knowledge_backfill();
          }

               function Cnote(date, text,type) { this.date = date; this.text = text; this.type=type; }
               var arr_cnote = new Array();
<PDM_IF "$prop.guest_user" != 1>
//Employee User
     <PDM_IF $cst.location == "" && $cst.organization == "" >
          <PDM_IF $prop.view_internal == 1>
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND (organization IS NULL AND location IS NULL)" domset=cnote_list_desc_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>
          <PDM_ELSE>
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND (organization IS NULL AND location IS NULL)" domset=cnote_list_desc_excludeinternal_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>
          </PDM_IF>
     <PDM_ELIF $cst.location == "" && $cst.organization != "" >
          <PDM_IF $prop.view_internal == 1>   
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((organization = U'$cst.organization') OR (organization IS NULL AND location IS NULL))" domset=cnote_list_desc_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>          
          <PDM_ELSE>
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((organization = U'$cst.organization') OR (organization IS NULL AND location IS NULL))" domset=cnote_list_desc_excludeinternal_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>
          </PDM_IF>
     <PDM_ELIF $cst.location != "" && $cst.organization == "" >
          <PDM_IF $prop.view_internal == 1>   
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((location = U'$cst.location') OR (organization IS NULL AND location IS NULL))" domset=cnote_list_desc_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>          
          <PDM_ELSE>
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((location = U'$cst.location') OR (organization IS NULL AND location IS NULL))" domset=cnote_list_desc_excludeinternal_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>
          </PDM_IF>
     <PDM_ELSE>

          <PDM_IF $prop.view_internal == 1>   
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((location IS NULL OR location = U'$cst.location') AND (organization IS NULL OR organization = U'$cst.organization'))" domset=cnote_list_desc_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>          
          <PDM_ELSE>
               <PDM_LIST prefix=list factory=cnote LENGTH=5 where="active=1 AND ((location IS NULL OR location = U'$cst.location') AND (organization IS NULL OR organization = U'$cst.organization'))" domset=cnote_list_desc_excludeinternal_static ESC_STYLE=JS2>
                    arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
               </PDM_LIST>
          </PDM_IF>
     </PDM_IF>             
<PDM_ELSE>
// Guest User
     <PDM_LIST PREFIX=list FACTORY=cnote LENGTH=5 WHERE="active=1 AND (organization IS NULL AND location IS NULL)" DOMSET=cnote_list_desc_excludeinternal_static ESC_STYLE=JS2>
          arr_cnote[arr_cnote.length] = new Cnote("$list.posted_date", unescape("$list.text"),"$list.cnote_type");
     </PDM_LIST>
</PDM_IF>           

            /* Init announcements should determine the height of the announcements table cell
             * and set the div height to be EXACTLY that.
             * Then
             */
            function ResizeCnoteCells()
            {
                var cell = document.getElementById("idCnoteCell");
                var div = document.getElementById("idCnoteDiv");
                var head = document.getElementById("idCnoteHead");
                var body = document.getElementById("idCnoteBody");
                //var tail = document.getElementById("idCnoteTail");
               
                // Commented out - We want the "Announcements and Top Solutions" section to have as much room as necessary
                //body.style.height = String(cell.offsetHeight - head.offsetHeight /*- tail.offsetHeight*/) + "px";
                //div.style.height = String(cell.offsetHeight) + "px";
            }
           
            function InitAnnouncements()
            {
                ResizeCnoteCells();
                var body = document.getElementById("idCnoteBody");

                for (var i = 0; i < arr_cnote.length; i++)
                {
                    var p = document.createElement("p");
                    p.style.fontSize = "0.8em";
                    var dateText = arr_cnote[i].date;
                    if (arr_cnote[i].type == 1) {
                       p.className = "advisory";
                       dateText += ahdtop.cfgIndAdvisory;
                    }
                    else if (arr_cnote[i].type == 2) {
                       p.className = "emergency";
                       dateText += ahdtop.cfgIndEmergency;
                    }
                    var b = document.createElement("b");
       
                    b.appendChild(document.createTextNode(dateText));
                    p.appendChild(b);
                    p.appendChild(document.createElement("br"));

                    var exp = new RegExp(".*", "g");
                    exp.multiline = true;
                    var result = arr_cnote[i].text.match(exp);
                    for (var j = 0; j < result.length; j++)
                    {
                        if (result[j].length > 0)
                        {
                            if (j > 0)
                                p.appendChild(document.createElement("br"));
                            if (result[j].match(/<*>/i))
                            {
                                var span = document.createElement("span");
                                span.innerHTML = result[j];
                                p.appendChild(span);
                            }
                            else
                                p.appendChild(document.createTextNode(result[j]));
                        }
                    }

                    body.appendChild(p);
                }
                var e = document.getElementById("ebrsearch");
                if ( e != null )
                  e.focus();
               }
               
               
               
               /////////////////////////////////////////////////////////////////////
               // FUNCTION do_soln_search_from_button
               //        Perform a keyword search by hitting the GO button
               /////////////////////////////////////////////////////////////////////
               function do_soln_search_from_button()
               {
                    var keywordForm = document.forms['keywordSearch'];
                    var ebr_search_text = keywordForm.elements["QBE.IN.ebr_search_text"].value;
                    
                    if (ebr_search_text.length == 0) {
                    // Force the user to enter something
                         alertmsg(724);
                         return false;                       
                    }
                    else {
                         keywordForm.elements["DOMSET"].value = "KD_list_ebr_RELEVANCE";
                         keywordForm.elements["KEEP.cur_sort_key"].disabled = true;
                         keywordForm.elements["QBE.IN.ebr_search_text"].value = ebr_search_text;
                         keywordForm.elements["KEEP.categoryID"].value = "-1";
                         keywordForm.elements["KEEP.relationalID"].value = "1";
                         keywordForm.elements["KEEP.categoryPath"].value = "All";
                         
                         submit_keywordSearch_form();
                    }                                                                                                                                                               
                              
               }
               
               
               /////////////////////////////////////////////////////////////////////
               // FUNCTION do_soln_search
               //        Perform a keyword search
               /////////////////////////////////////////////////////////////////////
               function do_soln_search()
               {
                    var keywordForm = document.forms['keywordSearch'];
                    var ebr_search_text = keywordForm.elements["QBE.IN.ebr_search_text"].value;
                    
                    if (ebr_search_text.length == 0) {
                         <PDM_IF "$env.NX_KT" == "Yes">         
                              keywordForm.elements["DOMSET"].value = "KD_list_web_BU_RESULT_DESC";
                              keywordForm.elements["KEEP.initial_ebr"].value = "0";
                              
                              var addlWhere = "ACTIVE_STATE=0";//Since we do not want to fire index_doc)links query when selecting KDs under top
                              keywordForm.elements["ADDITIONAL_WHERE"].value = addlWhere;                         
                              keywordForm.elements["KEEP.categoryID"].value = "1";
                              
                              // Disable ebr-related fields if we are not executing an ebr search
                              for ( i = keywordForm.elements.length - 1; i > 0; i-- ) {
                                   var e = keywordForm.elements[i];
                                   if ( e.name.match(/ebr_/)) {
                                        e.disabled = true;
                                   }
                              }
                              
                              keywordForm.elements["KEEP.relationalID"].value = "1";
                              keywordForm.elements["KEEP.categoryPath"].value = "All";
                         </PDM_IF>                       
                    }
                    else {
                         keywordForm.elements["DOMSET"].value = "KD_list_ebr_RELEVANCE";
                         keywordForm.elements["KEEP.cur_sort_key"].disabled = true;
                         keywordForm.elements["QBE.IN.ebr_search_text"].value = ebr_search_text;
                         keywordForm.elements["KEEP.categoryID"].value = "-1";
                         keywordForm.elements["KEEP.relationalID"].value = "1";
                         keywordForm.elements["KEEP.categoryPath"].value = "All";
                    }                                                                                                                                      
                                        
                    submit_keywordSearch_form();
               }
               
               function OpenDocumentViewer(doc_id)
               {
                    // Open document in the main screen
                    var fid = fid_generator();
                    var url = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid + "+OP=SHOW_DETAIL+PERSID=KD:" + doc_id + "+HTMPL=kt_document_view.htmpl+opener=simple+open_mode=0+KEEP.SCROLLING=1";
                    url += "+KEEP.DOMSET=KD_list_web_BU_RESULT_DESC";
                    url += "+KEEP.cur_sort_key=BU_RESULT";
                    url += "+KEEP.initial_ebr=0";
                    document.location.href = url;    
               }
               
               function viewBookmarks() {
                    var form = document.forms["keywordSearch"];
                    form.elements["DOMSET"].value = "KD_list_web_BU_RESULT_DESC";
                    form.elements["KEEP.initial_ebr"].value = "0";
                    form.elements["KEEP.from_bookmark"].value = "1";
                    form.elements["ADDITIONAL_WHERE"].value = "BM_LINKS.USER_ID=U'$cst.id' and ACTIVE_STATE=0";
                    
                    // Disable ebr-related fields if we are not executing an ebr search
                    for ( i = form.elements.length - 1; i > 0; i-- ) {
                         var e = form.elements[i];
                         if ( e.name.match(/ebr_/)) {
                              e.disabled = true;
                         }
                    }
                    
                    submit_keywordSearch_form();
               }
               
               function submit_keywordSearch_form() {
                    var fid = fid_generator();
                    var url = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid;
                    var form = document.forms["keywordSearch"];
                    for (var i=0; i < form.elements.length; i++)
                    {
                         var element = form.elements[i];
                         if (!element.disabled)
                         {
                              var name = element.name;
                              var value = element.value;
                              url += "+" + name + "=" + escape(value);
                         }
                         else if (element.name == "QBE.IN.ebr_search_text")
                         {
                              element.disabled = false;
                         }
                    }
                    document.location.href = url;    
               }              
          </script>
          <script language="JavaScript" src="$CAisd/scripts/sitemods.js"></script>
     </head>
     
     <body class=emp style="font-size:0.8em;" onunload="return close_knowledge_window();">
<PDM_INCLUDE FILE="std_body.htmpl">
<br>   
<table width="100%" border=0 cellpadding=5>
     <col>
     <col style="width: 10px;">
     <col>
     <tr>
          <td width="50%" height="100%" valign=top>
                              <table width="100%" cellpadding=0 cellspacing=0 border=0>
                                   <tr>
                                        <td>
                                             <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                                  <tr>
                                                            <td width='4' height='22' class="hdrLeft"><img alt='' src='/CAisd/img/spacer.png'width='4' height='22'></td>
                                                       <td class="hdrCenter"><h2 class='page_section_header_text'>Search for a Solution</h2></td>
                                                            <td width='4' height='22' class="hdrRight"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                                  </tr>
                                               </table>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td class=page_section>                                                                                        
                                             <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                                <tr>
                                                       <td style="padding-left: 15px;">
                                                       <span style="font-size:0.8em;">
                                             <b><label for="ebrsearch">Search for a solution using keywords</label>:</b><br>
                                             </span>   
                                                       </td>
                                                  </tr>
                                             </table>                                 
<PDM_FORM name="keywordSearch" onsubmit="do_soln_search_from_button(); return false;">                                         
                                             <nobr>
                                                  <input type="hidden" name="OP" value="SEARCH">
                                                  <input type="hidden" name="FACTORY" value="KD">
                                                  <input type="hidden" name="HTMPL" value="list_KD.htmpl">
                                                  <input type="hidden" name="DOMSET" value="">
                                                  <input type="hidden" name="ADDITIONAL_WHERE" value="ACTIVE_STATE=0">
                                                  
                                                  <PDM_IF "$prop.EBR_SEARCH_DEF_MODE" == "1">
                                                       <input type="hidden" name="QBE.EQ.ebr_search_type" value="NLS">
                                                  <PDM_ELSE>                   
                                                       <input type="hidden" name="QBE.EQ.ebr_search_type" value="KEYWORDS">
                                                  </PDM_IF>
                                                  
                                                  <PDM_IF "$prop.EBR_SEARCH_OR_AND_EXACT" == "2">
                                                       <input type="hidden" name="QBE.EQ.ebr_match_type" value="ALL">
                                                  <PDM_ELIF "$prop.EBR_SEARCH_OR_AND_EXACT" == "3">
                                                       <input type="hidden" name="QBE.EQ.ebr_match_type" value="EXACT">
                                                  <PDM_ELSE>
                                                       <input type="hidden" name="QBE.EQ.ebr_match_type" value="ANY">
                                                  </PDM_IF>
                                                  
                                                  <input type="hidden" name="QBE.EQ.ebr_search_in" value="$prop.EBR_SEARCH_FIELDS">
                                                  <input type="hidden" name="QBE.EQ.ebr_fuzziness" value="MINI">
                                                  <input type="hidden" name="QBE.EQ.ebr_order" value="RELEVANCE">
                                                  <input type="hidden" name="QBE.EQ.ebr_primary_order" value="RELEVANCE">
                                                  <input type="hidden" name="QBE.EQ.ebr_order_direction" value="DESC">
                                                  <input type="hidden" name="KEEP.cur_sort_key" value="BU_RESULT">
                                                  <input type="hidden" name="KEEP.categoryRadio" value="checked">
                                                  <input type="hidden" name="KEEP.categoryID" value="-1">
                                                  <input type="hidden" name="KEEP.relationalID" value="1">
                                                  <input type="hidden" name="KEEP.categoryPath" value="All">                                            
                                                  <input type="hidden" name="KEEP.initial_ebr" value="1">
                                                  <input type="hidden" name="KEEP.resume_ticket" value="0">
                                                  <input type="hidden" name="KEEP.from_bookmark" value="0">
                                                  <BR>
                                                  <TABLE>
                                                  <TR>
                                                  <TD></TD><TD></TD><TD></TD>
                                                  <TD>
                                                  <input type="text" size=35 id="ebrsearch" name="QBE.IN.ebr_search_text"onfocus="this.className='focusField';" onblur="this.className='';">
                                                  <PDM_IF "$env.NX_SUPPRESS_FAQ_COUNT_CST_EMP_UI" == "0">
                                                       <input type="hidden" value="0" name="NO_COUNT">
                                                  <PDM_ELSE>
                                                       <input type="hidden" value="1" name="NO_COUNT">
                                                  </PDM_IF>                                                                                                                 
                              
                                                  </TD>
                                                  <TD>
                                                       <SCRIPT>
                                                            ImgBtnCreate("btn1", msgtext(486), "javascript:do_soln_search_from_button();",true,0,"Go search for a solution using keywords");
                                                       </SCRIPT>
                                                  </TD>
                                                  </TR>
                                                  </TABLE>
                                             </nobr>
                                             
</PDM_FORM>                                                                                                           
<PDM_IF "$env.NX_KT" == "Yes" && "$prop.guest_user" != 1>
                                   <table width="100%" cellpadding=0 cellspacing=0 border=0>  
                                   <td style="padding-left: 15px;">                                  
                                   <SCRIPT LANGUAGE="Javascript">                           
                                        // Do not display a link to view Bookmarks unless the user has permissions to add bookmarks
                                        if (ahdtop.CanUserPerformAction("ROLE_BOOKMARKS")) {                                            
                                             document.writeln("<a class=emp href='javascript:viewBookmarks()'>My Bookmarks</a><br>");
                                        
                                        }
                                   </SCRIPT>
                                   </TD>
                                   </TABLE>
</PDM_IF>
<PDM_IF "$prop.guest_user" != 1>
                                   <table width="100%" cellpadding=0 cellspacing=0 border=0>  
                                   <td style="padding-left: 15px;">
                                   <SCRIPT LANGUAGE="Javascript">
                                        // Do not display a link to submit knowledge unless the user has the proper permissions
                                        if (ahdtop.CanUserPerformAction("ROLE_SUBMIT_KNOWLEDGE")) {

                                             // Dont show the attachment field if the user does not have the proper permission
                                             if (ahdtop.CanUserPerformAction("ROLE_SUBMIT_KNOWLEDGE_ATTACHMENTS")){
                                                  var iCanAttach = 1;                                     
                                             }
                                             else{
                                                  var iCanAttach = 0;
                                             }
                                             document.writeln("<a class=emp href='" + cfgCgi + "?SID=" + cfgSID + "+FID=" + cfgFID + "+OP=CREATE_NEW+FACTORY=KD+KEEP.ATTACHMENT=" + iCanAttach + "'>Submit Knowledge</a>");                      
               
                                        }
                                   </SCRIPT>
                                   </TD>
                                   </TABLE>
</PDM_IF>
                                   </td>
                                   </tr>
<PDM_IF "$env.NX_SD" != "Yes">
                                   <tr>
                                        <td class=page_section>
                                             <table border=0 cellspacing=0 cellpadding=0 width="100%">
                                                  <tr>
                                                       <th class=emp style="padding: 2px 5px 2px 5px;">
                                                            Top Solutions
                                                            &nbsp;&nbsp;
                                                            <b>(</b><a
href="javascript:document.forms['keywordSearch'].elements['QBE.IN.ebr_search_text'].value='';do_soln_search();"
                                                                    class=emp style='font- size:1.0em;'                                               
                                                                      onmouseover="window.status = 'Browse more solutions';"
                                                                      onmouseout="window.status = window.defaultStatus;">Browse more
solutions</a><b>)</b>
                                                       </th>
                                                  </tr>
                                             </table>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td class=page_section>
                                             <PDM_IF "$args.FAQIDs" != "">
                                             <table border=0 cellspacing=0 cellpadding=3 width="100%" class="table">       
                                                  <PDM_LIST PREFIX=list LENGTH=$prop.TOP_SOLUTION_COUNT WHERE="id in ($args.FAQIDs)" ORDER_BY="BU_RESULT DESC, MODIFY_DATE DESC" FACTORY="KD">
                                                       <tr CLASS="results0">
                                                            <td>
                                                                 <div style="padding-left: 15px; padding-right: 5px;">
                                                                      <a class=emp style='font-size:1.0em;' href="javascript:OpenDocumentViewer('$list.id')">
                                                                           <PDM_FMT JUSTIFY=TRUNCATE WIDTH=80 ESC_STYLE=NONE disp_entities="yes">$list.TITLE</PDM_FMT>
                                                                      </a>
                                                                 </div>
                                                            </td>
                                                       </tr>
                                                  </PDM_LIST>
                                             </table>
                                             </PDM_IF>
                                        </td>
                                   </tr>
</PDM_IF>                                      
                    <PDM_IF "$env.NX_KT" == "Yes">
                    <tr>
                         <td>                            
                        <br>
                              <table border=0 cellspacing=0 cellpadding=0 width="100%">
                                   <tr>
                                        <td width='4' height='22' class="hdrLeft"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                        <td class="hdrCenter"><h2 class='page_section_header_text'>Top Solutions</he></td>
                                        <td width='4' height='22' class="hdrRight"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                   </tr>
                              </table>                            
                         </td>
                    </tr>
                    <tr>
                         <td class=page_section valign=top height="100%">
                              <table border=0 cellspacing=1 cellpadding=3 width="100%" class=table>
                                   <tr class="results1">
                                        <td>                                 
                                                  <div id="idTop" align=right>
                                                  <b>(</b><a href="javascript:document.forms['keywordSearch'].elements['QBE.IN.ebr_search_text'].value='';do_soln_search();"
                                                            class=emp style='font- size:1.0em;'                                                  
                                                            onmouseover="window.status = 'Browse more solutions';"
                                                            onmouseout="window.status = window.defaultStatus;">Browse more
solutions</a><b>)</b>
                                                  </div>
                                        </td>
                                   </tr>
                                        <PDM_IF "$args.FAQIDs" != "">
                                             <PDM_LIST PREFIX=list LENGTH=$prop.TOP_SOLUTION_COUNT WHERE="id in ($args.FAQIDs)" ORDER_BY="BU_RESULT DESC, MODIFY_DATE DESC" FACTORY="KD">
                                             <tr class="results1">
                                                  <td>
                                                       <div style="padding-left: 15px; padding-right: 5px;">
                                                            <a class=emp style='font-size:1.0em;' href="javascript:OpenDocumentViewer('$list.id')">
                                                                 <PDM_FMT JUSTIFY=TRUNCATE WIDTH=80 ESC_STYLE=NONE disp_entities="yes">$list.TITLE</PDM_FMT>
                                                            </a>
                                                       </div>
                                                  </td>
                                             </tr>
                                             </PDM_LIST>
                                        </PDM_IF>
                              </table>
                         </td>
                    </tr>   
                    </PDM_IF>
               </table>
          </td>
<PDM_IF "$env.NX_SD" == "Yes">    
          <td class=emp width="10px"></td>
          <td class=emp valign=top height="100%">
               <table border=0 width="100%" height="100%" cellpadding=0 cellspacing=0>
<PDM_IF "$env.NX_SD" == "Yes">
                    <tr>
                         <td>                                      
                              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                        <tr>
                                            <td width='4' height='22' class="hdrLeft"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                            <td class="hdrCenter"><h2 class='page_section_header_text'>Incident Support</h2></td>
                                            <td width='4' height='22' class="hdrRight"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                        </tr>
                                   </table>
                         </td>                                                    
                    </tr>
                    <tr>
                         <td class=page_section>
                                   <table width="100%" cellpadding=0 cellspacing=0 border=0>
                                   
<PDM_IF "${args.ref_num:}" != "">
                                   <tr>
                                        <td style="padding-left: 15px;">
<PDM_LINK OP="SHOW_DETAIL"
            PERSID="$args.persistent_id"
            onmouseover="window.status = 'View Incident #$args.ref_num'; return true;"
            onmouseout="window.status = window.defaultStatus; return true;">
          <span class=alertmsg style="font-size:0.8em;">Incident $args.ref_num created. Click here to view.</span></PDM_LINK>
                                        </td>
                                   </tr>
<PDM_ELIF "${args.chg_ref_num:}" != "">
                                   <tr>
                                        <td style="padding-left: 15px;">
<PDM_LINK OP="SHOW_DETAIL"
            PERSID="$args.persistent_id"
            onmouseover="window.status = 'View Change Order #$args.chg_ref_num'; return true;"
            onmouseout="window.status = window.defaultStatus; return true;">
          <span class=alertmsg style="font-size:0.8em;">Change Order $args.chg_ref_num created. Click here to view.</span></PDM_LINK>
                                        </td>
                                   </tr>                                 
</PDM_IF>
                                   <tr>
                                        <td style="padding-left: 15px;">
<PDM_FORM class=emp name="frmOpenNew">
                                                  <input type="hidden" name="OP" value="CREATE_NEW">
                                                  <input type="hidden" name="FACTORY" value="cr">
                                                  <input type="hidden" name="CREATE_ALG" value="LOG">
                                                  <input type="hidden" name="ALG_PRESET" value="description">
                                                  <a href="javascript: has_knowledge_been_checked();"
                                                     class=emp style="font-size:0.8em;"
                                                     onmouseover="window.status = 'Create a new Incident'; return true;"
                                                     onmouseout="window.status = window.defaultStatus; return true;">Create a new Incident</a>
</form>
                                        </td>
                                   </tr>
<PDM_IF "$ACCESS.change_mgr" \> 1>     
     <tr>
     <td style="padding-left: 15px;">
         <PDM_LINK OP=CREATE_NEW FACTORY=chg class=emp style="font-size:0.9em;" onmouseover="window.status = 'Create a new Change Order'; return true;" onmouseout="window.status = window.defaultStatus; return true;">Create a new Change Order</PDM_LINK>
     </td>
     </tr>
</PDM_IF>

                                   <tr>
                                             <td style="padding-left: 15px;">
<PDM_LINK OP="JUST_GRONK_IT"
       HTMPL="about.htmpl"
       class=emp style="font-size:0.9em;"
       onmouseover="window.status = 'About'; return true;"
       onmouseout="window.status = window.defaultStatus; return true;">Service Desk contact information and hours of operation</PDM_LINK>
                                        </td>
                                   </tr>
                              </table>
                         </td>
                    </tr>
</PDM_IF>                  
<PDM_IF "$prop.guest_user" != "1" && "$env.NX_SD" == "Yes">
                    
                    <tr>
                     <td>
                        <br>
                              <table width="100%" cellpadding=0 cellspacing=0 border=0>
                                   <tr>
                                        <td>                                      
                                             <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                                  <tr>
                                                            <td width='4' height='22' class="hdrLeft"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                                       <td class="hdrCenter"><h2 class='page_section_header_text'>Look up my existing Incidents</h2></td>
                                                            <td width='4' height='22' class="hdrRight"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                                  </tr>
                                               </table>
                                        </td>                                                    
                                   </tr>
                                   <tr>
                                        <td class=page_section>
                                             <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                                <tr>
                                                       <td style="padding-left: 15px;">
<PDM_SCOREBOARD>
                                                       </td>
                                                  </tr>
                                             </table>
                                             <table border=0 width="100%" cellpadding=5 cellspacing=0>
                                                  <tr>
                                                       <td COLSPAN=2 style="padding-left: 15px;">
                                                            <span style="font-size:0.8em;">
                                                            <b>OR - If you know the number, please enter:</b>
                                                            </span>
                                                       </td>
                                                  </tr>
                                                  <tr>
                                                       <td style="padding-left: 15px;">
                                                            <span style="font-size:0.8em;">
                                                            <b>A incident number:</b>
                                                            </span>
<PDM_FORM class=emp name="frmSearch" onsubmit="return doSearch();">
                                                  <input type="hidden" name="OP" value="SEARCH">
                                                  <input type="hidden" name="FACTORY" value="cr">
                                                  <input type="hidden" name="SKIPLIST" value="1">
                                                  <input type="hidden" name="QBE.EQ.customer" value="$cst.id">
                                                  <input type="hidden" name="QBE.EQ.ref_num" value="">
                                                  <nobr>
                                                  <TABLE>
                                                  <TR>
                                                  <TD>
                                                  <input type="text" id="crnum" name="number" title="Incident Number" onfocus="this.className='focusField';" onblur="this.className='';">
                                                  </TD>
                                                  <TD>
                                                       <SCRIPT>
                                                            ImgBtnCreate("btn2", msgtext(486), "javascript: (doSearch() == true ? document.forms['frmSearch'].submit() : void(0))",true,0,"Go display specified incident");
                                                       </SCRIPT>
                                                  </TD>
                                                  </TR>
                                                  </TABLE>
                                                  </nobr>
</PDM_FORM>
                                                       </td>
<!--                                             <script language="JavaScript">
                                                  if ( _browser.supportsLayers )
                                                  document.writeln("</tr><tr>");
                                             </script>
                                                       <td>
                                                       <span style="font-size:0.8em;">
                                                       <b>OR a change order number:</b>
                                                       </span>
<PDM_FORM class=emp name="frmSearchChg" onsubmit="return doSearchChg();">
                                                  <input type="hidden" name="OP" value="SEARCH">
                                                  <input type="hidden" name="FACTORY" value="chg">
                                                  <input type="hidden" name="SKIPLIST" value="1">
                                                  <input type="hidden" name="QBE.EQ.requestor" value="$cst.id">
                                                  <input type="hidden" name="QBE.EQ.chg_ref_num" value="">
                                                  <nobr>
                                                  <TABLE>
                                                  <TR>
                                                  <TD>
                                                  <input type="text" id="chgnum" name="number" title="Change Order Number" onfocus="this.className='focusField';" onblur="this.className='';">
                                                  </TD>
                                                  <TD>
                                                       <SCRIPT>
                                                            ImgBtnCreate("btn3", "Go[*X]", "javascript: (doSearchChg() == true ? document.forms['frmSearchChg'].submit() : void(0));",true,0,"Go display specified change order");
                                                       </SCRIPT>
                                                  </TD>
                                                  </TR>
                                                  </TABLE>
                                                  </nobr>
</PDM_FORM> -->
                                                       </td>
                                                  </tr>
                                             </table>
                                        </td>
                                   </tr>
                              </table>
                         </td>
                    </tr>
</PDM_IF>

                    <tr>
                         <td>
                        <br>
                              <div id="idCnoteHead">
                                   <table border=0 cellspacing=0 cellpadding=0 width="100%">
                                        <tr>
                                             <td width='4' height='22' class="hdrLeft"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                             <td class="hdrCenter"><h2 class='page_section_header_text'>Announcements</h2></td>
                                             <td width='4' height='22' class="hdrRight"><img alt='' src='/CAisd/img/spacer.png' width='4' height='22'></td>
                                        </tr>
                                   </table>
                              </div>
                         </td>
                    </tr>
                    <tr>
                         <td class=page_section id="idCnoteCell" valign=top height="100%">
                              <div id="idCnoteDiv">                                  
                                   <div id="idCnoteBody" style="overflow: auto; padding-left: 15px; padding- right: 5px; font-size:0.9em;">
                                   </div>
          <div id="idCnotelink" align=right>                      
          <b>(</b><PDM_LINK OP="JUST_GRONK_IT"
            HTMPL="bin_form_np.htmpl"
            id="idMoreCnote"
            class=emp
            onmouseover="window.status = 'More announcements'; return true;"
            onmouseout="window.status = window.defaultStatus; return true;"><span style='font- size:1.0em;'>Show All Announcements</span></PDM_LINK><b>)</b>
            </div>
<script>
     if (! _browser.supportsDOM)
     {
          for (var e = 0; e < arr_cnote.length; e++)
               document.writeln("<p><b>" + arr_cnote[e].date + "</b><br>" + arr_cnote[e].text + "</p>");
     }
     else
     {
          window.onload = InitAnnouncements;
     }
</script>
                              </div>
                         </td>
                    </tr>

               </table>
          </td>
                    
</PDM_IF>
     </tr>
</table>
<PDM_INCLUDE FILE="std_footer.htmpl">
     </body>
</html>
list_cr.htmpl
<PDM_IF 0>
$Id: list_cr.htmpl,v 1.33 2005/01/26 18:29:06 versa01 Exp $
list_cr.htmpl
WHEN PRESENTED:
     When we need to display a list of Call Requests.
</PDM_IF>
<html lang="en"><HEAD>
<PDM_PRAGMA RELEASE=110>
<PDM_INCLUDE FILE="std_head.htmpl">
<SCRIPT>
var argBackfillField = '$args.KEEP.backfill_field';
var argBackfillForm = '$args.KEEP.backfill_form';
var argSearchSqlClause = '<PDM_FMT PAD=NO ESC_STYLE=C>$args.search_sql_clause</PDM_FMT>';
var argSearchWhereClause = '<PDM_FMT PAD=NO ESC_STYLE=C>$args.search_where_clause</PDM_FMT>';
var argSaveSqlClause = '<PDM_FMT PAD=NO ESC_STYLE=C>$args.KEEP.save_sql_clause</PDM_FMT>';
<PDM_IF "${current:n/a}" == "n/a">
var searchFilterInitialState = "show";
<PDM_ELSE>
var cfgCurrent = '$current';
var cfgTotal = '$total';
var cfgRecordCount = '$record_count';
var cfgStart = '$start';
var cfgLength = '$length';
</PDM_IF>
var cfgUseTemplate = '$args.use_template';
var cfgIsPopup = '$args.KEEP.IsPopUp';
var rptName = new Array("crsum.rpt", "crdtl.rpt");
var cfgCanEdit = true;
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/date_helper.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/convert_date.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/val_type.js"></SCRIPT>
<PDM_INCLUDE FILE=std_list_include.htmpl>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/comboname.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="$CAisd/scripts/sitemods.js"></SCRIPT>
</HEAD>
<BODY CLASS=emp>
<PDM_INCLUDE FILE=std_body.htmpl>
<PDM_FORM NAME="frmFID">
</PDM_FORM>
<PDM_IF "${current:n/a}" != "n/a">
<SCRIPT LANGUAGE="JavaScript">
var msgFoundNone = "No requests found";
var msgFound1 = "1 request found";
var msgFound = "%1 requests found";
var msgFoundMore = "%1 requests found.  Displaying %2 through %3";
var msgSelect = "Click to select desired request";
var msgSelectAlg = "Click to select desired request and add a %1 activity log";
var ref_num_style;
<PDM_MACRO NAME=lsStart>
rs.overrideMenu=true
<pdm_macro name=lsWrite text="pdm_if \"@{list.sla_violation:0}\" != '0'"> 
<pdm_macro name=lsWrite text="ref_num_style = 'listHilite';">
<pdm_macro name=lsWrite text="pdm_elif \"@{list.macro_predicted_violation:0}\" != '0'"> 
<pdm_macro name=lsWrite text="ref_num_style = 'listWarning';">
<pdm_macro name=lsWrite text="pdm_elif \"@{list.predicted_sla_violation:0}\" != '0'"> 
<pdm_if "$env.NX_TTV_HIGHLIGHT" == 'Yes' && "$env.NX_TTV_ENABLED" != "">
<pdm_macro name=lsWrite text="pdm_if @{list.ttv_act_slas.length:0} == 0">
<pdm_macro name=lsWrite text="ref_num_style = '';">
<pdm_macro name=lsWrite text="pdm_else">
<pdm_macro name=lsWrite text="ref_num_style = 'listWarning';">
<pdm_macro name=lsWrite text="/pdm_if">
<pdm_else>
<pdm_macro name=lsWrite text="ref_num_style = 'listWarning';">
</pdm_if>
<pdm_macro name=lsWrite text="pdm_else">
<pdm_macro name=lsWrite text="ref_num_style = '';">
<pdm_macro name=lsWrite text="/pdm_if">
     <PDM_MACRO NAME=lsCol hdr="Request #" attr=ref_num link=yes style=ref_num_style>
     <PDM_MACRO NAME=lsCol hdr=Status attr=status>
     <PDM_MACRO NAME=lsCol hdr="Open Date" attr=open_date>
     <PDM_MACRO NAME=lsCol hdr=Priority label=Prio attr=priority>
     <PDM_MACRO NAME=lsCol hdr=Group attr=group>
     <PDM_MACRO NAME=lsCol label=Description attr=description startrow=yes width=50 colspan=6>
<PDM_MACRO NAME=lsEnd factory=cr>
</SCRIPT>
</PDM_IF>
<BASE TARGET="_top">
<PDM_INCLUDE FILE="std_footer.htmpl">
</BODY>
</HTML>

<PDM_WSP>