B
    â‹d‹  ã               @   s    d Z dZdZdZdZdd„ ZdS )z?This module contains utilities for following up search triggersaL  <script type="text/javascript">
function redirect(form,way)
{
        // Set location to form and submit.
        if(form != '')
        {
                document.forms[form].action=way;
                document.forms[form].submit();
        }
        else
        {
                window.top.location = way;
        }
}
</script>zâ<form name="%s_alog_search" id="%s_alog_search" method="post">
<input type="hidden" name="srcDateFrom" id="srcDateFrom" value="%s" size="20"/>
<input type="hidden" name="srcDateTo" id="srcDateTo" value="%s" size="20"/>
</form>zðH1
&nbsp;
<a href=https://ldas-jobs.ligo-wa.caltech.edu/~detchar/summary/day/%s>
Summary</a>
&nbsp;
<a onclick="redirect('h1_alog_search',
'https://alog.ligo-wa.caltech.edu/aLOG/includes/search.php?adminType=search');
return true;">aLOG</a>zðL1
&nbsp;
<a href=https://ldas-jobs.ligo-la.caltech.edu/~detchar/summary/day/%s>
Summary</a>
&nbsp;
<a onclick="redirect('l1_alog_search',
'https://alog.ligo-la.caltech.edu/aLOG/includes/search.php?adminType=search');
return true;">aLOG</a>c             C   sz   t }ttdœ}| |kr| S d|d |d |d f }d|d |d |d f }||  ¡ |  ¡ ||f }|||  |  S dS )as  Return a string that links to the summary page and aLOG for this ifo

    Parameters
    ----------
    ifo : string
        The detector name
    utc_time : sequence
        First three elements must be strings giving year, month, day resp.

    Returns
    -------
    return_string : string
        String containing HTML for links to summary page and aLOG search
    )ZH1ZL1z%02d-%02d-%4dé   é   é    z%4d%02d%02dN)Úsearch_form_stringÚdata_h1_stringÚdata_l1_stringÚlower)ZifoZutc_timeZsearch_formÚdataZalog_utcÚextZreturn_string© r
   ú]/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/pycbc/results/dq.pyÚget_summary_page_link,   s    
r   N)Ú__doc__Zredirect_javascriptr   r   r   r   r
   r
   r
   r   Ú<module>   s
   		