3 * This popup is called when choosing a list for a form layout
6 include_once("../globals.php");
12 <?php
html_header_show();?
>
13 <title
><?php
xl('List lists','e'); ?
></title
>
14 <link rel
="stylesheet" href
='<?php echo $css_header ?>' type
='text/css'>
16 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot'] ?>/library/js/jquery-1.2.2.min.js"></script
>
31 border
-bottom
: 1px solid
#ccc;
32 background
-color
: white
;
35 background
-color
: #336699;
42 <body
class="body_top text">
44 <h1
><?php
xl('Active lists','e'); ?
></h1
>
47 $res = sqlStatement("SELECT * FROM list_options WHERE " .
48 "list_id = 'lists' ORDER BY title");
49 while ($row = sqlFetchArray($res)) {
50 echo "<li id='".$row['option_id']."' class='oneresult'>" . xl($row['title']) . "</li>";
57 <script language
="javascript">
59 // jQuery stuff to make the page a little easier to use
61 $
(document
).ready(function(){
62 $
(".oneresult").mouseover(function() { $
(this
).toggleClass("highlight"); });
63 $
(".oneresult").mouseout(function() { $
(this
).toggleClass("highlight"); });
64 $
(".oneresult").click(function() { SelectList(this
); });
66 var SelectList
= function(obj
) {
67 var listid
= $
(obj
).attr("id");
68 if (opener
.closed ||
! opener
.SetList
)
69 alert('The destination form was closed; I cannot act on your selection.');
71 opener
.SetList(listid
);