Rev 6579 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| ADMIN Page |'| Project Suffix |'| |'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="sec/Crypt.asp"--><!--#include file="common/_form_window_common.asp"--><!--#include file="_action_buttons.asp"--><!--#include file="class/classActionButtonControl.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_login_optional.asp"--><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim objBtnControlDim bCanEdit'------------ Constants Declaration -----------'------------ Variable Init -------------------Set objBtnControl = New ActionButtonControlbCanEdit = canActionControl("CreateNewProject") and canActionControl("ConfigureBuildService")'----------------------------------------------function niceBool (val)if val = "Y" ThenniceBool = "Y"ElseniceBool = "N"End IfEnd Functionfunction showCheck (val)if val = "Y" ThenshowCheck = "checked"ElseshowCheck = ""End IfEnd Function%><html><head><title>Project Suffix Administration</title><link rel="shortcut icon" href="<%=FavIcon%>"/><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css"><link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css"><script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script><!--#include file="_jquery_includes.asp"--><!-- DROPDOWN MENUS --><!--#include file="_menu_def.asp"--><script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" ><!-- HEADER --><!--#include file="_header.asp"--><div class="div_table"><table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'><caption>Project Suffixes</caption><thead><tr><th nowrap >Suffix</th><th nowrap width="250">Comment</th><th nowrap width="20" >Free Form Version</th><th nowrap width="20" >Enable Selection</th><th nowrap >Edit</th></tr></thead><%' Load some action buttonsCall objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )objBtnControl.ButtonSpacer = 1If NOT bCanEdit ThenCall objBtnControl.Active ( "btnEditProjectExtensions", "N" )Call objBtnControl.Active ( "btnDeleteProjectExtension", "N" )End IfDim rsQryDim extNameDim commentdim isaCotsdim isVisSet rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )While (NOT rsQry.BOF) AND (NOT rsQry.EOF)extName = rsQry("EXT_NAME")comment = rsQry("UCOMMENT")isaCots = niceBool(rsQry("IS_COTS"))isVis = niceBool(rsQry("IS_VISIBLE"))%><tr><td nowrap><%=extName%></td><td nowrap><%=comment%></td><td nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td><td nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td><td nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td></tr><%rsQry.MoveNext()WendrsQry.Close()Set rsQry = nothing%><tr><td colspan="5"><%Call Action_Buttons_State ( "Add Project Extension", bCanEdit )%></tr></table></div><!-- FOOTER --><!--#include file="_footer.asp"--></body></html>