noalyss Version-9
card_result.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4?>
5<fieldset id="asearch" style="height:88%">
6 <legend><?php echo _('RĂ©sultats'); ?></legend>
7<div style="height:88%;overflow:auto;">
8 <?php
9 // compute the url, $sql_array is defined in ajax_card.php
10 echo '<ul class="aligned-block" style="padding:1px;margin-top: 0px;margin-bottom: 0px;">';
11 if ( $page_card != 0 ) {
12 // show previous arrow to left
13 echo '<li style="padding:1px">';
14 echo '<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
16 $url["page_card"]=$page_card-1;
17 echo HtmlInput::array_to_hidden(array('accvis','inp','jrn','label','typecard','price','tvaid','amount_from_type','page_card','query','inactive_card'), $url);
18 echo HtmlInput::submit("previous","<");
19 echo '</form>';
20 echo '</li>';
21 }
22 if ( $record_start < $total_card && $nb_found >= MAX_SEARCH_CARD) {
23 echo '<li style="padding:1px">';
24 echo '<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
26 $url["page_card"]=$page_card+1;
27 echo HtmlInput::array_to_hidden(array('accvis','inp','jrn','label','typecard','price','tvaid','amount_from_type','page_card','query','inactive_card'), $url);
28
29 echo HtmlInput::submit("next",">");
30 echo '</form>';
31 echo '</li>';
32 }
33 echo '</ul>';
34 ?>
35
36<table class="result" >
37<?php for ($i=0;$i<sizeof($array);$i++) : ?>
38 <?php $class=($i%2==0)?'odd':'even';?>
39<tr class="<?php echo $class;?>">
40 <td style="padding-right:55px">
41<a href="javascript:void(0)" class="detail" onclick="<?php echo $array[$i]['javascript']?>">
42<?php echo $array[$i]['quick_code']?>
43</a>
44</td>
45<?php
46//---------------------------------------------------------------------------
47// if accvis == 1 then show the accounting
48//---------------------------------------------------------------------------
49if ( $accvis == 1 ) :
50 ?>
51<td>
52 <?php echo HtmlInput::history_account($array[$i]['accounting'],$array[$i]['accounting']); ?>
53</td>
54<?php endif;?>
55<td>
56 <?php echo $array[$i]['name']?>
57</td>
58<td>
59 <?php echo $array[$i]['first_name']?>
60</td>
61<td>
62<?php echo $array[$i]['description']?>
63</td>
64
65</tr>
66
67
68<?php endfor; ?>
69</table>
70<span style="font-style: italic;">
71 <?php echo _("Nombre d'enregistrements trouvé:$total_card"); ?>
72</span>
73<br>
74</div>
75</fieldset>
span($p_string, $p_extra='')
Definition: ac_common.php:43
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
$sql_array['query']
for($i=0; $i< count($a); $i++) $accvis
$url
$opd_description style
$class
static history_account($p_account, $p_mesg, $p_style="", $p_exercice="")
display a div with the history of the account
static array_to_hidden($array, $global_array)
transform request data to hidden
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
$all table
endfor