Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ff5b0d753a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (47 sloc) 1.666 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
% title 'Welcome';
%= form_for $self->url_for => begin
<table width='100%'><tr><td> </td><td>
%= text_field 'match'
%= submit_button 'Search'
</td><td> </td></tr></table>
% end
<!--a href= <= $self->url_for('assets/smart2.xls') > >smart</a-->
% if (param('match')) {
% my $match=param('match');
<H3>Entities</H3>
% {
% my $em_rs = $self->app->schema->resultset('EntityMaster')->search(
% {max_version => 1});
% while (my $em=$em_rs->next) {
<H3><%= $em->name %></H3>
% my $rs = $self->app->schema->resultset('EntDetVw')->search(
% \[ 'em_nm=? AND (tgt_ent_nm like ? OR src_ent_nm like ?) ',
% [ 'em_nm', $em->name ],
% [ 'tgt_ent_nm', '%' . param('match') . '%' ],
% [ 'src_ent_nm', '%' . param('match') . '%' ], ],
% { columns => [qw(tgt_ent_nm src_ent_nm )],
% distinct => 1});
<%= include 'tabout', partial => 1,
    title => 'Entity', rs=> $rs, chk_blanks => 0 ,
        url => {tgt_ent_nm => '/entdet?tgt=tgt_ent_nm',
    src_ent_nm => '/entdet?tgt=tgt_ent_nm&src=src_ent_nm'}
%>
% }
<br>
<H3>Items</H3>
% }
% {
% my $rs = $self->app->schema->resultset('EntDetVw')->search(
% \[ 'tgt_itm_nm like ? OR src_itm_nm like ? ',
% [ 'tgt_itm_nm', '%' . param('match') . '%' ],
% [ 'src_itm_nm', '%' . param('match') . '%' ], ],
% { columns => [qw(tgt_ent_nm tgt_itm_nm src_itm_nm src_ent_nm )],
% distinct => 1});
<%= include 'tabout', partial => 1, url=>{},
    title => 'Item', rs=> $rs, chk_blanks => 0 ,
        url => {tgt_itm_nm => '/itmdet?tgt=tgt_itm_nm',
    src_itm_nm => '/itmdet?tgt=tgt_itm_nm&src=src_itm_nm'}
%>
% }
% }
<br>
Something went wrong with that request. Please try again.