3 * This popup is called when choosing a group into which to move fields
6 include_once("../globals.php");
12 <?php
html_header_show();?
>
13 <title
><?php
xl('List groups','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;
46 <body
class="body_top text">
48 <h1
><?php
xl('Layout groups','e'); ?
></h1
>
51 $res = sqlStatement("SELECT distinct(group_name) FROM layout_options WHERE " .
52 "form_id = '".$_GET['layout_id']."' ORDER BY group_name");
53 while ($row = sqlFetchArray($res)) {
54 $gname = preg_replace("/^\d+/", "", $row['group_name']);
56 if ($GLOBALS['translate_layout'] && $_SESSION['language_choice'] > 1) {
57 $xlgname = "<span class='translation'>>> " . xl($gname) . "</span>";
59 echo "<li id='".$row['group_name']."' class='oneresult'> $gname $xlgname </li>";
66 <script language
="javascript">
68 // jQuery stuff to make the page a little easier to use
70 $
(document
).ready(function(){
71 $
(".oneresult").mouseover(function() { $
(this
).toggleClass("highlight"); });
72 $
(".oneresult").mouseout(function() { $
(this
).toggleClass("highlight"); });
73 $
(".oneresult").click(function() { SelectItem(this
); });
75 var SelectItem
= function(obj
) {
76 var groupname
= $
(obj
).attr("id");
78 alert('The destination form was closed; I cannot act on your selection.');
80 opener
.MoveFields(groupname
);