noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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<div style="height:88%;overflow:auto;">
7 <?php
8 // compute the url, $sql_array is defined in ajax_card.php
9 echo '<ul class="aligned-block" style="padding:1px;margin-top: 0px;margin-bottom: 0px;">';
10 if ( $page_card != 0 ) {
11 // show previous arrow to left
12 echo '<li style="padding:1px">';
13 echo '<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
15 $url["page_card"]=$page_card-1;
16 echo HtmlInput::array_to_hidden(array('accvis','inp','jrn','label','typecard','price','tvaid','amount_from_type','page_card','query','inactive_card'), $url);
17 echo HtmlInput::submit("previous","<");
18 echo '</form>';
19 echo '</li>';
20 }
21 if ( $record_start < $total_card && $nb_found >= MAX_SEARCH_CARD) {
22 echo '<li style="padding:1px">';
23 echo '<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
25 $url["page_card"]=$page_card+1;
26 echo HtmlInput::array_to_hidden(array('accvis','inp','jrn','label','typecard','price','tvaid','amount_from_type','page_card','query','inactive_card'), $url);
27
28 echo HtmlInput::submit("next",">");
29 echo '</form>';
30 echo '</li>';
31 }
32 echo '</ul>';
33 ?>
34
35<table class="result" >
36<?php for ($i=0;$i<sizeof($array);$i++) : ?>
37 <?php $class=($i%2==0)?'odd':'even';?>
38<tr class="<?php echo $class;?>">
39 <td style="padding-right:55px">
40<a href="javascript:void(0)" class="detail" onclick="<?php echo $array[$i]['javascript']?>">
41<?php echo $array[$i]['quick_code']?>
42</a>
43</td>
44<?php
45//---------------------------------------------------------------------------
46// if accvis == 1 then show the accounting
47//---------------------------------------------------------------------------
48if ( $accvis == 1 ) :
49 ?>
50<td>
51 <?php echo HtmlInput::history_account($array[$i]['accounting'],$array[$i]['accounting']); ?>
52</td>
53<?php endif;?>
54<td>
55 <?php echo $array[$i]['name']?>
56</td>
57<td>
58 <?php echo $array[$i]['first_name']?>
59</td>
60<td>
61<?php echo $array[$i]['description']?>
62</td>
63
64</tr>
65
66
67<?php endfor; ?>
68</table>
69<span style="font-style: italic;">
70 <?php echo _("Nombre d'enregistrements trouvé:$total_card"); ?>
71</span>
72<br>
73</div>
74</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
$opd_description style
_("actif, passif,charge,...")
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