0 Replies Latest reply on Jul 9, 2010 4:57 AM by welcomecan

    how to create cfc for this give solution

    welcomecan Level 1

      <cfcomponent>

      <cffunction

       

       

      name="doc" access="remote" returntype="Any" >

       

       

       

      <cfargument name="profile_id" type="any" required="true" default="" >

       

      <cfargument name="search_primary_storage_profile_id_only" type="numeric" required="true" >

       

      <cfargument name="from_where" type="string" required="true" >

       

      <cfargument name="from_where_response_mode" type="string" required="true" >

       

      <cfargument name="setting_sec_document_access_rights" type="numeric" required="true" >

       

      <cfargument name="customer_name_number_srch" type="any" required="true" >

       

      <cfargument name="file_or_folder_name_srch" type="string" required="true" >

       

      <cfargument name="file_extension_srch" type="string" required="true" >

       

      <cfargument name="document_create_dat_start_srch" type="any" required="true" >

       

      <cfargument name="document_create_dat_end_srch" type="any" required="true" >

       

      <cfargument name="dsi_yyyy" type="any" required="true" >

       

      <cfargument name="dsi_emp_fname" type="any" required="true" >

       

      <cfargument name="dsi_emp_lname" type="any" required="true">

       

      <cfargument name="dsi_emp_id" type="any" required="true">

       

      <cfargument name="dsi_filename_original" type="any" required="true" >

       

      <cfargument name="dsi_document_type" type="any" required="true" >

       

      <cfargument name="dsi_file_label" type="any" required="true" >

       

      <cfargument name="dsi_document_group" type="any" required="true" >

       

      <cfargument name="dsi_document_expiration_dat" type="any" required="true" >

       

       

      <cfargument name="order_by_1" type="any" required="true" >

       

      <cfargument name="order_by_1_asc_desc" type="any" required="true" >

       

      <cfargument name="order_by_2" type="any" required="true" >

       

      <cfargument name="order_by_2_asc_desc" type="any" required="true" >

       

      <cfargument name="Search" type="any" required="true" >

       

       

      <cfargument name="document_ocr_full_text_srch" type="any" required="true" >

       

      <cfargument name="and_or_setting" type="any" required="true" >

       

      <cfargument name="setting_search_ocr_type" type="any" required="true" default="1">

       

      <cfargument name="document_ocr_full_text_rank" type="any" required="true" >

       

       

      <cfset

       

      form.profile_id=profile_id>

      <cfset

       

      form.search_primary_storage_profile_id_only=search_primary_storage_profile_id_only>

      <cfset

       

      form.from_where=from_where>

      <cfset

       

      form.from_where_response_mode=from_where_response_mode>

      <cfset

       

      form.setting_sec_document_access_rights=setting_sec_document_access_rights>

      <cfset

       

      form.customer_name_number_srch=customer_name_number_srch>

      <cfset

       

      form.file_or_folder_name_srch=file_or_folder_name_srch>

      <cfset

       

      form.file_extension_srch=file_extension_srch>

      <cfset

       

      form.document_create_dat_start_srch=document_create_dat_start_srch>

      <cfset

       

      form.document_create_dat_end_srch=document_create_dat_end_srch>

      <cfset

       

      form.dsi_yyyy=dsi_yyyy>

      <cfset

       

      form.dsi_emp_fname=dsi_emp_fname>

      <cfset

       

      form.dsi_emp_lname=dsi_emp_lname>

      <cfset

       

      form.dsi_emp_id=dsi_emp_id>

      <cfset

       

      form.dsi_filename_original=dsi_filename_original>

      <cfset

       

      form.dsi_document_type=dsi_document_type>

      <cfset

       

      form.dsi_file_label=dsi_file_label>

      <cfset

       

      form.dsi_document_group=dsi_document_group>

      <cfset

       

      form.dsi_document_expiration_dat=dsi_document_expiration_dat>

       

       

       

      <cfset

       

      form.order_by_1=order_by_1>

      <cfset

       

      form.order_by_1_asc_desc=order_by_1_asc_desc>

      <cfset

       

      form.order_by_2=order_by_2>

      <cfset

       

      form.order_by_2_asc_desc=order_by_2_asc_desc>

       

      <cfset

       

      form.Search=Search>

      <cfset

       

      form.document_ocr_full_text_srch=document_ocr_full_text_srch>

      <cfset

       

      form.and_or_setting=and_or_setting>

      <cfset

       

      form.setting_search_ocr_type=setting_search_ocr_type>

      <cfset

       

      form.document_ocr_full_text_rank=document_ocr_full_text_rank>

       

       

      <cfinclude template="#application.ist_environment.ist_auth#logon/logon_status.cfm">

      <!--- Access parameters --->

       

      <cfset nf5.mpf = 27>

       

      <cfinclude template="#application.ist_environment.ist_auth#logon/logon_load_my_auth_access_variables.cfm">

      <!--- Access parameters --->

       

       

       

      <cfinclude template="#application.ist_environment.ist_shared#/ist_display/body_main.cfm">

       

       

       

       

       

      <!--- Get profiles and indexed keys --->

       

      <cfquery name="get_active_profiles" datasource="#request.ds.docstor#" cachedwithin="#createtimespan(0,0,5,0)#">

       

      SELECT storage_profile_id, storage_profile_name

       

      FROM storage_profile_attributes

       

      WHERE storage_profile_active = 1

       

      ORDER BY storage_profile_name, storage_profile_id desc

       

      </cfquery>

       

       

      <cfquery name="get_indexes" datasource="#request.ds.docstor#" cachedwithin="#createtimespan(0,0,5,0)#">

       

      SELECT distinct

      ml.storage_profile_key_id,

      ml.spk_name,

      ml.spk_key,

      r.spr_desc,

      ml.datatype,

      ml.local_type_name,

      ml.p1,

      ml.p2,

      ml.has_options_list

       

      FROM storage_profile_variables_master_list as ml

       

      LEFT JOIN storage_profile_rule_by_profile as r

       

      ON ml.storage_profile_id = r.storage_profile_id

       

      and ml.storage_profile_key_id = r.storage_profile_key_id

       

       

      WHERE storage_profile_key_isIndexed = 1

       

      <cfif val(form.profile_id)>

       

      and ml.storage_profile_id = #val(form.profile_id)#

       

      <cfelse>

       

      and 1 = 0

       

      </cfif>

      <!--- <cfreturn profile_id>--->

      <!---<cfreturn form.dsi_yyyy>--->

       

      </cfquery>

      <!--- Get profiles and indexed keys --->

       

       

      <cfif isdefined("form.profile_id")>

       

      <cfquery name="QoQ_storage_profile_key_options" datasource="#request.ds.docstor#">

       

      SELECT spko_value, storage_profile_key_id, storage_profile_id

       

      FROM storage_profile_key_options

       

      WHERE storage_profile_id = #val(form.profile_id)#

       

      </cfquery>

       

       

       

       

      <cfparam name="application.storageProfileTable.sp#val(form.profile_id)#.exists" default="0">

       

       

       

      <cfscript>

       

      if(val(form.profile_id) gt 0)

      {

      //application.storageProfileTable["sp#val(form.profile_id)#"]["pop"] = 0;

       

      if(application.storageProfileTable["sp#val(form.profile_id)#"]["exists"] neq 1 or application.storageProfileTable["sp#val(form.profile_id)#"]["pop"] eq 0)

      {

       

      if(not isdefined("application.cfc.cfcDocstor_search_profile_table_build") or not isCustomFunction(application.cfc.cfcDocstor_search_profile_table_build))

      {application.cfc.cfcDocstor_search_profile_table_build =

      CreateObject("component","ist_business_applications.ist_docstor.search.docstor_search_profile_table_build");}

       

      // Update the denormalized document index tables

      args =

      structnew();

      args.storage_profile_id =

      val(form.profile_id);

      // If focused_document_id_list is empty then the system will pick up any edits that need to be made

      args.focused_document_id_list =

      "";

      args.maxrows =

      500;

      application.storageProfileTable[

      "sp#val(form.profile_id)#"]["pop"] = 0;

      application.cfc.cfcDocstor_search_profile_table_build.fnVerifyStorageProfileTable(args.sto rage_profile_id, args.focused_document_id_list, args.maxrows);

      }

      }

       

      </cfscript>

       

      </cfif>

       

       

       

      <!---<cfparam name="form.and_or_setting" default="and">

      <cfparam name="form.file_or_folder_name_srch" default="">

      <cfparam name="form.customer_name_number_srch" default="">

      <cfparam name="form.document_create_dat_start_srch" default="">

      <cfparam name="form.document_create_dat_end_srch" default="">

      <cfparam name="form.file_extension_srch" default="">--->

       

      <cfparam name="form.search_primary_storage_profile_id_only" default="1">

       

      <cfparam name="current_storage_profile_name" default="None Selected">

       

       

      <!--- Search Options --->

      <!--- Other inputs --->

       

      <cfparam name="session.ds_search.and_or_setting" default="and">

       

      <cfparam name="session.ds_search.customer_name_number_srch" default="">

       

      <cfparam name="session.ds_search.file_or_folder_name_srch" default="">

       

      <cfparam name="session.ds_search.document_create_dat_start_srch" default="">

       

      <cfparam name="session.ds_search.document_create_dat_end_srch" default="">

       

      <cfparam name="session.ds_search.file_extension_srch" default="">

       

      <cfparam name="session.ds_search.setting_search_ocr_type" default="1">

       

      <cfparam name="session.ds_search.document_ocr_full_text_srch" default="">

       

      <cfparam name="session.ds_search.document_ocr_full_text_rank" default="0">

       

      <cfparam name="session.ds_search.setting_sec_document_access_rights" default="1">

       

       

      <cfscript>

       

      if(form.from_where eq "search")

      {

      session.ds_search.and_or_setting = form.and_or_setting;

      session.ds_search.customer_name_number_srch = form.customer_name_number_srch;

      session.ds_search.file_or_folder_name_srch = form.file_or_folder_name_srch;

      session.ds_search.document_create_dat_start_srch = form.document_create_dat_start_srch;

      session.ds_search.document_create_dat_end_srch = form.document_create_dat_end_srch;

      session.ds_search.file_extension_srch = form.file_extension_srch;

      session.ds_search.setting_search_ocr_type = form.setting_search_ocr_type;

      session.ds_search.document_ocr_full_text_srch = form.document_ocr_full_text_srch;

      session.ds_search.document_ocr_full_text_rank = form.document_ocr_full_text_rank;

      session.ds_search.setting_sec_document_access_rights = form.setting_sec_document_access_rights;

      }

       

      </cfscript>

       

       

       

       

      <cfloop query="get_indexes">

       

      <cfparam name="session.ds_search.dsi_#get_indexes.spk_key#" default="">

       

      </cfloop>

       

       

       

      <cfif form.from_where eq "search">

       

      <cfloop query="get_indexes">

       

      <cfparam name="form.dsi_#get_indexes.spk_key#" default="">

       

      <cfset session.ds_search["dsi_#get_indexes.spk_key#"] = form["dsi_#get_indexes.spk_key#"]>

       

      </cfloop>

       

       

       

       

      </cfif>

       

      <!--- END: Other inputs --->

       

      <!--- Checkboxes --->

       

       

       

       

       

      <cfparam name="session.ds_search.setting_show_ocr_text" default="0">

       

       

       

       

       

       

       

      <cfparam name="form.setting_show_ocr_text" default="0">

       

      <cfparam name="session.ds_search.setting_search_ocr" default="0">

       

      <cfparam name="session.ds_search.setting_search_thumbs" default="0">

       

      <cfparam name="form.setting_search_thumbs" default="0">

       

      <cfparam name="session.ds_search.setting_search_attributes" default="0">

       

      <cfparam name="session.ds_search.setting_search_versions" default="0">

       

      <cfparam name="form.setting_search_ocr" default="0">

       

      <cfparam name="form.setting_search_attributes" default="0">

       

      <cfparam name="form.setting_search_versions" default="0">

       

      <cfscript>

       

      if(form.from_where eq "search")

      {

      session.ds_search.setting_search_versions = form.setting_search_versions;

      session.ds_search.setting_search_attributes = form.setting_search_attributes;

      session.ds_search.setting_search_ocr = form.setting_search_ocr;

      session.ds_search.setting_search_thumbs = form.setting_search_thumbs;

       

      if(len(form.document_ocr_full_text_rank)) session.ds_search.setting_show_ocr_text = form.setting_show_ocr_text;

      }

       

      </cfscript>

      <!--- END: Checkboxes --->

      <!--- END: Search Options --->

       

       

       

      <cfscript>

       

      if(not isdefined("application.cfc.cfcProfileSupportFunctions") or not isCustomFunction(application.cfc.cfcProfileSupportFunctions))

      {application.cfc.cfcProfileSupportFunctions =

      createobject("component", "ist_business_applications.ist_docstor.profile.profileSupportFunctions");}

       

      isSuccesfulDFC = true;

       

      if(isDefined("form.profile_id") and isNumeric(form.profile_id))

      {isSuccesfulDFC = application.cfc.cfcProfileSupportFunctions.fnDetectSuccessfulDfcSpidPair(form.profile_id, client.dfc);}

       

      </cfscript>

       

       

       

      <!--- onclick="display_access_list('document_search_tips');display_access_list('document_search _tool_area')" style="cursor:pointer" --->

       

       

       

       

       

      <!--- onclick="display_access_list('document_search_tips');display_access_list('document_search _tool_area')" style="cursor:pointer" --->

       

       

       

       

      <select name="profile_id" onChange="showIsWorking();document.form1.submit();">

       

      <option value="">All</option>

       

      <cfoutput query="get_active_profiles">

       

      <option value="#get_active_profiles.storage_profile_id#" <cfif isDefined("form.profile_id") and get_active_profiles.storage_profile_id eq form.profile_id> selected <cfset current_storage_profile_name = get_active_profiles.storage_profile_name></cfif>>#get_active_profiles.storage_profile_name#</option>

       

      </cfoutput>

       

       

      </select>

       

       

      <cfif isDefined("form.profile_id") and val(form.profile_id)>

       

      <span style="cursor:pointer" title="Show files where this Profile is the Primary Profile or where the file has any association with this Profile.">Filter: </span>

       

      <select name="search_primary_storage_profile_id_only" onChange="document.getElementById('hidden_search_primary_storage_profile_id_only').value = this.value;">

       

      <option value="0" <cfif not val(form.search_primary_storage_profile_id_only)>selected</cfif>>Any Association</option>

       

      <option value="1" <cfif val(form.search_primary_storage_profile_id_only)>selected</cfif>>Primary Profile Only</option>

       

      </select>

       

      </cfif>

       

       

      <cfif not isdefined("request.my_dfcName") or not len(request.my_dfcName)>

       

      <cfset request.my_dfcName = "Please Choose a DFC">

       

      </cfif>

       

       

      <cfif isSuccesfulDFC eq false>

       

      <cfset isSuccesfulDFCBgcolor = "Red">

       

       

      <cfelse>

       

      <cfset isSuccesfulDFCBgcolor = "">

       

      </cfif>

       

       

      <cfoutput>#request.my_dfcName#<cfset my_dfcName = "   DFC: ">

       

      <cfreturn my_dfcName>

       

      </cfoutput>

       

       

      <!---<cfoutput>

      <span onClick="display_access_list('document_search_tool_area_folder_options')" style="cursor:help" title="Click for Detailed Folder Search Options">

      <img align="middle" src="#application.ist_environment.ist_shared#ist_images/ist_icons/Modern/gif/24/normal/zo om_config_24.gif">

      </span>

      <span onClick="display_access_list('document_search_tips')" style="cursor:help" title="Click for Search Tips">

      <img align="middle" src="#application.ist_environment.ist_shared#ist_images/ist_icons/Modern/gif/24/normal/in fo_find_24.gif">

      </span>

      <span onClick="display_access_list('document_search_tool_area');display_access_list('document_s earch_tool_area_folder_options','close');display_access_list('document_search_tips','close ');switch_search_icon('document_search_tool_area', 'document_search_tool_area_IMG')" style="cursor:pointer" title="Click to shrink or expand the Search Option Panel.">

      <img id="document_search_tool_area_IMG" align="middle" src="#application.ist_environment.ist_shared#ist_images/ist_icons/Modern/gif/24/normal/wi n_up_24.gif">

      </span>

      <span onClick="reset_session_variables()" style="cursor:pointer" title="Reset your Session. This action will clear any issues with column alignment in the search results.">

      <img id="document_search_tool_area_IMG" align="middle" src="#application.ist_environment.ist_shared#ist_images/ist_icons/Modern/gif/24/normal/de l_config_24.gif">

      </span>

      </cfoutput>

       

      <td class="inactive_titlebar">

      Search Field

      </td>

      <td class="inactive_titlebar">

      Search Value

      </td>

      <td class="inactive_titlebar">

      </td>

      <td class="inactive_titlebar">

      Search Fulltext

      </td>--->

       

       

      <!---

      <form name="docstor_search" action="docstor_search_task.cfm" method="post" onSubmit="showIsWorking()">

      <cfoutput>

      <input type="hidden" name="profile_id" value="#form.profile_id#">

      <input type="hidden" id="hidden_search_primary_storage_profile_id_only" name="search_primary_storage_profile_id_only" value="#form.search_primary_storage_profile_id_only#">

      </cfoutput>

       

      <input type="hidden" name="from_where" value="Search">

      <input type="hidden" name="from_where_response_mode" value="Search">

       

       

      <!--- First Row - Folder options --->

       

      <tr>

      <td colspan="4">

      <fieldset>

      <legend><span class="link" style="cursor:help" title="When these are options checked, these folders will also be searched & displayed.">Options</span></legend>

      <table class="dsFolderSearchPanel">

      <tr>

      <td>

      Versions

      </td>

      <td>

      <input type="checkbox" name="setting_search_versions" value="1" <cfif val(session.ds_search.setting_search_versions)>checked</cfif> onhelp="getF1Help('137','','');return false">

      </td>

      <td>

      Attributes

      </td>

      <td>

      <input type="checkbox" name="setting_search_attributes" value="1" <cfif val(session.ds_search.setting_search_attributes)>checked</cfif> onhelp="getF1Help('138','','');return false">

      </td>

      <td>

      OCR

      </td>

      <td>

      <input type="checkbox" name="setting_search_ocr" value="1" <cfif val(session.ds_search.setting_search_ocr)>checked</cfif> onhelp="getF1Help('139','','');return false">

      </td>

      <td>

      Thumbs

      </td>

      <td>

      <input type="checkbox" name="setting_search_thumbs" value="1" <cfif val(session.ds_search.setting_search_thumbs)>checked</cfif> onhelp="getF1Help('139','','');return false">

      </td>

       

      <td>    </td>

      <td style="border:1px #CCCCCC outset; cursor:help" title="Show only Active Files or show only Deleted Files.">

      Show Files 

      </td>

      <td style="border:1px #CCCCCC outset; border-right:0px">Active:</td>

      <td style="border:1px #CCCCCC outset; border-left:0px">

      <input type="radio" name="setting_sec_document_access_rights" value="1" <cfif session.ds_search.setting_sec_document_access_rights eq 1>checked</cfif> title="Active Files">

      </td>

      <td style="border:1px #CCCCCC outset; border-right:0px">Deleted:</td>

      <td style="border:1px #CCCCCC outset; border-left:0px">

      <input type="radio" name="setting_sec_document_access_rights" value="0" <cfif session.ds_search .setting_sec_document_access_rights eq 0>checked</cfif> title="Deleted Files">

      </td>

       

      </fieldset>

       

      <!--- END: First Row - Folder options --->

       

      <tbody id="document_search_tool_area">

      <tr>

      <!--- Column 1 --->

      <td colspan="2">

      <fieldset>

      <legend>Search Keys</legend>

      <table class="dsFolderSearchPanel">

      <tr>

      <td align="right">

      Customer Name/Number

      </td>

      <td colspan="2">

      <cfoutput>

      <input type="text" name="customer_name_number_srch" value="#session.ds_search.customer_name_number_srch#" onhelp="getF1Help('132','','');return false">

      </cfoutput>

      </td>

      </tr>

       

      <tr>

      <td align="right">

      File or Folder Name

      </td>

      <td colspan="2">

      <cfoutput>

      <input type="text" name="file_or_folder_name_srch" value="#session.ds_search.file_or_folder_name_srch#" onhelp="getF1Help('134','','');return false">

      </cfoutput>

      </td>

      </tr>

       

      <tr>

      <cfoutput>

      <td align="right" style="cursor:help" title="File extension list#chr(10)#Example: doc,xls">

      File Extensions

      </td>

      <td colspan="2">

      <input type="text" name="file_extension_srch" value="#session.ds_search.file_extension_srch#" onhelp="getF1Help('135','','');return false">

      </td>

      </cfoutput>

      </tr>

       

      <tr>

      <td align="right">

      Upload Date

      </td>

      <td>

      <cfoutput>

      <input type="text" name="document_create_dat_start_srch" value="#session.ds_search.document_create_dat_start_srch#" title="Type a Starting Date" onhelp="getF1Help('136','','');return false">

      </cfoutput>

      </td>

      <td align="left">

      <cfoutput>

      <input type="text" name="document_create_dat_end_srch" value="#session.ds_search.document_create_dat_end_srch#" title="Type an Ending Date" onhelp="getF1Help('136','','');return false">

      </cfoutput>

      </td>

      </tr>--->

       

       

       

      <cfloop query="get_indexes">

       

      <cfset thisSpk_key = get_indexes.spk_key>

       

      <cfparam name="form.dsi_#get_indexes.spk_key#" default="">

       

      <cfoutput>

       

       

       

      <tr>

       

      <td align="right" title="#get_indexes.spr_desc#">

      #get_indexes.spk_name#

       

      </td>

       

      <td colspan="2" title="#get_indexes.spr_desc#">

       

      <cfif get_indexes.has_options_list eq 1>

       

      <cfquery name="get_storage_profile_key_options" dbtype="query">

       

      SELECT spko_value

       

      FROM QoQ_storage_profile_key_options

       

      WHERE storage_profile_id = #val(form.profile_id)#

       

      and storage_profile_key_id = #val(get_indexes.storage_profile_key_id)#

       

      ORDER BY spko_value

       

      </cfquery>

       

      <select name="dsi_#thisSpk_key#">

       

      <option></option>

       

      <cfloop query="get_storage_profile_key_options">

       

      <option value="#get_storage_profile_key_options.spko_value#" <cfif session.ds_search["dsi_#thisSpk_key#"] eq get_storage_profile_key_options.spko_value>selected</cfif>>#get_storage_profile_key_options.spko_value#</option>

       

      </cfloop>

       

      </select>

       

      <cfelse>

       

      <input type="text" name="dsi_#thisSpk_key#" value="#session.ds_search["dsi_#thisSpk_key#"]#">

       

      </cfif>

       

      </td>

       

      </tr>

       

      </cfoutput>

       

      </cfloop>

       

       

      <cfif isdefined("application.searchColumnLbl")>

       

       

      <cfset order_by_valid_columns = "base_sec_organization_id,sec_org_name,document_folder_name,document_name,document_create_ dat,document_bytes">

       

      <cfset order_by_valid_columns = listprepend(order_by_valid_columns,valuelist(get_indexes.spk_key,","),",")>

       

       

      <cfset QoQ_order_by_options = querynew("ob_key, ob_name")>

       

       

      <cfloop item="f" collection="#application.searchColumnLbl#">

       

      <cfset QueryAddRow(QoQ_order_by_options)>

       

      <cfset querysetcell(QoQ_order_by_options, "ob_key", f)>

       

      <cfset querysetcell(QoQ_order_by_options, "ob_name", application.searchColumnLbl[f])>

       

      </cfloop>

       

       

       

       

      <cfquery name="order_by_options" dbtype="query">

       

      SELECT ob_key, ob_name

       

      FROM QoQ_order_by_options

       

      ORDER BY ob_name

       

      </cfquery>

       

       

       

      <cfparam name="form.order_by_1" default="document_name">

       

      <cfparam name="form.order_by_2" default="document_create_dat">

       

       

      <cfloop index="i" from="1" to="2">

       

      <cfparam name="form.order_by_#i#_asc_desc" default="asc">

      <!---<tr>

      <td align="right">

      Order By

      </td>

      <td colspan="2" nowrap="nowrap">--->

       

      <cfoutput>

       

      <select name="order_by_#i#">

       

      <cfloop query="order_by_options">

       

      <cfif listfindnocase(order_by_valid_columns, order_by_options.ob_key, ",")>

       

      <option value="#order_by_options.ob_key#" <cfif evaluate("form.order_by_#i#") eq order_by_options.ob_key>selected</cfif>>#order_by_options.ob_name#</option>

       

      </cfif>

       

      </cfloop>

       

      </select>

      Asc

      <input type="radio" name="order_by_#i#_asc_desc" value="asc" <cfif evaluate("form.order_by_#i#_asc_desc") neq "desc">checked</cfif> title="Ascending sort order">

      Desc

      <input type="radio" name="order_by_#i#_asc_desc" value="desc" <cfif evaluate("form.order_by_#i#_asc_desc") eq "desc">checked</cfif> title="Descending sort order">

       

      </cfoutput>

      <!---</td>

      </tr>--->

       

      </cfloop>

       

      </cfif>

       

      <!---<tr>

      <td colspan="3" align="right">

      <span id="iconIsWorking" style="display:none">Please wait...<img src="/ist_shared/ist_images/ist_icons/progress/indicator_arrows.gif"></span>

      <input class="dsButtonclass" type="submit" name="Search" value="Search" onMouseUp="submit()" onMouseOver="classchange('dsButtonfocus')" onMouseOut="classchange('dsButtonclass')">

      <input class="dsButtonclass" type="reset" value="Reset" onMouseOver="classchange('dsButtonfocus')" onMouseOut="classchange('dsButtonclass')">

      </td>

      </tr> --->

       

      </table>

       

      </fieldset>

       

      </td>

      <!--- END: Column 1 --->

       

      <!--- Column 2 --->

       

      <td id="and_or_label" style="font-weight:bolder; font-size:18px; cursor:help" title="Describes the current relationship between the Standard and Full Text Search options.">

       

      <cfif len(session.ds_search.document_ocr_full_text_srch) eq 0>

      <!--- nothing --->

       

      <cfelseif len(session.ds_search.document_ocr_full_text_rank) eq 0>

      O

      <br>R

       

      <cfelse>

      A

      <br>N<br>D

       

      </cfif>

       

      </td>

      <!--- END: Column 2 --->

       

      <!--- Column 3 --->

      <!---<td>

      <fieldset>

      <legend>Full Text Search</legend>

      <table class="dsFolderSearchPanel">

      <tr>

      <td>

      <cfoutput>

      <textarea name="document_ocr_full_text_srch" rows="5" cols="15" onKeyUp="ocr_show_srch_panel()" onhelp="getF1Help('140','','');return false">#session.ds_search.document_ocr_full_text_srch#</textarea>

       

      </cfoutput>

      </td>

      </tr>--->

       

       

      <cfif len(trim(session.ds_search.document_ocr_full_text_srch))><cfset show_ftr = "block"><cfelse><cfset show_ftr = "none"></cfif>

      <!--- <cfoutput>

      <tbody id="document_ocr_full_text_rank_ROW" style="display:#show_ftr#">

      <tr>

      <td>

      <span style="cursor:help" title="Search for documents that match BOTH the search fields AND the OCR text.">

      And

      </span>

      <input type="radio" name="and_or_setting" value="and" <cfif session.ds_search.and_or_setting eq "and">checked</cfif> onClick="chooseAndOrForFTSearch()" onhelp="getF1Help('','','');return false">

      <span style="cursor:help" title="Search for documents that match EITHER the search fields OR the OCR text.">

      Or

      </span>

      <input type="radio" name="and_or_setting" value="or" <cfif session.ds_search.and_or_setting eq "or">checked</cfif> onClick="chooseAndOrForFTSearch()" onhelp="getF1Help('','','');return false">

       

      </td>

      </tr>

      <tr>

      <td>

      <span style="cursor:help" title="The OCR search will find words NEAR one another. (More Precise)">

      Words

      </span>

      <input type="radio" name="setting_search_ocr_type" value="1" <cfif val(session.ds_search.setting_search_ocr_type) eq 1>checked</cfif> onhelp="getF1Help('141','','');return false">

      <span style="cursor:help" title="The OCR search will look for natural language matches. (Less Precise)">

      Phrase

      </span>

      <input type="radio" name="setting_search_ocr_type" value="2" <cfif val(session.ds_search.setting_search_ocr_type) eq 2>checked</cfif> onhelp="getF1Help('142','','');return false">

      </td>

      </tr>

      <tr>

      <td>

      <span style="cursor:help" title="The OCR text will be shown for files having OCR Text when this box is checked and active.">

      Show OCR Text

      </span>

      <input type="checkbox" style="cursor:help" id="setting_show_ocr_text" name="setting_show_ocr_text" value="1" <cfif val(session.ds_search.setting_show_ocr_text)>checked</cfif> onhelp="getF1Help('143','','');return false" title="The OCR text will be shown for files having OCR Text when this box is checked and active.">

      </td>

      </tr>

      <tr>

      <td>

      <span style="cursor:help" title="Enter a minimum Full Text result Rank.#chr(10)##chr(10)#Possible Range: 0 to 1000 or BLANK#chr(10)##chr(10)#A Higher Rank is a better match.#chr(10)##chr(10)#BLANK makes the Full Text an 'OR' search.">

      Rank <input type="text" size="1" maxlength="4" id="document_ocr_full_text_rank" name="document_ocr_full_text_rank" value="#session.ds_search.document_ocr_full_text_rank#" onChange="show_rank_show_ocr()" style="cursor:help" onhelp="getF1Help('144','','');return false">

      </span>

      </td>

      </tr>

      </tbody>

      </cfoutput>

      </table>

      </fieldset>

      </td>

      <!--- END: Column 3 --->

      </tr>

      </tbody>

      </table>

      <!--- Outer Table --->

      </td>

      </form>--->

      <!---<td id="document_search_tips" align="left" valign="top" style="display:none">--->

       

      <fieldset>

       

      <legend>Profile Description</legend>

       

      <cfoutput>#current_storage_profile_name#</cfoutput>

       

      </fieldset>

      <!---<fieldset>

      <legend>Search Tips</legend>

      Type a * in order to find "any text"<br>

      Example: Jo* finds John and Jones<br>

      May Also Use [&gt;=, &lt;=, &gt;, &lt; or *]

      </fieldset>

      <fieldset>

      <legend>Full Text</legend>

      If <b>Rank</b> is [EMPTY] Then <b>Results</b> = [Basic Search <b>OR</b> Full Text Search]<br>

      If <b>Rank</b> is [0-1000] Then <b>Results</b> = [Basic Search <b>AND</b> Full Text Search]<br><br>

      You may use [*] for wildcard searches.<br><br>

      Find a Phrase by using ["].<br>

      Example: "ship yard"<br><br>

      Use [And, Or, And Not]<br>

      Example: gold* and not exchange<br><br>

      To stop the Full Text Search action, clear the Full Text Search box.

      </fieldset>

      <fieldset>

      <legend>Help!</legend>

      Press the function key "F1" on the top row of your keyboard for help on this page.<br>

      If you click on a checkbox, search field, etc., then F1 will bring up help specific to that

      search element.

      </fieldset>

      </td>

      </tr>--->

      ---> <!---</table>--->--->

      <!--- Outer Table --->

       

       

       

      <cfif

       

      isdefined("application.searchColumnLbl") and 1 eq 0>

       

      <cfdump var="#application.searchColumnLbl#" expand="no">

      </cfif>

       

       

      <cfif form.from_where is "search" or form.from_where is "resort">

       

      <cfparam name="form.document_folder_id" default="13">

       

      <cfinclude template="#application.ist_environment.ist_docstor#view/docstor_filelist.cfm">

       

      </cfif>

       

      </cffunction>

       

      </cfcomponent>