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
>
28 background
-color
: white
;
32 border
-bottom
: 1px solid
#ccc;
38 <body
class="body_top text">
43 $res = sqlStatement("SELECT * FROM list_options WHERE " .
44 "list_id = 'lists' ORDER BY title");
45 while ($row = sqlFetchArray($res)) {
46 echo "<li id='".$row['option_id']."' class='oneresult'>".$row['title']."</li>";
53 <script language
="javascript">
55 // jQuery stuff to make the page a little easier to use
57 $
(document
).ready(function(){
58 $
(".oneresult").mouseover(function() { $
(this
).toggleClass("highlight"); });
59 $
(".oneresult").mouseout(function() { $
(this
).toggleClass("highlight"); });
60 $
(".oneresult").click(function() { SelectList(this
); });
62 var SelectList
= function(obj
) {
63 var listid
= $
(obj
).attr("id");
64 if (opener
.closed ||
! opener
.SetList
)
65 alert('The destination form was closed; I cannot act on your selection.');
67 opener
.SetList(listid
);