/[phpcompta]/phpcompta/html/fiche_search.php
ViewVC logotype

Diff of /phpcompta/html/fiche_search.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by sparkyx, Fri May 6 19:50:23 2005 UTC revision 1.14 by stanpinte, Sat Jun 11 20:35:34 2005 UTC
# Line 28  include_once ("class_user.php"); Line 28  include_once ("class_user.php");
28  $User=new cl_user($rep);  $User=new cl_user($rep);
29  $User->Check();  $User->Check();
30    
31  html_page_start($User->theme,"onLoad='window.focus();'");  //determine focus:
32    if ( isset ( $_POST['search']) )
33    {
34      html_page_start($User->theme,"onLoad=\"window.focus();SetFocus('select0',0)\"");
35    } else
36    {
37      html_page_start($User->theme,"onLoad=\"window.focus();SetFocus('fic_search',0)\"");
38    }
39    
40    
41    
42  if ( ! isset ( $_SESSION['g_dossier'] ) ) {  if ( ! isset ( $_SESSION['g_dossier'] ) ) {
43    echo "You must choose a Dossier ";    echo "You must choose a Dossier ";
# Line 87  $e_fic_search=(isset ($_POST['fic_search Line 96  $e_fic_search=(isset ($_POST['fic_search
96  $r.="<FORM METHOD=\"POST\" ACTION=\"".$_SERVER['REQUEST_URI']."\">";  $r.="<FORM METHOD=\"POST\" ACTION=\"".$_SERVER['REQUEST_URI']."\">";
97  $r.="Recherche : ".'<INPUT TYPE="TEXT" NAME="fic_search" VALUE="'.$e_fic_search.'">';  $r.="Recherche : ".'<INPUT TYPE="TEXT" NAME="fic_search" VALUE="'.$e_fic_search.'">';
98  $r.='<INPUT TYPE="submit" name="search" value="Go">';  $r.='<INPUT TYPE="submit" name="search" value="Go">';
99  $r.="</FORM>";  //$r.="</FORM>";
100  $r.="<div>";  $r.="<div>";
101  echo $r;  echo $r;
102  $r="";  $r="";
# Line 128  if ( isset ( $_POST['search']) )  { Line 137  if ( isset ( $_POST['search']) )  {
137   }   }
138   // Show the cards   // Show the cards
139   for ( $i=0; $i < $Max; $i++)  {   for ( $i=0; $i < $Max; $i++)  {
140    
141      //set focus on first "Select" button.
142      
143    $row=pg_fetch_array($Res,$i);    $row=pg_fetch_array($Res,$i);
144    if ( $i %2  == 0 )    if ( $i %2  == 0 )
145      $class="even";      $class="even";
# Line 135  if ( isset ( $_POST['search']) )  { Line 147  if ( isset ( $_POST['search']) )  {
147      $class="odd";      $class="odd";
148    $text=FormatString($row['vw_name']);    $text=FormatString($row['vw_name']);
149    $r.="<span class=\"$class\">";    $r.="<span class=\"$class\">";
150    $r.=sprintf ('<input type="button" onClick="'."SetData('%s','%s','%s','%s','%s','%s','%s')".'" value="select">',    $r.=sprintf ('<input name="%s" type="button" onClick="'."SetData('%s','%s','%s','%s','%s','%s','%s')".'" value="select">',
151            "select" . $i,
152                $e_name,                $e_name,
153                $row['f_id'] ,                $row['f_id'] ,
154                $text,                $text,
# Line 151  if ( isset ( $_POST['search']) )  { Line 164  if ( isset ( $_POST['search']) )  {
164   }   }
165  }  }
166  $r.="</div>";  $r.="</div>";
167    $r.="</FORM>";
168  echo $r;  echo $r;
169    
170  ?>  ?>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26